1.3.0
What's Changed
Read the release announcement here: https://deno.com/blog/fresh-1.3
Features
- feat: Allow passing props to
renderNotFound
method by @kamilogorek in #1310 - feat: improve starter template design by @marvinhagemeister in #1320
- feat: serialize bigints for islands by @lino-levan in #1317
- feat(init): make project name as default header title by @huai-jie in #1275
- feat: don't require connInfo in request handler by @lucacasonato in #1278
- feat(starter): add 404 page template by @marvinhagemeister in #1336
- feat: state in props by @deer in #1264
- feat(starter): always initialize _app.tsx by @deer in #1380
- feat(server): multiple island exports by @deer in #1397
- feat: make vscode-deno default formatter by @marvinhagemeister in #1431
- feat(init.ts): enable lint rules for fresh apps by @uki00a in #1434
- feat: support Preact error boundaries by @marvinhagemeister in #1442
- feat(server): middleware params by @deer in #1314
- feat: prevent duplicate routes when generating manifest by @deer in #1410
- feat: move to Deno.serve by @lino-levan in #1427
- feat: support async route components by @marvinhagemeister in #1388
- feat(server): plugins can add middlewares and routes by @deer in #1455
- feat: add
fresh
lint preset on update by @marvinhagemeister in #1459 - feat: improve Hero responsiveness by @TheYuriG in #1468
- feat: add upgrade check by @marvinhagemeister in #1444
Fixes
- fix: remove duplicated esbuild imports by @lucacasonato in #1302
- fix: incorrect coloring in ansi256 terminals by @marvinhagemeister in #1323
- fix: Oldest Deno version should change to 1.31.0 by @benebsiny in #1333
- fix:
update.ts
fails when there is no islands directory by @arrow2nd in #1327 - fix: signals not serialized with newer versions by @marvinhagemeister in #1348
- fix: update script supports deno.jsonc files by @deer in #1349
- fix: update script broken when using src dir by @deer in #1353
- fix: conditional sibling islands DOM order by @marvinhagemeister in #1324
- fix: Use custom 500 page for all handlers if there is one present by @kamilogorek in #1362
- fix: terminal color glitches by @marvinhagemeister in #1377
- fix(server): properly sanitize island names by @deer in #1393
- fix: manifest file encoding non-latin chars by @marvinhagemeister in #1433
- fix(server): middleware order incorrect by @deer in #1280
- fix: trailingSlash option by @lino-levan in #1426
- fix: twind including unused CSS rules by @marvinhagemeister in #1415
- fix: init banner not colored in ansi256 terminals by @marvinhagemeister in #1456
Docs
- fix(www): incorrect
changing-the-src-dir
path onexamples
docs page by @huai-jie in #1299 - docs: fix
Signal
type typo by @iuioiua in #1304 - docs: add "initializing the server" example by @deer in #1292
- docs: add "Using Fresh canary version" example by @deer in #1306
- www: fix copy button by @lucacasonato in #1312
- docs: Export missing Plugin types and fix
PluginAsyncRenderContext
links by @kamilogorek in #1319 - fix: Exclude Twitter/Slack bots from root page redirects by @kamilogorek in #1318
- docs(examples): Using twind v1 + fix syntax highlighting in language by @lino-levan in #1271
- docs: add "Contributing" section by @iuioiua in #1233
- docs: add section about "Middleware Destination" feature by @deer in #1343
- fix link by @digitaldesigndj in #1352
- docs: add "Dealing with CORS" example by @deer in #1347
- ref: Make default error page container flexible to fit all content by @kamilogorek in #1356
- docs: add "Creating a CRUD API" example by @deer in #1361
- docs: add "Handling complex routes" example by @deer in #1365
- docs: add "Rendering markdown" example by @deer in #1307
- docs: add "Sharing state between islands" example by @deer in #1311
- www: landing page redesign by @marvinhagemeister in #1279
- chore(www): use View Transitions API by @ayame113 in #1399
- feat(docs): convert toc to .ts by @deer in #1381
- www: add versioning to docs by @marvinhagemeister in #1400
- docs: add "Server Components" concept page by @deer in #1390
- docs(examples): add an example on how to use
deno_kv_oauth
by @mbhrznr in #1328 - www: update docs design by @marvinhagemeister in #1423
- www: hopefully fix agolia search exceptions by @marvinhagemeister in #1402
- www: fix spelling error on homepage by @brianknight10 in #1469
- Fix a typographical error and additionally improve grammar within the main page. by @wsb1994 in #1470
- www: add docs for async route components by @marvinhagemeister in #1475
Refactors
- chore: simplify folder tests by @marvinhagemeister in #1337
- chore: add index layout to island tests by @marvinhagemeister in #1340
- chore: remove stray console.log in tests by @marvinhagemeister in #1351
- fix(test): cli_test now retries to move files by @deer in #1372
- Add: Refactor code on raw file to improve readability by @lausuarez02 in #1368
- fix: update import map to satisfy vs code by @deer in #1382
- Add: Add a string type to know that our function will return a string by @lausuarez02 in #1370
- chore: extract
withPageName
util by @marvinhagemeister in #1389 - chore(docs): cleanup miscellaneous items by @deer in #1419
- chore: bump dependencies by @lino-levan in #1428
- docs: fix file locations in comments of crud api by @deer in #1438
- refactor: optional directory check by @marvinhagemeister in #1435
- chore: add test for middleware error handling by @deer in #1453
- chore: make test more timing resilient by @marvinhagemeister in #1473
Showcase
- add uspb.deno.dev by @jneeee in #1332
- add showcase by @arrudaricardo in #1325
- showcase: add Battleship by @karelklima in #1354
- fix(showcase): reorder to have blank entry at the bottom by @deer in #1383
- adding Kanji.Academy to fresh showcase by @silvercrow in #1411
New Contributors
- @benebsiny made their first contribution in #1333
- @jneeee made their first contribution in #1332
- @arrudaricardo made their first contribution in #1325
- @aushwin made their first contribution in #1360
- @lausuarez02 made their first contribution in #1368
- @mbhrznr made their first contribution in #1328
- @TheYuriG made their first contribution in #1468
- @brianknight10 made their first contribution in #1469
- @wsb1994 made their first contribution in #1470
Full Changelog: 1.2.0...1.3.0