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
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
Asher Gomez
149509995e
fix(init): define working directory in check task for init script ( #2852 )
...
~~This fixes CI for current PRs until
https://github.com/denoland/deno/pull/28655 is added to Deno 2.3.0.~~
This fixes CI until https://github.com/denoland/deno/issues/28923 is
fixed. Then, we can use `Deno.makeTempDir()` and not have to use
`tmp_*/`.
2025-04-22 13:17:05 +02:00
Tim Reichen
4e6bed87a1
fix: wrong button type in submit test cases ( #2836 )
...
https://github.com/denoland/fresh/pull/2833 breaks some tests where the
button must be of type `submit` rather than `button`. This PR fixes
this.
2025-03-05 23:27:29 +01:00
Tim Reichen
0a634bd2d2
chore: fix lint errors ( #2833 )
...
This PR fixes current lint errors thrown by `deno lint`.
2025-03-05 12:31:25 +01:00
Luca Casonato
65d61bd1d5
feat: add open telemetry instrumentation ( #2786 )
...
This commit adds some useful automatic instrumentation for when users
are using `--unstable-otel`:
- Fresh renames the span for incoming HTTP requests to `$METHOD $ROUTE`
and the `http.route` attribute is added.
- Fresh creates a span around FS route handlers, showing whether they
returned a response or data.
- Fresh creates a span around async components, showing how long they
took to execute.
- Fresh adds a span around preact rendering, showing how long rendering
takes.
- Fresh adds a span around static file serving, showing how long it took
and whether there were requests without a cache bust key.
We can improve this in the future with more telemetry, such as metrics.
2024-12-10 15:03:50 +01: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
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 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
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
003f2bbb5f
fix: incorrect partial url on backwards navigation ( #2510 )
2024-06-08 09:01:12 +02:00
Adam Gregory
8c5e2b00c9
fix: Include submitter data in partial form data ( #2307 )
...
Fixes #2306
2024-06-06 19:02:49 +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
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
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
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
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