Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/vercel-isg
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 15, 2022
2 parents 52b803f + 0ccdc18 commit 1f1224a
Show file tree
Hide file tree
Showing 13 changed files with 379 additions and 512 deletions.
257 changes: 7 additions & 250 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,264 +2,21 @@

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.

## [1.0.0-0](https://github.com/unjs/nitro/compare/v0.6.2...v1.0.0-0) (2022-11-15)

## v0.6.1

[compare changes](https://github.com/unjs/nitro/compare/v0.6.0...v0.6.1)


### 🚀 Enhancements

- Autocompletion for the `preset` config ([#606](https://github.com/unjs/nitro/pull/606))
- `deno` deploy preset ([#619](https://github.com/unjs/nitro/pull/619))
- `devProxy` support ([#631](https://github.com/unjs/nitro/pull/631))
- Prerender:routes hook ([#632](https://github.com/unjs/nitro/pull/632))
- Support `prerender` route rule ([#633](https://github.com/unjs/nitro/pull/633))

### 🩹 Fixes

- Add `cleavr` to built-in presets ([#601](https://github.com/unjs/nitro/pull/601))
- Correct type inference for routes ([#518](https://github.com/unjs/nitro/pull/518))
- Allow user to override static headers ([#610](https://github.com/unjs/nitro/pull/610))
- Do not write bodies for 304 responses ([#618](https://github.com/unjs/nitro/pull/618))

### 💅 Refactors

- Fix typo in internal function name ([#625](https://github.com/unjs/nitro/pull/625))

### 📖 Documentation

- Fix typo ([#624](https://github.com/unjs/nitro/pull/624))

### 🏡 Chore

- Manually update changelog ([95d6172](https://github.com/unjs/nitro/commit/95d6172))
- Add feature request template ([87996e0](https://github.com/unjs/nitro/commit/87996e0))
- Upgrade `unimport` ([#613](https://github.com/unjs/nitro/pull/613))

### ✅ Tests

- Update fixtures ([086802d](https://github.com/unjs/nitro/commit/086802d))

### ❤️ Contributors

- Alexander Lichter
- Anish Ghimire
- Anthony Fu
- Damian Głowala
- Daniel Roe
- David Tai
- Pooya Parsa
- Ʀᴀʏ

## v0.6.0

[compare changes](https://github.com/unjs/nitro/compare/v0.5.4...v0.6.0)


#### ⚠️ Breaking Changes

- H3 updated to to 0.8x [[Release Notes](https://github.com/unjs/h3/releases/tag/v0.8.0)]
- Experimental `routes` is renamed to `routeRules` ([#593](https://github.com/unjs/nitro/pull/593))

### 🚀 Enhancements

- Support `redirect`, `headers`, and `cors` route rules ([#538](https://github.com/unjs/nitro/pull/538))
- **netlify:** Incremental static regeneration + swr ([#540](https://github.com/unjs/nitro/pull/540))
- Add `debugger` option to debug hooks ([#577](https://github.com/unjs/nitro/pull/577))
- Allow matching multiple route rules ([#582](https://github.com/unjs/nitro/pull/582))
- Normalize route options and shortcuts ([#583](https://github.com/unjs/nitro/pull/583))
- **cleavr:** Add cleavr preset ([#523](https://github.com/unjs/nitro/pull/523))
- **cleavr:** Auto detect preset ([d5bbdeb](https://github.com/unjs/nitro/commit/d5bbdeb))
- Allow disabling public dir generation using `noPublicDir` ([00a304a](https://github.com/unjs/nitro/commit/00a304a))
- **cache:** Mock `res.end`, `res.write` and `res.writeHead` ([673fe8e](https://github.com/unjs/nitro/commit/673fe8e))
- **cache:** Support `headersOnly` cache mode ([4e6dda1](https://github.com/unjs/nitro/commit/4e6dda1))
- Allow `cache: false` route rule to override cache options ([91f8300](https://github.com/unjs/nitro/commit/91f8300))

### 🩹 Fixes

- Fully resolve internal paths for autoimports ([#543](https://github.com/unjs/nitro/pull/543))
- Retry writing traced files if there are conflicts ([#537](https://github.com/unjs/nitro/pull/537))
- **externals:** Rewrite traced file paths to latest semver-minor version ([#578](https://github.com/unjs/nitro/pull/578))
- Workaround rollup issue ([b884d0c](https://github.com/unjs/nitro/commit/b884d0c))
- Handle output dirs set to empty string ([#584](https://github.com/unjs/nitro/pull/584))
- **azure:** Raw body no longer returns parsed json ([#589](https://github.com/unjs/nitro/pull/589))
- Default `workspaceDir` to `rootDir` ([#594](https://github.com/unjs/nitro/pull/594))
- **renderer:** Directly return body to allow caching ([859a984](https://github.com/unjs/nitro/commit/859a984))
- **cache:** Only spy on end/write for string chunks ([bd0b1ed](https://github.com/unjs/nitro/commit/bd0b1ed))
- **error:** Do not assign default statusMessage for errors ([cbe0e91](https://github.com/unjs/nitro/commit/cbe0e91))
- **cache:** Use lowercase headers ([9eb5769](https://github.com/unjs/nitro/commit/9eb5769))
- **cache:** Abort cache handler for error status codes ([ba21751](https://github.com/unjs/nitro/commit/ba21751))
- **cache:** Skip error status codes by invalidating cache ([4fd164f](https://github.com/unjs/nitro/commit/4fd164f))
- **deps:** Ensure radix3 version is expected ([245ed70](https://github.com/unjs/nitro/commit/245ed70))
- **cache:** Invalidate entries with undefined body ([e9285da](https://github.com/unjs/nitro/commit/e9285da))
- **app:** Only apply cache rules ro routes (not middleware) ([4603279](https://github.com/unjs/nitro/commit/4603279))

### 💅 Refactors

- ⚠️ Rename routeOptions to routeRules ([#593](https://github.com/unjs/nitro/pull/593))

### 📖 Documentation

- Add quotes to string ([#547](https://github.com/unjs/nitro/pull/547))
- Fix link to cloudflare-pages preset ([#564](https://github.com/unjs/nitro/pull/564))
- Add note about `cache` options for route options ([221c747](https://github.com/unjs/nitro/commit/221c747))

### 🏡 Chore

- **ci:** Bump edge version acording to changelog ([8b7740e](https://github.com/unjs/nitro/commit/8b7740e))

### 🤖 CI

- Fetch tags for proper version bump ([6d4b416](https://github.com/unjs/nitro/commit/6d4b416))

### ❤️ Contributors

- Anish Ghimire
- Christopher Lis
- Daniel Roe
- Louis Haftmann
- Pooya Parsa
- Tobias Diez
- Wolfgang Ziegler

## v0.5.3

[compare changes](https://github.com/unjs/nitropack/compare/v0.5.2...v0.5.3)


### 🚀 Enhancements

- Show preset in build logs ([047357f](https://github.com/unjs/nitropack/commit/047357f))

### 🩹 Fixes

- **prerender:** Prevent double slash when joining url to `index.html` ([#499](https://github.com/unjs/nitropack/pull/499))
- **options:** Allow overriding preset using `nitro.config` and `loadOptions` ([82a2b1e](https://github.com/unjs/nitropack/commit/82a2b1e))
- Apply default autopreset before extending ([cc37fb6](https://github.com/unjs/nitropack/commit/cc37fb6))
- **vercel, azure:** Serve prerendered routes statically ([#500](https://github.com/unjs/nitropack/pull/500))
- **options:** Resolve preset from first config layer ([1247890](https://github.com/unjs/nitropack/commit/1247890))
- **prerender:** Skip writing routes with error ([ff99330](https://github.com/unjs/nitropack/commit/ff99330))

### 💅 Refactors

- Remove `#autopreset` workaround ([ad659e0](https://github.com/unjs/nitropack/commit/ad659e0))

### 🏡 Chore

- Revert playground changes ([2dd05fb](https://github.com/unjs/nitropack/commit/2dd05fb))
- **vercel:** Typecheck generated config ([c197622](https://github.com/unjs/nitropack/commit/c197622))
- **release:** 0.5.3 ([5c30297](https://github.com/unjs/nitropack/commit/5c30297))

### ❤️ Contributors

- Daniel Roe
- Pooya Parsa

## v0.5.2

[compare changes](https://github.com/unjs/nitropack/compare/v0.5.1...v0.5.2)


### 🚀 Enhancements

- Add `workspaceDir` and use it for presets auto generated dir ([#481](https://github.com/unjs/nitropack/pull/481))
- Support custom vercel output configuration ([#476](https://github.com/unjs/nitropack/pull/476))

### 🔥 Performance

- **static:** Prefer brotli ([d3c218f](https://github.com/unjs/nitropack/commit/d3c218f))

### 🩹 Fixes

- **externals:** Strip query parameters from commonjs ids ([#475](https://github.com/unjs/nitropack/pull/475))
- Use `rootDir` for providers output instead of `workspaceDir` ([#491](https://github.com/unjs/nitropack/pull/491))
- Use node-resolve's `modulePaths` ([#490](https://github.com/unjs/nitropack/pull/490))
- **node-server:** Listen to default host and support ipv6 ([e1ff8cc](https://github.com/unjs/nitropack/commit/e1ff8cc))
- Allow for non-existent vercel config ([#492](https://github.com/unjs/nitropack/pull/492))
- Properly serve `/index.html` static asset ([#494](https://github.com/unjs/nitropack/pull/494))
- Compress assets outside of rollup ([502f7b8](https://github.com/unjs/nitropack/commit/502f7b8))
- Compress binrary brotli assets with `BROTLI_MODE_GENERIC` ([618f03d](https://github.com/unjs/nitropack/commit/618f03d))
- **compress:** Improve mime handling ([5cf6aed](https://github.com/unjs/nitropack/commit/5cf6aed))
- **compress:** Properly ignore already compressed files ([c24dbcf](https://github.com/unjs/nitropack/commit/c24dbcf))

### 💅 Refactors

- **cloudflare:** Update instructions to wrangler2 ([db71959](https://github.com/unjs/nitropack/commit/db71959))

### 📖 Documentation

- Fix typo ([#474](https://github.com/unjs/nitropack/pull/474))
- Remove folder creation step for Azure Static Web Apps ([#479](https://github.com/unjs/nitropack/pull/479))
- Fix internal link ([#483](https://github.com/unjs/nitropack/pull/483))
- **cloudflare:** Update to use wrangler2 ([#444](https://github.com/unjs/nitropack/pull/444))

### 🏡 Chore

- **release:** 0.5.2 ([2ee32a4](https://github.com/unjs/nitropack/commit/2ee32a4))

### ✅ Tests

- Update test ([ac23a7d](https://github.com/unjs/nitropack/commit/ac23a7d))

### ❤️ Contributors

- Alexander Lichter
- Anthony Chu
- Daniel Roe
- Horu
- Mahdi Boomeri
- Nuzhat Minhaz
- Oumar Barry
- Pooya Parsa

## v0.5.1

[compare changes](https://github.com/unjs/nitropack/compare/v0.5.0...v0.5.1)


### 🚀 Enhancements

- Add static `prerender` env variable ([3bd48e3](https://github.com/unjs/nitropack/commit/3bd48e3))
- Improve public asset compression ([#466](https://github.com/unjs/nitropack/pull/466))
- Add `node-cluster` preset ([#455](https://github.com/unjs/nitropack/pull/455))

### 🩹 Fixes

- Include error path property and handle null locations ([#462](https://github.com/unjs/nitropack/pull/462))
- **types:** Allow `EventHandler` type for dev handlers ([b0a3f43](https://github.com/unjs/nitropack/commit/b0a3f43))

### 🏡 Chore

- **release:** 0.5.1 ([2a05d1e](https://github.com/unjs/nitropack/commit/2a05d1e))

### ❤️ Contributors

- Daniel Roe
- David Kubeš
- Mastercuber
- Pooya Parsa

## v0.5.0

### ⚠ BREAKING CHANGES

### 🚀 Enhancements
* remove deperecated `autoImport`

- Add static `prerender` env variable (3bd48e3)
- Improve public asset compression (#466)
- Add `node-cluster` preset (#455)
* remove deperecated `autoImport` ([c99fa44](https://github.com/unjs/nitro/commit/c99fa441eeb1992af087a6bec85ea868a5eb1e62))

### 🩹 Fixes
### [0.6.2](https://github.com/unjs/nitro/compare/v0.6.1...v0.6.2) (2022-11-15)

- Include error path property and handle null locations (#462)
- **types:** Allow `EventHandler` type for dev handlers (b0a3f43)

### ❤️ Contributors
### Bug Fixes

- Daniel Roe
- David Kubeš
- Mastercuber
- Pooya Parsa
* **cloudflare:** pass raw body instead of parsing it ([#629](https://github.com/unjs/nitro/issues/629)) ([837f894](https://github.com/unjs/nitro/commit/837f894c310ad27854cfa0dc538c6c033e2a3d41))

## 0.4.24

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 UnJS project
Copyright (c) Pooya Parsa <pooya@pi0.io> and Nitro contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineBuildConfig({
'@netlify/functions',
'@nuxt/devalue',
'destr',
'ohmyfetch',
'ofetch',
'ora'
],
externals: [
Expand Down
3 changes: 2 additions & 1 deletion docs/content/2.deploy/providers/netlify.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ Normally, the deployment to Netlify does not require any configuration.
Nitro will auto-detect that you are in a [Netlify](https://www.netlify.com) build environment and build the correct version of your server.

For new sites, Netlify will detect that you are using Nitro and set the publish directory to `dist` and build command to `npm run build`.

If you are upgrading an existing site you should check these and update them if needed.

If you want to add custom redirects, you can do so by adding a [`_redirects`](https://docs.netlify.com/routing/redirects/#syntax-for-the-redirects-file) file.
If you want to add custom redirects, you can do so with [`routeRules`](/config#routerules) or by adding a [`_redirects`](https://docs.netlify.com/routing/redirects/#syntax-for-the-redirects-file) file.

For deployment, just push to your git repository [as you would normally do for Netlify](https://docs.netlify.com/configure-builds/get-started/).

Expand Down

0 comments on commit 1f1224a

Please sign in to comment.