Benjamin Geets and Luca Casonato
ef25682725
feat: allow lang configuration ( #288 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-06-26 13:37:18 +02:00
Luca Casonato
74387ff92b
fix: don't reload multiple times on restart ( #283 )
2022-06-24 14:50:00 +02:00
Luca Casonato
6cb2ebf7d4
chore: check minimum Deno version for init.ts ( #282 )
2022-06-24 13:55:18 +02:00
Carter Snook
53082f8052
chore: typo in doc comment ( #268 )
2022-06-22 12:03:04 +02:00
Luca Casonato
da340daeb2
BREAKING: move a bunch of types into server/ ( #263 )
...
Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
2022-06-21 15:21:07 +02:00
Luca Casonato
ff5684df67
feat: add twind auto-setup to init.ts ( #261 )
...
This adds options to `init.ts` to automatically set up `twind` a new
project.
2022-06-20 17:43:12 +02: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
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
836cc24bdd
feat: remove fresh cli, do manifest generation in process ( #223 )
...
This commit removes the `fresh` cli, replacing it with a small bootstrap script,
and JIT generation of the manifest that happens in process during development.
2022-06-14 09:39:38 +02:00
rethab
4f2b761aa9
fix: quotes in joke example ( #231 )
2022-06-13 23:50:28 +00:00
Luca Casonato
4bb07f4bce
fix: throw on invalid island components ( #224 )
...
Previously island components that didn't have a default export were
just silently ignored.
2022-06-08 11:51:20 +02:00
Sylvain Cau and Luca Casonato
afafb7c938
fix: reviving multiple islands on one page ( #197 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-06-07 15:02:48 +02:00
Luca Casonato
458fe2ca3c
fix: update browser targets
...
The minimum browser targets are updated to Chrome 99, Firefox 99, and
Safari 15.
2022-06-02 20:24:46 +02:00
Luca Casonato
c299d7b6a4
fix: fresh manifest --watch reliability ( #210 )
...
Cache invalidation in the new `fresh manifest --watch` was not correct, making the command unreliable.
2022-05-23 17:54:53 +00: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
fd1346ed6b
fix: ignore .git directory in init empty check ( #208 )
2022-05-23 16:57:09 +02:00
Luca Casonato
dd59a05eca
tests: more robust type checking in CI ( #207 )
2022-05-23 16:05:41 +02:00
Luca Casonato
fd6724c050
chore: rename *_deps.ts -> deps.*.ts ( #206 )
...
As per David's suggestion.
2022-05-23 16:05:33 +02:00
Luca Casonato
f9f0125282
chore: rename PageConfig to RouteConfig ( #202 )
2022-05-23 15:52:29 +02:00
Luca Casonato
0fa001f1b6
fix: directory not empty message
2022-05-23 15:52:05 +02:00
Luca Casonato
b897746b6d
feat: add fresh manifest --watch ( #201 )
2022-05-20 17:37:03 +02:00
Sylvain Cau
e8b1e229b3
feat: automatically apply asset caching to img src and srcset ( #184 )
2022-05-19 19:19:59 +02:00
Luca Casonato
c1a9d53b18
fix: improved etag handling in static files ( #198 )
2022-05-19 19:05:07 +02:00
Luca Casonato
637a0463b6
fix: update esbuild-wasm version
2022-05-17 01:48:05 +02:00
Luca Casonato
20ce3c6c2b
chore: update esbuild to v0.14.39 ( #194 )
2022-05-17 01:20:07 +02:00
Luca Casonato
cf438a7879
refactor: asset caching via query param ( #192 )
...
This updates the asset caching to use a cache busting query string,
rather than a totally separate path. This makes it safer to apply
caching automatically to things like `<img>` tags, as the path does not
change anymore.
2022-05-16 17:39:22 +00:00
Sylvain Cau
0e2c58578d
feat: add static folder and logo.svg to fresh init ( #189 )
...
This makes it easier to discover fresh's support for simple static file handling.
2022-05-16 02:17:33 +02:00
Chris Knight
ec388f87fb
fix: update start task with no-check ( #179 )
...
The default task `start` fails to run as a remote dependency has a type issue. This provides a poor experience to first time users who may struggle to understand why the default example doesn't work. This issue is resolved by adding the `--no-check` flag to the deno run command.
2022-05-13 21:59:06 +02:00
Marc Espín
c1e376a362
fix: remove conflicting global definition of URLPattern ( #183 )
2022-05-09 12:22:20 +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
hashrock
9bb0366bed
fix: use unpkg.com URL for esbuild.wasm ( #158 )
2022-04-23 20:00:20 +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
ʀᴀʏ
bb9fa4a09f
feat: allow render function to be asynchronous ( #142 )
2022-04-23 15:17:00 +02:00
Yongwook Choi
49d2e54335
feat: add deno task config in fresh init bootstrapped projects ( #143 )
2022-04-23 15:16:31 +02:00
iccee0
bfd5bd3e9f
fix: allow bypassing empty dir check in fresh init ( #146 )
2022-04-23 15:15:53 +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
Luca Casonato
f1e6d6b567
feat: shebang in main.ts generated by fresh init ( #137 )
2022-03-18 10:42:56 +01:00
Sylvain Cau
6cbcc27646
feat: add support for static asset caching ( #133 )
2022-03-16 16:49:47 +01: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
Luca Casonato
e57e9c48f1
chore: improve manifest generator ( #125 )
...
Make the manifest generator output nicer:
- routes are sorted
- manifest is sent through `deno fmt`
2022-03-08 00:24:10 +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
Tyler Brostrom
837d2a7f5e
chore: remove unused runtimeJS option ( #120 )
2022-03-07 00:14:32 +01:00
Leo Kettmeir
adfdec548a
refactor: HandlerContext.match to HandlerContext.params ( #118 )
2022-03-06 20:27:02 +01:00
Leo Kettmeir
cf48eafa9a
BREAKING refactor: detach request from handler context ( #114 )
2022-03-06 18:25:50 +01:00
Luca Matei Pintilie
623e4b7605
chore: update dependencies ( #112 )
2022-03-06 13:33:18 +01:00
Luca Casonato
72115506b1
refactor: remove marker comments on hydration ( #110 )
2022-03-06 03:44:47 +01:00
Luca Casonato
09f35796b5
chore: fix fresh init ( #105 )
...
This commit fixes an import in one of the files generated by
`fresh init`.
2022-03-05 14:41:23 +01:00
Luca Casonato
fc25d2dfbf
refactor: don't inline script if there are no islands ( #101 )
2022-03-05 01:44:35 +01:00