Juan Pinilla
50ed13b6ed
[docs] fix edge IP_HEADER_NAME header typedoc typo ( #11028 )
...
Fix small typo in the `IP_HEADER_NAME` description.
<img width="362" alt="Screenshot 2024-01-08 at 7 25 34 PM"
src="https://github.com/vercel/vercel/assets/762112/db4d684a-5a12-45d0-8428-981bf2489999 ">
2024-01-08 19:26:57 -08:00
Vercel Release Bot
66cd626d1c
Version Packages ( #10765 )
...
This PR was opened by the [Changesets
release](https://github.com/changesets/action ) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.
# Releases
## @vercel/build-utils@7.2.3
### Patch Changes
- Add experimental flag to allow Node.js v20
([#10802 ](https://github.com/vercel/vercel/pull/10802 ))
## vercel@32.5.1
### Patch Changes
- Debug log load user exceptions
([#10773 ](https://github.com/vercel/vercel/pull/10773 ))
- bump: edge-runtime
([#10712 ](https://github.com/vercel/vercel/pull/10712 ))
- Updated dependencies
\[[`fc90a3dc0`](fc90a3dc0b ),
[`644b8a52c`](644b8a52cb ),
[`0861dc8fb`](0861dc8fbc ),
[`33cc8e0ac`](33cc8e0acf ),
[`f5296c3c0`](f5296c3c06 ),
[`d9065c210`](d9065c2102 )]:
- @vercel/next@4.0.12
- @vercel/node@3.0.8
- @vercel/build-utils@7.2.3
- @vercel/remix-builder@2.0.11
- @vercel/static-build@2.0.10
## @vercel/client@13.0.7
### Patch Changes
- Updated dependencies
\[[`0861dc8fb`](0861dc8fbc )]:
- @vercel/build-utils@7.2.3
## @vercel/edge@1.1.1
### Patch Changes
- bump: edge-runtime
([#10712 ](https://github.com/vercel/vercel/pull/10712 ))
## @vercel/error-utils@2.0.2
### Patch Changes
- use Node.js `util.types.isNativeError` for `isError` method
([#10764 ](https://github.com/vercel/vercel/pull/10764 ))
## @vercel/frameworks@2.0.3
### Patch Changes
- update Angular output path discovery
([#10678 ](https://github.com/vercel/vercel/pull/10678 ))
- Updated dependencies
\[[`34dd9c091`](34dd9c0918 )]:
- @vercel/error-utils@2.0.2
## @vercel/fs-detectors@5.1.3
### Patch Changes
- Updated dependencies
\[[`306f653da`](306f653da9 ),
[`34dd9c091`](34dd9c0918 )]:
- @vercel/frameworks@2.0.3
- @vercel/error-utils@2.0.2
## @vercel/gatsby-plugin-vercel-builder@2.0.9
### Patch Changes
- Fix nested SSR routes
([#10751 ](https://github.com/vercel/vercel/pull/10751 ))
- Updated dependencies
\[[`0861dc8fb`](0861dc8fbc )]:
- @vercel/build-utils@7.2.3
## @vercel/next@4.0.12
### Patch Changes
- fix re-mapping logic for index prefetches
([#10750 ](https://github.com/vercel/vercel/pull/10750 ))
- Fixes a case where using `basePath` along with static generation would
output a lambda that conflicts with the root route.
([#10738 ](https://github.com/vercel/vercel/pull/10738 ))
- Rework prefetch route handling
([#10779 ](https://github.com/vercel/vercel/pull/10779 ))
## @vercel/node@3.0.8
### Patch Changes
- bump: edge-runtime
([#10712 ](https://github.com/vercel/vercel/pull/10712 ))
- Updated dependencies
\[[`0861dc8fb`](0861dc8fbc ),
[`34dd9c091`](34dd9c0918 )]:
- @vercel/build-utils@7.2.3
- @vercel/error-utils@2.0.2
## @vercel/remix-builder@2.0.11
### Patch Changes
- Update `@remix-run/dev` fork to v2.2.0
([#10788 ](https://github.com/vercel/vercel/pull/10788 ))
## @vercel/static-build@2.0.10
### Patch Changes
- Updated dependencies
\[[`efd3cc05d`](efd3cc05dc )]:
- @vercel/gatsby-plugin-vercel-builder@2.0.9
## @vercel-internals/types@1.0.14
### Patch Changes
- Updated dependencies
\[[`0861dc8fb`](0861dc8fbc )]:
- @vercel/build-utils@7.2.3
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-07 10:51:39 -07:00
Kiko Beats
644b8a52cb
bump: edge-runtime ( #10712 )
2023-11-06 09:58:22 +01:00
Chris Barber
222710f612
Add type-check and unify tsconfig ( #10667 )
...
This adds a new `pnpm type-check` that leverages `turbo` to validate the TypeScript code. This can be run at the top-level or for an individual package.
The `test-lint` workflow will run it after linting and doing the prettier check.
As apart of this effort, each package's `tsconfig.json` has been simplified. There's a new top-level `tsconfig.base.json` file that extends the Vercel Style Guide for TypeScript. Each package's `tsconfig.json` has been audited and previously suppressed rules that no longer apply have been removed. The result is each package's `tsconfig.json` is greatly simplified and we can control common settings in the base config while keeping the flexibility of package-level overrides.
Lastly, in `package/cli`, `pnpm build` calls `scripts/build.mjs` which calls `scripts/compile-templates.mjs`. The `compile-templates.mjs` file was generating invalid TypeScript code. I've fixed it and now it's happier than ever.
Note: In order to run `pnpm type-check`, you must first `pnpm build` because we need the `.d.ts` definition files.
2023-10-09 11:58:23 +00:00
Vercel Release Bot
6d312d85b2
Version Packages ( #10542 )
...
This PR was opened by the [Changesets
release](https://github.com/changesets/action ) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.
# Releases
## vercel@32.3.0
### Minor Changes
- [cli] Support northstar users
([#10535 ](https://github.com/vercel/vercel/pull/10535 ))
### Patch Changes
- Internal variants
([#10549 ](https://github.com/vercel/vercel/pull/10549 ))
- [speed insights] Prepare for migration to new speed insights package
([#10500 ](https://github.com/vercel/vercel/pull/10500 ))
- Updated dependencies
\[[`b0898a665`](b0898a6659 ),
[`10d4e51ac`](10d4e51ac5 ),
[`decdf27fb`](decdf27fb5 ),
[`f5ca497b7`](f5ca497b75 ),
[`ab329f0fe`](ab329f0fe8 ),
[`d0d052011`](d0d0520111 ),
[`9bb3067de`](9bb3067de2 )]:
- @vercel/static-build@2.0.7
- @vercel/node@3.0.6
- @vercel/build-utils@7.2.1
- @vercel/next@4.0.7
- @vercel/python@4.0.2
- @vercel/redwood@2.0.3
- @vercel/remix-builder@2.0.7
- @vercel/go@3.0.2
## @vercel/edge@1.1.0
### Minor Changes
- Add flag to geolocation
([#10443 ](https://github.com/vercel/vercel/pull/10443 ))
Usage
const { flag } = geolocation(req)
## @vercel/build-utils@7.2.1
### Patch Changes
- Internal variants
([#10549 ](https://github.com/vercel/vercel/pull/10549 ))
## @vercel/client@13.0.4
### Patch Changes
- Updated dependencies
\[[`decdf27fb`](decdf27fb5 )]:
- @vercel/build-utils@7.2.1
## @vercel/gatsby-plugin-vercel-analytics@1.0.11
### Patch Changes
- Remove "babel" compilation
([#10546 ](https://github.com/vercel/vercel/pull/10546 ))
## @vercel/gatsby-plugin-vercel-builder@2.0.6
### Patch Changes
- Use "esbuild" to build package
([#10508 ](https://github.com/vercel/vercel/pull/10508 ))
- Updated dependencies
\[[`decdf27fb`](decdf27fb5 )]:
- @vercel/build-utils@7.2.1
## @vercel/go@3.0.2
### Patch Changes
- Add support for Go v1.21.0
([#10552 ](https://github.com/vercel/vercel/pull/10552 ))
## @vercel/next@4.0.7
### Patch Changes
- Internal variants
([#10549 ](https://github.com/vercel/vercel/pull/10549 ))
- Update `@vercel/nft` to v0.24.1.
([#10540 ](https://github.com/vercel/vercel/pull/10540 ))
- Build package using "esbuild"
([#10482 ](https://github.com/vercel/vercel/pull/10482 ))
## @vercel/node@3.0.6
### Patch Changes
- Use "esbuild" to build package
([#10553 ](https://github.com/vercel/vercel/pull/10553 ))
- Update `@vercel/nft` to v0.24.1.
([#10540 ](https://github.com/vercel/vercel/pull/10540 ))
- Updated dependencies
\[[`decdf27fb`](decdf27fb5 )]:
- @vercel/build-utils@7.2.1
## @vercel/python@4.0.2
### Patch Changes
- Fix docs URL in error message
([#10544 ](https://github.com/vercel/vercel/pull/10544 ))
## @vercel/redwood@2.0.3
### Patch Changes
- Update `@vercel/nft` to v0.24.1.
([#10540 ](https://github.com/vercel/vercel/pull/10540 ))
## @vercel/remix-builder@2.0.7
### Patch Changes
- Update `@vercel/nft` to v0.24.1.
([#10540 ](https://github.com/vercel/vercel/pull/10540 ))
## @vercel/static-build@2.0.7
### Patch Changes
- Mark `@vercel/static-config` and `ts-morph` as externals
([#10543 ](https://github.com/vercel/vercel/pull/10543 ))
- Updated dependencies
\[[`4b376a564`](4b376a564a ),
[`b8bc682d3`](b8bc682d3e )]:
- @vercel/gatsby-plugin-vercel-builder@2.0.6
- @vercel/gatsby-plugin-vercel-analytics@1.0.11
## @vercel-internals/types@1.0.11
### Patch Changes
- Updated dependencies
\[[`decdf27fb`](decdf27fb5 )]:
- @vercel/build-utils@7.2.1
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-21 11:59:12 -06:00
Paul Scanlon
62283356b8
feat: add flag to geolocation ( #10443 )
...
Co-authored-by: Chris Barber <chris.barber@vercel.com >
2023-09-19 16:25:46 -05:00
Vercel Release Bot
bcebab7517
Version Packages ( #10478 )
...
This PR was opened by the [Changesets
release](https://github.com/changesets/action ) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.
# Releases
## @vercel/build-utils@7.2.0
### Minor Changes
- Add new optional prerender field: experimentalStreamingLambdaPath
([#10476 ](https://github.com/vercel/vercel/pull/10476 ))
- [build-utils] Add zero config detection for bun package manager
([#10486 ](https://github.com/vercel/vercel/pull/10486 ))
### Patch Changes
- add `experimentalBypassFor` field to Prerender
([#10481 ](https://github.com/vercel/vercel/pull/10481 ))
## vercel@32.2.1
### Patch Changes
- Update @vercel/fun@1.1.0
([#10477 ](https://github.com/vercel/vercel/pull/10477 ))
- [node] upgrade edge-runtime
([#10451 ](https://github.com/vercel/vercel/pull/10451 ))
- Updated dependencies
\[[`6784e7751`](6784e77516 ),
[`a8ad17626`](a8ad176262 ),
[`0ee089a50`](0ee089a501 ),
[`f15cba614`](f15cba6148 ),
[`b265e13d4`](b265e13d40 ),
[`50e04dd85`](50e04dd858 ),
[`45b73c7e8`](45b73c7e86 ),
[`a732d30c8`](a732d30c84 ),
[`9d64312aa`](9d64312aaa ),
[`6baefc825`](6baefc825a ),
[`989f0d813`](989f0d8139 ),
[`d8bc570f6`](d8bc570f60 )]:
- @vercel/go@3.0.1
- @vercel/redwood@2.0.2
- @vercel/remix-builder@2.0.4
- @vercel/hydrogen@1.0.1
- @vercel/static-build@2.0.5
- @vercel/build-utils@7.2.0
- @vercel/next@4.0.3
- @vercel/node@3.0.5
- @vercel/python@4.0.1
- @vercel/ruby@2.0.2
## @vercel/client@13.0.3
### Patch Changes
- Updated dependencies
\[[`50e04dd85`](50e04dd858 ),
[`45b73c7e8`](45b73c7e86 ),
[`d8bc570f6`](d8bc570f60 )]:
- @vercel/build-utils@7.2.0
## @vercel/edge@1.0.2
### Patch Changes
- [node] upgrade edge-runtime
([#10451 ](https://github.com/vercel/vercel/pull/10451 ))
## @vercel/gatsby-plugin-vercel-builder@2.0.5
### Patch Changes
- Updated dependencies
\[[`50e04dd85`](50e04dd858 ),
[`45b73c7e8`](45b73c7e86 ),
[`9d64312aa`](9d64312aaa ),
[`d8bc570f6`](d8bc570f60 )]:
- @vercel/build-utils@7.2.0
- @vercel/node@3.0.5
## @vercel/go@3.0.1
### Patch Changes
- Update to esbuild script
([#10468 ](https://github.com/vercel/vercel/pull/10468 ))
## @vercel/hydrogen@1.0.1
### Patch Changes
- Use `build-builder.mjs` script to bundle, and remove types and source
maps ([#10480 ](https://github.com/vercel/vercel/pull/10480 ))
## @vercel/next@4.0.3
### Patch Changes
- fix content-type for RSC prefetches
([#10487 ](https://github.com/vercel/vercel/pull/10487 ))
## @vercel/node@3.0.5
### Patch Changes
- [node] upgrade edge-runtime
([#10451 ](https://github.com/vercel/vercel/pull/10451 ))
- Updated dependencies
\[[`50e04dd85`](50e04dd858 ),
[`45b73c7e8`](45b73c7e86 ),
[`d8bc570f6`](d8bc570f60 )]:
- @vercel/build-utils@7.2.0
## @vercel/python@4.0.1
### Patch Changes
- Update to esbuild script
([#10470 ](https://github.com/vercel/vercel/pull/10470 ))
## @vercel/redwood@2.0.2
### Patch Changes
- Update to esbuild script
([#10471 ](https://github.com/vercel/vercel/pull/10471 ))
## @vercel/remix-builder@2.0.4
### Patch Changes
- Use `build-builder.mjs` script to bundle, and remove types and source
maps ([#10479 ](https://github.com/vercel/vercel/pull/10479 ))
## @vercel/ruby@2.0.2
### Patch Changes
- Update to esbuild script
([#10472 ](https://github.com/vercel/vercel/pull/10472 ))
## @vercel/static-build@2.0.5
### Patch Changes
- Build package using "esbuild"
([#10462 ](https://github.com/vercel/vercel/pull/10462 ))
- Updated dependencies \[]:
- @vercel/gatsby-plugin-vercel-builder@2.0.5
## @vercel-internals/types@1.0.10
### Patch Changes
- Updated dependencies
\[[`50e04dd85`](50e04dd858 ),
[`45b73c7e8`](45b73c7e86 ),
[`d8bc570f6`](d8bc570f60 )]:
- @vercel/build-utils@7.2.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-11 17:30:02 -04:00
Kiko Beats
9d64312aaa
[node] upgrade edge-runtime ( #10451 )
2023-09-10 13:14:43 +00:00
Vercel Release Bot
cfc1bb180b
Version Packages ( #10384 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-24 13:56:29 -05:00
Kiko Beats
597a8a8176
upgrade edge-runtime ( #10385 )
2023-08-24 16:52:49 +02:00
Vercel Release Bot
c97407da49
Version Packages ( #10361 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-21 15:10:45 -05:00
Steven
37f5c62700
BREAKING CHANGE: Drop Node.js 14, bump minimum to Node.js 16 ( #10369 )
...
https://vercel.com/changelog/node-js-14-and-16-are-being-deprecated
https://github.com/nodejs/Release/blob/main/README.md#end-of-life-releases
2023-08-21 08:51:38 -04:00
Trek Glowacki
6aa2dc6f51
Connecting Datadog / GH Actions / Turbo / Jest to detect flakey tests ( #10334 )
...
Co-authored-by: Trek Glowacki <trek.glowacki@vercel.com >
Co-authored-by: Steven <steven@ceriously.com >
2023-08-17 10:31:16 -05:00
Kiko Beats
8b3a4146af
[node][edge][cli] upgrade Edge Runtime ( #10051 )
...
We avoided to use `undici.WebSocket` because @jawj found a bug in the
implementation.
The [fix was merged](https://github.com/nodejs/undici/pull/2106 ) in
[undici@5.22 .1](https://github.com/nodejs/undici/releases/tag/v5.22.1 ),
so we can be back to use it.
The latest version of Edge Runtime exposes `undici.WebSocket` compatible
with node.js 14, 16 & 18
---------
Co-authored-by: Sean Massa <endangeredmassa@gmail.com >
2023-06-20 11:06:43 +02:00
Sean Massa
2de365f9cf
Publish Stable
...
- @vercel/build-utils@6.7.2
- vercel@29.0.0
- @vercel/client@12.4.12
- @vercel/edge@0.3.4
- @vercel/frameworks@1.3.5
- @vercel/fs-detectors@3.8.12
- @vercel/gatsby-plugin-vercel-builder@1.3.0
- @vercel/go@2.5.1
- @vercel/hydrogen@0.0.64
- @vercel/next@3.7.6
- @vercel/node@2.13 .0
- @vercel/python@3.1.60
- @vercel/redwood@1.1.15
- @vercel/remix-builder@1.8.6
- @vercel/routing-utils@2.2.1
- @vercel/ruby@1.3.76
- @vercel/static-build@1.3.26
- @vercel/static-config@2.0.17
2023-04-27 13:09:25 -05:00
Sean Massa
0490a7733b
[tests] install root typescript version 4.9.5 and standardize on that version ( #9858 )
...
This add a root-level `typescript` version that matches the one used throughout for VS Code (and other IDEs) to use when browsing the code. After this PR merges, you will be able to set VS Code's TypeScript version to match the project's version.
This will remove issues where the IDE says TypeScript compilation is good to go, but `pnpm build` disagrees.
If there's a better way to allow this, please suggest it!
---
To enable:
<img width="849" alt="Screenshot 2023-04-25 at 4 28 22 PM" src="https://user-images.githubusercontent.com/41545/234408245-205b3260-7b1d-4c43-a531-d616915dbefb.png ">
Then:
<img width="1015" alt="Screenshot 2023-04-25 at 4 29 20 PM" src="https://user-images.githubusercontent.com/41545/234408271-4e7b4ec8-0be3-4743-afd7-813a267c0756.png ">
2023-04-27 08:13:53 +00:00
Chris Barber
a63b9d960b
Publish Stable
...
- vercel@28.19 .0
- @vercel/client@12.4.10
- @vercel/edge@0.3.3
- @vercel/error-utils@1.0.10
- @vercel/fs-detectors@3.8.11
- @vercel/gatsby-plugin-vercel-builder@1.2.9
- @vercel/go@2.5.0
- @vercel/hydrogen@0.0.63
- @vercel/next@3.7.5
- @vercel/node@2.11 .0
- @vercel/python@3.1.59
- @vercel/remix-builder@1.8.5
- @vercel/static-build@1.3.24
- @vercel/static-config@2.0.16
2023-04-19 10:14:58 -05:00
Chris Barber
732ac2072c
[tests] Update Typescript, Jest, and ts-jest ( #9782 )
...
Co-authored-by: Nathan Rajlich <n@n8.io >
Co-authored-by: Swarnava Sengupta <swarnavasengupta@gmail.com >
2023-04-12 08:38:03 -05:00
Sean Massa
925c8ba18c
Publish Stable
...
- @vercel/build-utils@6.7.1
- vercel@28.18 .4
- @vercel/client@12.4.9
- @vercel/edge@0.3.2
- @vercel/error-utils@1.0.9
- @vercel/frameworks@1.3.4
- @vercel/fs-detectors@3.8.9
- @vercel/gatsby-plugin-vercel-analytics@1.0.9
- @vercel/gatsby-plugin-vercel-builder@1.2.7
- @vercel/go@2.4.4
- @vercel/hydrogen@0.0.62
- @vercel/next@3.7.4
- @vercel/node-bridge@4.0.1
- @vercel/node@2.10 .3
- @vercel/python@3.1.58
- @vercel/redwood@1.1.14
- @vercel/remix-entry-server@0.1.1
- @vercel/remix-builder@1.8.4
- @vercel/routing-utils@2.2.0
- @vercel/ruby@1.3.75
- @vercel/static-build@1.3.22
- @vercel/static-config@2.0.15
2023-04-07 16:43:42 -05:00
Nathan Rajlich
ee4ba6ccbe
[all] Use correct "license" field in package.json ( #9754 )
...
Follow-up to #9696 . Ensures that all packages in this repository have
the correct "license" field in their respective `package.json` files set
to "Apache-2.0", to match the `LICENSE` file at the root of the
repository.
The `LICENSE` file the authoritative source, so the "MIT" value was
incorrect. This change corrects the previous values and is not
considered a relicensing.
2023-04-06 15:33:55 -07:00
Sean Massa
e0f8bc9820
Publish Stable
...
- @vercel/build-utils@6.3.2
- vercel@28.16 .8
- @vercel/client@12.4.2
- @vercel/edge@0.3.1
- @vercel/frameworks@1.3.2
- @vercel/fs-detectors@3.8.2
- @vercel/gatsby-plugin-vercel-builder@1.1.10
- @vercel/go@2.3.9
- @vercel/hydrogen@0.0.55
- @vercel/next@3.6.2
- @vercel/node-bridge@3.1.13
- @vercel/node@2.9.9
- @vercel/python@3.1.51
- @vercel/redwood@1.1.7
- @vercel/remix@1.4.2
- @vercel/routing-utils@2.1.10
- @vercel/ruby@1.3.68
- @vercel/static-build@1.3.13
2023-02-28 10:26:29 -06:00
Nathan Rajlich
7845bef826
Publish Stable
...
- vercel@28.16 .7
- @vercel/edge@0.3.0
- @vercel/gatsby-plugin-vercel-builder@1.1.9
- @vercel/next@3.6.1
- @vercel/node-bridge@3.1.12
- @vercel/node@2.9.8
- @vercel/static-build@1.3.12
2023-02-24 04:04:16 -08:00
Gal Schlezinger
abea002e93
[edge] Add RequestContext type ( #9526 )
...
Co-authored-by: Kiko Beats <josefrancisco.verdu@gmail.com >
2023-02-24 03:07:16 -08:00
Steven
25f6595d36
Publish Stable
...
- @vercel/build-utils@6.0.0
- vercel@28.13 .2
- @vercel/client@12.3.3
- @vercel/edge@0.2.7
- @vercel/frameworks@1.3.0
- @vercel/fs-detectors@3.7.6
- @vercel/gatsby-plugin-vercel-builder@1.0.1
- @vercel/go@2.2.31
- @vercel/hydrogen@0.0.45
- @vercel/next@3.3.19
- @vercel/node@2.8.16
- @vercel/python@3.1.41
- @vercel/redwood@1.0.52
- @vercel/remix@1.2.8
- @vercel/ruby@1.3.57
- @vercel/static-build@1.2.1
2023-01-26 11:19:03 -05:00
Steven
df2bcec830
[edge] Add missing metadata to package.json ( #9293 )
...
I noticed this was missing when visiting https://www.npmjs.com/package/@vercel/edge
2023-01-24 09:11:14 +00:00
Sean Massa
b5cdc82a1c
Publish Stable
...
- @vercel/build-utils@5.8.3
- vercel@28.12 .4
- @vercel/client@12.2.31
- @vercel/edge@0.2.6
- @vercel/error-utils@1.0.8
- @vercel/frameworks@1.2.4
- @vercel/fs-detectors@3.7.4
- @vercel/gatsby-plugin-vercel-analytics@1.0.6
- @vercel/go@2.2.29
- @vercel/hydrogen@0.0.43
- @vercel/next@3.3.14
- @vercel/node-bridge@3.1.8
- @vercel/node@2.8.11
- @vercel/python@3.1.39
- @vercel/redwood@1.0.50
- @vercel/remix@1.2.4
- @vercel/routing-utils@2.1.8
- @vercel/ruby@1.3.55
- @vercel/static-build@1.1.6
- @vercel/static-config@2.0.11
2023-01-13 15:45:03 -06:00
Sean Massa
e54da8a2e5
Publish Stable
...
- @vercel/build-utils@5.8.2
- vercel@28.12 .3
- @vercel/client@12.2.30
- @vercel/edge@0.2.5
- @vercel/error-utils@1.0.7
- @vercel/frameworks@1.2.3
- @vercel/fs-detectors@3.7.3
- @vercel/gatsby-plugin-vercel-analytics@1.0.5
- @vercel/go@2.2.28
- @vercel/hydrogen@0.0.42
- @vercel/next@3.3.13
- @vercel/node-bridge@3.1.7
- @vercel/node@2.8.10
- @vercel/python@3.1.38
- @vercel/redwood@1.0.49
- @vercel/remix@1.2.3
- @vercel/routing-utils@2.1.7
- @vercel/ruby@1.3.54
- @vercel/static-build@1.1.5
- @vercel/static-config@2.0.10
2023-01-13 15:06:45 -06:00
Sean Massa
b793a67588
Publish Stable
...
- @vercel/build-utils@5.8.1
- vercel@28.12 .2
- @vercel/client@12.2.29
- @vercel/edge@0.2.4
- @vercel/error-utils@1.0.6
- @vercel/frameworks@1.2.2
- @vercel/fs-detectors@3.7.2
- @vercel/gatsby-plugin-vercel-analytics@1.0.4
- @vercel/go@2.2.27
- @vercel/hydrogen@0.0.41
- @vercel/next@3.3.12
- @vercel/node-bridge@3.1.6
- @vercel/node@2.8.9
- @vercel/python@3.1.37
- @vercel/redwood@1.0.48
- @vercel/remix@1.2.2
- @vercel/routing-utils@2.1.6
- @vercel/ruby@1.3.53
- @vercel/static-build@1.1.4
- @vercel/static-config@2.0.9
2023-01-13 15:01:55 -06:00
Sean Massa
e71d5638ee
Publish Stable
...
- @vercel/build-utils@5.8.0
- vercel@28.12 .1
- @vercel/client@12.2.28
- @vercel/edge@0.2.3
- @vercel/error-utils@1.0.5
- @vercel/frameworks@1.2.1
- @vercel/fs-detectors@3.7.1
- @vercel/gatsby-plugin-vercel-analytics@1.0.3
- @vercel/go@2.2.26
- @vercel/hydrogen@0.0.40
- @vercel/next@3.3.11
- @vercel/node-bridge@3.1.5
- @vercel/node@2.8.8
- @vercel/python@3.1.36
- @vercel/redwood@1.0.47
- @vercel/remix@1.2.1
- @vercel/routing-utils@2.1.5
- @vercel/ruby@1.3.52
- @vercel/static-build@1.1.3
- @vercel/static-config@2.0.8
2023-01-13 14:47:25 -06:00
Sean Massa
62b28ad0b4
Publish Stable
...
- @vercel/build-utils@5.7.6
- vercel@28.12 .0
- @vercel/client@12.2.27
- @vercel/edge@0.2.2
- @vercel/error-utils@1.0.4
- @vercel/frameworks@1.2.0
- @vercel/fs-detectors@3.7.0
- @vercel/gatsby-plugin-vercel-analytics@1.0.2
- @vercel/go@2.2.25
- @vercel/hydrogen@0.0.39
- @vercel/next@3.3.10
- @vercel/node-bridge@3.1.4
- @vercel/node@2.8.7
- @vercel/python@3.1.35
- @vercel/redwood@1.0.46
- @vercel/remix@1.2.0
- @vercel/routing-utils@2.1.4
- @vercel/ruby@1.3.51
- @vercel/static-build@1.1.2
- @vercel/static-config@2.0.7
2023-01-13 14:00:46 -06:00
Ethan Arrowood
9c768b98b7
[tests] Migrate from yarn to pnpm ( #9198 )
...
<picture data-single-emoji=":pnpm:" title=":pnpm:"><img class="emoji" src="https://single-emoji.vercel.app/api/emoji/eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..4mJzrO94AnSn0Pue.4apgaKtTUdQ-wxNyahjdJj28u8bbXreLoTA8AGqYjLta3MrsFvbo9DsQFth4CoIkBgXFhQ5_BVcKNfYbwLg4bKzyIvItKe4OFS8AzG7Kkicz2kUUZk0.nXyK_PvHzZFGA-MQB6XHfA " alt=":pnpm:" width="20" height="auto" align="absmiddle"></picture>
yarn has become increasingly more difficult to use as the v1 we rely on no longer receives updates. pnpm is faster and is actively maintained.
This PR migrates us to pnpm.
2023-01-11 23:35:13 +00:00
Steven
04e9f771df
Publish Stable
...
- vercel@28.10 .0
- @vercel/edge@0.2.1
- @vercel/next@3.3.4
2022-12-21 11:13:25 -05:00
Sean Massa
5ae7c2f452
Publish Stable
...
- @vercel/edge@0.2.0
2022-12-15 12:32:53 -06:00
Sean Massa
0cbc676a6f
[edge] publish process.env types for edge functions ( #9083 )
2022-12-15 12:00:53 -06:00
Damien Simonin Feugas
61e588cd63
feat(edge): adds json() response helper ( #9081 )
...
### 🔖 What's in there?
Because Typescript's `libdom` does not have [`static Response.json()`](https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1444 ) (which modern browsers and edge runtimes are supporting), Typescript users can't use easily use it.
This helper fills the gap.
### 🧪 How to test?
It's covered with unit tests
2022-12-15 11:01:02 +00:00
Sean Massa
8d2c0fec89
Publish Stable
...
- vercel@28.5.0
- @vercel/edge@0.1.2
- @vercel/fs-detectors@3.5.0
- @vercel/python@3.1.25
2022-11-14 12:53:42 -06:00
Dominik Ferber
c294409f5b
[edge] fix broken link on npmjs.org ( #8848 )
...
Before this change clicking on "follow the documentation" from
https://www.npmjs.com/package/@vercel/edge would lead to a 404 as the
docs link is relative.
2022-11-10 13:30:27 -08:00
Andy McKay
a567d047d1
Publish Stable
...
- @vercel/build-utils@5.5.7
- vercel@28.4.14
- @vercel/client@12.2.15
- @vercel/edge@0.1.1
- @vercel/error-utils@1.0.2
- @vercel/frameworks@1.1.10
- @vercel/fs-detectors@3.4.7
- @vercel/go@2.2.15
- @vercel/hydrogen@0.0.28
- @vercel/next@3.2.8
- @vercel/node-bridge@3.1.1
- @vercel/node@2.6.1
- @vercel/python@3.1.24
- @vercel/redwood@1.0.33
- @vercel/remix@1.0.34
- @vercel/routing-utils@2.1.1
- @vercel/ruby@1.3.41
- @vercel/static-build@1.0.34
- @vercel/static-config@2.0.5
2022-11-02 13:14:37 -07:00
Andy McKay
a630e19896
Publish Stable
...
- @vercel/build-utils@5.5.6
- vercel@28.4.13
- @vercel/client@12.2.14
- @vercel/edge@0.1.0
- @vercel/error-utils@1.0.1
- @vercel/frameworks@1.1.9
- @vercel/fs-detectors@3.4.6
- @vercel/go@2.2.14
- @vercel/hydrogen@0.0.27
- @vercel/next@3.2.7
- @vercel/node-bridge@3.1.0
- @vercel/node@2.6.0
- @vercel/python@3.1.23
- @vercel/redwood@1.0.32
- @vercel/remix@1.0.33
- @vercel/routing-utils@2.1.0
- @vercel/ruby@1.3.40
- @vercel/static-build@1.0.33
- @vercel/static-config@2.0.4
2022-11-02 12:59:38 -07:00
Kiko Beats
23dd29e269
[node] upgrade edge-runtime to v2.0.0 ( #8811 )
...
Drop node12 support
2022-10-31 10:52:40 -04:00
Kiko Beats
80b211fb4a
[node] upgrade edge-runtime to v1.1.0 ( #8765 )
2022-10-24 22:12:31 +02:00
Seiya Nuta
df9accfd6c
[@vercel/edge] Support overriding request headers ( #8724 )
...
<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->
This PR adds a feature in middleware to add, modify, or delete request
headers. This feature is quite useful to pass data from middleware to
Serverless/Edge API routes.
### New APIs
Adds a new option `request.headers` to the `MiddlewareResponseInit`
parameter in `NextResponse.next()` and `NextResponse.rewrite()`. It's a
[`Header`](https://developer.mozilla.org/en-US/docs/Web/API/Headers )
object holding *all* request headers. Specifically:
```ts
interface ExtraResponseInit extends ResponseInit {
request?: {
headers?: Headers
}
}
```
### Example
```ts
// api/hello.ts
export default (req, res) => {
const valueFromMiddleware = req.headers['x-hello-from-middleware']
return res.send(valueFromMiddleware)
}
// middleware.ts
import { next } from '@vercel/edge'
export default function middleware(request: NextRequest) {
// Clone request headers
const headers = new Headers(request.headers);
// Add a new request header
headers.set('x-hello-from-middleware', 'foo');
// Delete a request header from the client
headers.delete('x-from-client');
return next({
request: {
headers
}
});
}
```
### New middleware headers
- `x-middleware-override-headers`: A comma separated list of *all*
request header names. Headers not listed will be deleted.
- `x-middleware-request-<name>`: A new value for the header `<name>`.
### Related Issues
- Next.js' implementation: https://github.com/vercel/next.js/pull/41380
### 📋 Checklist
<!--
Please keep your PR as a Draft until the checklist is complete
-->
#### Tests
- [ ] The code changed/added as part of this PR has been covered with
tests
- [ ] All tests pass locally with `yarn test-unit`
#### Code Review
- [ ] This PR has a concise title and thorough description useful to a
reviewer
- [ ] Issue from task tracker has a link to this PR
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il >
2022-10-21 11:27:37 +09:00
Seiya Nuta
90291525c2
[edge] Fix the region field of geolocation ( #8517 )
2022-10-20 17:59:20 +09:00
JJ Kasper
dd94dcab32
Publish Stable
...
- vercel@28.4.12
- @vercel/edge@0.0.5
- @vercel/next@3.2.6
- @vercel/node@2.5.26
2022-10-18 09:50:29 -07:00
Kiko Beats
cfe6550ac8
[node] upgrade edge-runtime to v1.1.0-beta.40 ( #8740 )
2022-10-18 12:28:14 +00:00
Steven
2906d83eae
Publish Stable
...
- @vercel/build-utils@5.4.1
- vercel@28.2.1
- @vercel/client@12.2.3
- @vercel/edge@0.0.4
- @vercel/fs-detectors@2.1.0
- @vercel/go@2.2.4
- @vercel/hydrogen@0.0.17
- @vercel/next@3.1.23
- @vercel/node@2.5.12
- @vercel/python@3.1.13
- @vercel/redwood@1.0.21
- @vercel/remix@1.0.22
- @vercel/ruby@1.3.30
- @vercel/static-build@1.0.21
2022-09-01 13:16:42 -04:00
Gal Schlezinger
0d78ec4666
[edge] Add markdown documentation using TypeDoc ( #8446 )
2022-08-29 12:36:44 +03:00
Steven
32afd67d29
Publish Stable
...
- @vercel/build-utils@5.2.0
- vercel@27.3.7
- @vercel/client@12.1.10
- @vercel/edge@0.0.3
- @vercel/frameworks@1.1.3
- @vercel/fs-detectors@2.0.5
- @vercel/go@2.0.15
- @vercel/hydrogen@0.0.12
- @vercel/next@3.1.15
- @vercel/node@2.5.6
- @vercel/python@3.1.7
- @vercel/redwood@1.0.16
- @vercel/remix@1.0.17
- @vercel/routing-utils@2.0.2
- @vercel/ruby@1.3.23
- @vercel/static-build@1.0.16
- @vercel/static-config@2.0.3
2022-08-04 15:11:10 -04:00
Steven
5eb8b16cbd
Publish Stable
...
- @vercel/build-utils@5.1.1
- vercel@27.3.6
- @vercel/client@12.1.9
- @vercel/edge@0.0.2
- @vercel/frameworks@1.1.2
- @vercel/fs-detectors@2.0.4
- @vercel/go@2.0.14
- @vercel/hydrogen@0.0.11
- @vercel/next@3.1.14
- @vercel/node@2.5.5
- @vercel/python@3.1.6
- @vercel/redwood@1.0.15
- @vercel/remix@1.0.16
- @vercel/routing-utils@2.0.1
- @vercel/ruby@1.3.22
- @vercel/static-build@1.0.15
- @vercel/static-config@2.0.2
2022-08-04 11:39:58 -04:00
Steven
8505872f55
[tests] Update package.json scripts ( #8318 )
...
This PR consolidates all the `test` scripts to be the same and removes the `prepublishOnly` script since we always run `build` before publishing to npm.
2022-08-04 11:02:56 -04:00