@netlify/zip-it-and-ship-it 9.42.6 → 9.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtimes/node/bundlers/esbuild/bundler_target.d.ts +1 -0
- package/dist/runtimes/node/bundlers/esbuild/bundler_target.js +1 -0
- package/dist/runtimes/node/utils/node_runtime.js +1 -1
- package/dist/runtimes/node/utils/node_version.d.ts +1 -1
- package/dist/runtimes/node/utils/node_version.js +1 -1
- package/package.json +3 -3
|
@@ -5,6 +5,7 @@ declare const versionMap: {
|
|
|
5
5
|
readonly 16: "node16";
|
|
6
6
|
readonly 18: "node18";
|
|
7
7
|
readonly 20: "node20";
|
|
8
|
+
readonly 22: "node22";
|
|
8
9
|
};
|
|
9
10
|
type VersionValues = (typeof versionMap)[keyof typeof versionMap];
|
|
10
11
|
declare const getBundlerTarget: (suppliedVersion?: string) => VersionValues;
|
|
@@ -18,7 +18,7 @@ export const getNodeRuntime = (input) => {
|
|
|
18
18
|
export const getNodeRuntimeForV2 = (input) => {
|
|
19
19
|
const version = parseVersion(input);
|
|
20
20
|
// If version was unable to be parsed or if the version is older than Node.js 18
|
|
21
|
-
// we return the current default Node.js version (which was Node.js
|
|
21
|
+
// we return the current default Node.js version (which was Node.js 22 while writing this).
|
|
22
22
|
// Here we do not want BB/FO to decide on the version, because they value AWS_LAMBDA_JS_RUNTIME, which
|
|
23
23
|
// might be set to an too old version
|
|
24
24
|
if (!version || version < minimumV2Version) {
|
|
@@ -2,7 +2,7 @@ export interface NodeVersionSupport {
|
|
|
2
2
|
esm: boolean;
|
|
3
3
|
awsSDKV3: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const DEFAULT_NODE_VERSION =
|
|
5
|
+
export declare const DEFAULT_NODE_VERSION = 22;
|
|
6
6
|
export declare const getNodeVersion: (configVersion?: string) => number;
|
|
7
7
|
export declare const getNodeSupportMatrix: (configVersion?: string) => NodeVersionSupport;
|
|
8
8
|
export declare const parseVersion: (input: string | undefined) => number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import semver from 'semver';
|
|
2
2
|
// Must match the default version used in Bitballoon.
|
|
3
|
-
export const DEFAULT_NODE_VERSION =
|
|
3
|
+
export const DEFAULT_NODE_VERSION = 22;
|
|
4
4
|
export const getNodeVersion = (configVersion) => parseVersion(configVersion) ?? DEFAULT_NODE_VERSION;
|
|
5
5
|
export const getNodeSupportMatrix = (configVersion) => {
|
|
6
6
|
const versionNumber = getNodeVersion(configVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/zip-it-and-ship-it",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.43.1",
|
|
4
4
|
"description": "Zip it and ship it",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/parser": "^7.22.5",
|
|
45
45
|
"@babel/types": "7.26.9",
|
|
46
46
|
"@netlify/binary-info": "^1.0.0",
|
|
47
|
-
"@netlify/serverless-functions-api": "^1.
|
|
47
|
+
"@netlify/serverless-functions-api": "^1.34.0",
|
|
48
48
|
"@vercel/nft": "0.27.7",
|
|
49
49
|
"archiver": "^7.0.0",
|
|
50
50
|
"common-path-prefix": "^3.0.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": "^14.18.0 || >=16.0.0"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "2aa50a6351ea1b536139cbff44027e9e2d3afd92"
|
|
109
109
|
}
|