Commit Graph
1099 Commits
Author SHA1 Message Date
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 CasonatoandMarvin 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
Marvin Hagemeister f9545c3d63 fix: don't show error overlay on HttpError < 500 (#2462) 2024-05-24 23:46:21 +02:00
Marvin HagemeisterandLuca Casonato 2b1de48ff1 docs: add Fresh 2 migration guide (#2459)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-05-24 21:09:51 +02:00
Marvin Hagemeister 9a7399a769 chore: disable sanitizers in esbuild tests (#2461) 2024-05-24 20:39:54 +02:00
Marvin Hagemeister 77dc77826e fix: only load error overlay in development (#2460) 2024-05-24 20:29:59 +02:00
Luca Casonato 584e5716c3 fix: init script (#2458) 2024-05-24 20:29:31 +02:00
Octo8080X 476b4c75a7 showcase: add 'Thoth-Doc' (#2455)
Hello, Deno team!

I have created document site using Fresh and would like you to register
with showcase.
[Thoth-Doc](https://thoth-doc.deno.dev/)

Best regards.Hello, Deno team!
2024-05-24 19:53:21 +02:00
Luca Casonato f2162d24bf feat: add render function (#2454) 2024-05-24 18:31:34 +02:00
Marvin Hagemeister 82d027cbcd www: fix fragment links hidden under sticky header (#2457) 2024-05-24 18:01:57 +02:00
Marvin Hagemeister 484d918307 www: port error pages to Fresh 2 (#2456)
Forgot to port the `_500.tsx` and `_400.tsx` error pages to Fresh 2
2024-05-24 17:31:52 +02:00
Luca Casonato c9f0ccdce7 feat: rename helpers to define (#2453) 2024-05-24 11:48:32 +02:00
Marvin Hagemeister c57d0ccb2f chore: another v2 alpha release (#2452) 2024-05-24 09:59:01 +02:00
Marvin Hagemeister 287929e4d2 major: import Fresh 2.0 code (#2449)
🎉
2024-05-24 09:40:08 +02:00
Josh Collinsworth 990357629e Chore: styling and verbiage cleanup (#2451)
- Better responsive styling of header, logo, nav menu and docs sidebar
- Specify UTC on homepage (since we can't localize server-side)
- Minor copy updates
2024-05-23 12:12:47 -05:00
Marvin Hagemeister baac482cf0 chore: remove .DS_Store (#2448) 2024-05-22 21:34:33 +02:00
Josh Collinsworth f26e6c778b Add JSR and Deno.com to showcase (#2447) 2024-05-22 14:30:54 -05:00
Josh Collinsworth 120d867d2d Fix CTA graphic (#2446) 2024-05-22 14:30:45 -05:00
Josh Collinsworth 8ef3e89a8c Change side-by-side sections to sticky (#2445) 2024-05-22 12:08:41 -05:00
Marvin Hagemeister cda9bdec6f chore: remove unused demo app (#2442) 2024-05-21 17:48:05 +02:00
Marvin Hagemeister e4981d30ad www: rework docs layout (#2429)
- Re-enable partials
- clean up layout a bit
2024-05-21 17:38:32 +02:00
Marvin Hagemeister 46f6c280ed www: social meta tag bot detection (#2441) 2024-05-21 17:14:05 +02:00
Marvin Hagemeister ec10ad59a4 www: fix home partial changing doc title (#2432)
Fixes https://github.com/denoland/fresh/issues/2431
2024-05-17 20:18:42 +02:00
Marvin Hagemeister 25d4d16a8f www: fully remove component gallery (#2430) 2024-05-17 18:39:32 +02:00
Josh Collinsworth e126196fe5 Update og image (#2428) 2024-05-17 11:19:23 -05:00
Josh CollinsworthandMarvin Hagemeister e8d1a68b58 www: refresh home page (#2418)
Overhauls the Fresh homepage with a new design, new demos, and new
sections highlighting Fresh's capabilities.

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2024-05-17 16:08:55 +02:00
Daniel G. Aubert 3b68a5d455 showcase: add dgaubert's showcase (#2422) 2024-05-07 12:38:04 +02:00
Sebastian Nomme 586706e24f docs: Update documentation for active link with Tailwind (#2417)
**Proposed change:**
- Document styling for aria-current attribute separately for Tailwind
and Twind.

**Disclaimer:**
I am new to open-source contributions and are unfamiliar with the
process for submitting a pull request. I have found some more areas of
improvement in the Fresh documentation. Should this PR not be
up-to-standards on how to contribute, please guide me in the right
direction. I have a few more suggestions on issues I found while
developing a new Fresh app.

Any guidance would be helpful, either reach out to me on GitHub, Discord
(bastianplsfix) or X (bastianplsfix).

Best,
Sebastian 🦕
2024-05-02 20:45:31 +02:00
Marcos Candeia 9404787c85 feat: Support startServer for unix domain sockets (#2392)
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
2024-05-02 20:45:10 +02:00
Marvin Hagemeister 40181142d2 fix: ServerhandlerInfo type for newer Deno versions (#2419)
Newer Deno versions have an additional `completed` property in there.
This PR allows Fresh to be used with both old and newer Deno versions
without getting type errors.
2024-05-02 20:41:33 +02:00
Kerim Hudson bc75101dcf docs: using server components in islands (#2416)
After reading the discussion at #2369, this PR introduces a small
addition to the docs which highlights how you can use server components
within islands.

This, coupled with the existing docs, should hopefully give people
enough of an example to understand that islands provide the
interactivity layer, and that server components within them can be
hydrated and made interactive too.

Closes #2369
2024-04-30 14:07:23 +02:00
epangelias 9c1e5239b6 showcase: Add virtualfreight.software (#2415) 2024-04-29 10:18:05 +02:00
Kerim Hudson 8e38211257 www: document colocation of route groups (#2413)
This adds in the information regarding co-location of islands and
components from [this blog
post](https://deno.com/blog/fresh-1.4#colocated-islands-components-and-more)
into the main documentation.

A lot of the text is pulled directly from the blog post, but I'm happy
to edit it if need be.

Closes #2305
2024-04-26 16:20:37 +02:00
Kerim Hudson c98579e499 fix: add .js + .jsx extension to tailwind content glob (#2414)
Whilst Deno supports Typescript by default, not everyone necessarily
will want to write every file in Typescript. If using TailwindCSS, at
the moment the files Tailwind searches for classes does not include
`.js` and `.jsx` endings. Whilst you can manually add them via the
`tailwind.config.ts`, it might be nice to have these added in by default
for a better onboarding experience.

Closes #2291
2024-04-26 16:09:17 +02:00