Reed von Redwitz
21c72abecc
fix(server): merge competing PluginMiddleware handlers together ( #1545 )
2023-07-31 13:56:38 +00:00
Reed von Redwitz
80fece0d3c
fix(ci): type error in dev_checks fixture ( #1550 )
2023-07-31 15:23:36 +02:00
Reed von Redwitz
1ad29e256b
fix(server): Improve MiddlewareHandler type for plugins ( #1534 )
2023-07-31 11:50:29 +02:00
Michael Herzner and Reed von Redwitz
a7fe9d04f1
feat(server): add safety checks during dev ( #1489 )
...
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com >
2023-07-31 11:48:26 +02:00
Reed von Redwitz
6fc885ecc5
chore: clean up remaining type errors in project ( #1537 )
2023-07-28 10:45:45 +02:00
Lino Le Van
5ba19abe13
fix: typos ( #1526 )
2023-07-26 13:09:42 +00:00
Michael Gearhardt and Marvin Hagemeister
1ed93cec88
feat: support route layouts via _layout.tsx ( #1506 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-26 11:49:08 +02: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
e18a608515
fix: Only show update message if current < latest ( #1499 )
2023-07-24 13:21:34 +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
Marvin Hagemeister
5d07e6e9eb
fix: island rendered outside of bounding markers ( #1495 )
2023-07-21 17:05:05 +02:00
Marvin Hagemeister
3ab35a44f9
fix: current version not updated in update check ( #1482 )
2023-07-21 13:02:16 +02:00
jviide and Marvin Hagemeister
ab45c5c42c
fix: generate one Content-Security-Policy nonce per render ( #1480 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-20 11:56:09 +02:00
Marvin Hagemeister
0fc6850d87
chore: make test more timing resilient ( #1473 )
2023-07-18 12:41:36 +02:00
Marvin Hagemeister
f12c96ed45
feat: add upgrade check ( #1444 )
2023-07-17 15:49:47 +02:00
50db296fb7
feat(server): plugins can add middlewares and routes ( #1455 )
...
Co-authored-by: RoeHH <git@roeh.ch >
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-13 11:26:07 +02:00
Marvin Hagemeister
62a5613a46
feat: support async route components ( #1388 )
2023-07-12 21:09:56 +02:00
Lino Le Van and Marvin 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
Marvin Hagemeister
0d141b7153
fix: twind including unused CSS rules ( #1415 )
2023-07-11 23:45:03 +02:00
Lino Le Van
c32f0cf9ce
fix: trailingSlash option ( #1426 )
2023-07-11 14:42:29 +02:00
Reed von Redwitz
9177d9afc3
feat: prevent duplicate routes when generating manifest ( #1410 )
2023-07-11 14:39:48 +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
Lino Le Van
292b4c2d6f
chore: bump dependencies ( #1428 )
2023-07-08 22:47:12 +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
Marvin Hagemeister
ced2215446
chore: extract withPageName util ( #1389 )
2023-07-02 13:14:53 +02:00
Reed von Redwitz
70e9c556c3
feat(starter): always initialize _app.tsx ( #1380 )
2023-07-01 12:59:10 +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
Reed von Redwitz
a30c6bdf5c
fix(test): cli_test now retries to move files ( #1372 )
2023-06-28 14:47:26 +02:00
Kamil Ogórek
aff31c0f15
fix: Use custom 500 page for *all* handlers if present ( #1362 )
2023-06-27 11:05:05 +02:00
Marvin Hagemeister
2b92b1c526
fix: conditional sibling islands DOM order ( #1324 )
2023-06-26 13:57:05 +02:00
Reed von Redwitz
ae984924e5
fix: update script broken when using src dir ( #1353 )
...
closes https://github.com/denoland/fresh/issues/1338
This is more complex than first expected. It turns out the head of main
no longer has this error, because we started swallowing errors in
https://github.com/denoland/fresh/pull/1327 . I'm not sure this is the
right implementation. It seems like we should explicitly check for the
`islands` folder instead of ignoring errors. But the obvious approach
(https://deno.land/std@0.192.0/fs/mod.ts?s=exists ) is apparently
forbidden, due to some sort of nonsense with race conditions. Well, not
being able to find `islands` because it doesn't exist at all is
definitely different than it being buried in a source directory, so
we'll need to sort this out at some point.
I suppose that's now some technical debt to deal with, and not related
to this issue. The latest "error" when running `update` and using a
source directory is the following:
```
deno run -A -r file:///Users/reed/code/fresh/update.ts .
The manifest has been generated for 0 routes and 0 islands.
```
i.e. it just doesn't do anything. (To be fair, it does generate a
`fresh.gen.ts` in the incorrect location, so I suppose it does
_something_.)
But of course this isn't what we want. So we'll hunt for a source
directory, as defined by the precense of `main.ts`.
The fix for this is relatively straightforward. The test implements the
user's actions, i.e. init a project, move things, and then try to
update.
2023-06-24 13:28:05 +02:00
Marvin Hagemeister
124c597112
chore: remove stray console.log in tests ( #1351 )
2023-06-23 13:41:31 +00:00
Reed von Redwitz
03dbbd4f8e
fix: update script supports deno.jsonc files ( #1349 )
2023-06-23 14:26:22 +02:00
Marvin Hagemeister
76d838cf10
chore: add index layout to island tests ( #1340 )
2023-06-22 16:23:05 +02:00
arrow2nd
ab461cd71d
fix: update.ts fails when there is no islands directory ( #1327 )
2023-06-21 19:11:50 +02:00
Marvin Hagemeister
3a83c5974d
chore: simplify folder tests ( #1337 )
2023-06-21 14:02:25 +02:00
Marvin Hagemeister
87b15885aa
feat(starter): add 404 page template ( #1336 )
2023-06-21 11:01:48 +02:00
Luca Casonato
29966ad8bb
feat: don't require connInfo in request handler ( #1278 )
2023-06-18 21:39:11 +02:00
Marvin Hagemeister
ea6a74237d
feat: improve starter template design ( #1320 )
2023-06-17 20:31:08 +02:00
Kamil Ogórek
d5a8692b78
feat: Allow passing props to renderNotFound method ( #1310 )
2023-06-16 17:12:01 +02:00