Reed von Redwitz
deeccd7e25
feat: add example of define.middleware to init ( #2534 )
...
The documentation for `MiddlewareFn` is out of date, because it
references a nonexistent `defineMiddleware` function. It's been updated
to reference the correct `define.middleware` function.
Additionally, I included an example of using this in the init project. I
also complicated the usage of `app.get` so that the function actually
uses the context. To make it clear to users of fresh 1 that this can be
equivalent to a file-based-route, I've included such a route as well.
The two new examples in `maini.ts` should make it much more clear to
fresh 1 users how the new system can work.
2024-06-23 22:46:04 +02:00
Reed von Redwitz
0962a94a11
chore: cleanup unused exported interfaces ( #2535 )
2024-06-23 22:45:14 +02:00
Reed von Redwitz
5a7184ad99
fix: ensure deno task check passes in initialized projects ( #2529 )
...
There were two issues with initialized projects:
1. not every file was formatted properly
2. linting wasn't passing when using `verbatim-module-syntax`. This
isn't enabled right now, due to it not having the `recommended` tag, but
it seems like a good idea. Actually initializing a project with this can
be done in a separate PR.
2024-06-23 17:44:07 +02:00
Tsukasa Ueno
febbc52727
doc: fix the link to sever configuration ( #2526 )
...
I found a dead link on the "Writing tests" page.
2024-06-23 17:43:03 +02:00
Reed von Redwitz
27578bc038
chore: fix some typos ( #2528 )
2024-06-23 17:42:29 +02:00
Iuri and Iuriiiiiii
160148c326
docs: remove duplicated word ( #2522 )
...
Closes #2518
Co-authored-by: Iuriiiiiii <alex.casas@webtroniclabs.com >
2024-06-18 21:59:57 +00:00
Jordan Tucker
97ac05912c
docs: Fix incorrect enctype info on Forms page ( #2516 )
...
Fixes #2515
This PR updates the Forms page in the docs with accurate information
about a form's `enctype` attribute.
2024-06-16 22:46:24 +00:00
Max Walters
7caae01b17
docs: fix javascript casing ( #2512 )
...
This PR fixes a typo in the word `javascript` in the documentation, and
fixes it to be `JavaScript` instead.
2024-06-10 20:01:44 +00:00
Marvin Hagemeister
b0b1a306c5
chore: release alpha 16 ( #2511 )
2024-06-08 09:07:32 +02:00
Marvin Hagemeister
003f2bbb5f
fix: incorrect partial url on backwards navigation ( #2510 )
2024-06-08 09:01:12 +02:00
Marvin Hagemeister
d6cabce71d
chore: release alpha 15 ( #2507 )
2024-06-08 08:14:59 +02:00
Marvin Hagemeister
97e2b54b4e
chore: add back lockfile ( #2508 )
2024-06-08 08:09:39 +02:00
Marvin Hagemeister
0ceab6b8a9
feat: init projects with jsx precompile ( #2506 )
2024-06-08 08:07:18 +02:00
Marvin Hagemeister
fe26b8e2ff
chore: don't rely on jsr version in init test ( #2509 )
2024-06-08 08:05:33 +02:00
Adam Gregory
8c5e2b00c9
fix: Include submitter data in partial form data ( #2307 )
...
Fixes #2306
2024-06-06 19:02:49 +02:00
Luca Casonato
c3ec742a65
feat: import fresh from fresh ( #2479 )
...
Instead of importing as `@fresh/core`.
2024-06-05 14:51:35 +02:00
Marvin Hagemeister
19d3e452ac
fix: bring back island module preloading ( #2503 )
2024-06-05 14:41:02 +02:00
Marvin Hagemeister
f09130cebf
fix: add init background gradient ( #2502 )
2024-06-05 14:00:57 +02:00
Marvin Hagemeister
7eb9a9b5ff
chore: improve release script ( #2501 )
2024-06-05 13:24:15 +02:00
Marvin Hagemeister
3fe988893d
fix: don't show "fresh ready" log in prod ( #2500 )
2024-06-05 10:21:12 +02:00
Marvin Hagemeister
f69d393eae
fix(init): update init complete text ( #2499 )
...
Related: https://github.com/denoland/fresh/issues/2197
2024-06-05 10:11:17 +02:00
Marvin Hagemeister
2b88f4bf56
fix: falsy f-* attributes not preserved inside island ( #2498 )
...
Fixes https://github.com/denoland/fresh/issues/2359
2024-06-05 10:06:53 +02:00
Marvin Hagemeister
fba3f2b845
fix: partial form redirect not working ( #2497 )
...
Fixes https://github.com/denoland/fresh/issues/2404
2024-06-05 09:42:27 +02:00
Marvin Hagemeister
d613c6a6ba
fix: islands not working with basePath ( #2496 )
2024-06-05 09:02:27 +02:00
Marvin Hagemeister
f8b60ddd15
fix: wrong url after partial form submission ( #2495 )
...
Fixes https://github.com/denoland/fresh/issues/2409
2024-06-05 08:30:28 +02:00
Tim Hårek Andreassen
a9b552945a
www: Add aria-hidden to icons and illustrations ( #2494 )
...
Added `aria-hidden="true"` to all decorative icons and illustrations.
If there are any questions, suggestions or anything, please let me know
:)
Signed-off-by: Tim Hårek Andreassen <tim@harek.no >
2024-06-05 00:05:59 +02:00
Marvin Hagemeister
0928ecbe11
chore: release alpha 14 ( #2493 )
2024-06-04 18:27:43 +02:00
Marvin Hagemeister
bcfb4e34c1
fix: wrong type in init files ( #2492 )
2024-06-04 18:26:44 +02:00
Marvin Hagemeister
339ee98ea3
chore: release alpha ( #2491 )
2024-06-04 18:09:49 +02:00
Marvin Hagemeister
b0b4bf1efd
chore: add release script ( #2490 )
2024-06-04 18:01:32 +02:00
Asher Gomez
0ca7568f54
chore: @std/* dependencies ( #2488 )
...
Mainly done to get release candidates in use.
2024-06-04 09:38:24 +02:00
Marvin Hagemeister
049bb49c07
chore: fix type error ( #2486 )
...
We only checking types in CI in `src/` + `tests/`. This PR adds the
other folders.
2024-06-03 17:46:42 +02:00
Marvin Hagemeister
cbbcca63f6
chore: release another alpha ( #2485 )
2024-06-03 17:31:47 +02:00
Marvin Hagemeister
848834e6a7
chore: add test for island updater ( #2484 )
2024-06-03 17:25:41 +02:00
Marvin Hagemeister
e007597ff3
feat: remove MODE global ( #2483 )
2024-06-03 16:54:37 +02:00
Luca Casonato
aa19b393e7
feat: export compat types from /compat export ( #2478 )
2024-06-03 14:32:38 +00:00
Marvin Hagemeister
2fb8606e9e
fix: path handling inconsistencies ( #2482 )
2024-06-03 15:03:48 +02:00
Marvin Hagemeister
9347b84cba
feat: inject process.env.NODE_ENV for third party libs ( #2481 )
2024-05-31 15:18:23 +02:00
Marvin Hagemeister
88c3671a09
fix: error handling in fs routes ( #2474 )
...
Ran into an issue where we weren't responding with the correct status
code and passed response headers. This was a bit of a rabbit hole and it
was caused by us wrapping to more error handling middlewares than
necessary.
2024-05-31 14:27:36 +02:00
Luca Casonato
8d85945da6
fix: remove Data from FreshContext ( #2473 )
...
This is now only on `PageProps`.
2024-05-31 13:50:28 +02:00
Luca Casonato
dc283a137b
fix: remove @fresh/core/client export ( #2477 )
...
These files are now referenced with https URLs.
2024-05-29 12:20:57 +02:00
Luca Casonato
4fab47357f
tests: wait for esbuild to shut down ( #2476 )
2024-05-27 20:03:48 +02:00
Luca Casonato and Marvin Hagemeister
d06dad5be6
tests: don't disable all the sanitizers ( #2472 )
...
The tests also pass with them enabled for me.
---------
Co-authored-by: Marvin Hagemeister <marvin@deno.com >
2024-05-27 15:00:40 +02:00
Marvin Hagemeister
bd60444f7c
fix: only generate stack on HttpError if status >= 500 ( #2470 )
2024-05-27 14:34:36 +02:00
Marvin Hagemeister
8865d290ce
www: switch to precompile jsx ( #2469 )
2024-05-25 13:31:12 +02:00
Duncan Holm
67a3714db3
docs: Fix name of JSR update tool ( #2468 )
2024-05-25 12:33:28 +02:00
Marvin Hagemeister
5dd854341c
www: add back trailing slash handling ( #2467 )
...
In Fresh 2 trailing slash handling isn't applied automatically anymore
and I forgot to do that when merging the Fresh 2 code base.
While we're at it, I've added a section for that to our migration guide.
2024-05-25 12:11:13 +02:00
Florject
6a7f41f084
chore: update link in README ( #2466 )
...
Corrects an incorrect link in the README
2024-05-25 12:06:11 +02:00
Marvin Hagemeister
da858d0b34
www: improve error page design ( #2463 )
...
<img width="978" alt="Screenshot 2024-05-24 at 23 46 38"
src="https://github.com/denoland/fresh/assets/1062408/3ec2bdc5-e5fb-41f3-827e-7fd791569673 ">
2024-05-25 08:14:17 +02:00
Marvin Hagemeister
7e6f5d55b7
chore: release 2.0.0-alpha.11 ( #2464 )
2024-05-25 00:33:46 +02:00