Commit Graph
66 Commits
Author SHA1 Message Date
Luca Casonato b897746b6d feat: add fresh manifest --watch (#201) 2022-05-20 17:37:03 +02:00
Luca Casonato 3ef6504e93 test: make cli test more robust (#199) 2022-05-20 16:04:46 +02:00
Luca Casonato c1a9d53b18 fix: improved etag handling in static files (#198) 2022-05-19 19:05:07 +02:00
Luca Casonato 2a2b948a58 docs: add descriptions to all pages (#195) 2022-05-17 02:19:32 +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
Luca Casonato c28d2ff863 ci: speed up by caching chromium (#193) 2022-05-16 17:33:16 +00:00
Luca Casonato 59e6398d77 www: more vibrant green + wordmark on docs page (#176) 2022-04-24 21:26:35 +00:00
Luca Casonato ffbe97caca www: add open graph tags (#175) 2022-04-24 22:33:55 +02:00
Luca Casonato b563646c8f www: use green as accent color on docs page (#163) 2022-04-24 22:33:26 +02:00
Luca Casonato df8babbf87 www: fix logo height on docs page 2022-04-24 18:12:49 +02:00
Luca Casonato ed5f7c70ec chore: add logo to readme (#171) 2022-04-24 11:45:21 +00:00
Luca Casonato 36625e3000 www: compress svg fresh logo 2022-04-24 13:41:49 +02:00
Luca Casonato 0e6a24202d www: use next gen image formats for illustration (#170) 2022-04-24 13:40:15 +02:00
Luca Casonato 77bfd4b244 Add code of conduct (#169) 2022-04-24 13:12:38 +02:00
Luca Casonato 43524dbcea www: cache static assets properly (#166) 2022-04-24 10:55:27 +02:00
Luca Casonato 98a3658452 chore: update router to 0.0.11 (#149) 2022-04-23 23:27:48 +02:00
Luca Casonato 12a9839cf2 docs: add a link explaining pascal case 2022-04-23 20:53:07 +02:00
Luca Casonato 2449ac4024 www: update button color in counter example 2022-04-23 20:44:41 +02:00
Luca Casonato 7d1aec4bce www: more padding on slogan 2022-04-23 20:40:10 +02:00
Luca Casonato b4422333d3 www: set intrinsic size for illustration image (#160) 2022-04-23 20:15:17 +02:00
Luca Casonato 7f5e2496c9 docs: update March -> May (#152) 2022-04-23 15:10:14 +02:00
Luca Casonato 64e6a7b43d docs: update deno install command to use -r (#138) 2022-03-18 10:43:06 +01:00
Luca Casonato f1e6d6b567 feat: shebang in main.ts generated by fresh init (#137) 2022-03-18 10:42:56 +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
Luca Casonato 73fd41be31 feat: add docs section to website (#108) 2022-03-07 21:08:55 +01:00
Luca Casonato 4556d2116d tests: type check www/ and examples/counter/ in CI (#116) 2022-03-06 17:17:53 +01:00
Luca Casonato 72115506b1 refactor: remove marker comments on hydration (#110) 2022-03-06 03:44:47 +01:00
Luca Casonato bb7180328e tests: run lighthouse against preview deployments in CI (#107) 2022-03-05 15:18:17 +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
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
Luca Casonato 6abf62c832 feat: stream static files (#79)
This commit adds support for streaming static files. Instead of them
being fully buffered in memory, they are now streamed directly to the
client.
2022-01-04 17:43:08 +01:00
Luca Casonato aa1e1bcdb4 feat: add support for middleware (#74) 2021-11-01 13:35:41 +01:00
Luca Casonato 6ecd7a680b fix: clear csp during suspense (#73) 2021-11-01 13:06:26 +01:00
Luca Casonato 44a0d490fe feat: add support for CSP (#72)
This commit adds support for running with CSP. CSP can be enabled
on a per page basis. If this is done, fresh will set a default CSP that
is very restrictive. Users can modify the CSP with the `useCSP` hook.
Fresh will add its own script resources to the CSP automatically.
2021-11-01 12:58:13 +01:00
Luca Casonato 95289380f3 feat: add auto reload on restart (#70)
This commit adds support for auto reloading open pages when fresh
restarts. This is particularly useful when `deno run` is used with
`--watch`.
2021-10-27 01:19:01 +02:00
Luca Casonato d1076b0ad1 fix: <Suspense> boundaries with no ctx.style (#68) 2021-10-04 11:58:01 +02:00
Luca Casonato f343e8bac7 feat: add support for <Head> component (#67)
This component only works during SSR, during the inital render. It does
not work on renders inside a suspense boundary, or client renders.
2021-10-04 11:35:01 +02:00
Luca Casonato 4a6b57de89 docs: new website (#66) 2021-10-04 11:12:12 +02:00
Luca Casonato 7cf4ca07ed feat: streaming rendering with suspense (#59)
This commit introduces support for streaming server side rendering using
<Suspense>.
2021-09-26 01:21:02 +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 a25ec7109c feat: support overriding page routes (#57) 2021-09-25 11:27:16 +02:00
Luca Casonato 70224610f9 chore: remove tsconfig.json (#56) 2021-09-25 11:09:25 +02:00
Luca Casonato 84f2ae96e2 docs: fix readme 2021-09-25 11:06:55 +02:00
Luca Casonato 0fbc9e816a BREAKING: disable runtime JS by default (#55) 2021-09-25 11:05:49 +02:00
Luca Casonato f44f1950dc fix: use new API route style in fresh init (#54) 2021-09-25 11:01:11 +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 a929b1022a switch back to x.lcas.dev (#49) 2021-09-01 13:16:03 +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 384daf0e06 feat: add lang to <html> (#47) 2021-08-06 18:36:04 +02:00
Luca Casonato 0777c1c7ba feat: add context information to render function (#46) 2021-08-06 18:08:48 +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
Luca Casonato 940f34d811 feat: add custom render function support (#30) 2021-06-16 19:36:12 +02:00
Luca Casonato 65d164d073 feat: add config option to disable runtime js (#36)
The config option can be toggled per page:

```js
export const config: PageConfig = { runtimeJS: false };
```
2021-06-13 00:01:59 +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 3ad4a84b51 docs: add info on data fetching 2021-06-11 18:29:40 +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 a0bb5c05ee docs: update warning at top of readme 2021-06-02 13:36:25 +02:00