Marvin Hagemeister
bc89844ea7
fix: don't store codeframe on error object ( #1898 )
2023-10-10 15:03:22 +02:00
Marvin Hagemeister
4044b5be78
fix: codeframe not visible with custom _500.tsx ( #1869 )
2023-10-05 16:29:22 +02:00
Marvin Hagemeister
3604c224ce
fix: code frame not showing up in dev mode ( #1814 )
2023-09-24 11:26:47 +02:00
Marvin Hagemeister
0c37b5f9b9
feat: add build.target option ( #1798 )
2023-09-20 11:05:46 +02:00
Marvin Hagemeister
3fd8fe89d3
feat: add build.outDir option ( #1797 )
2023-09-20 10:40:09 +02:00
Marvin Hagemeister
3850131063
chore: speed up tests ( #1791 )
...
This PR speeds up tests by handling custom created `Requests` object
directly instead of binding a socket and making a real HTTP request. For
most tests this is fine, and for those that aren't the existing testing
methods are all preserved.
2023-09-18 18:44:22 +02:00
Marvin Hagemeister
d94d3db4aa
feat: improve default error visualization ( #1780 )
...
Adds code frame to errors if possible:
<img width="1095" alt="Screenshot 2023-09-15 at 11 33 46"
src="https://github.com/denoland/fresh/assets/1062408/7f4a5378-d00f-4550-b995-37a77f96ce0c ">
Default error page in dev mode:
<img width="937" alt="Screenshot 2023-09-15 at 11 30 59"
src="https://github.com/denoland/fresh/assets/1062408/130172f4-beed-4d8c-b2b5-0e23be0b8f84 ">
Default error page in prod mode:
<img width="939" alt="Screenshot 2023-09-15 at 11 31 23"
src="https://github.com/denoland/fresh/assets/1062408/4ef58b83-b5f4-45cb-bc3f-1c8c4e5b6357 ">
2023-09-18 17:37:48 +02:00
Marvin Hagemeister
112d701e5c
fix: only enable dev things in dev mode ( #1789 )
2023-09-18 15:07:42 +02:00
Tomofumi Chiba and Marvin Hagemeister
ec2f785455
fix: plugins not loaded with legacy dev ( #1764 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-09-13 16:09:50 +02:00
jia wei
42dc54500c
fix: incorrect snapshot path with non-standard src directory ( #1768 )
2023-09-13 13:36:05 +02:00
Michael Herzner
8a0d0dc452
feat: add support for optional dynamic route params ( #1706 )
2023-09-07 14:28:44 +02:00
Marvin Hagemeister
b1a02108c5
fix: dev command loading snapshot ( #1735 )
2023-09-05 12:34:05 +02:00
Marvin Hagemeister
ac5e4c5ca1
fix: main index not found in group ( #1710 )
2023-09-05 12:16:19 +02:00
Marvin Hagemeister
c767cc5067
fix: stream static files from disk ( #1734 )
2023-09-05 12:12:10 +02:00
Reed von Redwitz
4a4af1f915
fix(server): sanitize brackets from island names ( #1723 )
2023-09-01 15:58:15 +02:00
Reed von Redwitz
03df5f7306
fix(server): pass context into 500 handlers ( #1720 )
2023-09-01 15:56:47 +02:00
Marvin Hagemeister
efcaa2dee2
fix: build id mismatch between CI + deploy ( #1681 )
2023-08-28 12:49:49 +02:00
Marvin Hagemeister
477364c567
feat: prebundle code + restore from snapshot ( #1604 )
2023-08-16 16:47:51 +02:00
Marvin Hagemeister
f67ec8520f
fix: render state not unique per render ( #1638 )
2023-08-16 16:30:16 +02:00
Marvin Hagemeister and Reed von Redwitz
b2362da281
www: Various documentation improvements ( #1635 )
...
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com >
2023-08-16 16:24:53 +02:00
Marvin Hagemeister
6436a43dce
fix: rename layout config options ( #1619 )
2023-08-14 15:47:36 +02:00
Marvin Hagemeister and Asher Gomez
ba67d895ce
feat: support async app template ( #1626 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-08-14 14:52:48 +02:00
Marvin Hagemeister
7ebaf0404d
feat: allow layout and _app overrides ( #1611 )
2023-08-09 16:35:53 +00:00
Marvin Hagemeister
97c6876bf7
feat: co-locate islands + non-route files ( #1600 )
2023-08-07 20:33:08 +02:00
Reed von Redwitz
cc0e2cb2ec
chore(server): simplify plugin route creation ( #1594 )
2023-08-05 21:58:15 +02:00
Marvin Hagemeister
e4d797ae4e
feat: add support for route groups ( #1563 )
2023-08-02 09:51:20 +02:00
Marvin Hagemeister
df5931e105
Revert: feat(server): add safety checks during dev ( #1567 )
2023-08-01 18:10:30 +02:00
Marvin Hagemeister
d51ccdcf50
refactor: pre-sort all routes ( #1562 )
2023-08-01 13:06:35 +02:00
Marvin Hagemeister
e2c9e9a2b0
chore: simplify route creation logic ( #1561 )
2023-08-01 13:02:58 +02:00
Reed von Redwitz
21c72abecc
fix(server): merge competing PluginMiddleware handlers together ( #1545 )
2023-07-31 13:56:38 +00: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
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
a5822a8754
fix: parse multiple route params in same part ( #1518 )
2023-07-25 11:17:40 +02: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
Roj
d1e78095be
www: consistently spell Fresh ( #1504 )
2023-07-22 13:02:31 +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
Lino Le Van
c32f0cf9ce
fix: trailingSlash option ( #1426 )
2023-07-11 14:42:29 +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
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
Kamil Ogórek
aff31c0f15
fix: Use custom 500 page for *all* handlers if present ( #1362 )
2023-06-27 11:05:05 +02:00
Luca Casonato
29966ad8bb
feat: don't require connInfo in request handler ( #1278 )
2023-06-18 21:39:11 +02:00
Reed von Redwitz
f5f8928c89
feat(server): trailing slash configuration ( #1291 )
2023-06-15 19:01:07 +02:00