Geoff Flarity and Asher Gomez
41a75fe1f5
chore: remove stale workaround in collect() ( #1078 )
...
The issue in question, https://github.com/denoland/deno_std/issues/1310 ,
has been marked complete. Looks like the underlying issue has been
fixed. So this just removes the comment/unnecessary code.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-27 17:44:35 +10:00
Asher Gomez
e0cb693c0f
chore(deps): update to std@0.189.0 ( #1201 )
2023-05-27 17:36:15 +10:00
Luca Casonato and Asher Gomez
f95f7586f5
fix: don't change scheme on redirect ( #1024 )
...
Fixes #1015
This scenario can happen when a user has a proxy sitting in front of
Fresh, that does TLS termination, while Fresh is running on plain text
HTTP.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-25 18:40:40 +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
Cem and Asher Gomez
114c4dbfab
dotenv option ( #740 )
...
added dotenv option to read environment variables files
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-17 09:48:39 +10:00
6feac0d2d8
fix(server): obfuscated deployment id in build id ( #1168 )
...
Co-authored-by: John Pope <88814278+innovatedev-john-pope@users.noreply.github.com >
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com >
2023-05-13 11:09:21 +02:00
Luca Casonato and John Pope
96b89d2a05
fix: cleanup pathname with multiple trailing slashes ( #1167 )
...
Co-authored-by: John Pope <88814278+innovatedev-john-pope@users.noreply.github.com >
2023-05-12 17:34:45 +02:00
hashrock
2d124aacf4
fix(dev): server stalls when clicking quickly between pages ( #1146 )
...
Close #1079
2023-05-03 21:16:50 +02:00
Marvin Hagemeister and Luca 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
Leo Kettmeir
94d3082c45
refactor: include router directly in fresh ( #1122 )
...
This PR changes from depending on https://deno.land/x/rutt to instead
include a reduced & simplified version of it.
2023-04-18 13:27:51 +02:00
Lino Le Van
7b036f0af8
chore: bump deps and update copyright year ( #1069 )
2023-03-21 18:56:30 +09:00
Sylvain Cau and Luca Casonato
7e72fa236c
refactor: remove deno.run ( #1036 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2023-03-10 04:57:16 +09:00
hashrock
f04716df5c
fix(context): handle HEAD requests ( #1034 )
2023-02-27 16:37:40 -04:00
Yoshiya Hinosawa
8daa4849cf
fix: revert "chore: bump dependencies and license year ( #986 )" ( #1047 )
2023-02-25 18:11:16 +09:00
Lino Le Van
ed66986500
chore: bump dependencies and license year ( #986 )
2023-02-24 15:06:18 +09:00
STARTRACEX and Yoshiya Hinosawa
8802336d09
docs: fix docker command ( #972 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com >
2023-01-07 19:25:24 +09:00
Roj
88171feb6d
Update rutt ( #897 )
...
- Closes #577 .
- Closes #625 .
2022-11-11 01:15:17 +09:00
Simon Lévesque
bd9c69c045
fix: typo in default error page "occured" -> "occurred" ( #879 )
2022-11-05 22:35:30 +09:00
Luca Casonato
885d71d823
fix: always use wasm content type for esbuild ( #868 )
2022-10-27 21:00:03 +02:00
hashrock
b42ca34f63
fix: proper relative url for esbuild wasm ( #852 )
2022-10-19 12:14:15 +02:00
Leo Kettmeir
fbe0340447
fix: vendor esbuild wasm ( #850 )
2022-10-18 16:13:07 +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
7a08b73afe
chore: update preact + preact-render-to-string ( #762 )
...
preact: 10.11.0
preact-render-to-string: 5.2.4
2022-09-12 14:53:32 +02:00
Luca Casonato
92213f2c04
fix: ship source maps for client code in dev mode ( #756 )
2022-09-12 13:53:53 +02:00
Luca Casonato
dc47c9387b
fix: rm trailing / in preact-rts import map entry ( #722 )
2022-09-08 12:45:21 +00:00
Luca Casonato
6c4f3a36d0
docs: add plugin docs ( #702 )
2022-09-08 11:39:45 +02:00
Flemming Miguel
2eb303041a
fix: split @preact/signals and @preact/signals-core versions ( #717 )
...
These packages are versioned separately, so they should use separate versions.
2022-09-08 09:29:20 +00:00
Mark Bennett and Luca Casonato
ba7c78bcc2
feat: experimental support for Deno.serve ( #681 )
...
The experimental support can be enabled through the
`experimentalDenoServe` option for `start()`.
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-09-07 23:04:45 +00:00
Luca Casonato
b7f0d5c860
feat: install @preact/signals by default ( #710 )
2022-09-08 01:00:05 +02:00
vwkd
995ad45735
chore: HTML meta tag charset property casing ( #704 )
...
Corrects strange casing of HTML meta tag charset property for cleaner
visual appearance.
2022-09-07 15:18:33 +02:00
Luca Casonato
01052b31aa
chore: update preact-render-to-string ( #707 )
2022-09-07 15:06:24 +02:00
Luca Casonato
b19c4bb041
feat: add update.ts script ( #706 )
...
This commit adds an update.ts tool that makes it easy to upgrade
existing Fresh projects to the latest version of Fresh. This tool
updates dependency versions in the import map, and includes some code
mods:
1. update projects from classic JSX to automatic JSX
2. update projects from legacy twind integration to twind plugin
Both of these code mods get you about 95% of the way there most of the
time. Users might still need to do some manual work to get their
projects fully updated.
2022-09-07 09:36:23 +00:00
Sourav Singh Rawat
08d43803f7
feat: add support for custom static folder in FreshOptions ( #626 )
...
Support custom (user provided) static assets folder or fallback to default behavior.
2022-09-05 12:00:47 +00:00
Luca Casonato
6077bb65b7
chore: correct code comment ( #679 )
2022-08-31 12:25:21 +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
Elias Sjögreen and Luca Casonato
6c2291f0de
chore: use x/rutt instead of crux.land/router ( #647 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-08-23 21:33:11 +00:00
Marvin Hagemeister and Luca Casonato
7e0278bbb3
feat: add support for preact devtools in dev mode ( #639 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-08-23 13:29:12 +00:00
Michael Pfister and hashrock
3431555f95
Add 404 and 500 page #446 ( #624 )
...
* Add 404 and 500 page
Co-authored-by: hashrock <hashrock@users.noreply.github.com >
2022-08-16 23:52:06 +09:00
Luca Casonato
fd4e2bbe17
feat: add initial plugin support ( #512 )
...
This commit adds initial support for fresh "plugins". These are bundles
of functionality that can be added to a fresh plugin through a simple
addition in the `main.ts` file.
Right now plugins are only able to hook into the render steps. This
means that they can inject styling and scripts. They can not yet hook
into routing.
Things that I think should be possible now:
- styling integrations for twind, unocss, and probably a few other tools
Things that are not possible yet:
- google analytics middleware
- database connectors
- CMS connectors
The routing additions to plugins can be added in a follow-up though.
2022-08-09 21:27:58 +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
Kid
bd45056893
refactor: clean up refresh script ( #601 )
2022-08-08 23:19: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
ba20756c17
chore: update deps ( #561 )
...
Update std, esbuild, and preact.
2022-07-30 17:29:29 +02:00
Ikko Ashimine
d396348625
chore: fix typo in context.ts ( #533 )
...
occured -> occurred
2022-07-30 15:10:15 +00:00
Makoto Tateno
0595f92ab8
fix: remove meta tag for IE ( #545 )
2022-07-30 15:05:10 +00:00
Manuel Trinidad
648f27aa2b
fix: typo ( #495 )
2022-07-12 15:32:55 +02:00
Gustavo Henrique
10094f8947
feat: add error message for async components ( #413 )
2022-07-06 12:45:55 +02:00