Releases: nitrojs/nitro
Releases · nitrojs/nitro
v2.3.3
🚀 Enhancements
- Upgrade to consola v3 (release notes)
🩹 Fixes
- prerender: Show generated routes with error in logs (8e06f2e)
- prerender: Respect output path from main preset (#1114)
📖 Documentation
- Fix typos in storage and cache guides (#1086)
- Use unjs logo (#1104)
- Fix typo in cachedEventHandler options (#1110)
- Use consistent quotes in the routeRules example (#1108)
- Fix typo in server assets mount point (#1119)
- Improve
publicAssets
config details (#1102) - Fix small typo in plugin filename (#1081)
❤️ Contributors
- Pooya Parsa (@pi0)
- Gabriel Cipriano (@gabrielcipriano)
- Daniel Roe daniel@roe.dev
- Yassine El Ouazzani (@kwarkjes)
- Inesh Bose
- Andre Hammons
- Michael BOUVY michael.bouvy@gmail.com
v2.3.2
🩹 Fixes
- Sanitize
statusMessage
of disallowed chars (#1057) - types: Sync vercel build config types (#1056)
- azure: Support custom baseURL (#1062)
- vercel-edge: Fix route generation (#1071)
- Mark
options.renderer
as optional (#1069) - types: Make $Fetch types less complex (#1059)
💅 Refactors
- Add type safety to auto-detected providers (#1072)
📖 Documentation
❤️ Contributors
- Mahdi Boomeri mahdi@boomeri.dev
- Daniel Roe daniel@roe.dev
- Shohei Maeda
- Lucas (@Draichi)
- Nobkd
- Honza Pobořil honza@poboril.cz
v2.3.1
🩹 Fixes
- types: Don't simplify type of serialized return (#1050)
🏡 Chore
- Add
codecov.yml
(6fe7f64)
❤️ Contributors
- Pooya Parsa (@pi0)
- Daniel Roe daniel@roe.dev
v2.3.0
🚀 Enhancements
- vercel: Add functions config (#976)
- Add support for
sourceMap
valueshidden
andinline
(#998) - lagon: Write
.lagon/config.json
on build (#996) - types: Type $fetch to match json serialization output (#1002)
- Support base in
useStorage(base?: string)
and improve docs (#1012) - cloudflare-pages: Rewrite with module syntax (#1004)
- Allow customising generated tsconfig path (#1021)
- Support app config (#1022)
🩹 Fixes
- cloudflare-pages: Only allow 100 rules combined (#973)
- Only mock
debug
in production (#990) - Scan middleware and print tree list in ascending alphabetical order (#981)
- externals: Correctly specify multiple external dependencies in package.json (#1013)
- static: Use correct format for last modified (#1017)
- cache: Remove rejected cache promise from pending list. (#995)
- Expose
useStorage
with types (#1026) - prerender: Allow spaces in
href
value regex (#1030) - cache: Use stale value by default when
swr
is enabled (#1038) - Resolve types relative to custom tsconfig path (#1041)
- Remove duplicate import in generated code (#1043)
- types: Exclude non serializable options from route rules (#1047)
💅 Refactors
📖 Documentation
- Update to latest docus and various improvements (#975)
- Up docus and add back ellipsis (38b1f34)
- Remove tailwind module (b3b7e87)
- lock: Update (7efa31f)
- More improvements (#985)
- Remove fluid layout (d83f2b6)
- Update color (18674c5)
- Add unjs icon in footer (6d36ceb)
- Update docus (5fcc127)
- Add button to open on CodeSandBox (ad120ac)
- Update deployment example for configuration (#972)
- Update dependencies (c923fed)
- cache: Improve documentation and
cachedFunction
default options (#1011) - Improve readme and getting started (94d95fa)
- Fix on mobile long path (1d2f57e)
- Improvements (f78619f)
- Add
prerender.ignore
description (#1032) - Improve configuration page (554b358)
- Improve plugins section (f36a6e0)
- Update readme (c58a764)
- Update homepage hero (b848e5a)
- Update meta tags (70f00e5)
- More improvements (#1039)
- Update docus version (f31240b)
- Upgrade docus (a6ce587)
- deploy/workers: Fix typo of bundle (#1046)
🏡 Chore
- readme: Various improvements (#1009)
- Fix tests (#1014)
- docs: Use pnpm (39f117a)
- Add autofix-ci action (8f9c3e2)
- Remove old docs commands (#1042)
- Update dependencies (02c48f2)
- Maintain lockfile (ac81602)
- Use single undici version for testing (00743bc)
❤️ Contributors
- Pooya Parsa (@pi0)
- Daniel Roe daniel@roe.dev
- Felix De Montis hi@felix.dm
- Sébastien Chopin (@Atinux)
- Hannes Küttner kuettner.hannes@gmail.com
- Julie Saia
- Ted De Koning
- Jan Johansen nizopezo@gmail.com
- Tobias Diez code@tobiasdiez.com
- Elian ☕️ hello@elian.codes
- Mahdi Boomeri mahdi@boomeri.dev
- Anthony Fu anthonyfu117@hotmail.com
- Tom Lienard (@QuiiBz)
- Alex Korytskyi (@alex-key)
- Shohei Maeda
v2.2.3
🚀 Enhancements
- Add lagon preset (#964)
🩹 Fixes
- node-cluster: Default number of workers (#963)
- cloudflare-pages: Exclude assets from function call (#965)
- cloudflare-pages: Handle assets only for get requests (#968)
- Render json errors for cors requests (#969)
- Use json response for errors in
/api/
routes (#971)
💅 Refactors
- externals: Sort
bundledDependencies
keys in outputpackage.json
(#967)
📖 Documentation
- cloudflare: Add info regarding
runtimeConfig
and environment variables (#958) - Prevent ellipsis overflow on small screens (#956)
- deploy: Add workers page for edge limitations (#953)
🏡 Chore
❤️ Contributors
- Pooya Parsa (@pi0)
- Daniel Roe daniel@roe.dev
- Jan-Henrik Damaschke jdamaschke@outlook.de
- Bogdan Kostyuk bogdankostyuk12@gmail.com
- Hminghe (@hminghe)
- Alexander Lichter (@manniL)
v2.2.2
🩹 Fixes
- Correct
access-control-allow-methods
cors header name (#944) - Allow overriding assets
maxAge
using route rules (db6e6c2) - rollup: Use mlly as fallback resolver when externals disabled (#948)
- Don't render json response if url contains
/api/
(#951)
🏡 Chore
✅ Tests
- vercel: Move custom test to additional tests (fb361f8)
❤️ Contributors
- Pooya Parsa pooya@pi0.io
- Daniel Roe daniel@roe.dev
v2.2.1
🩹 Fixes
- static: Remove
cache-control
headers when asset is not found (e3d57fc) - Avoid circular imports (#936)
🏡 Chore
- Update changelog (8dde296)
❤️ Contributors
- Pooya Parsa pyapar@gmail.com
v2.2.0
⭐ What is new?
- Runtime proxy support using route rules (learn more)
- Nested fetch calls with incoming headers and context in event context (learn more)
- Binary and Raw storage operations support (learn more)
- [Cloudflare] Exposed
event.context.cf
(learn more) - Built-in session support (learn more)
🚀 Enhancements
- Support runtime proxy using route rules (#926)
- cloudflare:
cacheControl
support for public assets with withmaxAge
(#922) - cloudflare: Expose
event.context.cf
(#927) - firebase: Use nodejs 18 as default runtime (#925)
- Support
event.fetch
andevent.$fetch
(#930) - vercel: Auto-detect runtime version (#879)
🩹 Fixes
❤️ Contributors
- Pooya Parsa pooya@pi0.io
- Shohei Maeda
- Luke Nelson luke@nelson.zone
- Oleg Khalin
- Daniel Roe daniel@roe.dev
v2.1.0
v2.0.0
👀 Highlights
- Rewrite external tracker with multi-version and hoisting support (#782)
- Upgrade rollup to v3 (#580)
- Enable auto imports from
utils/
dir (#866)
🚀 Enhancements
⚠️ Upgrade rollup to 3.x (#580)- types: Correctly type $fetch based on the method (#686)
- cli:
prepare
command (#774) - cache: Allow setting custom
getKey
fordefineCachedEventHandler
(#744) - dev: Support for
/_vfs.json
(#809) - netlify: Use esm entrypoint (#833)
⚠️ Rewrite external copy with multi version hoisting support (#782)- Add
shouldInvalidateCache
option to cache utils (#746) edgio
preset (replacinglayer0
) (#858)- Support
maxAge
for public assets (#860) - Support
staleMaxAge: -1
to always respond stale value (#857) - externals: Apply
production
condition to package.exports (#867) - Enable auto imports from
utils
dir (#866)
🩹 Fixes
- GitHub template (#712)
- deno: Implement readAsset (#694)
- Normalize nitro plugin paths to URL in development (#732)
- Use file urls for auto-imports in development (#733)
- Initialise imports.imports (#737)
- Allow optional
output
property in user rollup config (#751) - Accept both upper/lower-case methods (#752)
- prerender: Check each segment length is less than 255 chars and the whole path 1024 (#757)
- Include only compressible mime types (#761)
- Remove base url before calculating route rules (#767)
- netlify, vercel: Order route rules from most specific + avoid double-rendering root (#768)
- build: Correctly formatted fs tree (#778)
- prerender: Decode urls to allow comma in the
x-nitro-prerender
header (#799) - build: Do not override publicAssets (#817)
- dev: Improve vfs ui (#802)
- Resolve and include scanDirs within
node_modules
for auto import (#812) - netlify, vercel: Explicit server rendering with disabled cache/swr (#829)
- prerender: Check link's pathname only for extensions (#791)
- rumtime: Disable server-timing header via options.timing (#823)
- Avoid using file URLs for normalized paths in options (7517293)
- Rollup treeshake is dump (2ce4edb)
- externals: Normalize
inline
andexternal
windows paths (0638f64) - netlify, aws: Omit cookies from v1 response (#834)
- Filter unique scanned handlers (#807)
- Resolve server asset dirs relative to
srcDir
(#825) - public-assets: Mock readAsset promise properly (#851)
- externals: Avoid recursive package links (b77735e)
- prerender: Update preview command to serve matching routes (#864)
- externals: Support orphan files in
node_modules
(#865) - Avoid hiding original rollup error message (a5586f8)
- cache: Only update cache in storage once per pending request (#861)
- Add node16 compatible type declaration (#868)
- externals: Improve multi version handling (#871)
💅 Refactors
📖 Documentation
- Fix url in auto-imports guide (#683)
- Fix spelling of cluster (#720)
- Wording change (#724)
- Fix readme grammar (#813)
- Fix deprecated function in routing example (#816)
- Add new render deployment example & steps (#811)
- Fix typo in code block (#830)
- Add cache base option example & description (#781)
🏡 Chore
- Lint repository with eslint config and format with prettier (#739)
- Lint with
eslint --cache
and improve types in.eslintrc
(#863)
✅ Tests
- Add tests for dev server and proxy (#644)
🤖 CI
- Run tests against windows as well (#837)
❤️ Contributors
- Pooya Parsa pooya@pi0.io
- Daniel Roe daniel@roe.dev
- Yasser Lahbibi yasser.lahbibi@apenhet.com
- O-az github@omaraziz.dev
- Harlan Wilton harlan@harlanzw.com
- Christian Preston christianpreston@ymail.com
- Louis Haftmann
- Xin Du (Clark) clark.duxin@gmail.com
- Jonas Thelemann e-mail@jonas-thelemann.de
- Shoubhit Dash shoubhit2005@gmail.com
- Anthony Fu anthonyfu117@hotmail.com
- Chambers
- Patrick Schnyder
- Alvar Lagerlöf
- Pascal
- Eduardo San Martin Morote
- Johann Schopplich mail@johannschopplich.com
- Nathan Chase nathan@nathanchase.com
- Dany Sluijk me@dany.dev
- Alexander Lichter github@lichter.io
- Nobody5050
- Ʀᴀʏ nn_201312@163.com
- Nozomu Ikuta
- James Ray james.a.ray@jpl.nasa.gov
- SerKo