@netlify/edge-bundler 8.1.2 → 8.3.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.
@@ -3,7 +3,7 @@ import { join } from 'path';
3
3
  import { env } from 'process';
4
4
  import { pathToFileURL } from 'url';
5
5
  import { deleteAsync } from 'del';
6
- const BOOTSTRAP_LATEST = 'https://639708f6d7f813000870695c--edge.netlify.com/bootstrap/index-combined.ts';
6
+ const BOOTSTRAP_LATEST = 'https://63c67470ca761b0008582aff--edge.netlify.com/bootstrap/index-combined.ts';
7
7
  const defaultFormatExportTypeError = (name) => `The Edge Function "${name}" has failed to load. Does it have a function as the default export?`;
8
8
  const defaultFormatImpoortError = (name) => `There was an error with Edge Function "${name}".`;
9
9
  const generateStage2 = async ({ distDirectory, fileName, formatExportTypeError, formatImportError, functions, }) => {
@@ -70,7 +70,7 @@ const serve = async ({ certificatePath, debug, distImportMapPath, inspectSetting
70
70
  await ensureLatestTypes(deno, logger);
71
71
  const importMap = new ImportMap();
72
72
  await importMap.addFiles(importMapPaths, logger);
73
- const flags = ['--allow-all', '--unstable', `--import-map=${importMap.toDataURL()}`, '--no-config'];
73
+ const flags = ['--allow-all', `--import-map=${importMap.toDataURL()}`, '--no-config'];
74
74
  if (certificatePath) {
75
75
  flags.push(`--cert=${certificatePath}`);
76
76
  }
@@ -43,8 +43,8 @@ test('Starts a server and serves requests for edge functions', async () => {
43
43
  }
44
44
  const response1 = await fetch(`http://0.0.0.0:${port}/foo`, {
45
45
  headers: {
46
- 'x-deno-functions': 'echo_env',
47
- 'x-deno-pass': 'passthrough',
46
+ 'x-nf-edge-functions': 'echo_env',
47
+ 'x-ef-passthrough': 'passthrough',
48
48
  'X-NF-Request-ID': uuidv4(),
49
49
  },
50
50
  });
@@ -52,8 +52,8 @@ test('Starts a server and serves requests for edge functions', async () => {
52
52
  expect(await response1.text()).toBe('I LOVE NETLIFY');
53
53
  const response2 = await fetch(`http://0.0.0.0:${port}/greet`, {
54
54
  headers: {
55
- 'x-deno-functions': 'greet',
56
- 'x-deno-pass': 'passthrough',
55
+ 'x-nf-edge-functions': 'greet',
56
+ 'x-ef-passthrough': 'passthrough',
57
57
  'X-NF-Request-ID': uuidv4(),
58
58
  },
59
59
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "8.1.2",
3
+ "version": "8.3.0",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.js",