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

Add Node.js v20+ support #15

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 10, 12, 14, 16, 18 ]
node: [ 18, 20, 22 ]
name: Node ${{ matrix.node }}
continue-on-error: true
steps:
Expand Down
5 changes: 2 additions & 3 deletions include.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const
magic = require('bindings')('memwatch'),
events = require('events');
const magic = require('bindings')('memwatch');
const events = require('events');

module.exports = new events.EventEmitter();

Expand Down
216 changes: 138 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "2.0.0",
"author": "Lloyd Hilaiel (http://lloyd.io)",
"engines": {
"node": ">= 10.0"
"node": ">= 18"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -34,7 +34,7 @@
],
"dependencies": {
"bindings": "^1.5.0",
"nan": "^2.14.1"
"nan": "^2.22.0"
},
"publishConfig": {
"access": "public"
Expand Down