Marvin Hagemeister
f2ea4055df
fix: init banner not colored in ansi256 terminals ( #1456 )
...
This basically uses the same fix as #1377 and #1323 for the init script.
Before:
<img width="505" alt="Screenshot 2023-07-12 at 22 18 29"
src="https://github.com/denoland/fresh/assets/1062408/e77c3110-d3e2-479e-8381-c67c39e216fa ">
After:
<img width="446" alt="Screenshot 2023-07-12 at 22 18 38"
src="https://github.com/denoland/fresh/assets/1062408/debda939-bdce-4890-8dfb-265a4e1b8328 ">
2023-07-13 00:56:36 +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
292b4c2d6f
chore: bump dependencies ( #1428 )
2023-07-08 22:47:12 +02:00
Luca Casonato
29966ad8bb
feat: don't require connInfo in request handler ( #1278 )
2023-06-18 21:39:11 +02:00
Luca Casonato
1753ee8620
fix: remove duplicated esbuild imports ( #1302 )
...
This somehow snuck in during the src/build/ refactor.
2023-06-16 01:06:49 +02:00
Marvin Hagemeister
36d56a9878
feat(server): pick free port if none specified ( #1274 )
2023-06-12 13:18:52 +02:00
Asher Gomez and Luca 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 Van and Asher 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
8fc117d000
chore: upgrade to esbuild_deno_loader@0.7.0 ( #1228 )
2023-05-31 09:04:38 +00:00
Luca Casonato and Asher Gomez
87b087e358
fix: __FRSH_BUILD_ID is not defined ( #1207 )
...
This could happen if the runtime/utils.ts coe was loaded
prior to server/constants.ts, because they had some shared state on
`globalThis`.
I have mitigated this by not relying on global state anymore.
Fixes #1191
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-05-30 10:46:44 +10:00
Asher Gomez
e0cb693c0f
chore(deps): update to std@0.189.0 ( #1201 )
2023-05-27 17:36:15 +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
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
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
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
Roj
88171feb6d
Update rutt ( #897 )
...
- Closes #577 .
- Closes #625 .
2022-11-11 01:15:17 +09: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
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
Luca Casonato
cbbf616a74
chore: version preact explicitly in import map ( #258 )
...
This allows users to control the `preact` version independently of fresh
itself.
2022-06-20 12:37:24 +02:00
Luca Casonato
80598d07fd
feat: use import maps instead of deps files ( #209 )
...
This commit updates fresh to use import maps instead of deps files in generated projects.
2022-05-23 19:35:15 +02:00
Luca Casonato
20ce3c6c2b
chore: update esbuild to v0.14.39 ( #194 )
2022-05-17 01:20:07 +02:00
Luca Casonato
98a3658452
chore: update router to 0.0.11 ( #149 )
2022-04-23 23:27:48 +02:00
Sylvain Cau and Luca Casonato
8d4e77f4ac
feat: layered and scoped middleware and context state ( #139 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-04-23 22:07:40 +02:00
Elias Sjögreen and Luca Casonato
34dc19a2f9
feat: support specifying hostname and port in start ( #150 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-04-23 15:24:29 +02:00
Tyler Brostrom and Luca Casonato
4e1d4231f7
chore: update esbuild ( #151 )
...
Update esbuild to 14.34, and remove esbuild-wasm from vendored depedencies.
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-04-23 15:01:45 +02:00
Leo Kettmeir
67b3eb470e
feat: pass ConnInfo to various handler contexts ( #121 )
2022-03-09 19:16:08 +01:00
Luca Matei Pintilie
623e4b7605
chore: update dependencies ( #112 )
2022-03-06 13:33:18 +01:00
Luca Casonato
546223767b
chore: update esbuild ( #99 )
2022-03-05 01:22:18 +01:00
Luca Casonato
8daa280862
feat: a new "island" based architechture ( #97 )
2022-03-04 19:49:27 +01:00
Leo K
f0b96b80c8
chore: update router to 0.0.5 ( #69 )
2021-10-21 22:58:09 +02:00
Luca Casonato
75afa6daca
feat: add static file support ( #58 )
...
This commit adds support for serving static files. Static can be placed
into the `/static` directory (as a sibling of the `/pages` directory).
2021-09-25 13:37:46 +02:00
Luca Casonato
aeaddb1eaa
chore: use esm.sh + optionally use native esbuild ( #52 )
...
`preact` and `preact-render-to-string` are now imported from esm.sh.
Additionally, the native binary build of esbuild will now be used in
deno cli to speed up bundle times.
2021-09-25 02:28:43 +02:00
Luca Casonato
a929b1022a
switch back to x.lcas.dev ( #49 )
2021-09-01 13:16:03 +02:00
Luca Casonato
3bce2fb8d3
feat: deployctl is not needed anymore ( #45 )
...
Deno Deploy now supports Deno.listen and Deno.serveHttp.
2021-07-30 14:09:04 +02:00
Luca Casonato
8d2935aef3
chore: update deps ( #42 )
...
This commit updates dependencies. Preact is now pulled from esm.sh.
2021-07-20 12:52:25 +02:00
Leo K
ae1e311eb8
feat(server): allow single method API routes ( #24 )
2021-06-10 23:26:16 +02:00
Leo K
a48da64dc3
feat: change to denosaurs router ( #20 )
2021-06-03 11:11:04 +02:00
Luca Casonato
31dbd99bea
chore: improve bundling + refactor router ( #10 )
...
This commit changes how bundling works, by bundling all routes at once.
Static JS assets are now cached immutably.
Additionally this PR completly refactors how the router works to make it
more modular. This allows users to opt out of the default oak server,
and instead create their own.
2021-06-01 23:19:33 +02:00
Luca Casonato
cfb99ef326
readme
2021-05-08 12:51:44 +02:00
Luca Casonato
303f4fd140
update esbuild_deno_loader
2021-05-08 03:07:15 +02:00
Luca Casonato
423f349f47
even more other esbuild
2021-05-08 02:59:23 +02:00
Luca Casonato
c807d07e25
more other esbuild
2021-05-08 02:50:04 +02:00
Luca Casonato
26be0bedb0
more other esbuild
2021-05-08 02:48:09 +02:00
Luca Casonato
96e69d2458
monotonic performance.now
2021-05-08 02:35:30 +02:00
Luca Casonato
0dfb6f9040
perf
2021-05-08 02:29:55 +02:00
Luca Casonato
207296c023
polyfill globalThis.performance
2021-05-08 02:22:53 +02:00
Luca Casonato
bd6cb85903
more other esbuild
2021-05-08 02:18:55 +02:00