@netlify/edge-bundler 14.7.2 → 14.8.0
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/README.md
CHANGED
|
@@ -38,12 +38,11 @@ Intelligently prepare Netlify Edge Functions for deployment.
|
|
|
38
38
|
To avoid pulling in additional dependencies at runtime, this package vendors some Deno modules in the `deno/vendor`
|
|
39
39
|
directory.
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
This will go away soon as we move away from the ESZIP format.
|
|
42
42
|
|
|
43
43
|
> [!WARNING]
|
|
44
|
-
>
|
|
45
|
-
>
|
|
46
|
-
> `eszip_wasm_bg.wasm`.
|
|
44
|
+
> The `eszip` module contains a set of custom changes that diverge from the upstream. If you need to update this module,
|
|
45
|
+
> make sure to backport them.
|
|
47
46
|
|
|
48
47
|
## Contributors
|
|
49
48
|
|
|
@@ -81,6 +81,11 @@ class V2 {
|
|
|
81
81
|
const imports: Record<string, string> = {};
|
|
82
82
|
|
|
83
83
|
for (const specifier of this.specifiers) {
|
|
84
|
+
// NOTE: This is specific to Netlify, to address the fact that we can't
|
|
85
|
+
// unpack remote URL specifiers to paths on disk.
|
|
86
|
+
// https://github.com/netlify/build/pull/6716
|
|
87
|
+
// https://github.com/netlify/build/pull/6720
|
|
88
|
+
// https://github.com/netlify/build/pull/6722
|
|
84
89
|
if (new URL(specifier).protocol !== "file:") continue
|
|
85
90
|
const module = await this.parser.getModuleSource(specifier);
|
|
86
91
|
await write(join(dest, "source", url2path(specifier)), module);
|
package/dist/node/bundler.js
CHANGED
|
@@ -145,6 +145,7 @@ const getFunctionConfigs = async ({ basePath, deno, eszipPath, featureFlags, imp
|
|
|
145
145
|
if (!(err instanceof Error && err.cause === 'IMPORT_ASSERT') || !eszipPath || !featureFlags?.edge_bundler_deno_v2) {
|
|
146
146
|
throw err;
|
|
147
147
|
}
|
|
148
|
+
log.user('WARNING: Import assertions are deprecated and will be removed soon. Refer to https://ntl.fyi/import-assert for more information.');
|
|
148
149
|
try {
|
|
149
150
|
// We failed to extract the configuration because there is an import assert
|
|
150
151
|
// in the function code, a deprecated feature that we used to support with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/edge-bundler",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.8.0",
|
|
4
4
|
"description": "Intelligently prepare Netlify Edge Functions for deployment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.js",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"test:dev:deno": "deno test --allow-all deno",
|
|
25
25
|
"test:ci:vitest": "vitest run --coverage",
|
|
26
26
|
"test:ci:deno": "deno test --allow-all deno",
|
|
27
|
-
"test:integration": "node --experimental-modules test/integration/test.js"
|
|
28
|
-
"vendor": "deno vendor --force --output deno/vendor https://deno.land/x/eszip@v0.55.2/mod.ts https://deno.land/x/retry@v2.0.0/mod.ts https://deno.land/x/std@0.177.0/path/mod.ts"
|
|
27
|
+
"test:integration": "node --experimental-modules test/integration/test.js"
|
|
29
28
|
},
|
|
30
29
|
"keywords": [],
|
|
31
30
|
"license": "MIT",
|
|
@@ -80,5 +79,5 @@
|
|
|
80
79
|
"urlpattern-polyfill": "8.0.2",
|
|
81
80
|
"uuid": "^11.0.0"
|
|
82
81
|
},
|
|
83
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "01a7441fcbc82d415247bf990414ad937e9533c4"
|
|
84
83
|
}
|