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
Marvin Hagemeister
7e6f5d55b7
chore: release 2.0.0-alpha.11 ( #2464 )
2024-05-25 00:33:46 +02:00
Marvin Hagemeister
f9545c3d63
fix: don't show error overlay on HttpError < 500 ( #2462 )
2024-05-24 23:46:21 +02:00
Marvin Hagemeister and Luca Casonato
2b1de48ff1
docs: add Fresh 2 migration guide ( #2459 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2024-05-24 21:09:51 +02:00
Marvin Hagemeister
9a7399a769
chore: disable sanitizers in esbuild tests ( #2461 )
2024-05-24 20:39:54 +02:00
Marvin Hagemeister
77dc77826e
fix: only load error overlay in development ( #2460 )
2024-05-24 20:29:59 +02:00
Marvin Hagemeister
82d027cbcd
www: fix fragment links hidden under sticky header ( #2457 )
2024-05-24 18:01:57 +02:00
Marvin Hagemeister
484d918307
www: port error pages to Fresh 2 ( #2456 )
...
Forgot to port the `_500.tsx` and `_400.tsx` error pages to Fresh 2
2024-05-24 17:31:52 +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
Marvin Hagemeister
baac482cf0
chore: remove .DS_Store ( #2448 )
2024-05-22 21:34:33 +02:00
Marvin Hagemeister
cda9bdec6f
chore: remove unused demo app ( #2442 )
2024-05-21 17:48:05 +02:00
Marvin Hagemeister
e4981d30ad
www: rework docs layout ( #2429 )
...
- Re-enable partials
- clean up layout a bit
2024-05-21 17:38:32 +02:00
Marvin Hagemeister
46f6c280ed
www: social meta tag bot detection ( #2441 )
2024-05-21 17:14:05 +02:00
Marvin Hagemeister
ec10ad59a4
www: fix home partial changing doc title ( #2432 )
...
Fixes https://github.com/denoland/fresh/issues/2431
2024-05-17 20:18:42 +02:00
Marvin Hagemeister
25d4d16a8f
www: fully remove component gallery ( #2430 )
2024-05-17 18:39:32 +02:00
Marvin Hagemeister
40181142d2
fix: ServerhandlerInfo type for newer Deno versions ( #2419 )
...
Newer Deno versions have an additional `completed` property in there.
This PR allows Fresh to be used with both old and newer Deno versions
without getting type errors.
2024-05-02 20:41:33 +02:00
Marvin Hagemeister
0e5962ce37
www: remov no build step from marketing ( #2407 )
...
We've been moving away from that for a couple of months now, so
featuring the "no build step" prominently in our marketing feels wrong.
2024-04-18 17:29:27 +02:00
Marvin Hagemeister
93fb4bd200
chore: release 1.6.8 ( #2382 )
...
🎉
2024-03-22 22:25:00 +01:00
Marvin Hagemeister
13d514dab8
chore: release 1.6.7 ( #2380 )
2024-03-21 22:49:39 +01:00
Marvin Hagemeister
9e5ea1f5e4
chore: release 1.6.6 ( #2373 )
2024-03-21 11:00:19 +01:00
Marvin Hagemeister
240252fdb4
Revert "feat: add ctx.redirect() helper ( #2358 )" ( #2372 )
...
Mostly so that it's easier to cut the next patch release for Fresh.
This reverts commit e3508c3054 .
2024-03-21 10:27:53 +01:00
Marvin Hagemeister
e3508c3054
feat: add ctx.redirect() helper ( #2358 )
...
This PR adds a `ctx.redirect(path, status)` helper that aims to reduce
the verbosity of having to manually create a `Response` obejct for a
mere redirect.
```ts
// Before
new Response(null, {
status: 307,
headers: {
Location: "/foo/bar"
},
})
// After
ctx.redirect("/foo/bar", 307)
```
If the second parameter is not passed, it will default to `302`.
2024-03-12 17:36:34 +01:00
Marvin Hagemeister
b7281792a0
chore: update deno_esbuild_loader to 0.9.0 ( #2337 )
...
Fixes https://github.com/denoland/fresh/issues/2332
2024-02-23 13:31:00 +01:00
Marvin Hagemeister
a2be1abc6b
chore: update Preact to 10.19.6 ( #2331 )
2024-02-22 10:46:41 +01:00
Marvin Hagemeister
4a175dc680
docs: disable partial nav temporarily ( #2330 )
...
We can re-enable once https://github.com/preactjs/preact/pull/4287 is
fixed.
Fixes https://github.com/denoland/fresh/issues/2322
2024-02-22 08:28:15 +01:00
Marvin Hagemeister
46eaef0181
docs: fix potential null errors ( #2324 )
2024-02-20 01:19:08 +01:00
Marvin Hagemeister
f1c17bc67e
fix: invalid quote around partial script data ( #2323 )
...
This is a little emberassing 👀
2024-02-20 01:07:51 +01:00
Marvin Hagemeister
bf0e33eda1
fix: update versions ( #2316 )
2024-02-14 22:42:33 +01:00
Marvin Hagemeister
b26a0d6c6e
fix: improve init choice design ( #2314 )
...
Before:
<img width="528" alt="Screenshot 2024-02-14 at 15 33 41"
src="https://github.com/denoland/fresh/assets/1062408/1c7093db-a509-4d42-998c-3b5282cd88d5 ">
After:
<img width="530" alt="Screenshot 2024-02-14 at 15 33 09"
src="https://github.com/denoland/fresh/assets/1062408/99e2bdeb-e0f5-4926-91e1-f972df1149c1 ">
2024-02-14 15:39:47 +01:00
Marvin Hagemeister
aeca15eeb9
fix: open redirect issue with trailing slash detection ( #2313 )
...
Passing a path like `/foo/bar` as the location header is interpreted as
a relative path. But when it contains two leading slashes like
`//evil.com/` it is interpreted as a port relative url. This has the
consequence that the origin of a URL can essentially be replaced:
```ts
new URL("//evil.com", "https://example.com/ ");
// -> 'https://evil.com/ '
```
Our trailing slash detection logic didn't guard against this case. By
normalizing the pathname of the URL and stripping sibling forward
slashes we sidestep this problem.
2024-02-14 15:25:16 +01:00
Marvin Hagemeister
5268aaa6a5
chore: simplify deno check:types command ( #2259 )
2024-01-16 15:41:20 +01:00
Marvin Hagemeister
3d30930d73
chore: release 1.6.3 ( #2257 )
2024-01-15 19:43:28 +01:00