Reed von Redwitz and Marvin Hagemeister
b902205feb
chore: bump std to 208 and deal with deprecations ( #2081 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-28 16:35:26 +00:00
Marvin Hagemeister
9ee6ab72e0
fix: show original error page in dev ( #2074 )
2023-11-28 11:58:50 +01: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
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
Simon Lévesque
bd9c69c045
fix: typo in default error page "occured" -> "occurred" ( #879 )
2022-11-05 22:35:30 +09: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
Abdulaziz and Luca Casonato
1dc1f87fc3
refactor: use named status codes from std internally ( #417 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-07-30 15:35:31 +00: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
Ohkubo KOHEI
8aa1b250b8
fix: routes/[...path] catches requests for _frsh/refresh.js ( #130 )
2022-03-13 20:36:21 +01:00
Leo Kettmeir
67b3eb470e
feat: pass ConnInfo to various handler contexts ( #121 )
2022-03-09 19:16:08 +01:00
Bartek Iwańczuk and Luca Casonato
026ed86f40
feat: add nice error page during development ( #122 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-03-07 21:05:19 +01:00