@netlify/dev 4.3.0 → 4.3.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/main.cjs CHANGED
@@ -552,7 +552,7 @@ var NetlifyDev = class {
552
552
  }
553
553
  return acc;
554
554
  }, {});
555
- this.#edgeFunctionsHandler = new import_dev.EdgeFunctionsHandler({
555
+ const edgeFunctionsHandler = new import_dev.EdgeFunctionsHandler({
556
556
  configDeclarations: this.#config?.config.edge_functions ?? [],
557
557
  directories: [this.#config?.config.build.edge_functions].filter(Boolean),
558
558
  env,
@@ -561,6 +561,8 @@ var NetlifyDev = class {
561
561
  siteID,
562
562
  siteName: config?.siteInfo.name
563
563
  });
564
+ this.#edgeFunctionsHandler = edgeFunctionsHandler;
565
+ this.#cleanupJobs.push(() => edgeFunctionsHandler.stop());
564
566
  }
565
567
  if (this.#features.functions) {
566
568
  const userFunctionsPath = this.#config?.config.functionsDirectory ?? import_node_path2.default.join(this.#projectRoot, "netlify/functions");
package/dist/main.js CHANGED
@@ -518,7 +518,7 @@ var NetlifyDev = class {
518
518
  }
519
519
  return acc;
520
520
  }, {});
521
- this.#edgeFunctionsHandler = new EdgeFunctionsHandler({
521
+ const edgeFunctionsHandler = new EdgeFunctionsHandler({
522
522
  configDeclarations: this.#config?.config.edge_functions ?? [],
523
523
  directories: [this.#config?.config.build.edge_functions].filter(Boolean),
524
524
  env,
@@ -527,6 +527,8 @@ var NetlifyDev = class {
527
527
  siteID,
528
528
  siteName: config?.siteInfo.name
529
529
  });
530
+ this.#edgeFunctionsHandler = edgeFunctionsHandler;
531
+ this.#cleanupJobs.push(() => edgeFunctionsHandler.stop());
530
532
  }
531
533
  if (this.#features.functions) {
532
534
  const userFunctionsPath = this.#config?.config.functionsDirectory ?? path2.join(this.#projectRoot, "netlify/functions");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/dev",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Emulation of the Netlify environment for local development",
5
5
  "type": "module",
6
6
  "engines": {
@@ -52,16 +52,16 @@
52
52
  "vitest": "^3.0.0"
53
53
  },
54
54
  "dependencies": {
55
- "@netlify/blobs": "10.0.0",
55
+ "@netlify/blobs": "10.0.1",
56
56
  "@netlify/config": "^23.0.10",
57
- "@netlify/dev-utils": "3.2.0",
58
- "@netlify/edge-functions": "2.15.0",
59
- "@netlify/functions": "4.1.5",
60
- "@netlify/headers": "2.0.2",
61
- "@netlify/images": "1.1.0",
62
- "@netlify/redirects": "3.0.2",
63
- "@netlify/runtime": "4.0.4",
64
- "@netlify/static": "3.0.2",
57
+ "@netlify/dev-utils": "3.2.1",
58
+ "@netlify/edge-functions": "2.15.1",
59
+ "@netlify/functions": "4.1.6",
60
+ "@netlify/headers": "2.0.3",
61
+ "@netlify/images": "1.1.1",
62
+ "@netlify/redirects": "3.0.3",
63
+ "@netlify/runtime": "4.0.5",
64
+ "@netlify/static": "3.0.3",
65
65
  "ulid": "^3.0.0"
66
66
  }
67
67
  }