-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Running a project using ravendb on the newest version of node (v21) yields a deprecation warning.
Minimal example
package.json
{
"dependencies": {
"ravendb": "5.4.1"
},
"scripts": {
"start": "node main.js"
}
}
main.js
const { DocumentStore } = require("ravendb");
const store = new DocumentStore(/* Your DB connection info */).initialize();
After running npm i
, we get the following behaviour:
$ npm run start
> start
> node main.js
(node:78223) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
On older versions of node, the same warning can be seen by adding the --pending-deprecations
flag.
The dependency on punycode
seems to enter through node-fetch
v2. Simply updating to v3 might do the trick.
Specific version information
- OS: Ubuntu 22.04
- Node: 21.0.0
- npm: 10.2.0
Metadata
Metadata
Assignees
Labels
No labels