-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: Dependencies
Motivation
With the many peer dependencies the driver has in addition the future where they are brought in lazily (NODE-4977) it could be useful to have a way to determine if the dependency was / can be imported and what version is the one being imported.
Open Questions
- Is it safe to import a dependency's package.json file?
- we did it with snappy for a while
- Should the packge.json version be imported regardless of if the feature is used, or only when the feature is used?
- It seems reasonable someone would want to know that information before actually attempting usage
- If the version is always imported / made available what indicator would there be that the dep itself hasn't yet been pulled in?
- Is this important?
AC
- TBD