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.0
Release Notes
lukeed/resolve.exports
v2.0.0
Compare Source
Breaking
resolve
return signature fromstring | undefined
tostring[] | undefined
:Previously
resolve.exports
could only return 1 string output. This ignored"imports"
and"exports"
entries that could return multiple resolved locations (aka "alternatives").Now
resolve.exports
supports 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
imports
function to resolve"imports"
identifiers: #14NEW Add
exports
function to resolve"exports"
maps exclusivelyNote: This is identical to the
resolve
function fromresolve.exports@1.x
release.Converted the
resolve
function to be a convenience helper.Note: Its API signature is unchanged. However, it also now accepts import specifiers. If an import identifier (eg,
#foo
or<package>/#foo
) is received, then theimports()
function is invoked. Otherwise theexports()
function is called.Support array values (#17)
Chores
v1.1.1
Compare Source
Patches
Thank you @ErikMikkelson
"*"
anywhere (#16, #22):7e41d63
null
resolved values: (#16):d3bda82
"*"
within the resolved value (#9):All these fixes allow the following
package.json
example to be resolved correctly (according to the latest"exports"
resolution specification):Types
readonly
andconst
arrays in options (#15):587b0ba
Thank you @SimenB
types
condition toexports
field (#18):dc7bae3
Thank you @merceyz
Chores
0bae61e
Thank you @huntie
16.x
and18x
to CI testing matrix:4908584
Configuration
📅 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.