Releases: denoland/fresh
Releases · denoland/fresh
2.2.0
Features
- feat: Add
.json()/.text()/.html()/.stream()context helpers by @marvinhagemeister in #3613
@fresh/plugin-vite
- fix(vite): source mapping locations by @marvinhagemeister in #3624
@fresh/init
- feat(init): use recommended vscode settings for tailwind by @KiritaniAyaka in #3621
Documentation
- docs(build-id): add code block example by @csvn in #3600
- docs(core): correct example code block formatting by @csvn in #3601
- docs(vite-plugin): add JSDoc and export public API by @csvn in #3604
- docs(examples): add module and public exports JSDoc for all entrypoints by @csvn in #3603
- docs(core): improve CORS example documentation on JSR by @csvn in #3602
- docs(core): add small usage & getting started example by @csvn in #3598
- docs: improve copy button appearance on light mode by @KiritaniAyaka in #3620
New Contributors
- @KiritaniAyaka made their first contribution in #3620
Full Changelog: 2.1.4...2.2.0
2.1.4
Bug Fixes
- fix(partial): buttons outside forms should not trigger navigation by @marvinhagemeister in #3584
- fix: switch to
nodeModulesDir: "manual"to avoid install race conditions by @marvinhagemeister in #3588 - fix:
HEADwhen onlyGETis registered in.route()by @marvinhagemeister in #3587
@fresh/plugin-vite
- fix(vite): mark transformed commonjs with
__esModuleby @marvinhagemeister in #3575 - fix(vite): inherit top level
outDirconfig if by @PastelStoic in #3570
Documentation
Maintenance
- chore: update @astral/astral by @marvinhagemeister in #3583
- chore: tests add more logs for easier debugging by @marvinhagemeister in #3589
- chore: improve init tests by @marvinhagemeister in #3590
New Contributors
Full Changelog: 2.1.3...2.1.4
2.1.3
Bug Fixes
- fix: disable static file caching in development by @brettchalupa in #3561
- fix: HEAD method not handled properly by @marvinhagemeister in #3563
- fix:
.fsRoutes()pattern argument not working by @marvinhagemeister in #3571
@fresh/plugin-vite
- fix(vite): exclude test files from production builds by @brettchalupa in #3559
@fresh/init
- feat: add
@/path alias to generated projects by @brettchalupa in #3562
Maintenance
- chore: update README Deno Deploy docs for EA by @brettchalupa in #3560
- chore: fix link to Fresh documentation in README by @PastelStoic in #3569
New Contributors
- @brettchalupa made their first contribution in #3561
- @PastelStoic made their first contribution in #3569
Full Changelog: 2.1.2...2.1.3
2.1.2
Bug Fixes
@fresh/plugin-vite
- fix(vite): dev server not recovering on syntax error by @marvinhagemeister in #3507
- fix(vite): support jsx namespaces by @marvinhagemeister in #3539
- fix(vite): empty commonjs files with only __esModule by @marvinhagemeister in #3540
Maintenance
- chore: set nodeModulesDir to manual by @fry69 in #3493
- ci: fix publish workflow by @fry69 in #3495
- test: make sure free ports get used by @fry69 in #3497
- test(init): fix address in use by @fry69 in #3532
- fix(vite): unable to load transpiled commonjs with node builtins by @marvinhagemeister in #3541
Documentation
- docs: add deno.json update section to migration guide by @fry69 in #3471
- docs: Fix wrong variable name in migration guide by @BrunoBernardino in #3496
- docs: update readme for fresh 2 by @treejadey in #3503
- docs: troubleshoot dependency installation by @fry69 in #3508
- docs: troubleshoot VS Code extension by @fry69 in #3510
- docs: troubleshoot deploy error message by @fry69 in #3511
- docs: export FreshViteConfig type by @dsherret in #3516
- docs: add Deno upgrade section by @marvinhagemeister in #3526
- docs: typos in define helpers page by @devdumpling in #3533
Showcase
New Contributors
- @BrunoBernardino made their first contribution in #3496
- @treejadey made their first contribution in #3503
- @dsherret made their first contribution in #3516
- @Nergy101 made their first contribution in #3490
- @devdumpling made their first contribution in #3533
Full Changelog: 2.1.1...2.1.2
2.1.1
Bug Fixes
- fix: returned handler headers only working with plain objects by @marvinhagemeister in
@fresh/[email protected]
- fix(vite): ensure plugins are only instantiated once by @marvinhagemeister in #3450
- fix(vite): improve cjs esm detection + builtins resolution by @marvinhagemeister in #3457
- fix(vite): Cover more commonjs cases for supabase by @marvinhagemeister in #3465
@fresh/[email protected]
Documentation
- docs: fix slugs shared across all pages by @marvinhagemeister in #3448
- docs: Revise migration guide with new help sections by @MauScheff in #3455
Maintenance
Showcase
- showcase: remove paquet by @marvinhagemeister in #3462
New Contributors
- @MauScheff made their first contribution in #3455
Full Changelog: 2.1.0...2.1.1
2.1.0
Features
- feat: Add CSP and header middleware by @emilkrebs in #3421
Bug Fixes
- fix: bring back support for middleware Array by @marvinhagemeister in #3434
- fix: improve missing build cache error message by @marvinhagemeister in #3441
@fresh/[email protected]
- fix(vite): keep require calls in ESM file by @marvinhagemeister in #3433
- fix(vite): support css imports in route files by @marvinhagemeister in #3438
- fix(vite): nested islands not working by @marvinhagemeister in #3440
@fresh/[email protected]
Documentation
- docs: fix minor issues in middleware docs by @fry69 in #3436
- docs: fix testing docs by @fry69 in #3419
Maintenance
- chore: fix non-prerelease version in release script by @marvinhagemeister in #3442
New Contributors
- @emilkrebs made their first contribution in #3421
Full Changelog: 2.0.2...2.1.0
2.0.2
Bug fixes
- fix: add missing compile entry by @marvinhagemeister in #3410
@fresh/plugin-vite 1.0.2
- fix(vite): drop trailing or leading whitespace in build id by @marvinhagemeister in #3408
- fix(vite): workaround for FOUC with tailwind by @marvinhagemeister in #3407
- fix(vite): missing build id in Deno Deploy EA by @marvinhagemeister in #3414
- fix(vite): exclude packages from deno cache by @CertainLach in #3374
- fix(vite):
.envfiles not being loaded by @marvinhagemeister in #3416
@fresh/init 2.0.8
- fix(init): incorrect target dir argument by @marvinhagemeister in #3415
Documentation
- docs: fix missing files on "sharing state with islands" page by @SisyphusZheng in #3377
Maintenance
- chore: make less test less flaky by @marvinhagemeister in #3417
Full Changelog: 2.0.1...2.0.2
2.0.1
Bug fixes
- fix: add
ctx.routetype to props by @fry69 in #3382 - fix: basePath handling for static assets by @fry69 in #3394
- fix: add
basePathsupport inmountApp()by @fry69 in #3395
@fresh/plugin-vite 1.0.1
- fix(vite): remove Deno global check by @marvinhagemeister in #3401
@fresh/init 2.0.7
Documentation
- docs: add simple mountApp example by @fry69 in #3380
- docs: add copy buttons by @marvinhagemeister in #3393
- docs: avoid showing "Copied" if copying fails by @csvn in #3397
- docs: update testing with routes and islands by @fry69 in #3385
- docs: mention entry in cloudflare worker docs by @marvinhagemeister in #3403
- docs: update cloudflare wokers docs by @marvinhagemeister in #3405
Full Changelog: 2.0.0...2.0.1
2.0.0
To upgrade from Fresh 1.x follow this guide https://fresh.deno.dev/docs/examples/migration-guide
Major changes
- Fresh is officially a vite plugin now. This allows you to tap into the vast ecosystem of vite plugins
- HMR in islands
- Much faster rendering thanks to Deno's
precompile - Rewritten core engine to make it easy to compose middlewares or even full Fresh apps
- Built-in OpenTelemetry integration. View middleware, rendering performance and more directly in Deno Deploy
- Drastically improved cold start times due to lazily loading routes only when needed
- Fresh has moved to JSR
1.7.3
Bug Fixes
- fix: make
esbuild-deno-loaderwork with Deno 2's new cache layout by @marvinhagemeister in #2708
Full Changelog: 1.7.2...1.7.3