Commit Graph
36 Commits
Author SHA1 Message Date
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
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
Luca Casonato 92213f2c04 fix: ship source maps for client code in dev mode (#756) 2022-09-12 13:53:53 +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
Marvin HagemeisterandLuca 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
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
Luca Casonato ba20756c17 chore: update deps (#561)
Update std, esbuild, and preact.
2022-07-30 17:29:29 +02:00
Manuel Trinidad 648f27aa2b fix: typo (#495) 2022-07-12 15:32:55 +02:00
Kazuma Ohashi ace9b47a71 chore: fix typo in source code (#365) 2022-07-04 13:42:30 +00: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 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 637a0463b6 fix: update esbuild-wasm version 2022-05-17 01:48:05 +02:00
hashrock 9bb0366bed fix: use unpkg.com URL for esbuild.wasm (#158) 2022-04-23 20:00:20 +02:00
Sylvain Cau 6cbcc27646 feat: add support for static asset caching (#133) 2022-03-16 16:49:47 +01:00
Luca Casonato 546223767b chore: update esbuild (#99) 2022-03-05 01:22:18 +01:00
Luca Casonato 4970663721 refactor: improved reviving of islands (#100) 2022-03-05 01:20:54 +01:00
Luca Casonato 8daa280862 feat: a new "island" based architechture (#97) 2022-03-04 19:49:27 +01:00
Sylvain Cau 044da54513 fix: runtimeJS support on windows (#64) 2021-09-28 18:36:41 +02:00
Luca Casonato f5b3faf0d8 BREAKING: merge API routes and pages concept (#53)
This commit merges API routes and pages into a single concept. The
pages/api folder is now not special anymore.
2021-09-25 10:49:53 +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 8e83a032d9 feat: --config is not needed anymore (#48)
This commit removes the need for users to specify a --config file. TS
libs are now configured via `/// <reference>` directives, and the JSX
transform is specified via the `/** @jsx h */` pragma.

The future is configless!
2021-08-08 11:11:34 +02:00
Luca Casonato ae4603c731 feat: transform for latest-2 browser releases (#34) 2021-06-12 20:56:01 +02:00
Luca Casonato 18feea9c45 feat: elide __FRSH_PROPS for no data or params (#33)
Minor size improvement.
2021-06-12 00:23:59 +02:00
Luca Casonato 56baffa96d feat: support suspending during SSR and useData (#27)
This commit adds support for suspending during JIT SSR rendering.
Additionally this PR adds `useData` support. This hook is triggered
during JIT render and can be used to fetch data. This data is sent to
the client and returned there from calls to useData too.
2021-06-11 13:59:55 +02:00
Luca Casonato 572b8123c4 refactor: centralize server into ServerContext (#26)
This commit centralizes all server related logic into a central
ServerContext class.
2021-06-10 20:46:10 +02:00
Luca Casonato 41307a5ac8 perf: add loading optimization with modulepreload (#15)
This commit aims to speed up loading of chunked modules using
the link rel=modulepreload directive.
2021-06-02 12:55:30 +02:00
Luca Casonato ff69a0abdf feat: add api routes (#11)
This commit adds API routes. These routes are located in the
./pages/api/ directory. Each file in there will have it's default
export invoked for HTTP calls to the corresponding route.
2021-06-02 00:15:00 +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 423f349f47 even more other esbuild 2021-05-08 02:59:23 +02:00
Luca Casonato 0e82dcb8b9 logs 2021-05-08 02:31:21 +02:00
Luca Casonato 6ecdf2ed73 init 2021-05-08 02:07:24 +02:00