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
e007597ff3
feat: remove MODE global ( #2483 )
2024-06-03 16:54:37 +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
8d85945da6
fix: remove Data from FreshContext ( #2473 )
...
This is now only on `PageProps`.
2024-05-31 13:50:28 +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
77dc77826e
fix: only load error overlay in development ( #2460 )
2024-05-24 20:29:59 +02:00
Marvin Hagemeister
287929e4d2
major: import Fresh 2.0 code ( #2449 )
...
🎉
2024-05-24 09:40:08 +02:00
Reed von Redwitz
a83765efaa
fix: no-window lint error ( #2272 )
...
Latest PR runs are failing with linting errors, e.g.
https://github.com/denoland/fresh/actions/runs/7625625084/job/20770308634?pr=2266
Maybe this shouldn't be happening like this right now, but we'll still
need to clean these up eventually.
2024-01-23 21:51:38 +01:00
Marvin Hagemeister
9f81806c6e
fix: __FRSH_STATE potentially being overwritten by user code ( #2256 )
...
As outlined in https://github.com/denoland/fresh/issues/2254 it was
possible to overwrite the script tag that is used by Fresh to pass
island props from the server to the client. This could be done by
injecting raw HTML via `dangerouslySetInnerHTML` and simply using the
same id that Fresh was using.
With this PR we generate a unique id per render that cannot be guessed
anymore. It's composed of `__FRSH_STATE_<uuid>`
2024-01-15 19:41:12 +01:00
Luca Casonato
8583394481
fix: prototype pollution in deserializer ( #2255 )
...
This is not exploitable in practice unless a user maliciously crafts
serialized values in __FRSH_STATE, because `serializer()` never outputs
serialized representation that would be vulnerable to prototype
pollution. But hey, defense in depth.
2024-01-15 18:03:59 +00:00
Igor Brasileiro
e7bf6aca62
fix: Prevent update doc title from partial if not present ( #2244 )
...
fixes #2243
2024-01-12 18:47:40 +01:00
Marvin Hagemeister
d2e9ee99a2
fix: browser url not updated with form partials ( #2236 )
...
Fixes https://github.com/denoland/fresh/issues/2173
2024-01-10 15:36:30 +01:00
Marvin Hagemeister
3410470d5e
fix: ensure previous ws connection is closed in dev ( #2154 )
2023-12-07 11:17:23 +01:00
Marvin Hagemeister
325850719a
feat: reduce number of island bundles ( #2082 )
2023-11-28 17:23:27 +01:00
Marvin Hagemeister
9ee6ab72e0
fix: show original error page in dev ( #2074 )
2023-11-28 11:58:50 +01:00
Marvin Hagemeister
a56ea283c8
fix: Partials not working on error pages ( #2072 )
2023-11-27 16:56:46 +01:00
Marvin Hagemeister
27adeb7b14
fix: redirects with partials ( #2053 )
2023-11-21 11:35:08 +01:00
Marvin Hagemeister
4fa0a637f0
chore: refactor dev client ( #2002 )
2023-11-06 10:31:51 +01:00
Reed von Redwitz
ded71a934f
docs: add jsdoc for IS_BROWSER ( #1991 )
2023-10-31 18:49:18 +01:00
Tiago Gimenes
84ff79beca
feat: Nested partials support ( #1955 )
2023-10-18 18:26:46 +02:00
Marvin Hagemeister
b984da9113
fix: browser not reloaded when no island present ( #1956 )
2023-10-18 11:16:51 +02:00
Marvin Hagemeister
bfabb2ec98
feat: add support for partials on forms ( #1930 )
2023-10-16 22:45:11 +02:00
Marvin Hagemeister
bbedea5377
fix: dev client script being loaded twice ( #1944 )
2023-10-16 09:47:56 +02:00
Marvin Hagemeister
86a96eeee4
fix: switch to websockets for development server ( #1943 )
2023-10-16 07:44:27 +02:00
Marvin Hagemeister
0192316785
fix: unable to opt out of nested client nav ( #1940 )
2023-10-15 08:41:13 +02:00
Marvin Hagemeister
7d954584a6
fix: island marker parsed as key marker ( #1922 )
2023-10-12 13:40:23 +02:00
Marvin Hagemeister
78b0b05fc3
fix: make active + ancestor links accessible ( #1915 )
2023-10-11 17:29:07 +02:00
Marvin Hagemeister
a1f0d4a5bd
fix: don't scroll on fragment links in partials ( #1906 )
2023-10-11 10:30:31 +02:00
Tiago Gimenes
15f869715c
fix: Partial state deserialization on simple islands ( #1873 )
2023-10-07 23:08:04 +02:00
Tiago Gimenes
2df5921b59
feat: Use href instead of origin on Partial ( #1870 )
2023-10-07 23:07:42 +02:00
Marvin Hagemeister
e9717ed911
fix: meta charSet -> charset ( #1875 )
2023-10-06 15:59:13 +02:00
Marvin Hagemeister
6598eb39a0
feat: support f-partial on buttons ( #1867 )
2023-10-05 13:53:51 +02:00
Marvin Hagemeister
51d00d20e0
fix: duplicate partial head tags ( #1864 )
2023-10-05 12:23:44 +02:00
Marvin Hagemeister
b3a3bd1069
feat: add support for partial <head> merging ( #1863 )
2023-10-05 12:04:38 +02:00
Marvin Hagemeister
fd235e877c
feat: only enable partials when attribute is set ( #1861 )
2023-10-05 10:47:37 +02:00
Marvin Hagemeister
add696faeb
feat: support scroll restoration for partials ( #1858 )
2023-10-05 10:00:56 +02:00
Marvin Hagemeister
9018024b7e
feat: collect partials deeply from response ( #1860 )
2023-10-04 22:33:27 +02:00
Marvin Hagemeister
be1c15f8f3
fix: throw error when no partials found ( #1853 )
2023-10-04 15:38:43 +02:00
Marvin Hagemeister
ea91687ea3
fix: active links outside partials not updated ( #1852 )
2023-10-04 15:07:27 +02:00
Marvin Hagemeister
f2467229cc
fix: use consistent partial attribute naming ( #1847 )
2023-10-04 12:35:29 +02:00
Marvin Hagemeister
4295dbe85d
feat: mark active or ancestor links ( #1840 )
2023-10-02 18:22:44 +02:00
Marvin Hagemeister
d638c526f5
fix: partial hash navigation causing loop ( #1838 )
2023-10-02 16:24:09 +02:00
Marvin Hagemeister
453cf0704e
fix: docs islands not hydrated on safari 12 ( #1837 )
2023-10-02 10:26:16 +02:00
Marvin Hagemeister
665d35bbc2
Add Partials ( #1824 )
2023-09-27 13:34:30 +02:00
Marvin Hagemeister
78606477ec
fix: show marker confusion ( #1823 )
2023-09-26 11:54:36 +02:00
Marvin Hagemeister
5a47ffaf59
fix: conditional island children not rendered ( #1822 )
2023-09-26 08:48:26 +02:00
Marvin Hagemeister
738a51ad52
chore: make it easier to debug markers ( #1805 )
2023-09-21 03:07:31 +02:00
Marvin Hagemeister
63c90ddc67
fix: wrong type for html boolean attrs ( #1731 )
2023-09-05 01:00:33 +02:00
Marvin Hagemeister and Asher Gomez
11077227b5
feat: support conditional island JSX children ( #1355 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-08-08 11:35:28 +02:00