@netlify/zip-it-and-ship-it 14.1.10 → 14.1.12

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.
@@ -7,7 +7,6 @@ export declare const defaultFlags: {
7
7
  readonly zisi_output_cjs_extension: false;
8
8
  readonly zisi_esbuild_fail_double_glob: false;
9
9
  readonly zisi_add_instrumentation_loader: true;
10
- readonly zisi_dynamic_import_function_handler_entry_point: false;
11
10
  };
12
11
  export type FeatureFlags = Partial<Record<keyof typeof defaultFlags, boolean>>;
13
12
  export declare const getFlags: (input?: Record<string, boolean>, flags?: {
@@ -19,5 +18,4 @@ export declare const getFlags: (input?: Record<string, boolean>, flags?: {
19
18
  readonly zisi_output_cjs_extension: false;
20
19
  readonly zisi_esbuild_fail_double_glob: false;
21
20
  readonly zisi_add_instrumentation_loader: true;
22
- readonly zisi_dynamic_import_function_handler_entry_point: false;
23
21
  }) => FeatureFlags;
@@ -18,8 +18,6 @@ export const defaultFlags = {
18
18
  zisi_esbuild_fail_double_glob: false,
19
19
  // Adds the `___netlify-telemetry.mjs` file to the function bundle.
20
20
  zisi_add_instrumentation_loader: true,
21
- // Dynamically import the function handler.
22
- zisi_dynamic_import_function_handler_entry_point: false,
23
21
  };
24
22
  // List of supported flags and their default value.
25
23
  export const getFlags = (input = {}, flags = defaultFlags) => Object.entries(flags).reduce((result, [key, defaultValue]) => ({
@@ -23,21 +23,12 @@ export const kebabCase = (input) => input
23
23
  .toLowerCase()
24
24
  .split(' ')
25
25
  .join('-');
26
- const getEntryFileContents = (mainPath, moduleFormat, featureFlags, runtimeAPIVersion) => {
26
+ const getEntryFileContents = (mainPath, moduleFormat, _featureFlags, runtimeAPIVersion) => {
27
27
  const importPath = `.${mainPath.startsWith('/') ? mainPath : `/${mainPath}`}`;
28
28
  if (runtimeAPIVersion === 2) {
29
- if (featureFlags.zisi_dynamic_import_function_handler_entry_point) {
30
- return [
31
- `import * as bootstrap from './${BOOTSTRAP_FILE_NAME}'`,
32
- `export const handler = bootstrap.getLambdaHandler('${importPath}')`,
33
- ].join(';');
34
- }
35
29
  return [
36
30
  `import * as bootstrap from './${BOOTSTRAP_FILE_NAME}'`,
37
- `import * as func from '${importPath}'`,
38
- // See https://esbuild.github.io/content-types/#default-interop.
39
- 'const funcModule = typeof func.default === "function" ? func : func.default',
40
- `export const handler = bootstrap.getLambdaHandler(funcModule)`,
31
+ `export const handler = bootstrap.getLambdaHandler('${importPath}')`,
41
32
  ].join(';');
42
33
  }
43
34
  if (moduleFormat === MODULE_FORMAT.COMMONJS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/zip-it-and-ship-it",
3
- "version": "14.1.10",
3
+ "version": "14.1.12",
4
4
  "description": "Zip it and ship it",
5
5
  "main": "./dist/main.js",
6
6
  "type": "module",
@@ -44,13 +44,13 @@
44
44
  "@babel/parser": "^7.22.5",
45
45
  "@babel/types": "7.28.4",
46
46
  "@netlify/binary-info": "^1.0.0",
47
- "@netlify/serverless-functions-api": "^2.7.0",
47
+ "@netlify/serverless-functions-api": "^2.7.1",
48
48
  "@vercel/nft": "0.29.4",
49
49
  "archiver": "^7.0.0",
50
50
  "common-path-prefix": "^3.0.0",
51
51
  "copy-file": "^11.0.0",
52
52
  "es-module-lexer": "^1.0.0",
53
- "esbuild": "0.25.10",
53
+ "esbuild": "0.25.11",
54
54
  "execa": "^8.0.0",
55
55
  "fast-glob": "^3.3.3",
56
56
  "filter-obj": "^6.0.0",
@@ -75,16 +75,16 @@
75
75
  "zod": "^3.23.8"
76
76
  },
77
77
  "devDependencies": {
78
- "@types/archiver": "6.0.3",
78
+ "@types/archiver": "6.0.4",
79
79
  "@types/is-ci": "3.0.4",
80
- "@types/node": "20.19.19",
80
+ "@types/node": "20.19.23",
81
81
  "@types/normalize-path": "3.0.2",
82
82
  "@types/resolve": "1.20.6",
83
83
  "@types/semver": "7.7.1",
84
84
  "@types/unixify": "1.0.2",
85
85
  "@types/yargs": "17.0.33",
86
86
  "@vitest/coverage-v8": "^3.0.0",
87
- "browserslist": "4.26.2",
87
+ "browserslist": "4.27.0",
88
88
  "cardinal": "2.1.1",
89
89
  "cpy": "11.1.0",
90
90
  "decompress": "4.2.1",
@@ -93,11 +93,11 @@
93
93
  "is-ci": "4.1.0",
94
94
  "lambda-local": "2.2.0",
95
95
  "source-map-support": "0.5.21",
96
- "typescript": "5.9.2",
96
+ "typescript": "5.9.3",
97
97
  "vitest": "^3.0.0"
98
98
  },
99
99
  "engines": {
100
100
  "node": ">=18.14.0"
101
101
  },
102
- "gitHead": "4aebfe99730221de3e3ebbd9edb119e1029ee596"
102
+ "gitHead": "eae1c7c9d0d7ab598aa676f72d298160a5fee92a"
103
103
  }