Releases: cyberuni/resolve.imports
[email protected]
Patch Changes
- cde5df7: Add missing slash in error message
[email protected]
Patch Changes
-
b4d6e0c: Fix array pattern handling.
The array pattern actually does not return an array of resolved paths.
It returns the first match with condition support.i.e.:
//=> "./a.js" { "imports": { "#a": ["./a.js", "./b.js"] } } // `conditions: ["node"] => "./node.js"` // `conditions: undefined => "./browser.js"` { "imports": { "#a": [ { "node": "./node.js" }, "./browser.js" ] } }
[email protected]
Patch Changes
-
691671b: Ignore
conditions
order.The implementation in Node.js is not order-sensitive, so we should not be either.
[email protected]
[email protected]
Major Changes
- 392cf7c: Update to latest specification
[email protected]
Patch Changes
-
1cb455e: Filter out non expensionKeys.
This does not affect the behavior of the package.
Just that it match closer to the spec.Even if the non expensionKeys are not filtered,
the behavior is the same.
It's actually not sure if doing a filter first is faster or not.
[email protected]
[email protected]
Patch Changes
- 1d87f1c: Remove
slice()
. It is not needed.
[email protected]
Patch Changes
-
5b742f7: Support sording expensionKeys.
See
PATTERN_KEY_COMPARE
in https://nodejs.org/api/esm.html#esm_resolver_algorithm_specification for more information. -
9368d41: Returns
undefined
if specifier is exactly#
or#/
. -
e358b6d: Return
undefined
if the import is recursive.The spec does not support recursion: https://nodejs.org/api/esm.html#esm_resolver_algorithm_specification
[email protected]
Major Changes
- b137fa2: Initial release.
Extract fromresolve.imports
.