-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/config-overwrite
- Loading branch information
Showing
96 changed files
with
4,860 additions
and
2,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ coverage: | |
status: | ||
project: | ||
default: | ||
threshold: 5% | ||
threshold: 50% |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
ignore-workspace-root-check=true | ||
shell-emulator=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,132 @@ | |
|
||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
|
||
## v2.7.1 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.7.0...v2.7.1) | ||
|
||
### 🩹 Fixes | ||
|
||
- Recursively simplify returned objects ([#1847](https://github.com/unjs/nitro/pull/1847)) | ||
- **cache:** Fix `etag` and `last-modified` values ([#1855](https://github.com/unjs/nitro/pull/1855)) | ||
- **cache:** Invalidate wrongly cached handler entities ([#1857](https://github.com/unjs/nitro/pull/1857)) | ||
|
||
### 🏡 Chore | ||
|
||
- Update dependencies ([7a6c61db](https://github.com/unjs/nitro/commit/7a6c61db)) | ||
- Update lockfile ([9b5ed9a1](https://github.com/unjs/nitro/commit/9b5ed9a1)) | ||
- Update lockfile ([b0ec181d](https://github.com/unjs/nitro/commit/b0ec181d)) | ||
|
||
### ❤️ Contributors | ||
|
||
- Pooya Parsa ([@pi0](http://github.com/pi0)) | ||
- Daniel Roe <[email protected]> | ||
|
||
## v2.7.0 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.6.3...v2.7.0) | ||
|
||
### 🚀 Enhancements | ||
|
||
- **vercel:** Support `bypassToken` for on-demand static reganaration ([#1723](https://github.com/unjs/nitro/pull/1723)) | ||
- **prerender:** Support `retry` and `retryDelay` ([#1534](https://github.com/unjs/nitro/pull/1534)) | ||
- Allow disabling compressed size calculation ([#1756](https://github.com/unjs/nitro/pull/1756)) | ||
|
||
### 🔥 Performance | ||
|
||
- Use native fetch for `node >= 18` to reduce `%40` of bundle size ([#1724](https://github.com/unjs/nitro/pull/1724)) | ||
|
||
### 🩹 Fixes | ||
|
||
- Sort dependencies in `.output/package.json` ([#1708](https://github.com/unjs/nitro/pull/1708)) | ||
- Add `application/javascript` mime type in lambda utils ([#1737](https://github.com/unjs/nitro/pull/1737)) | ||
- **renderer:** Allow all h3 handled body types ([#1755](https://github.com/unjs/nitro/pull/1755)) | ||
- **dev:** Safe error message override ([#1712](https://github.com/unjs/nitro/pull/1712)) | ||
- **azure:** Fix cookie format normalization ([#1753](https://github.com/unjs/nitro/pull/1753)) | ||
- Exclude undefined from hook types ([#1769](https://github.com/unjs/nitro/pull/1769)) | ||
- **iis-node:** Pass `PORT` as `NITRO_UNIX_SOCKET` ([#1783](https://github.com/unjs/nitro/pull/1783)) | ||
- **aws-lambda:** Handle `event.isBase64Encoded` ([#1779](https://github.com/unjs/nitro/pull/1779)) | ||
- **cache:** Allow overriding integrity ([#1791](https://github.com/unjs/nitro/pull/1791)) | ||
- **cache:** Write swr and update errors to console ([#1794](https://github.com/unjs/nitro/pull/1794)) | ||
- **cache:** Only return validated stale value ([#1795](https://github.com/unjs/nitro/pull/1795)) | ||
- **cache:** Only invalidate if `validate` returns `false` ([#1796](https://github.com/unjs/nitro/pull/1796)) | ||
- Watch plugins directory ([#1800](https://github.com/unjs/nitro/pull/1800)) | ||
- **cache:** Allow setting multiple `set-cookie` headers (bad practice) ([#1838](https://github.com/unjs/nitro/pull/1838)) | ||
- **prerender:** Decode html entities in rendered links ([#1824](https://github.com/unjs/nitro/pull/1824)) | ||
- **storage:** Validate and skip invalid mounts ([#1805](https://github.com/unjs/nitro/pull/1805)) | ||
- **cache:** Validate `entry.value` to have value for cached handlers ([84559382](https://github.com/unjs/nitro/commit/84559382)) | ||
- **cache:** Fix event handler integrity hash generation ([#1820](https://github.com/unjs/nitro/pull/1820)) | ||
- **cache:** Set cache item before returning response on first request ([#1813](https://github.com/unjs/nitro/pull/1813)) | ||
|
||
### 💅 Refactors | ||
|
||
- **iis:** Improve preset and docs ([#1784](https://github.com/unjs/nitro/pull/1784)) | ||
|
||
### 📖 Documentation | ||
|
||
- Update prerender options ([11a24124](https://github.com/unjs/nitro/commit/11a24124)) | ||
- Fix typo ([#1722](https://github.com/unjs/nitro/pull/1722)) | ||
- Register error handler using hook instead of `hookOnce` ([#1743](https://github.com/unjs/nitro/pull/1743)) | ||
- Update lock file ([#1750](https://github.com/unjs/nitro/pull/1750)) | ||
- Fix typo ([#1759](https://github.com/unjs/nitro/pull/1759)) | ||
- Fix configuration file name of the custom preset ([#1760](https://github.com/unjs/nitro/pull/1760)) | ||
- Typo in word "legacy" in Configuration docs ([#1780](https://github.com/unjs/nitro/pull/1780)) | ||
- **cloudflare:** Add local dev section ([#1772](https://github.com/unjs/nitro/pull/1772)) | ||
|
||
### 🏡 Chore | ||
|
||
- **release:** V2.6.3 ([9bb55262](https://github.com/unjs/nitro/commit/9bb55262)) | ||
- Add `.devcontainer` ([#1633](https://github.com/unjs/nitro/pull/1633)) | ||
- Update dependencies ([d225d3be](https://github.com/unjs/nitro/commit/d225d3be)) | ||
- Fix lint issue ([c3565d8c](https://github.com/unjs/nitro/commit/c3565d8c)) | ||
- Update non-major dependencies ([9c2cab26](https://github.com/unjs/nitro/commit/9c2cab26)) | ||
- Update lockfile ([179846c7](https://github.com/unjs/nitro/commit/179846c7)) | ||
- Fix type issues ([0ff72e29](https://github.com/unjs/nitro/commit/0ff72e29)) | ||
- Update vitest to `1.0.0-beta` ([#1776](https://github.com/unjs/nitro/pull/1776)) | ||
- Update dependencies ([553e4534](https://github.com/unjs/nitro/commit/553e4534)) | ||
- **app:** Fix `localFetch` type ([5f3b287c](https://github.com/unjs/nitro/commit/5f3b287c)) | ||
- Use pnpm `shell-emulator` for windows local development ([#1828](https://github.com/unjs/nitro/pull/1828)) | ||
- Update lockfile ([f4e33332](https://github.com/unjs/nitro/commit/f4e33332)) | ||
- Use `nitropack-nightly` for nightly release channel ([#1841](https://github.com/unjs/nitro/pull/1841)) | ||
- Increase codecov threshold ([bc464032](https://github.com/unjs/nitro/commit/bc464032)) | ||
- Update lockfile ([f53e3575](https://github.com/unjs/nitro/commit/f53e3575)) | ||
|
||
### ✅ Tests | ||
|
||
- Temporaily disable dev test in ci ([53a96adb](https://github.com/unjs/nitro/commit/53a96adb)) | ||
- Update deno test with explicit host ([8cce5085](https://github.com/unjs/nitro/commit/8cce5085)) | ||
- Update reponse type check ([#1839](https://github.com/unjs/nitro/pull/1839)) | ||
|
||
### 🤖 CI | ||
|
||
- Run tests against node 18 ([#1713](https://github.com/unjs/nitro/pull/1713)) | ||
- Run vitest with es and sourcemap support ([c4c00467](https://github.com/unjs/nitro/commit/c4c00467)) | ||
|
||
### ❤️ Contributors | ||
|
||
- Pooya Parsa ([@pi0](http://github.com/pi0)) | ||
- Yasser Lahbibi ([@yassilah](http://github.com/yassilah)) | ||
- Horu | ||
- Michael Brevard <[email protected]> | ||
- Daniel Roe <[email protected]> | ||
- MiniDigger < Martin> | ||
- Estéban ([@Barbapapazes](http://github.com/Barbapapazes)) | ||
- Heb ([@Hebilicious](http://github.com/Hebilicious)) | ||
- Henrique Lopes | ||
- McPizza <[email protected]> | ||
- Michael BOUVY <[email protected]> | ||
- Jeremy Graziani | ||
- Tobias Diez <[email protected]> | ||
- VALERIY SINEVICH | ||
- Roman Zipp <[email protected]> | ||
- Benjamin GAYMAY ([@BenjaminGaymay](http://github.com/BenjaminGaymay)) | ||
- Alexander Lichter ([@manniL](http://github.com/manniL)) | ||
- Farnabaz ([@farnabaz](http://github.com/farnabaz)) | ||
- Nils K | ||
- Jonas Thelemann ([@dargmuesli](http://github.com/dargmuesli)) | ||
- Jenjen75 <[email protected]> | ||
- Sébastien Chopin ([@Atinux](http://github.com/Atinux)) | ||
|
||
## v2.6.3 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.6.2...v2.6.3) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
icon: codicon:run-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
icon: game-icons:cold-heart | ||
--- | ||
|
||
# WinterJS | ||
|
||
**Preset:** `winterjs` ([switch to this preset](/deploy/#changing-the-deployment-preset)) | ||
|
||
You can easily build Nitro powered applications to run with [wasmerio/winterjs](https://github.com/wasmerio/winterjs) runtime. | ||
|
||
[WinterJS](https://github.com/wasmerio/winterjs) is a JavaScript Service Workers server written in Rust, that uses the SpiderMonkey runtime to execute JavaScript (the same runtime that Firefox uses) ([announcement](https://wasmer.io/posts/announcing-winterjs-service-workers)). | ||
|
||
|
||
::alert{type="warning"} | ||
🌙 WinterJS is currently supported in **nightly release channel**. Read the docs for using [Nightly Release Channel](/guide/getting-started#nightly-release-channel). | ||
:: | ||
|
||
|
||
::alert{type="warning"} | ||
🚧 WinterJS runtime is unstable and under heavy development. Follow [unjs/nitro#1861](https://github.com/unjs/nitro/issues/1861) for status and information. | ||
:: | ||
|
||
|
||
In order to build for this runtime, use `NITRO_PRESET="winterjs"` environment variable: | ||
|
||
```sh | ||
NITRO_PRESET="winterjs" npm run build | ||
``` | ||
|
||
Make sure you have `wasmer` installed locally ([install wasmer](https://docs.wasmer.io/install)) | ||
|
||
Run locally: | ||
|
||
```sh | ||
wasmer run wasmer/winterjs --forward-host-env --net --mapdir app:.output app/server/index.mjs | ||
``` |
7 changes: 6 additions & 1 deletion
7
docs/content/2.deploy/providers/bun.md → docs/content/2.deploy/10.runtimes/bun.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
icon: simple-icons:deno | ||
--- | ||
|
||
# Deno | ||
|
||
Run Nitro apps with [Deno](https://deno.com/) runtime. | ||
|
||
## Deno Server | ||
|
||
**Preset:** `deno-server` ([switch to this preset](/deploy/#changing-the-deployment-preset)) | ||
|
||
::alert{type="warning"} | ||
Deno runtime preset is experimental. | ||
:: | ||
|
||
You can build your Nitro server using Node.js to run within [Deno Runtime](https://deno.com/runtime) in a custom server. | ||
|
||
```bash | ||
# Build with the deno NITRO preset | ||
NITRO_PRESET=deno-server npm run build | ||
|
||
# Start production server | ||
deno run --unstable --allow-net --allow-read --allow-env .output/server/index.ts | ||
``` |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
icon: tdesign:cloud |
Oops, something went wrong.