@netlify/edge-bundler 14.0.5 → 14.0.7
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/deno/vendor/deno.land/std@0.98.0/async/mux_async_iterator.ts +1 -1
- package/deno/vendor/deno.land/std@0.98.0/async/pool.ts +1 -1
- package/deno/vendor/deno.land/x/eszip@v0.55.2/eszip_wasm.generated.js +1 -1
- package/dist/node/bridge.d.ts +1 -1
- package/dist/node/declaration.js +1 -4
- package/dist/node/downloader.test.js +2 -2
- package/dist/node/manifest.js +0 -1
- package/dist/node/server/util.d.ts +1 -1
- package/dist/node/validation/manifest/index.js +0 -1
- package/package.json +7 -6
|
@@ -13,7 +13,7 @@ interface TaggedYieldedValue<T> {
|
|
|
13
13
|
*/
|
|
14
14
|
export class MuxAsyncIterator<T> implements AsyncIterable<T> {
|
|
15
15
|
private iteratorCount = 0;
|
|
16
|
-
private yields:
|
|
16
|
+
private yields: TaggedYieldedValue<T>[] = [];
|
|
17
17
|
// deno-lint-ignore no-explicit-any
|
|
18
18
|
private throws: any[] = [];
|
|
19
19
|
private signal: Deferred<void> = deferred();
|
|
@@ -31,7 +31,7 @@ export function pooledMap<T, R>(
|
|
|
31
31
|
// Start processing items from the iterator
|
|
32
32
|
(async () => {
|
|
33
33
|
const writer = res.writable.getWriter();
|
|
34
|
-
const executing:
|
|
34
|
+
const executing: Promise<unknown>[] = [];
|
|
35
35
|
try {
|
|
36
36
|
for await (const item of array) {
|
|
37
37
|
const p = Promise.resolve().then(() => iteratorFn(item));
|
|
@@ -703,8 +703,8 @@ const imports = {
|
|
|
703
703
|
},
|
|
704
704
|
};
|
|
705
705
|
|
|
706
|
-
import { Loader } from "https://deno.land/x/wasmbuild@0.15.1/loader.ts";
|
|
707
706
|
import { cacheToLocalDir } from "https://deno.land/x/wasmbuild@0.15.1/cache.ts";
|
|
707
|
+
import { Loader } from "https://deno.land/x/wasmbuild@0.15.1/loader.ts";
|
|
708
708
|
|
|
709
709
|
const loader = new Loader({
|
|
710
710
|
imports,
|
package/dist/node/bridge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type WriteStream } from 'fs';
|
|
2
|
-
import { ExecaChildProcess } from 'execa';
|
|
2
|
+
import { type ExecaChildProcess } from 'execa';
|
|
3
3
|
import { Logger } from './logger.js';
|
|
4
4
|
declare const DENO_VERSION_RANGE = "1.39.0 - 2.2.4";
|
|
5
5
|
type OnBeforeDownloadHook = () => void | Promise<void>;
|
package/dist/node/declaration.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export const mergeDeclarations = (tomlDeclarations, userFunctionsConfig, internalFunctionsConfig, deployConfigDeclarations,
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3
|
-
_featureFlags = {}) => {
|
|
1
|
+
export const mergeDeclarations = (tomlDeclarations, userFunctionsConfig, internalFunctionsConfig, deployConfigDeclarations, _featureFlags = {}) => {
|
|
4
2
|
const functionsVisited = new Set();
|
|
5
3
|
const declarations = [
|
|
6
4
|
// INTEGRATIONS
|
|
@@ -45,7 +43,6 @@ const getDeclarationsFromInput = (inputDeclarations, functionConfigs, functionsV
|
|
|
45
43
|
}
|
|
46
44
|
else {
|
|
47
45
|
// With an in-source config without a path, add the config to the declaration.
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
49
46
|
const { path, excludedPath, pattern, excludedPattern, ...rest } = config;
|
|
50
47
|
declarations.push({ ...declaration, ...rest });
|
|
51
48
|
}
|
|
@@ -88,7 +88,7 @@ test('fails downloading binary after 4th time', async (ctx) => {
|
|
|
88
88
|
await download(ctx.tmpDir, `^${version}`, testLogger);
|
|
89
89
|
}
|
|
90
90
|
catch (error) {
|
|
91
|
-
expect(error).toMatch(/Download failed with status code 500/);
|
|
91
|
+
expect(error.message).toMatch(/Download failed with status code 500/);
|
|
92
92
|
}
|
|
93
93
|
expect(latestVersionMock.isDone()).toBe(true);
|
|
94
94
|
});
|
|
@@ -118,7 +118,7 @@ test('fails downloading if response stream throws error', async (ctx) => {
|
|
|
118
118
|
await download(ctx.tmpDir, `^${version}`, testLogger);
|
|
119
119
|
}
|
|
120
120
|
catch (error) {
|
|
121
|
-
expect(error).toMatch(/stream error/);
|
|
121
|
+
expect(error.message).toMatch(/stream error/);
|
|
122
122
|
}
|
|
123
123
|
expect(latestVersionMock.isDone()).toBe(true);
|
|
124
124
|
});
|
package/dist/node/manifest.js
CHANGED
|
@@ -83,7 +83,6 @@ const generateManifest = ({ bundles = [], declarations = [], functions, userFunc
|
|
|
83
83
|
if (manifestFunctionConfig[name] === undefined) {
|
|
84
84
|
continue;
|
|
85
85
|
}
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
87
86
|
const { onError, rateLimit, path, excludedPath, pattern, excludedPattern, ...rest } = singleInternalFunctionConfig;
|
|
88
87
|
if (pattern && excludedPattern) {
|
|
89
88
|
addManifestExcludedPatternsFromConfigExcludedPattern(name, manifestFunctionConfig, excludedPattern);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExecaChildProcess } from 'execa';
|
|
1
|
+
import { type ExecaChildProcess } from 'execa';
|
|
2
2
|
declare const killProcess: (ps: ExecaChildProcess<string>) => Promise<unknown> | undefined;
|
|
3
3
|
declare const waitForServer: (port: number, ps?: ExecaChildProcess<string>) => Promise<boolean>;
|
|
4
4
|
export { killProcess, waitForServer };
|
|
@@ -19,7 +19,6 @@ const initializeValidator = () => {
|
|
|
19
19
|
return manifestValidator;
|
|
20
20
|
};
|
|
21
21
|
// throws on validation error
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
23
22
|
export const validateManifest = (manifestData, _featureFlags = {}) => {
|
|
24
23
|
const validate = initializeValidator();
|
|
25
24
|
const valid = validate(manifestData);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/edge-bundler",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.7",
|
|
4
4
|
"description": "Intelligently prepare Netlify Edge Functions for deployment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.js",
|
|
@@ -42,17 +42,18 @@
|
|
|
42
42
|
"test": "test/node"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/node": "^18.
|
|
45
|
+
"@types/node": "^18.19.111",
|
|
46
46
|
"@types/semver": "^7.3.9",
|
|
47
47
|
"@types/uuid": "^10.0.0",
|
|
48
|
-
"@vitest/coverage-v8": "^0.
|
|
48
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
49
49
|
"archiver": "^7.0.0",
|
|
50
50
|
"chalk": "^5.4.0",
|
|
51
|
+
"cpy": "^11.1.0",
|
|
51
52
|
"nock": "^14.0.0",
|
|
52
53
|
"npm-run-all2": "^6.0.0",
|
|
53
54
|
"tar": "^7.0.0",
|
|
54
55
|
"typescript": "^5.0.0",
|
|
55
|
-
"vitest": "^0.
|
|
56
|
+
"vitest": "^3.0.0"
|
|
56
57
|
},
|
|
57
58
|
"engines": {
|
|
58
59
|
"node": ">=18.14.0"
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"better-ajv-errors": "^1.2.0",
|
|
65
66
|
"common-path-prefix": "^3.0.0",
|
|
66
67
|
"env-paths": "^3.0.0",
|
|
67
|
-
"esbuild": "0.25.
|
|
68
|
+
"esbuild": "0.25.6",
|
|
68
69
|
"execa": "^8.0.0",
|
|
69
70
|
"find-up": "^7.0.0",
|
|
70
71
|
"get-package-name": "^2.2.0",
|
|
@@ -80,5 +81,5 @@
|
|
|
80
81
|
"urlpattern-polyfill": "8.0.2",
|
|
81
82
|
"uuid": "^11.0.0"
|
|
82
83
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "e471abe7b07fb8a34110d06bd8857c89f1d84142"
|
|
84
85
|
}
|