Skip to content

Commit bd53afc

Browse files
szegedinsavoire
andauthored
Add support for Node 23 (#175)
* Add support for Node 23 * Use comma for skips * Update package-lock.json * Add extra permissions to package-size * update ASAN suppressions * Add node 22 benchmark * Switch to c++20 --------- Co-authored-by: Nicolas Savoire <nicolas.savoire@datadoghq.com>
1 parent 012af75 commit bd53afc

File tree

8 files changed

+19
-16
lines changed

8 files changed

+19
-16
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
asan:
1111
strategy:
1212
matrix:
13-
version: [16, 18, 20, 22]
13+
version: [16, 18, 20, 22, 23]
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
@@ -23,7 +23,7 @@ jobs:
2323
valgrind:
2424
strategy:
2525
matrix:
26-
version: [16, 18, 20, 22]
26+
version: [16, 18, 20, 22, 23]
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v3
@@ -41,7 +41,7 @@ jobs:
4141
package-manager: 'npm' # npm or yarn
4242
cache: true # enable caching of dependencies based on lockfile
4343
min-node-version: 16
44-
skip: 'linux-arm linux-ia32' # skip building for these platforms
44+
skip: 'linux-arm,linux-ia32' # skip building for these platforms
4545

4646
dev_publish:
4747
needs: build

.github/workflows/package-size.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ concurrency:
1212
jobs:
1313
package-size-report:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: write
1517
steps:
1618
- uses: actions/checkout@v2
1719
- name: Setup Node.js

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
package-manager: 'npm' # npm or yarn
1414
cache: true # enable caching of dependencies based on lockfile
1515
min-node-version: 16
16-
skip: 'linux-arm linux-ia32' # skip building for these platforms
16+
skip: 'linux-arm,linux-ia32' # skip building for these platforms
1717

1818
publish:
1919
needs: build

.gitlab/benchmarks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ benchmarks:
3232
- MAJOR_NODE_VERSION: 16
3333
- MAJOR_NODE_VERSION: 18
3434
- MAJOR_NODE_VERSION: 20
35+
- MAJOR_NODE_VERSION: 22
3536
artifacts:
3637
name: "reports"
3738
paths:

binding.gyp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@
6262
'VCCLCompilerTool': {
6363
'AdditionalOptions': [
6464
'/Zc:__cplusplus',
65-
'-std:c++17',
65+
'-std:c++20',
6666
],
67-
},
67+
},
6868
},
6969
},
7070
],
7171
["OS == 'linux'",
7272
{
7373
"cflags+":
7474
["-Wno-deprecated-declarations", "-Werror"],
75-
"cflags_cc!": ["-std=gnu++14", "-std=gnu++1y"],
76-
"cflags_cc": ["-std=gnu++17"],
75+
"cflags_cc!": ["-std=gnu++14", "-std=gnu++1y", "-std=gnu++20" ],
76+
"cflags_cc": ["-std=gnu++2a"],
7777
}
7878
],
7979
["OS == 'mac'",
@@ -82,7 +82,7 @@
8282
'OTHER_CFLAGS+': [
8383
"-Wno-deprecated-declarations",
8484
"-Werror",
85-
'-std=gnu++17',
85+
'-std=gnu++20',
8686
],
8787
},
8888
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test:js-tsan": "LD_PRELOAD=`gcc -print-file-name=libtsan.so` mocha out/test/test-*.js",
2727
"test:js-valgrind": "valgrind --leak-check=full mocha out/test/test-*.js",
2828
"test:js": "nyc mocha -r source-map-support/register out/test/test-*.js",
29-
"test": "npm run test:js && npm run test:cpp"
29+
"test": "npm run test:js"
3030
},
3131
"author": {
3232
"name": "Google Inc."
@@ -55,7 +55,7 @@
5555
"gts": "^4.0.1",
5656
"js-green-licenses": "^4.0.0",
5757
"mocha": "^10.2.0",
58-
"nan": "^2.19.0",
58+
"nan": "^2.22.0",
5959
"nyc": "^15.1.0",
6060
"sinon": "^15.2.0",
6161
"source-map-support": "^0.5.21",

suppressions/lsan_suppr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leak:PKCS5_PBKDF2_HMAC
1+
leak:CRYPTO_zalloc

0 commit comments

Comments
 (0)