update /www and tailwind-plugin to support tailwind v4.
Thanks to the merge of #3034, the work of integrating and advancing
#2903 is promoted.
related #3034
related #2903close#3056close#2819
--patch-1
based on review,
1. del compiler and make it more clean and simple,
2. fix init tailwind part,
3. fix test tailwind part
--patch-2
1. fix the docs
2. fix the docs of plugin and version
--patch-3
1. Addressed various maintenance tasks (chores)
2. Updated the Tailwind CSS plugin to align with this release. Generated
a fresh project using the updated init configuration and
3. deployed it via Deno Deploy EA. Deployment is functioning correctly.
--patch-4
Move postcss imports to Tailwind section in init script
--patch-5
Refactored Tailwind plugin type definitions by copying PluginOptions
properties from @tailwindcss/postcss and adding Fresh-specific exclude
option, while exporting types from package entrypoint for better
accessibility.
Test Project: https://fresh.fresh-press.deno.net/
Test Project Repository:
https://github.com/SisyphusZheng/fresh-tailwindv4
Test Plugin: https://jsr.io/@freshpress/fresh-plugin-tailwind@1.0.0
---------
Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Revise documentation to clarify how to use the latest Fresh 2 canary,
specific commits, and forks via deno.json. Add instructions for creating
new projects using JSR and local sources, and update references to
current package versions. Include links to the Fresh v2 blog and
migration guide for further reading.
close#3058
---------
Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com>
## Problem:
The problem was reproduced as described in #3002. Chrome DevTools shows
the following error:
props.js:137 Uncaught (in promise) InvalidCharacterError: Failed to
execute 'setAttribute' on 'Element': 'docs-content""' is not a valid
attribute name.
at j (props.js:137:8)
at V (index.js:528:5)
at O (index.js:326:28)
at I (children.js:97:16)
at V (index.js:547:4)
at O (index.js:326:28)
at I (children.js:97:16)
at V (index.js:547:4)
at O (index.js:326:28)
at I (children.js:97:16)
## Solution:
The issue was resolved by removing the double quotes around docs-content
in the Markdown image description. After this change, the application
resumed normal operation.
## Test:
Deno task ok and local env check
## Close:
close#3002
When using deno add @deno/gfm outputs the following:
```
error: @deno/gfm is missing a prefix. Did you mean `deno add jsr:@deno/gfm`?
```
Then when jsr is specified:
```
deno add jsr:@deno/gfm
Add jsr:@deno/gfm@0.10.0
```
deno --version: 2.1.4
This commit updates several links which are outdated and now redirect to
different URLs on the updated Deno website and documentation.
There are a few dozen instances of URLs starting with
`https:://deno.land/x` and `https:://deno.land/std`. I left these alone
since they are dependencies. Would it make sense to update these from
the versions hosted at `deno.land` to their JSR equivalents, since that
is the new and preferred location of the Deno Standard Library packages
as well as other JavaScript/TypeScript packages used by Deno projects?
For example, the latest version of the Deno Standard Library is now
hosted at `https://jsr.io/@std` instead of `https://deno.land/std`.

---------
Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
Tackling - https://github.com/denoland/fresh/issues/2546
Basically just inlined the old reference file and removed the islands
and app builder to make it a bit more streamlined.
Could make the example more dry but I'm not working from my normal dev
environment.
**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 🦕
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
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
Closes#1217
Adds an example on how to implement the PKCE authentication flow with
Supabase.
I included a link to a repo of mine holding the code to a fully fleshed
out example app as a more comprehensive point of reference, hope that is
ok. In fact, I was thinking of deploying that app on Deno Deploy and add
it to the Showcase section, lmk if that would be a good idea.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
closes https://github.com/denoland/fresh/issues/2319
The issue is because `imports.ts` wasn't changed before releasing. I
thought I would go through and bump some other versions as well. This
handles everything except the esbuild stuff and `tests/`.