Marvin Hagemeister
613c19221f
docs: fix dark mode info background ( #2991 )
2025-05-22 11:52:33 +02:00
Marvin Hagemeister
dbb76623a4
Revert "feat: update the tailwind plugin to suuport tailwindv4 #2819 ( #2903 )" ( #2988 )
...
Reverts tailwind v4 update. Something is wrong with the CSS files on
fresh.deno.dev 😢
2025-05-21 16:07:51 +02:00
Marvin Hagemeister
d5a2afd7ac
fix(update): Update tasks + lock in deno.json ( #2987 )
...
Noticed that we don't update these.
2025-05-21 15:23:41 +02:00
Marvin Hagemeister
750ab35499
fix: add back LayoutConfig ( #2982 )
...
~~Makes it easier to upgrade from 1.x .~~
Initially, I assumed it would be just an alias to `RouteConfig`, but
upon closer inspection that has some additional properties that make no
sense for a layout.
2025-05-21 13:44:09 +02:00
Marvin Hagemeister
e595d35c44
docs: simplify introduction content ( #2978 )
...
The original text is a bit wordy. This shortens the introduction content
a bit in our docs.
2025-05-21 11:32:50 +02:00
Marvin Hagemeister
3900aa70d4
chore: release alpha 34 ( #2967 )
2025-05-16 21:36:12 +02:00
Marvin Hagemeister
6ff0becd0a
fix: duplicate @preact/signals version ( #2964 )
...
We initialized new projects with `@preact/signals@2.x` but Fresh itself
was using `1.x`. There shall only ever be one version.
Kinda makes me wish Deno had some sort of `peerDependencies`.
Fixes https://github.com/denoland/fresh/issues/2962
2025-05-16 21:23:53 +02:00
Marvin Hagemeister
fa5aac5233
chore: fix formatting error in Deno 2.3.3 ( #2965 )
...
Upstream bug: https://github.com/denoland/deno/issues/29337
2025-05-16 21:09:34 +02:00
Marvin Hagemeister
4a8dea14ac
www: link banner to Fresh 2 blog post ( #2958 )
...
Fixes https://github.com/denoland/fresh/issues/2957
2025-05-16 15:25:02 +02:00
Marvin Hagemeister
e996b5e2fe
feat(core): support exclude option for transformers ( #2960 )
...
This PR adds general support for an `exclude` option to file
transformers. This allows plugin to skip processing excluded files. The
exclude array can be a `string`, a `RegExp` or a glob pattern.
Fixes https://github.com/denoland/fresh/issues/2937
2025-05-16 15:17:43 +02:00
Marvin Hagemeister
63cb208f8b
fix(core): support method handler on _error, _404 and _500 routes ( #2955 )
...
This PR adds support for using method handlers in `_error`, `_404` and
`_500` files.
Fixes https://github.com/denoland/fresh/issues/2953
2025-05-15 17:15:30 +02:00
Marvin Hagemeister
f8d390e2c3
chore: release alpha 33 ( #2949 )
2025-05-14 23:25:08 +02:00
Marvin Hagemeister
ffd7cdd0bd
fix(init): fetch favicon from network like before ( #2948 )
...
Reverts back to fetching the favicon from the network. Copying assets
from JSR turns out to be difficult.
Fixes https://github.com/denoland/fresh/issues/2941
2025-05-14 23:20:42 +02:00
Marvin Hagemeister
638a98b106
chore: release alpha 32 ( #2947 )
2025-05-14 23:05:22 +02:00
Marvin Hagemeister
1957fd0ff6
fix(init): must use urls for asset copying ( #2946 )
...
Second attempt to fix https://github.com/denoland/fresh/pull/2943 .
Turns out that `import.meta.dirname` is `undefined` when served from
JSR. I'm not able to reproduce that error locally though.
Fixes https://github.com/denoland/fresh/pull/2943
2025-05-14 22:59:02 +02:00
Marvin Hagemeister
74d5c0f98f
chore: release alpha.31 ( #2945 )
2025-05-14 22:50:25 +02:00
Marvin Hagemeister
36442d0ded
fix(core): silence esbuild jsx comment warning ( #2944 )
...
JSR is a bit over-eager with inserting JSX comments and inserts both
`@jsx classic` and `@jsxImportSource` which are ignored in combination
Fixes https://github.com/denoland/fresh/issues/2942
2025-05-14 22:45:04 +02:00
Marvin Hagemeister
2306be1188
chore: add coverage/ to gitignore ( #2940 )
...
When running `deno test --coverage` Deno will create a `coverage/`
directory by default. We were missing that in our gitignore.
2025-05-14 22:38:26 +02:00
Marvin Hagemeister
4fc1a2b92e
fix(init): include favicon.ico in init package ( #2943 )
...
Fixes a regression introduced by
https://github.com/denoland/fresh/pull/2867
Fixes https://github.com/denoland/fresh/issues/2941
2025-05-14 22:38:10 +02:00
Marvin Hagemeister
c3095f38c4
chore: release 2.0.0-alpha.30 ( #2939 )
2025-05-14 10:55:47 +02:00
Marvin Hagemeister
fcd94809c8
fix(esbuild): disable spammy warning for monaco editor ( #2928 )
...
It's a super spammy warning message when you're using the monaco editor.
They have code like that as the result of minifcation.
Fixes https://github.com/denoland/fresh/issues/2775
2025-05-13 00:13:21 +02:00
Marvin Hagemeister
d2da471d67
fix(partial): form dialog method not supported ( #2927 )
...
The `<form>` method value `dialog` does no network request, so we should
ignore it for partials.
Fixes https://github.com/denoland/fresh/issues/2885
2025-05-12 21:19:19 +02:00
Marvin Hagemeister
95b82f5281
chore: don't spam test output with "Listening on..." ( #2926 )
...
Follow up to https://github.com/denoland/fresh/pull/2897
2025-05-12 20:34:14 +02:00
Marvin Hagemeister
24ad244a79
fix: error when no Response instance is returned ( #2924 )
...
Fixes https://github.com/denoland/fresh/issues/1494
2025-05-12 20:30:45 +02:00
Marvin Hagemeister
a49fc3796f
chore: ignore check fmt on canary ( #2925 )
...
Ignore checking formatting on canary as the formatting might be
different from stable releases of Deno.
2025-05-12 20:30:17 +02:00
Marvin Hagemeister
09705b9b7f
fix: bigint key values erroring ( #2923 )
...
Fixes https://github.com/denoland/fresh/issues/2802
2025-05-12 19:49:13 +02:00
Marvin Hagemeister
f9bfecab8e
fix(builder): css hash incorrectly transforming data urls ( #2921 )
...
Fixes https://github.com/denoland/fresh/issues/2599
2025-05-12 09:40:35 +02:00
Marvin Hagemeister
f49a3f1d99
docs: fix main dark bg ( #2826 )
2025-02-17 11:12:55 +01:00
Marvin Hagemeister
d7c9ce9bc5
docs: fix dark mode background flash ( #2825 )
...
Fixes
https://github.com/denoland/fresh/issues/2823#issuecomment-2661711235
2025-02-17 10:43:59 +01:00
Marvin Hagemeister
65c05b2127
2.0.0-alpha.29 ( #2812 )
2025-01-16 22:43:40 +01:00
Marvin Hagemeister
f245471ddf
fix: route middleware order with groups ( #2811 )
...
This is a follow-up fix to https://github.com/denoland/fresh/pull/2792
The original fix skipped over route groups which lead to them being
mixed with non-grouped routes. This in turn confused the middleware
processing part when building the final routes.
2025-01-16 21:57:42 +01:00
Marvin Hagemeister
c7c341b695
2.0.0-alpha.28 ( #2810 )
2025-01-16 14:24:07 +01:00
Marvin Hagemeister
70d6cbd1e5
fix(router): exclude route groups in scoring for sorting ( #2792 )
...
This PR fixes an issue in the route sorting logic when comparing a route
segment with a group vs a segment without one.
- `/(app)/[org]/[app]/index.ts`
- `/auth/login.ts`
When determing the order of these two routes we need to skip over the
`(app)` group to the next non-group segment. This ensures that we are
only scoring actual segments with each other and non-existing ones.
2024-12-16 14:14:52 +01:00
Marvin Hagemeister
bf45e8652a
chore: release alpha.23 ( #2728 )
2024-10-22 14:01:21 +02:00
Marvin Hagemeister
e303b873a6
chore: release 2.0.0-alpha.22 ( #2685 )
2024-10-04 10:32:02 +02:00
Marvin Hagemeister
21c6152185
chore: update 1.x versions ( #2684 )
2024-10-04 08:30:34 +02:00
Marvin Hagemeister
a596a04258
fix: SVG in links breaking partials ( #2681 )
...
Fixes https://github.com/denoland/fresh/issues/2239
2024-10-04 08:08:18 +02:00
Marvin Hagemeister
5f657478aa
fix: middleware default export ignored ( #2680 )
...
Fixes https://github.com/denoland/fresh/issues/2657
2024-10-04 06:56:52 +02:00
Marvin Hagemeister
73b0398d24
fix: f-client-nav={false} not working inside island ( #2677 )
...
See https://github.com/denoland/fresh/issues/2658
2024-10-04 05:44:19 +02:00
Marvin Hagemeister
ea3df041c1
Fix: prepare URLPattern spec change ( #2676 )
...
Fixes https://github.com/denoland/fresh/issues/2627
2024-10-04 05:15:43 +02:00
Marvin Hagemeister
bc55b36d3c
chore: remove lighhouse CI step ( #2675 )
...
Never used this and it's easier to just check the lighthouse scores in
the browser.
2024-10-04 05:06:39 +02:00
Marvin Hagemeister
75b5854810
fix: nested children slots erroring ( #2674 )
...
Fixes https://github.com/denoland/fresh/issues/2624
2024-10-04 05:05:27 +02:00
Marvin Hagemeister
ad8291447a
chore: update versions ( #2672 )
...
Fixes
https://github.com/denoland/fresh/issues/2633#issuecomment-2349454555
2024-10-02 17:32:00 +02:00
Marvin Hagemeister
1081aa2eb9
fix: docs markdown smartypants ( #2671 )
...
This was a regression introduced in
https://github.com/denoland/fresh/pull/2655
Fixes https://github.com/denoland/fresh/issues/2670
2024-10-02 11:43:47 +02:00
Marvin Hagemeister
e0f65319cd
chore: add license fields ( #2666 )
2024-09-30 18:45:51 +02:00
Marvin Hagemeister
39dbee5497
chore: release 2.0.0-alpha.21 ( #2665 )
2024-09-30 18:38:41 +02:00
Marvin Hagemeister and Luca Casonato
de8f1b0c59
feat: update for Deno 2 ( #2655 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2024-09-30 18:30:30 +02:00
Marvin Hagemeister
06bb42689c
fix: typo ( #2647 )
2024-09-09 09:03:49 +02:00
Marvin Hagemeister
f2fc3f13da
fix: process global warning ( #2643 )
2024-09-06 13:08:18 +02:00
Marvin Hagemeister
85c44d6460
chore: release alpha 20 ( #2618 )
2024-08-13 14:20:59 +02:00
Marvin Hagemeister
ca02bfeba1
docs: Update deno version ( #2604 )
...
Fixes https://github.com/denoland/fresh/issues/2603
2024-07-18 13:54:50 +02:00
Marvin Hagemeister
b510113655
fix: include middlewares and layouts for error pages ( #2598 )
...
Fixes https://github.com/denoland/fresh/issues/2594
2024-07-16 10:53:38 +02:00
Marvin Hagemeister
599efd7350
docs: Add note about opting out of partials ( #2572 )
2024-07-03 11:44:30 +02:00
Marvin Hagemeister
76af4114b7
chore: release alpha 19 ( #2571 )
2024-07-03 11:30:37 +02:00
Marvin Hagemeister
e33915b34b
fix: remove lock option from init as it's the default ( #2570 )
2024-07-03 11:25:31 +02:00
Marvin Hagemeister
6be6435467
fix: missing dom root frag polyfill after preact update ( #2569 )
2024-07-03 10:39:33 +02:00
Marvin Hagemeister
79a262b344
fix: GET partial form submit ignoring multiple checkbox values ( #2568 )
...
Fixes https://github.com/denoland/fresh/issues/2567
2024-07-02 22:24:48 +02:00
Marvin Hagemeister
76a823eae2
chore: release new examples ( #2557 )
2024-06-28 16:17:32 +02:00
Marvin Hagemeister
8699586e63
fix: add explicit return types to examples ( #2556 )
2024-06-28 16:07:39 +02:00
Marvin Hagemeister
9fe48d4e74
feat: add @fresh/examples package ( #2555 )
...
This can be used to showcase remote islands, combining apps and other
things.
2024-06-28 15:58:56 +02:00
Marvin Hagemeister
138d4c457c
fix: remove unnecessary URL allocation ( #2554 )
2024-06-27 12:34:56 +02:00
Marvin Hagemeister
bfb5753ecb
chore: release alpha 18 ( #2553 )
2024-06-27 11:59:36 +02:00
Marvin Hagemeister
becd440d77
fix: error bundling JSR islands ( #2552 )
2024-06-26 16:55:26 +02:00
Marvin Hagemeister
fc820e8965
feat: add error messages for missing build cache ( #2551 )
2024-06-26 15:33:25 +02:00
Marvin Hagemeister
28eca25a42
fix: add vendor/ to gitignore by default ( #2550 )
2024-06-26 14:30:45 +02:00
Marvin Hagemeister
fa22c60a4e
chore: release 2.0.0-alpha.17 ( #2549 )
2024-06-26 11:29:54 +02:00
Marvin Hagemeister
a79e797245
chore: remove $std alias ( #2548 )
2024-06-26 11:21:11 +02:00
Marvin Hagemeister
72811da29b
fix: etag caching HTTP headers ( #2504 )
2024-06-25 10:21:43 +02:00
Marvin Hagemeister
0f6b4f624f
chore: remove debug trace logs ( #2545 )
2024-06-25 10:08:48 +02:00
Marvin Hagemeister
49839079a4
Fix: static file processed twice if outdir inside static dir ( #2543 )
...
Fixes https://github.com/denoland/fresh/issues/2541
2024-06-24 18:13:28 +02:00
Marvin Hagemeister
b0b1a306c5
chore: release alpha 16 ( #2511 )
2024-06-08 09:07:32 +02:00
Marvin Hagemeister
003f2bbb5f
fix: incorrect partial url on backwards navigation ( #2510 )
2024-06-08 09:01:12 +02:00
Marvin Hagemeister
d6cabce71d
chore: release alpha 15 ( #2507 )
2024-06-08 08:14:59 +02:00
Marvin Hagemeister
97e2b54b4e
chore: add back lockfile ( #2508 )
2024-06-08 08:09:39 +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
Marvin Hagemeister
19d3e452ac
fix: bring back island module preloading ( #2503 )
2024-06-05 14:41:02 +02:00
Marvin Hagemeister
f09130cebf
fix: add init background gradient ( #2502 )
2024-06-05 14:00:57 +02:00
Marvin Hagemeister
7eb9a9b5ff
chore: improve release script ( #2501 )
2024-06-05 13:24:15 +02:00
Marvin Hagemeister
3fe988893d
fix: don't show "fresh ready" log in prod ( #2500 )
2024-06-05 10:21:12 +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
2b88f4bf56
fix: falsy f-* attributes not preserved inside island ( #2498 )
...
Fixes https://github.com/denoland/fresh/issues/2359
2024-06-05 10:06:53 +02:00
Marvin Hagemeister
fba3f2b845
fix: partial form redirect not working ( #2497 )
...
Fixes https://github.com/denoland/fresh/issues/2404
2024-06-05 09:42:27 +02:00
Marvin Hagemeister
d613c6a6ba
fix: islands not working with basePath ( #2496 )
2024-06-05 09:02:27 +02:00
Marvin Hagemeister
f8b60ddd15
fix: wrong url after partial form submission ( #2495 )
...
Fixes https://github.com/denoland/fresh/issues/2409
2024-06-05 08:30:28 +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
049bb49c07
chore: fix type error ( #2486 )
...
We only checking types in CI in `src/` + `tests/`. This PR adds the
other folders.
2024-06-03 17:46:42 +02:00
Marvin Hagemeister
cbbcca63f6
chore: release another alpha ( #2485 )
2024-06-03 17:31:47 +02:00
Marvin Hagemeister
848834e6a7
chore: add test for island updater ( #2484 )
2024-06-03 17:25:41 +02:00
Marvin Hagemeister
e007597ff3
feat: remove MODE global ( #2483 )
2024-06-03 16:54:37 +02:00
Marvin Hagemeister
2fb8606e9e
fix: path handling inconsistencies ( #2482 )
2024-06-03 15:03:48 +02:00
Marvin Hagemeister
9347b84cba
feat: inject process.env.NODE_ENV for third party libs ( #2481 )
2024-05-31 15:18:23 +02:00
Marvin Hagemeister
88c3671a09
fix: error handling in fs routes ( #2474 )
...
Ran into an issue where we weren't responding with the correct status
code and passed response headers. This was a bit of a rabbit hole and it
was caused by us wrapping to more error handling middlewares than
necessary.
2024-05-31 14:27:36 +02:00
Marvin Hagemeister
bd60444f7c
fix: only generate stack on HttpError if status >= 500 ( #2470 )
2024-05-27 14:34:36 +02:00
Marvin Hagemeister
8865d290ce
www: switch to precompile jsx ( #2469 )
2024-05-25 13:31:12 +02:00
Marvin Hagemeister
5dd854341c
www: add back trailing slash handling ( #2467 )
...
In Fresh 2 trailing slash handling isn't applied automatically anymore
and I forgot to do that when merging the Fresh 2 code base.
While we're at it, I've added a section for that to our migration guide.
2024-05-25 12:11:13 +02:00
Marvin Hagemeister
da858d0b34
www: improve error page design ( #2463 )
...
<img width="978" alt="Screenshot 2024-05-24 at 23 46 38"
src="https://github.com/denoland/fresh/assets/1062408/3ec2bdc5-e5fb-41f3-827e-7fd791569673 ">
2024-05-25 08:14:17 +02:00