Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency resolve.exports to v2 #188

Merged
merged 2 commits into from Jan 26, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 17, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
resolve.exports ^1.1.0 -> ^2.0.0 age adoption passing confidence

Release Notes

lukeed/resolve.exports

v2.0.0

Compare Source

Breaking

  • Changed the resolve return signature from string | undefined to string[] | 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: #​14

  • NEW Add exports function to resolve "exports" maps exclusively
    Note: This is identical to the resolve function from resolve.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 the imports() function is invoked. Otherwise the exports() function is called.

  • Support array values (#​17)

Chores

  • Converted source code to strict TypeScript
  • Add Node 16.x and 18.x to CI matrix

Full Changelog: lukeed/resolve.exports@v1.1.1...v2.0.0

v1.1.1

Compare Source

Patches

All these fixes allow the following package.json example to be resolved correctly (according to the latest "exports" resolution specification):

{
  "name": "foobar",
  "exports": {
    // subpath w/ leading "."
    "./.ini": "./.ini",
    // nullable (private) values
    "./features/internal/*": null,
    "./features/*": "./src/features/*.js",
    "./features/private/*": null,
    // allow "*" anywhere in pattern
    "./views/*": "./src/views/*.js",
    "./views/*.jsx": "./src/views/*.jsx",
    "./views/*/template": "./src/views/*.html",
    // multiple wildcards in value
    "./es*": "./esm/*/GAP/*.js"
    // "foobar/es2015" => "./esm/2015/GAP/2015.js"
    // "foobar/es2015/a/b" => "./esm/2015/a/b/GAP/2015/a/b.js"
  }
}

Types

Chores


Full Changelog: lukeed/resolve.exports@v1.1.0...v1.1.1


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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jan 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Jan 17, 2023

🦋 Changeset detected

Latest commit: 29ca3ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
bob-the-bundler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@renovate
Copy link
Contributor Author

renovate bot commented Jan 17, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@dimaMachina dimaMachina merged commit 4f9c7d4 into master Jan 26, 2023
@dimaMachina dimaMachina deleted the renovate/resolve.exports-2.x branch January 26, 2023 10:45
This was referenced Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant