Commit Graph
103 Commits
Author SHA1 Message Date
Iori IKEDAandLuca Casonato 3d63efc7a8 tests: add fresh init integration test (#141)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-03-28 21:52:05 +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
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
Leo Kettmeir 8d689938cb docs: fix typo (#129) 2022-03-08 17:07:00 +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
Bartek IwańczukandLuca 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 Casonato 4556d2116d tests: type check www/ and examples/counter/ in CI (#116) 2022-03-06 17:17:53 +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 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
Kid c86c75887a docs: update minimum Deno version in README (#103) 2022-03-05 14:36:12 +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
Leo Kettmeir d441bf2489 feat: add etag to static files (#95) 2022-03-03 14:18:29 +01:00
Kid 38ac19a042 docs: fix default port number in getting-started (#93) 2022-03-01 22:03:57 +01:00
Leo KettmeirandLuca Casonato 04a32f3498 feat: _app (#87)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-02-18 19:30:24 +01:00
Leo Kettmeir 2ec980ca45 fix: PageProps.params never contains arrays, only strings (#91) 2022-02-15 13:24:18 +01:00
Leo Kettmeir 15f73e3274 feat: render function returns string (#89) 2022-02-15 12:28:09 +01:00
Leo Kettmeir d334b53320 feat: support custom error pages (#86) 2022-02-15 01:17:47 +01:00
Leo Kettmeir 64fbcabf67 chore: add a default type for render data (#90) 2022-02-14 16:30:54 +01:00
Leo KettmeirandLuca Casonato 788a85c431 feat: allow passing additional args to HandlerContext.render (#82)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2022-02-11 01:25:47 +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
Boaz BlakeandBoaz Blake 64da4005bb fix: typings fix for Response.redirect call (#81)
Co-authored-by: Boaz Blake <BBlake@goempyrean.com>
2021-12-28 22:15:03 +01:00
quenio-lt c436705b96 fix: log error message if <Head> rendering fails (#75) 2021-12-01 12:19:18 +01:00
Satya Rohith 489da1b49d feat: redirect trailing slash to non-trailing counterpart (#78) 2021-11-29 16:03:19 +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
Leo K f0b96b80c8 chore: update router to 0.0.5 (#69) 2021-10-21 22:58:09 +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
Sylvain Cau 044da54513 fix: runtimeJS support on windows (#64) 2021-09-28 18:36:41 +02:00
Sylvain Cau 5bc35b8b95 fix: fresh routes not working on windows (#62) 2021-09-26 14:16:29 +02:00
Sylvain Cau efdbf9bcb6 fix: fresh init creates an invalid project (#61) 2021-09-26 14:16:01 +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