Skip to content

Conversation

sgammon
Copy link
Contributor

@sgammon sgammon commented Mar 31, 2024

This changeset fixes and closes #16 by switching to node:-prefixed imports, which should be safe to assume support for now that Node 20 is LTS and Node 16 is EOL (Node 16 introduced this feature).

Related issues:

Peer PRs:

sgammon added 2 commits March 30, 2024 18:29
This changeset fixes and closes isaacs#16 so that this
package can be used on all JS runtimes.

Relates to isaacs/node-glob#580

Signed-off-by: Sam Gammon <[email protected]>
Runs `npm audit fix` to remedy:
`word-wrap` vulnerable to Regular Expression Denial

GHSA-j8xg-fqg3-53r7

Signed-off-by: Sam Gammon <[email protected]>
@sgammon sgammon force-pushed the feat/neutral-runtimes branch from 4f7197f to cf46650 Compare March 31, 2024 01:30
sgammon added a commit to sgammon/node-glob that referenced this pull request Mar 31, 2024
Fixes and closes isaacs#580 by switching to `node:`-
prefixed requires for Node API builtins.

Will need releases for `minipass` and `path-scurry`, PRs for these
are noted below.

Relates to:
- isaacs/path-scurry#17
- isaacs/minipass#55

Signed-off-by: Sam Gammon <[email protected]>
sgammon added a commit to sgammon/hashlock that referenced this pull request Mar 31, 2024
- feat: support all popular js runtimes
  - patches for `glob`, `minipass`, and `path-scurry`
  - upstream prs (listed below)
  - test entrypoint commands
- test: add test entrypoints for each major runtime
- test: add scripts to test entrypoint with each major runtime
- chore: sync lockfiles

Related Issues
- isaacs/node-glob#580
- isaacs/path-scurry#16
- isaacs/minipass#54
- tj/commander.js#2169

Upstream PRs
- isaacs/node-glob#581
- isaacs/minipass#55
- isaacs/path-scurry#17
- tj/commander.js#2170

Signed-off-by: Sam Gammon <[email protected]>
sgammon added a commit to sgammon/hashlock that referenced this pull request Mar 31, 2024
- feat: support all popular js runtimes
  - patches for `glob`, `minipass`, and `path-scurry`
  - upstream prs (listed below)
  - test entrypoint commands
- test: add test entrypoints for each major runtime
- test: add scripts to test entrypoint with each major runtime
- chore: sync lockfiles

Related Issues
- isaacs/node-glob#580
- isaacs/path-scurry#16
- isaacs/minipass#54
- tj/commander.js#2169

Upstream PRs
- isaacs/node-glob#581
- isaacs/minipass#55
- isaacs/path-scurry#17
- tj/commander.js#2170

Signed-off-by: Sam Gammon <[email protected]>
sgammon added a commit to sgammon/hashlock that referenced this pull request Mar 31, 2024
- feat: support all popular js runtimes
  - patches for `glob`, `minipass`, and `path-scurry`
  - upstream prs (listed below)
  - test entrypoint commands
- test: add test entrypoints for each major runtime
- test: add scripts to test entrypoint with each major runtime
- chore: sync lockfiles

Related Issues
- isaacs/node-glob#580
- isaacs/path-scurry#16
- isaacs/minipass#54
- tj/commander.js#2169

Upstream PRs
- isaacs/node-glob#581
- isaacs/minipass#55
- isaacs/path-scurry#17
- tj/commander.js#2170

Signed-off-by: Sam Gammon <[email protected]>
sgammon added a commit to sgammon/hashlock that referenced this pull request Mar 31, 2024
* feat: support all runtimes

- feat: support all popular js runtimes
  - patches for `glob`, `minipass`, and `path-scurry`
  - upstream prs (listed below)
  - test entrypoint commands
- test: add test entrypoints for each major runtime
- test: add scripts to test entrypoint with each major runtime
- chore: sync lockfiles

Related Issues
- isaacs/node-glob#580
- isaacs/path-scurry#16
- isaacs/minipass#54
- tj/commander.js#2169

Upstream PRs
- isaacs/node-glob#581
- isaacs/minipass#55
- isaacs/path-scurry#17
- tj/commander.js#2170

Signed-off-by: Sam Gammon <[email protected]>

* chore: version bump → `1.0.3`

Signed-off-by: Sam Gammon <[email protected]>

---------

Signed-off-by: Sam Gammon <[email protected]>
Signed-off-by: Sam Gammon <[email protected]>
@isaacs isaacs closed this in 38c51b2 May 9, 2024
isaacs pushed a commit to isaacs/node-glob that referenced this pull request May 9, 2024
Fixes and closes #580 by switching to `node:`-
prefixed requires for Node API builtins.

Will need releases for `minipass` and `path-scurry`, PRs for these
are noted below.

Relates to:
- isaacs/path-scurry#17
- isaacs/minipass#55

Signed-off-by: Sam Gammon <[email protected]>

PR-URL: #581
Credit: @sgammon
Close: #581
Reviewed-by: @isaacs
@ljharb
Copy link

ljharb commented May 16, 2025

I doubt it'll be fixed, but for future record, this was a breaking change in a patch version.

ljharb added a commit to ljharb/es-abstract that referenced this pull request May 16, 2025
ljharb added a commit to ljharb/es-abstract that referenced this pull request May 16, 2025
ljharb added a commit to ljharb/es-abstract that referenced this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Neutral JavaScript runtime support (Deno, Bun, etc)
2 participants