Marvin Hagemeister
567df19f3d
feat: de-duplicate <Head> children by key ( #1793 )
2023-09-18 22:06:56 +02:00
Marvin Hagemeister
f9f3cd82ee
feat: error if stateful hook is used outside of islands ( #1778 )
2023-09-18 16:25:37 +02:00
Marvin Hagemeister
6d9afd62ab
feat: add nonce for inline scripts ( #1772 )
2023-09-14 09:39:53 +02:00
e01ef2d8a0
feat(dev): Ignore common test files in routes and islands ( #1039 )
...
Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com >
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-09-11 16:05:55 +02:00
Michael Herzner
8a0d0dc452
feat: add support for optional dynamic route params ( #1706 )
2023-09-07 14:28:44 +02:00
Marvin Hagemeister
63c90ddc67
fix: wrong type for html boolean attrs ( #1731 )
2023-09-05 01:00:33 +02:00
Marvin Hagemeister
f67ec8520f
fix: render state not unique per render ( #1638 )
2023-08-16 16:30:16 +02:00
Christian Svensson
7d4c751105
fix: add missing state property to interface ( #1579 )
2023-08-08 14:15:53 +02:00
Marvin Hagemeister
97c6876bf7
feat: co-locate islands + non-route files ( #1600 )
2023-08-07 20:33:08 +02:00
Reed von Redwitz
630f0a2322
fix(server): make AppProps generic ( #1449 )
2023-08-04 12:05:15 +02:00
Marvin Hagemeister
e4d797ae4e
feat: add support for route groups ( #1563 )
2023-08-02 09:51:20 +02:00
Lino Le Van
5ba19abe13
fix: typos ( #1526 )
2023-07-26 13:09:42 +00:00
Marvin Hagemeister
71c0434f46
fix: allow string based event handlers in SSR ( #1515 )
2023-07-25 15:32:58 +02:00
Marvin Hagemeister
a5822a8754
fix: parse multiple route params in same part ( #1518 )
2023-07-25 11:17:40 +02:00
Marvin Hagemeister
3c0657caa8
fix: duplicate references for same signals ( #1503 )
2023-07-24 09:37:05 +00:00
Marvin Hagemeister
38d4b90091
fix: middleware state reset between middlewares ( #1500 )
2023-07-24 11:03:11 +02:00
Reed von Redwitz
46ae49d654
chore: add test for middleware error handling ( #1453 )
2023-07-12 10:12:43 +02:00
Reed von Redwitz
d4c2258eb6
fix(server): middleware order incorrect ( #1280 )
2023-07-10 15:19:52 +02:00
Reed von Redwitz
724c81f2c7
feat(server): middleware params ( #1314 )
2023-07-10 15:06:43 +02:00
Marvin Hagemeister
1d6e15ba36
fix: manifest file encoding non-latin chars ( #1433 )
2023-07-10 14:13:01 +02:00
Marvin Hagemeister
17811dd593
feat: support Preact error boundaries ( #1442 )
2023-07-10 13:02:45 +02:00
Reed von Redwitz
a3f7c212f4
feat(server): multiple island exports ( #1397 )
2023-07-03 09:59:38 +02:00
Marvin Hagemeister
16be99e69b
fix: change MultiHandler back to Handlers ( #1396 )
2023-07-03 09:57:46 +02:00
Reed von Redwitz and Lino Le Van
eb53d53ab8
fix(server): properly sanitize island names ( #1393 )
...
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com >
2023-07-03 02:08:47 +02:00
Reed von Redwitz
0db3a0911a
feat: pass middleware state in props ( #1264 )
2023-06-28 14:53:42 +02:00
Aushwin
851f8d60aa
refactor: changed Handlers type to MultiHandler ( #1360 )
2023-06-28 12:52:48 +00:00
Kamil Ogórek
d5a8692b78
feat: Allow passing props to renderNotFound method ( #1310 )
2023-06-16 17:12:01 +02:00
Asher Gomez
8fa4141e06
refactor: replace useState() with useSignal() ( #1234 )
2023-06-02 06:43:01 +10:00
Leo Kettmeir
060e2bb50d
feat: add status and headers overwrite for HandlerContext.render ( #725 )
2023-05-31 10:09:53 +02:00
Asher Gomez
b5532aeb69
feat: island sub-directories ( #1185 )
2023-05-31 05:29:56 +10:00
azerum
1a456444e4
add test case covering islands that return null ( #1203 )
...
Just a small addition to my previous PR. It wasn't obvious for me that
PR #1172 also fixed #1129 . I guess that issue should be covered by a
separate test
2023-05-25 09:40:49 +10:00
Kamil Ogórek and Asher Gomez
e86a126c0a
feat(server): Allow for custom HEAD method implementations ( #1175 )
...
Fixes https://github.com/denoland/fresh/issues/1115
Fixes https://github.com/denoland/fresh/issues/1165
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-25 08:55:09 +10:00
azerum and Asher Gomez
7d23ed5984
fix: conditionally rendered element under fragment in island does not render ( #1172 )
...
This might be fixing #502 , but I am not sure. All tests pass. I've added
additional test cases for comments from #502
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-23 12:24:05 +10:00
Leo Kettmeir
9dd026e0f5
feat: add middleware destination ( #1123 )
...
Closes #521
2023-04-20 13:14:12 +02:00
OkadaGenya
9d13f6ff26
fix: sanitize <script> in __FRSH_STATE state ( #739 )
...
This commit escapes `<` `>` and related characters in the serialized state that is encoded into the `<script id=__FRSH_STATE>` tag. This prevents XSS attack occuring through injection of a `</script>` string in island props.
2022-09-12 17:33:02 +02:00
Luca Casonato
b12867a582
feat: support JSX automatic mode ( #610 )
...
This commit adds support for JSX automatic mode instead of the default
mode that requires the presence of the JSX pragma in each file.
This commit also adds the config file to the `fresh.gen.ts` manifest,
which is used to determine if the client emit should use automatic mode.
The minimum Deno version has also been bumped to 1.25.0.
2022-08-26 11:03:00 +02:00
ahuigo
a00b97bac9
feat: support multiple middlewares with the same matcher ( #553 )
2022-08-23 23:50:57 +02:00
Steven Yung and Luca Casonato
49092ed83a
feat: add ctx.renderNotFound() to explicitly render 404 template ( #481 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-08-09 19:23:17 +00:00
Stephen Delaney
a7b198fdf4
feat: support kebab-case filenames for islands ( #404 )
2022-07-06 12:42:25 +02:00
Luca Casonato
aab8ceb78b
fix: layered middleware not working for index page ( #407 )
...
This commit fixes layered middleware not being invoked for the the index
page of the layer.
For example: routes/api/_middleware.ts was not being invoked for /api,
only /api/foobar
2022-07-04 15:13:49 +00:00
Sylvain Cau
6bca35be0f
tests: ensure asset mapping works correctly in islands client side ( #245 )
2022-06-22 12:02:51 +02:00
Luca Casonato
da340daeb2
BREAKING: move a bunch of types into server/ ( #263 )
...
Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
2022-06-21 15:21:07 +02:00
Luca Casonato
70d1838cad
BREAKING: make render fn an option on start ( #260 )
...
This commit removes the `_render.{tj}s{x}?` file in favor of a `render` option on the `start` call in `main.ts`.
2022-06-20 13:40:23 +02:00
Luca Casonato
cbbf616a74
chore: version preact explicitly in import map ( #258 )
...
This allows users to control the `preact` version independently of fresh
itself.
2022-06-20 12:37:24 +02:00
Sylvain Cau and Luca Casonato
afafb7c938
fix: reviving multiple islands on one page ( #197 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-06-07 15:02:48 +02:00
Luca Casonato
80598d07fd
feat: use import maps instead of deps files ( #209 )
...
This commit updates fresh to use import maps instead of deps files in generated projects.
2022-05-23 19:35:15 +02:00
Luca Casonato
fd6724c050
chore: rename *_deps.ts -> deps.*.ts ( #206 )
...
As per David's suggestion.
2022-05-23 16:05:33 +02:00
Luca Casonato
f9f0125282
chore: rename PageConfig to RouteConfig ( #202 )
2022-05-23 15:52:29 +02:00
Sylvain Cau
e8b1e229b3
feat: automatically apply asset caching to img src and srcset ( #184 )
2022-05-19 19:19:59 +02:00
Sylvain Cau and Luca Casonato
8d4e77f4ac
feat: layered and scoped middleware and context state ( #139 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-04-23 22:07:40 +02:00