Commit Graph
107 Commits
Author SHA1 Message Date
Asher Gomez 6ddef91d95 refactor: replace references of options with config (#1903) 2023-10-11 09:25:03 +02:00
Asher Gomez 6ce39b8cee refactor: use manifest variable name (#1902)
Previously, the `routes` variable name was used. This change makes more
sense as the variable has the `Manifest` type.
2023-10-11 10:03:08 +11:00
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
Marvin Hagemeister 86f92114d8 feat: Support setting <html> in _app template (#1617) 2023-08-11 18:40:20 +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 5d2c8b6b3c feat(server): support https (#1599) 2023-08-06 11:56:40 +00: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
Roj 16453b4dc9 style: fix remaining inconsistencies (#1505) 2023-07-22 14:09:25 +02:00
Lino Le VanandMarvin Hagemeister e2a1bf8643 feat: move to Deno.serve (#1427)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-07-12 14:37:53 +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 RedwitzandLino 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
Marvin Hagemeister 5724b73e71 fix(ssr): invalid HTML comment tags (#1260) 2023-06-09 11:21:36 +02:00
Asher GomezandLuca Casonato 1b6678951a feat: support embedded import map in deno.json (#1188)
One can now inline the `imports` and `scopes` from the import map directly into deno.json.

For new projects, `import_map.json` is not generated anymore.

Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-06-03 10:46:40 +02:00
Lino Le VanandAsher Gomez 736c5524d5 chore: upgrade preact to 10.15.1 and std to 0.190.0 (#1237)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-03 10:04:23 +10:00
Asher Gomez 02dec2f483 chore: upgrade preact-render-to-string to 6.0.3 (#1236) 2023-06-02 16:24:14 +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
7f3fd51cca Optimise images size (#1101)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: Jheyson Saavedra <hello@jheysaav.me>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-25 19:45:01 +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órekandAsher 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
azerumandAsher 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
Asher Gomez 8db73e0485 refactor: disable lock (#1186) 2023-05-18 21:20:48 +10:00
Marvin HagemeisterandLuca Casonato c224db7cb7 chore: update for deno 1.33.x (#1139)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-04-30 10:30:30 +02:00
Leo Kettmeir 9dd026e0f5 feat: add middleware destination (#1123)
Closes #521
2023-04-20 13:14:12 +02:00
hashrock 673c161aee test: island with wasm-esbuild (#1082) 2023-03-21 19:55:59 +09:00
Lino Le Van 7b036f0af8 chore: bump deps and update copyright year (#1069) 2023-03-21 18:56:30 +09: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