Marvin Hagemeister and Reed von Redwitz
b2362da281
www: Various documentation improvements ( #1635 )
...
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com >
2023-08-16 16:24:53 +02:00
Marvin Hagemeister
6436a43dce
fix: rename layout config options ( #1619 )
2023-08-14 15:47:36 +02:00
Marvin Hagemeister and Asher Gomez
ba67d895ce
feat: support async app template ( #1626 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-08-14 14:52:48 +02:00
Marvin Hagemeister
7ebaf0404d
feat: allow layout and _app overrides ( #1611 )
2023-08-09 16:35:53 +00:00
Christian Svensson
7d4c751105
fix: add missing state property to interface ( #1579 )
2023-08-08 14:15:53 +02:00
Marvin Hagemeister and Asher Gomez
8325225a0d
feat: support async layout functions ( #1597 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-08-08 14:15:02 +02:00
Reed von Redwitz
5d2c8b6b3c
feat(server): support https ( #1599 )
2023-08-06 11:56:40 +00:00
Reed von Redwitz
1fb7f3bea9
fix(server): make LayoutProps generic ( #1592 )
2023-08-05 22:27:13 +02:00
Reed von Redwitz
630f0a2322
fix(server): make AppProps generic ( #1449 )
2023-08-04 12:05:15 +02:00
Marvin Hagemeister
e4d797ae4e
feat: add support for route groups ( #1563 )
2023-08-02 09:51:20 +02:00
Marvin Hagemeister
df5931e105
Revert: feat(server): add safety checks during dev ( #1567 )
2023-08-01 18:10:30 +02:00
Reed von Redwitz
1ad29e256b
fix(server): Improve MiddlewareHandler type for plugins ( #1534 )
2023-07-31 11:50:29 +02:00
Michael Herzner and Reed von Redwitz
a7fe9d04f1
feat(server): add safety checks during dev ( #1489 )
...
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com >
2023-07-31 11:48:26 +02:00
Reed von Redwitz
87d52e24dd
fix(server): change RouteContext type parameter default to any ( #1536 )
2023-07-28 10:45:04 +02:00
Michael Gearhardt and Marvin Hagemeister
1ed93cec88
feat: support route layouts via _layout.tsx ( #1506 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-26 11:49:08 +02:00
Asher Gomez
0b96db4bae
fix: async route typing ( #1510 )
2023-07-24 08:22:48 +00:00
Roj
16453b4dc9
style: fix remaining inconsistencies ( #1505 )
2023-07-22 14:09:25 +02:00
50db296fb7
feat(server): plugins can add middlewares and routes ( #1455 )
...
Co-authored-by: RoeHH <git@roeh.ch >
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-13 11:26:07 +02:00
Marvin Hagemeister
62a5613a46
feat: support async route components ( #1388 )
2023-07-12 21:09:56 +02:00
Lino Le Van and Marvin Hagemeister
e2a1bf8643
feat: move to Deno.serve ( #1427 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-07-12 14:37:53 +02:00
Reed von Redwitz
724c81f2c7
feat(server): middleware params ( #1314 )
2023-07-10 15:06:43 +02:00
Reed von Redwitz
a3f7c212f4
feat(server): multiple island exports ( #1397 )
2023-07-03 09:59:38 +02:00
Marvin Hagemeister
16be99e69b
fix: change MultiHandler back to Handlers ( #1396 )
2023-07-03 09:57:46 +02:00
Reed von Redwitz
0db3a0911a
feat: pass middleware state in props ( #1264 )
2023-06-28 14:53:42 +02:00
Aushwin
851f8d60aa
refactor: changed Handlers type to MultiHandler ( #1360 )
2023-06-28 12:52:48 +00:00
Kamil Ogórek
2b11803528
docs: Export missing Plugin types to fix broken links ( #1319 )
2023-06-17 19:05:14 +02:00
Kamil Ogórek
d5a8692b78
feat: Allow passing props to renderNotFound method ( #1310 )
2023-06-16 17:12:01 +02:00
Reed von Redwitz
f5f8928c89
feat(server): trailing slash configuration ( #1291 )
2023-06-15 19:01:07 +02:00
Tom
dd4e584a3e
feat: async plugin rendering ( #745 )
...
An async render hook is added to plugins that enables injecting stylesheets and scripts based on the rendered HTML text.
2023-06-06 12:36:04 +02:00
kit
b558b6e759
feat: add PageProps to _app ( #1229 )
2023-05-31 11:13:08 +00:00
Leo Kettmeir
060e2bb50d
feat: add status and headers overwrite for HandlerContext.render ( #725 )
2023-05-31 10:09:53 +02:00
Leo Kettmeir
9dd026e0f5
feat: add middleware destination ( #1123 )
...
Closes #521
2023-04-20 13:14:12 +02:00
Leo Kettmeir
94d3082c45
refactor: include router directly in fresh ( #1122 )
...
This PR changes from depending on https://deno.land/x/rutt to instead
include a reduced & simplified version of it.
2023-04-18 13:27:51 +02:00
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
6c4f3a36d0
docs: add plugin docs ( #702 )
2022-09-08 11:39:45 +02:00
Mark Bennett and Luca Casonato
ba7c78bcc2
feat: experimental support for Deno.serve ( #681 )
...
The experimental support can be enabled through the
`experimentalDenoServe` option for `start()`.
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-09-07 23:04:45 +00:00
Sourav Singh Rawat
08d43803f7
feat: add support for custom static folder in FreshOptions ( #626 )
...
Support custom (user provided) static assets folder or fallback to default behavior.
2022-09-05 12:00:47 +00: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
ahuigo
a00b97bac9
feat: support multiple middlewares with the same matcher ( #553 )
2022-08-23 23:50:57 +02:00
Elias Sjögreen and Luca Casonato
6c2291f0de
chore: use x/rutt instead of crux.land/router ( #647 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-08-23 21:33:11 +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
Steven Yung and Luca Casonato
49092ed83a
feat: add ctx.renderNotFound() to explicitly render 404 template ( #481 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-08-09 19:23:17 +00:00
Carter Snook
53082f8052
chore: typo in doc comment ( #268 )
2022-06-22 12:03:04 +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
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
f9f0125282
chore: rename PageConfig to RouteConfig ( #202 )
2022-05-23 15:52:29 +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