You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update AWS SDK from v2 to v3; npm audit fix (mapbox#938)
* update AWS SDK from v2 to v3
* npm audit fix
Note that eslint-config-mapbox has to be pinned due to
mapbox/eslint-plugin-mapbox#3.
* Allow npm audit to fail without breaking CI
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
@@ -130,7 +130,7 @@ For a full example see [node-addon-examples's package.json](https://github.com/s
130
130
Let's break this down:
131
131
132
132
- Dependencies need to list `node-pre-gyp`
133
-
- Your devDependencies should list `aws-sdk` so that you can run `node-pre-gyp publish` locally or a CI system. We recommend using `devDependencies` only since `aws-sdk` is large and not needed for `node-pre-gyp install` since it only uses http to fetch binaries
133
+
- Your devDependencies should list `@aws-sdk/client-s3` so that you can run `node-pre-gyp publish` locally or a CI system. We recommend using `devDependencies` only since `@aws-sdk/client-s3` is large and not needed for `node-pre-gyp install` since it only uses http to fetch binaries
134
134
- Your `scripts` section should override the `install` target with `"install": "node-pre-gyp install --fallback-to-build"`. This allows node-pre-gyp to be used instead of the default npm behavior of always source compiling with `node-gyp` directly.
135
135
- Your package.json should contain a `binary` section describing key properties you provide to allow node-pre-gyp to package optimally. They are detailed below.
136
136
@@ -198,7 +198,7 @@ The S3 Access Control List (ACL) to apply when publishing binaries. Defaults to
198
198
199
199
**For private binaries:**
200
200
- Users installing your package will need AWS credentials configured (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables)
201
-
- The `aws-sdk` package must be available at install time
201
+
- The `@aws-sdk/client-s3` package must be available at install time
202
202
- If authentication fails, node-pre-gyp will fall back to building from source (if `--fallback-to-build` is specified)
203
203
204
204
You can also specify the ACL via command-line flag: `node-pre-gyp publish --acl=private`
@@ -308,7 +308,7 @@ Once packaged, now you can publish:
308
308
309
309
Currently the `publish` command pushes your binary to S3. This requires:
310
310
311
-
- You have installed `aws-sdk` with `npm install aws-sdk`
311
+
- You have installed `@aws-sdk/client-s3` with `npm install @aws-sdk/client-s3`
312
312
- You have created a bucket already.
313
313
- The `host` points to an S3 http or https endpoint.
314
314
- You have configured node-pre-gyp to read your S3 credentials (see [S3 hosting](#s3-hosting) for details).
@@ -529,18 +529,18 @@ Or put the local version on your PATH
529
529
530
530
#### 3) Configure AWS credentials
531
531
532
-
It is recommended to configure the AWS JS SDK v2 used internally by `node-pre-gyp` by setting these environment variables:
532
+
It is recommended to configure the AWS JS SDK v3 used internally by `node-pre-gyp` by setting these environment variables:
533
533
534
534
- AWS_ACCESS_KEY_ID
535
535
- AWS_SECRET_ACCESS_KEY
536
536
537
-
But also you can also use the `Shared Config File` mentioned [in the AWS JS SDK v2 docs](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html)
537
+
But also you can also use the `Shared Config File` mentioned [in the AWS JS SDK v3 docs](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html)
0 commit comments