Skip to content

Commit

Permalink
v8.0.0 + drop support for NodeJs 14 (#110)
Browse files Browse the repository at this point in the history
* Bump v8.0.0

* Bump min runtime version

* Update readme

* Update NAPI version
  • Loading branch information
CarlesDD authored May 22, 2024
1 parent 4310038 commit 68bf4d4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
postbuild: 'node scripts/postbuild'
skip: 'linux-arm linux-ia32'
target-name: 'appsec'
min-node-version: 14
min-node-version: 16

static-checks:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
postbuild: 'node scripts/postbuild'
skip: 'linux-arm linux-ia32'
target-name: 'appsec'
min-node-version: 14
min-node-version: 16

pack:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Node.js bindings for [libddwaf](https://github.com/datadog/libddwaf).

This package supports the following platforms:

* **Node.js version:** 14 and higher
* **Node.js version:** 16 and higher
* **Operating Systems:**
* MacOS
* x64
Expand Down
6 changes: 3 additions & 3 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
@@ -1,6 +1,6 @@
{
"name": "@datadog/native-appsec",
"version": "7.1.1",
"version": "8.0.0",
"description": "Node.js bindings for libddwaf",
"main": "index.js",
"libddwaf_version": "1.18.0",
Expand Down Expand Up @@ -41,7 +41,7 @@
"node-gyp-build": "^3.9.0"
},
"engines": {
"node": ">=14"
"node": ">=16"
},
"files": [
"index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
**/
// min support Node.js 14.0.0 - https://nodejs.org/api/n-api.html#node-api-version-matrix
#define NAPI_VERSION 6
// min support Node.js 16.0.0 - https://nodejs.org/api/n-api.html#node-api-version-matrix
#define NAPI_VERSION 8
#include <napi.h>
#include <stdio.h>
#include <ddwaf.h>
Expand Down

0 comments on commit 68bf4d4

Please sign in to comment.