Skip to content

Commit c31ecb5

Browse files
feat: add support for Edge Functions (#8)
* chore: change package details * chore: update package * chore: bump * chore: add @netlify/edge-bundler * chore: bump * chore: remove npmrc line * chore: bump version * chore: update @netlify/edge-bundler * feat: deploy Edge Handlers to internal path * feat: add local development experience * chore: bump version * chore: update @netlify/edge-bundler * refactor: move `watcher` util * feat: add `configWatcher` * feat: updates to Edge Handlers dev server * chore: update @netlify/edge-bundler * refactor: remove unused error binding * chore: update package name * chore: update deps * fix: use correct URL path when matching Edge Handlers * chore: bump version * chore: bump version * feat: add support for internal handlers in local dev (#1) * feat: add support for internal handlers in local dev * refactor: correctly merge declarations * chore: bump version * fix: run config watcher only on certain commands (#2) * chore: bump version * chore: bump version * feat: add support for user import maps (#3) * feat: add support for user import maps * feat: warn when failing to read import map file * chore: bump version * chore: bump version * fix: improve error handling for Edge Handlers (#4) * chore: bump version * feat: listen for `NETLIFY_DENO_DEBUG` environment variable (#5) * feat: listen for `NETLIFY_DENO_DEBUG` environment variable * chore: upgrade @netlify-labs/edge-bundler * chore: bump version * fix: use `0.0.0.0` for Deno server host (#6) * fix: wait for Edge Handlers server to become available (#7) * fix: wait for Edge Handlers server to become available * refactor: wait for server inside request * refactor: increase timeout * refactor: use watcher from correct location * chore: update package.json * chore: disable release-please * feat: replace @netlify/build with @netlify-labs/build-internal * chore: use token in CI * refactor: use existing config watcher * chore: remove unused variables * chore: remove actions * chore: remove action * chore: update test * chore: add tests * chore: move env to job * chore: remove duplicate env * chore: fix tests * chore: remove unused imports * fix: check if EH directory exists before deploy * feat: rename Edge Handlers to Edge Functions (#9) * chore: fix linting issue * chore: fix tests * chore: fix test * chore: add `withEdgeFunction` test helper * chore: remove `console.log` * refactor: remove old Edge Handlers code * chore: update packages * fix: remove reference to traffic-mesh * chore: fix linting issue * chore: fix linting issue * refactor: remove unused code * refactor: remove `dev:trace` command * chore: setup Deno in the CI * refactor: use different localhost IP * chore: simplify test * chore: simplify test
1 parent c99c9a5 commit c31ecb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2718
-3126
lines changed

.github/workflows/benchmark.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/codeql.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/contributors.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/docsearch.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/e2e-test.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macOS-latest, windows-latest]
1515
node-version: ['*']
16+
env:
17+
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
1618
steps:
1719
# Sets an output parameter if this is a release PR
1820
- name: Check for release
@@ -57,6 +59,8 @@ jobs:
5759
- os: windows-latest
5860
node-version: '12.x'
5961
fail-fast: false
62+
env:
63+
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
6064
steps:
6165
# Sets an output parameter if this is a release PR
6266
- name: Check for release
@@ -82,6 +86,10 @@ jobs:
8286
cache-dependency-path: 'npm-shrinkwrap.json'
8387
check-latest: true
8488
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
89+
- name: Setup Deno
90+
uses: denoland/setup-deno@v1
91+
with:
92+
deno-version: v1.x
8593
- name: Install core dependencies
8694
run: npm ci --no-audit
8795
if: '${{!steps.release-check.outputs.IS_RELEASE}}'

.github/workflows/pre-release.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/verify-docs.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
shrinkwrap=true
2+
@netlify-labs:registry=https://npm.pkg.github.com
3+
//npm.pkg.github.com/:_authToken=${PACKAGES_TOKEN}

0 commit comments

Comments
 (0)