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

Bump minimal supported version of Node.js from v14 to v18 #1271

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Apr 24, 2023

Triggered by dependency on ReSpec (#1270). Note the dependency is only in tests meaning that Reffy should continue to run with Node.js v14 for now. That said, it does not seem a good idea to maintain two different minimal versions of Node, one for the source and one for tests. Plus there would be no way to specify that in package.json.

A major version of Reffy will need to be released.

Triggered by dependency on ReSpec (#1270). Note the dependency is only in tests
meaning that Reffy should continue to run with Node.js v14 for now. That said,
it does not seem a good idea to maintain two different minimal versions of
Node, one for the source and one for tests. Plus there would be no way to
specify that in `package.json`.

A major version of Reffy will need to be released.
Copy link
Member

@dontcallmedom dontcallmedom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with node 18, we can get rid of node-fetch (in fetch-filecache-for-crawling)

@tidoust
Copy link
Member Author

tidoust commented Apr 24, 2023

with node 18, we can get rid of node-fetch (in fetch-filecache-for-crawling)

If Node.js 18 supports cache directives, we might also get rid of fetch-filecache-for-crawling entirely. Do you know if it does?

I note that getting rid of node-fetch in fetch-filecache-for-crawling is a bit more involved than just replacing node-fetch with fetch. Response objects, readable streams, writable streams used in the code also need to be updated as the new objects don't follow the exact same API.

@tidoust tidoust merged commit 972cd23 into main Apr 24, 2023
@tidoust tidoust deleted the node-version branch April 24, 2023 07:55
tidoust added a commit that referenced this pull request Apr 24, 2023
Breaking changes:
- Bump minimal supported version of Node.js from v14 to v18 (#1271)

Required by dependency on ReSpec, although note this dependency is only for tests (`devDependencies` in `package.json`). The crawler itself should continue to run under previous versions of Node for now but this may not last!

Dependencies bumped:
- Bump respec from 32.8.0 to 34.0.1 (#1270). This triggers the need to bump the minimal supported version of Node.js.
- Bump puppeteer from 19.9.1 to 19.10.1 (#1267)
- Bump rollup from 3.20.4 to 3.20.7 (#1266)
- Bump semver from 7.4.0 to 7.5.0 (#1264)

Feature patched:
- Events: Skip asides in "fire an event" phrasing (#1269)
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.

2 participants