Commit Graph
16 Commits
Author SHA1 Message Date
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 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 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 9eea430c1e fix: various issues arising from oak removal (#23) 2021-06-05 19:44:15 +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 8a58fe7ae0 fix 2021-05-08 18:52:36 +02:00
Luca Casonato 661ec67be0 no more file:// 2021-05-08 18:51:14 +02:00
Luca Casonato 771643d1c4 update example 2021-05-08 18:47:54 +02:00
Luca Casonato f42fff1a31 new example 2021-05-08 12:57:33 +02:00
Luca Casonato 9145711e2e remove need for export function self 2021-05-08 03:12:56 +02:00
Luca Casonato 6ecdf2ed73 init 2021-05-08 02:07:24 +02:00