Skip to content

Commit 054396d

Browse files
increase napi version to 9
1 parent 464290f commit 054396d

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

addon/mongocrypt.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
#ifndef NODE_MONGOCRYPT_H
22
#define NODE_MONGOCRYPT_H
33

4-
// We generally only target N-API version 4, but the instance data
5-
// feature is only available in N-API version 6. However, it is
6-
// available in all Node.js versions that have N-API version 4
7-
// as an experimental feature (that has not been changed since then).
8-
#define NAPI_VERSION 6
9-
#define NAPI_EXPERIMENTAL
10-
#define NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT
4+
#define NAPI_VERSION 9
115

126
#include <napi.h>
137

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"binary": {
8282
"napi_versions": [
83-
4
83+
9
8484
]
8585
},
8686
"repository": {

test/bundling/webpack/install_ce.cjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const { execSync } = require('node:child_process');
42
const { readFileSync } = require('node:fs');
53
const { resolve } = require('node:path');
@@ -19,6 +17,6 @@ console.log(`mongodb-client-encryption Version: ${ceVersion}`);
1917

2018
xtrace('npm pack --pack-destination test/bundling/webpack', { cwd: ceRoot });
2119

22-
xtrace(`npm install --no-save mongodb-client-encryption-${ceVersion}.tgz`);
20+
xtrace(`npm install --ignore-scripts --no-save mongodb-client-encryption-${ceVersion}.tgz`);
2321

2422
console.log('mongodb-client-encryption installed!');

0 commit comments

Comments
 (0)