Commit Graph
21 Commits
Author SHA1 Message Date
Reed von Redwitz deeccd7e25 feat: add example of define.middleware to init (#2534)
The documentation for `MiddlewareFn` is out of date, because it
references a nonexistent `defineMiddleware` function. It's been updated
to reference the correct `define.middleware` function.

Additionally, I included an example of using this in the init project. I
also complicated the usage of `app.get` so that the function actually
uses the context. To make it clear to users of fresh 1 that this can be
equivalent to a file-based-route, I've included such a route as well.

The two new examples in `maini.ts` should make it much more clear to
fresh 1 users how the new system can work.
2024-06-23 22:46:04 +02:00
Reed von Redwitz 5a7184ad99 fix: ensure deno task check passes in initialized projects (#2529)
There were two issues with initialized projects:
1. not every file was formatted properly
2. linting wasn't passing when using `verbatim-module-syntax`. This
isn't enabled right now, due to it not having the `recommended` tag, but
it seems like a good idea. Actually initializing a project with this can
be done in a separate PR.
2024-06-23 17:44:07 +02:00
Marvin Hagemeister b0b1a306c5 chore: release alpha 16 (#2511) 2024-06-08 09:07:32 +02:00
Marvin Hagemeister d6cabce71d chore: release alpha 15 (#2507) 2024-06-08 08:14:59 +02:00
Marvin Hagemeister 0ceab6b8a9 feat: init projects with jsx precompile (#2506) 2024-06-08 08:07:18 +02:00
Marvin Hagemeister fe26b8e2ff chore: don't rely on jsr version in init test (#2509) 2024-06-08 08:05:33 +02:00
Luca Casonato c3ec742a65 feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
2024-06-05 14:51:35 +02:00
Marvin Hagemeister f09130cebf fix: add init background gradient (#2502) 2024-06-05 14:00:57 +02:00
Marvin Hagemeister f69d393eae fix(init): update init complete text (#2499)
Related: https://github.com/denoland/fresh/issues/2197
2024-06-05 10:11:17 +02:00
Marvin Hagemeister 0928ecbe11 chore: release alpha 14 (#2493) 2024-06-04 18:27:43 +02:00
Marvin Hagemeister bcfb4e34c1 fix: wrong type in init files (#2492) 2024-06-04 18:26:44 +02:00
Marvin Hagemeister 339ee98ea3 chore: release alpha (#2491) 2024-06-04 18:09:49 +02:00
Marvin Hagemeister b0b4bf1efd chore: add release script (#2490) 2024-06-04 18:01:32 +02:00
Marvin Hagemeister cbbcca63f6 chore: release another alpha (#2485) 2024-06-03 17:31:47 +02:00
Luca Casonato aa19b393e7 feat: export compat types from /compat export (#2478) 2024-06-03 14:32:38 +00:00
Marvin Hagemeister 2fb8606e9e fix: path handling inconsistencies (#2482) 2024-06-03 15:03:48 +02:00
Marvin Hagemeister 7e6f5d55b7 chore: release 2.0.0-alpha.11 (#2464) 2024-05-25 00:33:46 +02:00
Luca Casonato 584e5716c3 fix: init script (#2458) 2024-05-24 20:29:31 +02:00
Luca Casonato c9f0ccdce7 feat: rename helpers to define (#2453) 2024-05-24 11:48:32 +02:00
Marvin Hagemeister c57d0ccb2f chore: another v2 alpha release (#2452) 2024-05-24 09:59:01 +02:00
Marvin Hagemeister 287929e4d2 major: import Fresh 2.0 code (#2449)
🎉
2024-05-24 09:40:08 +02:00