@netlify/edge-bundler 11.4.0 → 11.4.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/README.md CHANGED
@@ -1,51 +1,4 @@
1
- [![Build](https://github.com/netlify/edge-bundler/workflows/Build/badge.svg)](https://github.com/netlify/edge-bundler/actions)
2
- [![Node](https://img.shields.io/node/v/@netlify/edge-bundler.svg?logo=node.js)](https://www.npmjs.com/package/@netlify/edge-bundler)
3
-
4
1
  # Edge Bundler
5
2
 
6
- Intelligently prepare Netlify Edge Functions for deployment.
7
-
8
- ## Usage
9
-
10
- 1. Install this module as a dependency in your project
11
-
12
- ```
13
- npm install @netlify/edge-bundler --save
14
- ```
15
-
16
- 2. Import it and create a bundle from a directory of Edge Functions and a list of declarations.
17
-
18
- ```js
19
- import { bundle } from '@netlify/edge-bundler'
20
-
21
- // List of directories to search for Edge Functions.
22
- const sourceDirectories = ['/repo/netlify/edge-functions', '/repo/.netlify/edge-functions']
23
-
24
- // Directory where bundle should be placed.
25
- const distDirectory = '/repo/.netlify/edge-functions-dist'
26
-
27
- // List of Edge Functions declarations.
28
- const declarations = [
29
- { function: 'user-1', path: '/blog/*' },
30
- { function: 'internal-2', path: '/' },
31
- ]
32
-
33
- await bundle(sourceDirectories, distDirectory, declarations)
34
- ```
35
-
36
- ## Vendored modules
37
-
38
- To avoid pulling in additional dependencies at runtime, this package vendors some Deno modules in the `deno/vendor`
39
- directory.
40
-
41
- You can recreate this directory by running `npm run vendor`.
42
-
43
- > [!WARNING]
44
- > At the time of writing, the underlying Deno CLI command doesn't correctly pull the WASM binary required by the ESZIP
45
- > module. If you run the command to update the list of vendores modules, please ensure you're not deleting
46
- > `eszip_wasm_bg.wasm`.
47
-
48
- ## Contributors
49
-
50
- Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for instructions on how to set up and work on this repository. Thanks
51
- for contributing!
3
+ > [!IMPORTANT]
4
+ > This project was moved into the [Netlify Build monorepo](https://github.com/netlify/build/tree/main/packages/edge-bundler).
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { type WriteStream } from 'fs';
4
2
  import { ExecaChildProcess } from 'execa';
5
3
  import { Logger } from './logger.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ImportMap } from './import_map.js';
3
2
  import { Logger } from './logger.js';
4
3
  interface VendorNPMSpecifiersOptions {
@@ -1,9 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
- /// <reference types="node" />
6
- /// <reference types="node" />
7
1
  import type { WriteStream } from 'fs';
8
2
  import { OnAfterDownloadHook, OnBeforeDownloadHook } from '../bridge.js';
9
3
  import { FunctionConfig } from '../config.js';
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  export declare const isNodeError: (error: any) => error is NodeJS.ErrnoException;
3
2
  export declare const isFileNotFoundError: (error: any) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "11.4.0",
3
+ "version": "11.4.1",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.js",
@@ -75,13 +75,13 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@import-maps/resolve": "^1.0.1",
78
- "@vercel/nft": "^0.26.0",
78
+ "@vercel/nft": "^0.29.0",
79
79
  "ajv": "^8.11.2",
80
80
  "ajv-errors": "^3.0.0",
81
81
  "better-ajv-errors": "^1.2.0",
82
82
  "common-path-prefix": "^3.0.0",
83
83
  "env-paths": "^3.0.0",
84
- "esbuild": "0.20.2",
84
+ "esbuild": "0.25.1",
85
85
  "execa": "^6.0.0",
86
86
  "find-up": "^6.3.0",
87
87
  "get-package-name": "^2.2.0",