fix(deps): update dependency resolve.exports to v2 #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.1.0->^2.0.0Release Notes
lukeed/resolve.exports
v2.0.0Compare Source
Breaking
resolvereturn signature fromstring | undefinedtostring[] | undefined:Previously
resolve.exportscould only return 1 string output. This ignored"imports"and"exports"entries that could return multiple resolved locations (aka "alternatives").Now
resolve.exportssupports arrayable entries and normalizes all outputs into arrays. This makes it easier for consumers to uniformly traverse the output (or simply take the first item).Features
NEW Add
importsfunction to resolve"imports"identifiers: #14NEW Add
exportsfunction to resolve"exports"maps exclusivelyNote: This is identical to the
resolvefunction from[email protected]release.Converted the
resolvefunction to be a convenience helper.Note: Its API signature is unchanged. However, it also now accepts import specifiers. If an import identifier (eg,
#fooor<package>/#foo) is received, then theimports()function is invoked. Otherwise theexports()function is called.Support array values (#17)
Chores
v1.1.1Compare Source
Patches
Thank you @ErikMikkelson
"*"anywhere (#16, #22):7e41d63nullresolved values: (#16):d3bda82"*"within the resolved value (#9):All these fixes allow the following
package.jsonexample to be resolved correctly (according to the latest"exports"resolution specification):Types
readonlyandconstarrays in options (#15):587b0baThank you @SimenB
typescondition toexportsfield (#18):dc7bae3Thank you @merceyz
Chores
0bae61eThank you @huntie
16.xand18xto CI testing matrix:4908584Configuration
📅 Schedule: Branch creation - "after 8pm,before 8:00am" in timezone Europe/Warsaw, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.