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
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
Reed von Redwitz and Marvin Hagemeister
536463775c
feat(dev): reduce manifest merge conflict potential ( #2020 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2023-11-08 09:59:27 +01:00
Reed von Redwitz
687d41d6d5
docs: update active link page to clarify twindv1 plugin usage ( #2004 )
2023-11-06 14:08:53 +01:00
Reed von Redwitz
8b846816a6
fix(server): support non-function exports from island files ( #1986 )
2023-11-06 11:55:16 +01:00
Reed von Redwitz
d655386617
docs: update writing tests page to discuss options ( #1994 )
2023-11-03 16:53:36 +01:00
Reed von Redwitz
da90d92ebd
chore: bump deps ( #2000 )
2023-11-03 16:52:54 +01:00
Reed von Redwitz
7a2e5916c6
docs: update server configuration page ( #1998 )
2023-11-02 11:03:10 +01:00
Reed von Redwitz
ded71a934f
docs: add jsdoc for IS_BROWSER ( #1991 )
2023-10-31 18:49:18 +01:00
Reed von Redwitz
4042d47346
docs: update using twindv1 page ( #1982 )
2023-10-30 18:01:27 +01:00
Reed von Redwitz
f39e0d4218
feat(server): throwing Deno.errors.NotFound triggers 404 ( #1984 )
2023-10-30 18:00:57 +01:00
Reed von Redwitz
781247b180
chore: explicitly version rts in deps.ts ( #1684 )
2023-10-30 17:59:22 +01:00
Reed von Redwitz
533139afbf
docs: update init the server to account for build step ( #1988 )
2023-10-30 17:58:02 +01:00
Reed von Redwitz
f5dd55443b
feat: middleware can call renderNotFound ( #1975 )
2023-10-27 23:34:49 +02:00
Reed von Redwitz
63ac1e6362
feat(server): add isPartial to context types ( #1977 )
2023-10-26 22:26:36 +02:00
Reed von Redwitz
3729641449
fix: export DestinationKind ( #1721 )
2023-09-04 10:28:42 +02:00
Reed von Redwitz
4a4af1f915
fix(server): sanitize brackets from island names ( #1723 )
2023-09-01 15:58:15 +02:00
Reed von Redwitz
03df5f7306
fix(server): pass context into 500 handlers ( #1720 )
2023-09-01 15:56:47 +02:00
Reed von Redwitz
81ae7b8427
chore: add test for checking initialized project ( #1606 )
...
This is, I think, the natural followup to
https://github.com/denoland/fresh/pull/1539 and
https://github.com/denoland/fresh/pull/1454 . Now that we have an easy
way to type check the initialized project, we should assert that there
are no type errors in that project.
This adds three seconds on my slow computer, but I think it's worth it;
releasing code with red squiggles or linting or formatting errors is a
bit silly.
2023-08-08 22:01:51 +02:00
Reed von Redwitz
a489aff190
feat(init): add check task to run all static analysis ( #1454 )
2023-08-07 14:39:53 +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
cc0e2cb2ec
chore(server): simplify plugin route creation ( #1594 )
2023-08-05 21:58:15 +02:00
Reed von Redwitz
6d5428eeaa
fix(update): update script actually supports comments in jsonc ( #1591 )
2023-08-04 15:22:08 +02:00
Reed von Redwitz
630f0a2322
fix(server): make AppProps generic ( #1449 )
2023-08-04 12:05:15 +02:00
Reed von Redwitz
21c72abecc
fix(server): merge competing PluginMiddleware handlers together ( #1545 )
2023-07-31 13:56:38 +00:00
Reed von Redwitz
80fece0d3c
fix(ci): type error in dev_checks fixture ( #1550 )
2023-07-31 15:23:36 +02:00
Reed von Redwitz
1ad29e256b
fix(server): Improve MiddlewareHandler type for plugins ( #1534 )
2023-07-31 11:50:29 +02:00
Reed von Redwitz
5fa6a67188
chore(ci): type check entire project in ci ( #1538 )
2023-07-31 11:49:27 +02:00
Reed von Redwitz
5af441cde6
chore(init): remove blank line from _404 template ( #1539 )
2023-07-28 10:50:13 +02:00
Reed von Redwitz
6fc885ecc5
chore: clean up remaining type errors in project ( #1537 )
2023-07-28 10:45:45 +02:00
Reed von Redwitz
87d52e24dd
fix(server): change RouteContext type parameter default to any ( #1536 )
2023-07-28 10:45:04 +02:00
Reed von Redwitz
72603d60cf
docs: add "Using CSP" example ( #1376 )
2023-07-21 11:10:16 +02:00
Reed von Redwitz
c60f2fc566
docs: update twindv1 example to resolve type issue ( #1467 )
2023-07-20 21:04:54 +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
Reed von Redwitz
46ae49d654
chore: add test for middleware error handling ( #1453 )
2023-07-12 10:12:43 +02:00
Reed von Redwitz
9177d9afc3
feat: prevent duplicate routes when generating manifest ( #1410 )
2023-07-11 14:39:48 +02:00
Reed von Redwitz
d4c2258eb6
fix(server): middleware order incorrect ( #1280 )
2023-07-10 15:19:52 +02:00
Reed von Redwitz
724c81f2c7
feat(server): middleware params ( #1314 )
2023-07-10 15:06:43 +02:00
Reed von Redwitz
27622a190e
docs: add "Server Components" concept page ( #1390 )
2023-07-10 15:06:27 +02:00
Reed von Redwitz
4b18dc8b79
www: fix file locations in comments of crud api ( #1438 )
2023-07-10 08:47:58 +02:00
Reed von Redwitz
f737e1c4e3
www: cleanup miscellaneous doc items ( #1419 )
2023-07-07 16:07:40 +02:00
Reed von Redwitz
efcaec3658
www: convert toc to .ts ( #1381 )
2023-07-04 10:49:00 +02:00
Reed von Redwitz
a3f7c212f4
feat(server): multiple island exports ( #1397 )
2023-07-03 09:59:38 +02:00
Reed von Redwitz and Lino Le Van
eb53d53ab8
fix(server): properly sanitize island names ( #1393 )
...
Co-authored-by: Lino Le Van <11367844+lino-levan@users.noreply.github.com >
2023-07-03 02:08:47 +02:00
Reed von Redwitz
70e9c556c3
feat(starter): always initialize _app.tsx ( #1380 )
2023-07-01 12:59:10 +02:00
Reed von Redwitz
f69a11c722
fix: update import map to satisfy vs code ( #1382 )
2023-07-01 12:55:56 +02:00
Reed von Redwitz
234deb18e3
fix(showcase): reorder to have blank entry at the bottom ( #1383 )
2023-07-01 12:55:26 +02:00
Reed von Redwitz
4de9394547
docs: add "Sharing state between islands" example ( #1311 )
2023-06-28 22:17:16 +02:00
Reed von Redwitz
db357973ab
docs: add "Rendering markdown" example ( #1307 )
2023-06-28 15:16:14 +02:00
Reed von Redwitz
86dcfcc0ca
docs: add "Handling complex routes" example ( #1365 )
2023-06-28 12:55:03 +00:00
Reed von Redwitz
0db3a0911a
feat: pass middleware state in props ( #1264 )
2023-06-28 14:53:42 +02:00
Reed von Redwitz
a30c6bdf5c
fix(test): cli_test now retries to move files ( #1372 )
2023-06-28 14:47:26 +02:00
Reed von Redwitz
ee3e4a1145
docs: add "Creating a CRUD API" example ( #1361 )
...
closes https://github.com/denoland/fresh/issues/768
supersedes https://github.com/denoland/fresh/pull/853
I'm not sure if this is what Ryan had in mind when opened 768. But this
PR includes some working code, references Deno KV, and briefly touches
on `OPTIONS` as a bonus.
Should I link to https://deno.com/blog/build-crud-api-oak-denokv where I
borrowed some code from? I must admit I'm a bit confused about why Andy
chose to write about Oak instead of Fresh in this post...
2023-06-27 09:18:49 +02:00
Reed von Redwitz
ae984924e5
fix: update script broken when using src dir ( #1353 )
...
closes https://github.com/denoland/fresh/issues/1338
This is more complex than first expected. It turns out the head of main
no longer has this error, because we started swallowing errors in
https://github.com/denoland/fresh/pull/1327 . I'm not sure this is the
right implementation. It seems like we should explicitly check for the
`islands` folder instead of ignoring errors. But the obvious approach
(https://deno.land/std@0.192.0/fs/mod.ts?s=exists ) is apparently
forbidden, due to some sort of nonsense with race conditions. Well, not
being able to find `islands` because it doesn't exist at all is
definitely different than it being buried in a source directory, so
we'll need to sort this out at some point.
I suppose that's now some technical debt to deal with, and not related
to this issue. The latest "error" when running `update` and using a
source directory is the following:
```
deno run -A -r file:///Users/reed/code/fresh/update.ts .
The manifest has been generated for 0 routes and 0 islands.
```
i.e. it just doesn't do anything. (To be fair, it does generate a
`fresh.gen.ts` in the incorrect location, so I suppose it does
_something_.)
But of course this isn't what we want. So we'll hunt for a source
directory, as defined by the precense of `main.ts`.
The fix for this is relatively straightforward. The test implements the
user's actions, i.e. init a project, move things, and then try to
update.
2023-06-24 13:28:05 +02:00
Reed von Redwitz
0c187c145a
docs: add "Dealing with CORS" example ( #1347 )
2023-06-24 11:10:12 +00:00
Reed von Redwitz
7a7d0e77d0
docs: add section about "Middleware Destination" feature ( #1343 )
2023-06-23 13:50:20 +00:00
Reed von Redwitz
03dbbd4f8e
fix: update script supports deno.jsonc files ( #1349 )
2023-06-23 14:26:22 +02:00
Reed von Redwitz
7deda2a7dd
docs: add "Using Fresh canary version" example ( #1306 )
2023-06-16 17:13:16 +02:00
Reed von Redwitz and Asher Gomez
12fc103daa
docs: add "initializing the server" example ( #1292 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-06-16 10:33:54 +02:00
Reed von Redwitz
f5f8928c89
feat(server): trailing slash configuration ( #1291 )
2023-06-15 19:01:07 +02:00
Reed von Redwitz and Asher Gomez
673ed2d90f
docs: add "Changing the source directory" example ( #1286 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com >
2023-06-15 11:37:41 +02:00
Reed von Redwitz
f833c7262d
docs: add "Server configuration" concept explanation ( #1293 )
2023-06-15 11:37:23 +02:00
Reed von Redwitz
931031f9ce
docs: add "setting the language" example ( #1265 )
2023-06-11 02:38:25 +09:00