Marvin Hagemeister
226e250386
fix: middleware regressions ( #3106 )
...
Fixes some regressions found after merging
https://github.com/denoland/fresh/pull/3086
- Missing 404 middlewares when mounting sub-apps
- revert more staticFiles logic to always require the middleware like
before
2025-07-17 15:23:27 +02:00
Marvin Hagemeister
c11cf7b41a
feat: expose layouts and pages on App ( #3086 )
...
This PR extracts the functionality from the `fs_routes` plugin and
exposes it onto `App`. These are the new APIs:
- `app.layout(pattern, route)`
- `app.onError(pattern, route)`
- `app.notFound(pattern, route)`
- `app.route(pattern, route)`
This also removes the need for `.use(staticFiles())`. This line can be
safely removed.
Fixes https://github.com/denoland/fresh/issues/3040
Fixes https://github.com/denoland/fresh/issues/3033
Fixes https://github.com/denoland/fresh/issues/2591
Fixes https://github.com/denoland/fresh/issues/950
Fixes https://github.com/denoland/fresh/issues/1918
2025-07-14 19:27:48 +02:00
Marvin Hagemeister
8416078b6a
fix(core): improve island props serialization ( #3071 )
2025-06-30 16:31:58 +02:00
Tim Reichen
1cfb4bc876
refactor: make App.prototype.handler() sync ( #2906 )
2025-05-12 10:12:50 +02:00
Asher Gomez
54d18d8bca
tests: fix leaks, macOS hangs and utility cleanups ( #2897 )
...
1. Upgrades `@astral/astral`
2. Fixes test leaks
3. Fixes `@fresh/init` test hangs
4. Simplifies and cleans up test utilities
2025-05-07 10:53:42 +02:00
Luca Casonato
6b685dde9f
fix: serve internal JS from path containing build ID ( #2753 )
...
Previously imported chunks were not cached at all. They are now cached
properly with immutable cache headers.
2024-11-08 11:44:15 +01: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 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
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
19d3e452ac
fix: bring back island module preloading ( #2503 )
2024-06-05 14:41:02 +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
d613c6a6ba
fix: islands not working with basePath ( #2496 )
2024-06-05 09:02:27 +02:00
Marvin Hagemeister
9347b84cba
feat: inject process.env.NODE_ENV for third party libs ( #2481 )
2024-05-31 15:18:23 +02:00
Luca Casonato and Marvin Hagemeister
d06dad5be6
tests: don't disable all the sanitizers ( #2472 )
...
The tests also pass with them enabled for me.
---------
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2024-05-27 15:00:40 +02:00
Marvin Hagemeister
287929e4d2
major: import Fresh 2.0 code ( #2449 )
...
🎉
2024-05-24 09:40:08 +02:00