-
Notifications
You must be signed in to change notification settings - Fork 514
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 pr/igorjacauna/1763
- Loading branch information
Showing
116 changed files
with
6,593 additions
and
3,120 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,6 +2,150 @@ | |
|
||
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.8.1 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.8.0...v2.8.1) | ||
|
||
### 🩹 Fixes | ||
|
||
- **dev:** Conditionally access worker address for build info ([#1947](https://github.com/unjs/nitro/pull/1947)) | ||
- Force use wasm import strategy for windows ([e73b849f](https://github.com/unjs/nitro/commit/e73b849f)) | ||
- **netlify-lambda:** Handle base64 encoded body ([#1940](https://github.com/unjs/nitro/pull/1940)) | ||
- **cloudflare:** Wasm support with dynamic chunks ([#1957](https://github.com/unjs/nitro/pull/1957)) | ||
- **prerenderer:** Write responses with json signature to original path ([#1963](https://github.com/unjs/nitro/pull/1963)) | ||
|
||
### 📖 Documentation | ||
|
||
- **cache:** Make default value `swr: true` more clear ([#1949](https://github.com/unjs/nitro/pull/1949)) | ||
|
||
### 🏡 Chore | ||
|
||
- Update lockfile ([716edd52](https://github.com/unjs/nitro/commit/716edd52)) | ||
- **docs:** Update lockfile ([b4386f8c](https://github.com/unjs/nitro/commit/b4386f8c)) | ||
|
||
### ✅ Tests | ||
|
||
- Add tests for wasm ([#1951](https://github.com/unjs/nitro/pull/1951)) | ||
- **cloudflare-pages:** Remover overlapping include rules ([789a13d3](https://github.com/unjs/nitro/commit/789a13d3)) | ||
|
||
### ❤️ Contributors | ||
|
||
- Pooya Parsa ([@pi0](http://github.com/pi0)) | ||
- Becem <[email protected]> | ||
- Mick Lawitzke ([@MickL](http://github.com/MickL)) | ||
|
||
## v2.8.0 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.7.1...v2.8.0) | ||
|
||
### 🚀 Enhancements | ||
|
||
- Support modules to extend nitro builder ([#1789](https://github.com/unjs/nitro/pull/1789)) | ||
- Support `inline` mode for `serveStatic` ([#1864](https://github.com/unjs/nitro/pull/1864)) | ||
- Add experimental `winterjs` preset ([#1863](https://github.com/unjs/nitro/pull/1863)) | ||
- Allow setting preset using `SERVER_PRESET` environment variable ([#1870](https://github.com/unjs/nitro/pull/1870)) | ||
- **cloudflare-pages, cloudflare-module:** Enable code splitting by default ([#1905](https://github.com/unjs/nitro/pull/1905)) | ||
- Support `framework` config ([#1843](https://github.com/unjs/nitro/pull/1843)) | ||
- Add aws amplify hosting preset ([#1912](https://github.com/unjs/nitro/pull/1912)) | ||
- Upgrade to rollup v4 ([#1927](https://github.com/unjs/nitro/pull/1927)) | ||
- Improve `nitro.json` build info ([#1930](https://github.com/unjs/nitro/pull/1930)) | ||
- **aws-amplify:** Support static builds ([#1933](https://github.com/unjs/nitro/pull/1933)) | ||
- Add `defineNitroErrorHandler` type helper ([#1923](https://github.com/unjs/nitro/pull/1923)) | ||
|
||
### 🩹 Fixes | ||
|
||
- **cloudflare-pages:** Filter out overlapping public assets dirs ([#1859](https://github.com/unjs/nitro/pull/1859)) | ||
- **winterjs:** 0.1.7 compatibility ([#1876](https://github.com/unjs/nitro/pull/1876)) | ||
- **scanner:** Allow having http method as part of the route name ([#1895](https://github.com/unjs/nitro/pull/1895)) | ||
- Generate route types with resolve path and stripped extension ([#1897](https://github.com/unjs/nitro/pull/1897)) | ||
- Scan dirs for unimport on initialization ([#1908](https://github.com/unjs/nitro/pull/1908)) | ||
- **aws-amplify:** Register and auto detect ([0f38eb6f](https://github.com/unjs/nitro/commit/0f38eb6f)) | ||
- **prerender:** Decode generated routes ([#1914](https://github.com/unjs/nitro/pull/1914)) | ||
- Disabled public asset handler name is `null` ([b7a6a1a6](https://github.com/unjs/nitro/commit/b7a6a1a6)) | ||
- **prerender:** Decode uris in headers ([#1932](https://github.com/unjs/nitro/pull/1932)) | ||
- **error:** Respect `accept: text/html` request header ([#1921](https://github.com/unjs/nitro/pull/1921)) | ||
- **prerender:** Filter encoded links starting with `#` ([#1936](https://github.com/unjs/nitro/pull/1936)) | ||
|
||
### 💅 Refactors | ||
|
||
- **deno-deploy:** Use `Deno.serve` ([#1879](https://github.com/unjs/nitro/pull/1879)) | ||
- Split preset types ([#1910](https://github.com/unjs/nitro/pull/1910)) | ||
|
||
### 📖 Documentation | ||
|
||
- **deploy:** Split runtimes from providers ([#1865](https://github.com/unjs/nitro/pull/1865)) | ||
- **routing:** Add note about middleware returns ([#1884](https://github.com/unjs/nitro/pull/1884)) | ||
- Update edge links to nightly ([#1902](https://github.com/unjs/nitro/pull/1902)) | ||
- **deploy:** Add deno to runtime list ([#1899](https://github.com/unjs/nitro/pull/1899)) | ||
- **cloudflare:** Updatge wrangler link ([#1913](https://github.com/unjs/nitro/pull/1913)) | ||
- **aws-amplify:** Add custom `amplify.yml` ([f412af16](https://github.com/unjs/nitro/commit/f412af16)) | ||
- **amplify:** Remove cache from config ([7bbb723e](https://github.com/unjs/nitro/commit/7bbb723e)) | ||
- Hide winterjs due to unstability ([048c8ff0](https://github.com/unjs/nitro/commit/048c8ff0)) | ||
- **aws-amplify:** Update regions ([#1931](https://github.com/unjs/nitro/pull/1931)) | ||
- **aws-amplify:** Add step to enable SSR logging and remove experimental ([#1934](https://github.com/unjs/nitro/pull/1934)) | ||
- **aws-amplify:** Remove workaround banner ([#1935](https://github.com/unjs/nitro/pull/1935)) | ||
|
||
### 🌊 Types | ||
|
||
- Export `SerializeTuple` and `SerializeObject` ([#1907](https://github.com/unjs/nitro/pull/1907)) | ||
|
||
### 🏡 Chore | ||
|
||
- **release:** V2.7.1 ([2d803a3c](https://github.com/unjs/nitro/commit/2d803a3c)) | ||
- Add jsdoc for `cache.maxAge` ([#1878](https://github.com/unjs/nitro/pull/1878)) | ||
- Update lockfile ([dbff232e](https://github.com/unjs/nitro/commit/dbff232e)) | ||
- **docs:** Update dependencies ([28867009](https://github.com/unjs/nitro/commit/28867009)) | ||
- **docs:** Fix prerender issues ([d2a7d84d](https://github.com/unjs/nitro/commit/d2a7d84d)) | ||
- Update unstorage ([110bc4a3](https://github.com/unjs/nitro/commit/110bc4a3)) | ||
- Update unstorage ([441db6ca](https://github.com/unjs/nitro/commit/441db6ca)) | ||
- Fix typos in aws amplify ([963716dd](https://github.com/unjs/nitro/commit/963716dd)) | ||
- Update lockfile ([926bcef4](https://github.com/unjs/nitro/commit/926bcef4)) | ||
|
||
### ✅ Tests | ||
|
||
- Hide winterjs due to unstability ([1b50a9a1](https://github.com/unjs/nitro/commit/1b50a9a1)) | ||
|
||
### 🤖 CI | ||
|
||
- Disable codecov and codeql ([fd4671ce](https://github.com/unjs/nitro/commit/fd4671ce)) | ||
|
||
### ❤️ Contributors | ||
|
||
- Pooya Parsa ([@pi0](http://github.com/pi0)) | ||
- Siegerts <[email protected]> | ||
- Passionate-bram | ||
- Daniel Roe <[email protected]> | ||
- Neil Richter ([@noook](http://github.com/noook)) | ||
- Xin Du (Clark) <[email protected]> | ||
- Anthony Fu <[email protected]> | ||
- Dario Piotrowicz ([@dario-piotrowicz](http://github.com/dario-piotrowicz)) | ||
- Kalwabed Rizki | ||
- Thunfisch987 | ||
- Oof2win2 <[email protected]> | ||
- Markthree ([@markthree](http://github.com/markthree)) | ||
- Estéban ([@Barbapapazes](http://github.com/Barbapapazes)) | ||
|
||
## 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) | ||
|
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.