Skip to content

Commit

Permalink
Add Node.js v20+ support (#15)
Browse files Browse the repository at this point in the history
* Add Node.js v20 support

* Fix indendation + add editorconfig file

* Revert vitest conversion

* Remove kGCTypeMinorMarkCompact to maintain previous behavior
  • Loading branch information
christianvuerings authored Nov 7, 2024
1 parent 99c84fa commit d903a65
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 84 deletions.
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

0 comments on commit d903a65

Please sign in to comment.