Christian Svensson and Marvin Hagemeister
c4e09d1cef
fix: use real 500 error page in dev mode ( #2134 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-12-04 12:06:06 +01:00
Peter John
e78c6a90af
Update showcase.json ( #2132 )
2023-12-04 11:39:57 +01:00
迷渡 and Marvin Hagemeister
87d1f2356a
chore: Use satisfies instead of as ( #2136 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-12-04 11:38:52 +01:00
Christos Hrousis
f3578f863f
docs: Remove references to deprecated types ( #2125 )
...
As per the [1.6
release](https://deno.com/blog/fresh-1.6#simplified-typings ), and
commentary by @csvn
[here](https://github.com/denoland/fresh/issues/2108#issuecomment-1836625789 ),
this PR aims to replace the references to deprecated typing in the
documentation.
Please see inline commentary for parts I'm unclear on.
2023-12-02 11:14:37 +00:00
Marvin Hagemeister
6eccdcf1a1
fix: ensure tailwind is loaded lazily ( #2124 )
2023-12-02 10:34:12 +01:00
Reed von Redwitz
35da45bff1
chore: update types in tests, init, update ( #2122 )
...
Of particular note is the change to
`tests/fixture_plugin/routes/test.tsx`. Note how I do this:
```diff
- async GET(_req, ctx: HandlerContext<unknown, { test: string }>) {
+ async GET(_req, ctx: FreshContext<{ test: string }, unknown>) {
```
I find it strange and confusing that the order of the type parameters
has "changed". This makes it impossible to do a simple search and
replace, because people now have to change order as well.
Most of the types have been declared as `<T, S>`, i.e. data before
state:
* `PageProps<T = any, S = Record<string, unknown>>`
* `RouteContext<T = any, S = Record<string, unknown>>`
* `Handler<T = any, State = Record<string, unknown>>`
* `Handlers<T = any, State = Record<string, unknown>> `
* `AsyncRoute<T = any, S = Record<string, unknown>>`
* `PageComponent<T = any, S = Record<string, unknown>> `
* `AsyncLayout<T = any, S = Record<string, unknown>>`
And then `FreshContext` comes around like
```
export interface FreshContext<
State = Record<string, unknown>,
// deno-lint-ignore no-explicit-any
Data = any,
NotFoundData = Data,
>
```
and switches it all up.
Not a huge issue, but just something to be aware of that others might
report.
2023-12-02 10:33:59 +01:00
Marvin Hagemeister
8fecfb940c
fix: make prompt a question to hint at user input ( #2119 )
2023-12-01 23:41:26 +01:00
Marvin Hagemeister
2acf72d512
fix: tailwind failing on non-existant files ( #2118 )
2023-12-01 23:38:22 +01:00
Marvin Hagemeister
8fecb589ba
docs: fix release post link ( #2114 )
2023-12-01 16:38:38 +01:00
Marvin Hagemeister
dace008611
chore: release 1.6.0 ( #2113 )
2023-12-01 16:20:40 +01:00
Marvin Hagemeister
bd372b9535
fix: errors in plugin fixture + improve island docs ( #2109 )
2023-12-01 12:21:10 +01:00
Marvin Hagemeister
054ffbb44a
fix: dots in island + route name not working ( #2105 )
2023-11-30 18:14:59 +01:00
Reed von Redwitz
a0483bc357
chore: create manifest generation task ( #2088 )
2023-11-30 17:07:00 +01:00
Marvin Hagemeister
9e11c5c56b
feat: expose config in context + simplify page props ( #2102 )
2023-11-30 16:11:31 +01:00
Marvin Hagemeister
aafe048243
feat: make ready message one line ( #2104 )
2023-11-30 16:07:34 +01:00
Marvin Hagemeister
3b3e8fa497
feat: print more concise logs on Deploy ( #2103 )
2023-11-30 16:00:25 +01:00
Guilherme Miyake and Marvin Hagemeister
1501699988
docs/examples: Client side components and libraries ( #2089 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-30 14:22:11 +01:00
Marvin Hagemeister
8ddc21eb90
Router cleanup ( #2099 )
2023-11-30 14:08:05 +01:00
Marvin Hagemeister
a0a756a1ec
fix: island module type in manifest ( #2101 )
2023-11-30 13:50:32 +01:00
Marvin Hagemeister
daf8ca19d2
chore: fix twind test ( #2100 )
2023-11-30 13:18:19 +01:00
Marvin Hagemeister
d12ad2fc5f
docs: fix encoded text in TOC ( #2098 )
2023-11-30 03:21:54 +01:00
Marvin Hagemeister
de55d80dee
docs: improve design ( #2097 )
2023-11-29 22:50:51 +01:00
Reed von Redwitz and Marvin Hagemeister
9ab8651018
feat(server): Add basePath config to host from a directory ( #2092 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-29 16:44:25 +00:00
Marvin Hagemeister
fe792455ab
fix: add missing -h/--help to init ( #2096 )
2023-11-29 16:57:39 +01:00
Marvin Hagemeister
a0ede4fe67
fix: incorrect path matching in tailwind plugin ( #2094 )
2023-11-29 16:37:54 +01:00
Reed von Redwitz
1643d6d1d6
chore: remove dead code ( #2083 )
...
As per
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer , which
links to the interesting https://en.wikipedia.org/wiki/HTTP_referer , the
incorrect `referer` is actually correct when using headers.
I noticed this when frantically trying to keep up with your flood of PRs
while trying to get the base path stuff working. The header coming in
does indeed use `referer`.
@marvinhagemeister
2023-11-28 21:53:16 +00:00
Marvin Hagemeister
d62d22a4fc
docs: fix link ( #2087 )
2023-11-28 22:50:48 +01:00
Marvin Hagemeister
dd76addb9f
docs: minor code cleanup ( #2084 )
2023-11-28 18:37:57 +01:00
Marvin Hagemeister
e99804ac01
docs: update deno version ( #2086 )
2023-11-28 18:35:26 +01:00
Reed von Redwitz and Marvin Hagemeister
ad33501692
chore: remove $fresh from import statements ( #2079 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-28 16:43:50 +00:00
Reed von Redwitz and Marvin Hagemeister
b902205feb
chore: bump std to 208 and deal with deprecations ( #2081 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-28 16:35:26 +00:00
Reed von Redwitz
6a90fdbf1b
docs: switch to aria-current in active links page ( #2019 )
2023-11-28 17:32:48 +01:00
Marvin Hagemeister
325850719a
feat: reduce number of island bundles ( #2082 )
2023-11-28 17:23:27 +01:00
Marvin Hagemeister
ef26451dc6
fix: update tailwind init script ( #2078 )
2023-11-28 13:58:57 +01:00
Marvin Hagemeister
79fd85ef93
docs: Add migrating to Tailwind CSS page ( #2077 )
2023-11-28 13:39:05 +01:00
Marvin Hagemeister
9ee6ab72e0
fix: show original error page in dev ( #2074 )
2023-11-28 11:58:50 +01:00
Marvin Hagemeister
a8dfdd0b91
fix: Tailwind CSS intellisense not working ( #2073 )
2023-11-28 11:22:41 +01:00
Marvin Hagemeister
a56ea283c8
fix: Partials not working on error pages ( #2072 )
2023-11-27 16:56:46 +01:00
Marvin Hagemeister
1294d455bc
fix: client script source map returning 404 ( #2071 )
2023-11-27 16:10:36 +01:00
ABel-216 and Marvin Hagemeister
74672b1095
showcase: Removed invalid links ( #2032 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-27 12:42:19 +01:00
Marvin Hagemeister
9d5e916e4c
fix: invalid identifier in manifest ( #2070 )
2023-11-27 11:20:40 +01:00
Casey Ydenberg
81e71adad6
docs: Add file upload example (Concepts/Forms) ( #2064 ) ( #2065 )
2023-11-24 23:50:50 +01:00
Reed von Redwitz
72edafde46
feat(server): plugins can create islands ( #1472 )
2023-11-22 11:19:13 +01:00
Reed von Redwitz
ad2341dada
chore: switch init to use tailwind ( #2061 )
2023-11-22 11:17:42 +01:00
Marvin Hagemeister
bb035ae8da
docs: port over to TailwindCSS ( #2058 )
2023-11-22 11:12:21 +01:00
Marvin Hagemeister
f105f19005
fix: tailwind don't magically add content regex ( #2060 )
2023-11-21 20:59:02 +01:00
Marvin Hagemeister
1f8f9b7ec7
feat: minify tailwind css in prod + other enhancements ( #2059 )
2023-11-21 18:57:24 +01:00
Marvin Hagemeister
809a50398d
chore: remove twind recommendation ( #2057 )
2023-11-21 17:23:26 +01:00
Marvin Hagemeister
93e4b7e9b7
feat: add native TailwindCSS plugin ( #2056 )
2023-11-21 17:22:18 +01:00
Marvin Hagemeister
daf15aee6f
feat: add plugin configResolved ( #2055 )
2023-11-21 15:39:17 +01:00