@netlify/edge-bundler 14.0.6 → 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.
@@ -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: Array<TaggedYieldedValue<T>> = [];
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: Array<Promise<unknown>> = [];
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,
@@ -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>;
@@ -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
  }
@@ -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.6",
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,12 +42,13 @@
42
42
  "test": "test/node"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^18.0.0",
45
+ "@types/node": "^18.19.111",
46
46
  "@types/semver": "^7.3.9",
47
47
  "@types/uuid": "^10.0.0",
48
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",
@@ -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.5",
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": "4a0f587ae4efe1c2e62c25c11374e3fbaa9aebce"
84
+ "gitHead": "e471abe7b07fb8a34110d06bd8857c89f1d84142"
84
85
  }