Luca Casonato
87da68b8a7
chore: update preact + twind ( #410 )
2022-07-04 15:25:32 +00:00
Luca Casonato
aab8ceb78b
fix: layered middleware not working for index page ( #407 )
...
This commit fixes layered middleware not being invoked for the the index
page of the layer.
For example: routes/api/_middleware.ts was not being invoked for /api,
only /api/foobar
2022-07-04 15:13:49 +00:00
Luca Casonato
1b3d1319bd
chore: update default preact version ( #272 )
2022-06-22 14:40:37 +02:00
Sylvain Cau
6bca35be0f
tests: ensure asset mapping works correctly in islands client side ( #245 )
2022-06-22 12:02:51 +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
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
de6c3f6ed5
chore: remove --no-check flags ( #259 )
...
Since Deno 1.23.0, `--no-check` has become the default type checking
mode for `deno run`. As such, we don't need to specify this flag
anymore.
2022-06-20 12:45:48 +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
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
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
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
Sylvain Cau
e8b1e229b3
feat: automatically apply asset caching to img src and srcset ( #184 )
2022-05-19 19:19:59 +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
ʀᴀʏ
bb9fa4a09f
feat: allow render function to be asynchronous ( #142 )
2022-04-23 15:17:00 +02:00
Sylvain Cau
6cbcc27646
feat: add support for static asset caching ( #133 )
2022-03-16 16:49:47 +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
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
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
Leo Kettmeir and Luca 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 and Luca 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
aa1e1bcdb4
feat: add support for middleware ( #74 )
2021-11-01 13:35:41 +01: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
0fbc9e816a
BREAKING: disable runtime JS by default ( #55 )
2021-09-25 11:05:49 +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
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
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
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
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
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
26189cfdf3
tests: add basic integration tests ( #13 )
2021-06-02 01:16:31 +02:00