Commit Graph
152 Commits
Author SHA1 Message Date
Bartek Iwańczuk 214975d90d chore: inline ga4 module and remove raw GitHub import (#3733)
## Summary
- Inlined the `$ga4` module (from
`https://raw.githubusercontent.com/denoland/ga4/main/mod.ts`) into
`www/utils/ga4.ts`
- Replaced old `deno.land/std` URL imports with `@std/http`
(`getCookies`, `STATUS_TEXT`)
- Inlined the trivial `snakeCase` helper (was from `deno.land/x/case`)
- Removed `$ga4` import map entry from `deno.json`

The ga4 package was never published to jsr or npm, so inlining was the
cleanest way to eliminate the last raw URL-based dependency.
2026-03-28 12:05:13 +00:00
Bartek IwańczukandClaude Opus 4.6 220368aa15 chore: migrate docsearch and imagescript to npm/jsr imports (#3732)
## Summary
- **docsearch**: Replaced `esm.sh` URL with `npm:@docsearch/js@^3.5.2`.
Added a type cast workaround in `SearchButton.tsx` since Deno's type
checker treats this npm package as CJS (missing `"type": "module"`).
- **imagescript**: Replaced `deno.land/x` URL with
`jsr:@matmen/imagescript@^1.3.0`. Clean swap, no code changes needed.

These were legacy URL-based imports from before Deno had native `npm:`
and `jsr:` support.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 11:44:37 +00:00
Bartek IwańczukandClaude Opus 4.6 2c94a1da2e ci: add link checker to CI (#3707)
## Summary
- Rewrite `tools/check_links.ts` to be more robust (inspired by
denoland/docs' `better_link_checker.ts`)
- Add `deno task check:links` to `deno.json`
- Wire it into CI as a new step (Ubuntu + v2.x only, after `build-www`)
- Add missing `docs/latest/examples/index.md` to fix broken
`/docs/examples` link
- Crawl up to 10 pages concurrently for faster link checking

## What the link checker does
1. Builds the www site with Vite
2. Launches a production server
3. Crawls all internal links starting from the root (10 pages
concurrently)
4. Reports broken links (4xx/5xx) with referrer info
5. Detects empty `href` attributes
6. Prints a summary at the end instead of throwing on first failure

Improvements over the old `check_links.ts`:
- Doesn't throw on first 404 — collects all failures and reports at the
end
- Detects empty hrefs
- Skips non-HTML content, fragment-only links, external links, and
common static file extensions
- Shows referrer for each broken link so you know where to fix it

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 13:49:17 +00:00
022835cce6 perf: make updater faster by streaming instead of reading into memory (#3630)
Fix system crash (OOM) caused by updater spending time in folders like
docs/

- Skip hidden and vendor directories (node_modules, vendor, docs, etc.)
to avoid OOM
- free ASTs immediately
- ts-morph dependency bumped to ^27.0.2

Closes https://github.com/denoland/fresh/issues/3483

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 20:01:01 +01:00
Marvin Hagemeister 89ddbc4f4b chore: update preact version (#3664) 2026-01-07 14:17:59 +01:00
Marvin Hagemeister 5c2b04bc2b chore: try vendor + parallel (#3628) 2025-11-18 13:58:36 +01:00
Marvin Hagemeister 45538532e8 chore: revert vendor: true (#3626)
This change was accidentally included in:
https://github.com/denoland/fresh/pull/3624
2025-11-18 12:49:53 +01:00
Marvin Hagemeister f5c0f16878 fix(vite): source mapping locations (#3624)
Mappings were wrong for a few reasons:
- Missing source map generation in one babel transform
- setting `compact: false` causes vite to generate incorrect mappings in
`vite:import-analysis`
- stack traces need to be mapped by vite

Fixes https://github.com/denoland/fresh/issues/3609
2025-11-18 11:40:52 +01:00
Marvin Hagemeister 76dfc65e63 chore: update @astral/astral (#3583) 2025-10-29 17:41:46 +01:00
fry69andMarvin Hagemeister f7a2422e93 fix: set nodeModulesDir to manual (#3493)
Hopefully a less invasive fix for #3378

---------

Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
2025-09-25 20:54:27 +02:00
Marvin Hagemeister 9b83a1e1b3 fix(vite): cover more commonjs cases (#3465)
Fixes https://github.com/denoland/fresh/issues/3463
Fixes https://github.com/denoland/fresh/issues/3449
2025-09-19 18:36:51 +02:00
Marvin Hagemeister ae3db58a99 fix(vite): .env files not being loaded (#3416)
Fixes https://github.com/denoland/fresh/issues/3364
2025-09-12 18:21:51 +02:00
Marvin Hagemeister fb341e4ab7 chore: release 2.0.0 (#3371) 2025-09-09 18:52:36 +02:00
Marvin Hagemeister 79d8cfc3ed docs: make 2.x the default version (#3369) 2025-09-09 14:36:51 +02:00
Marvin Hagemeister 6e9f586c54 chore: release 2.0.0-beta.5 and @fresh/plugin-vite@0.10.2 (#3365)
Fixes https://github.com/denoland/fresh/issues/3363
2025-09-08 22:07:49 +02:00
Marvin Hagemeister 4c3ff9b74d chore: fix demo tasks (#3354) 2025-09-08 15:43:07 +02:00
Marvin Hagemeister e21d6742d2 chore: add demo tasks (#3332) 2025-09-03 18:52:19 +02:00
Marvin Hagemeister fd2ebc63c5 fix(init): setup vite/client types on init (#3327)
Note that this also requires
https://github.com/denoland/deno/issues/30560 to work. That will be
released in either Deno `2.4.6` or `2.5.0` depending on which one comes
first.

Fixes https://github.com/denoland/fresh/issues/3319
2025-09-03 12:02:52 +02:00
Marvin Hagemeister ff9db336f7 feat(vite): check valid imports per environment (#3299)
Fixes https://github.com/denoland/fresh/issues/3296
2025-09-01 17:30:30 +02:00
Marvin Hagemeister 70bcac298c chore: add @types/node to silence LSP warning (#3293) 2025-09-01 12:15:48 +02:00
Marvin Hagemeister 541bc6c6ca feat(vite): support remote islands (#3294) 2025-09-01 12:11:08 +02:00
Marvin Hagemeister e3b429ac9d chore: ignore tests publish (#3291) 2025-09-01 08:53:51 +02:00
Marvin Hagemeister 7a3c1a0c84 fix: exclude test files during publish (#3289)
Properly addresses https://github.com/denoland/fresh/pull/3288
2025-09-01 08:46:35 +02:00
Marvin Hagemeister 37a5d991a7 chore: exclude tests from publish (#3288) 2025-09-01 08:32:24 +02:00
Marvin Hagemeister 4fe0199c9f www: port fresh.deno.dev to vite (#3227)
This PR ports fresh.deno.dev to use our vite plugin.
2025-08-29 16:41:16 +02:00
Marvin Hagemeister b41c151de3 fix(vite): serve css imported in islands (#3272)
Fixes https://github.com/denoland/fresh/issues/3271
2025-08-29 14:30:00 +02:00
Marvin Hagemeister 1daca75489 feat: bring back <Head> component (#3249)
This PR brings back the `<Head>` component from Fresh 1.x . The
implementation is much cleaner than back then and also works client-side
now too.
2025-08-25 15:40:47 +02:00
Marvin Hagemeister 59549c9532 fix(vite): npm resolution + cjs + duplicated preact signals (#3211) 2025-08-16 19:26:39 +02:00
Marvin Hagemeister 477fcefed4 feat: support inlining FRESH_PUBLIC_ env vars (#3214)
Fixes https://github.com/denoland/fresh/issues/3213
2025-08-12 12:00:59 +02:00
Marvin Hagemeister 815b1940e3 chore: restructure repository into packages/ folder (#3197)
We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
2025-08-06 15:52:45 +02:00
Marvin Hagemeister f35338b75f chore: release 2.0.0-alpha.56 (#3195) 2025-08-06 13:01:02 +02:00
Marvin Hagemeister 83036d87ee fix: extract build-id into seperate package to fix publishing (#3194)
Also makes it easier to replace during bundling.
2025-08-06 12:53:50 +02:00
Marvin Hagemeister ba2e01fec0 chore: release 2.0.0-alpha.55 (#3193) 2025-08-06 12:23:47 +02:00
Marvin Hagemeister 36aa9b5639 feat: add vite plugin (#3187)
Second attempt after we had to revert
https://github.com/denoland/fresh/pull/3185
2025-08-06 12:13:22 +02:00
Marvin Hagemeister d108b2c182 chore: release 2.0.0-alpha.54 (#3192) 2025-08-05 16:04:40 +02:00
Marvin Hagemeister a6a16dbd18 fix: unable to load json inside npm packages (#3191) 2025-08-05 16:00:58 +02:00
Marvin Hagemeister c2a5812644 chore: release 2.0.0-alpha.53 (#3190) 2025-08-05 15:00:35 +02:00
Marvin Hagemeister 2f76a0a2aa Revert "feat: Add experimental vite plugin (#3184)" (#3185)
This reverts commit a1571b76ed.

It broke fresh.deno.dev :S
2025-08-04 18:54:04 +02:00
Marvin Hagemeister a1571b76ed feat: Add experimental vite plugin (#3184)
This PR adds a vite plugin for Fresh. This enables:

- HMR (only for islands for now)
- self-contained output bundles for both server and client
- smarter chunking

It uses vite's new Environment API under the hood.
2025-08-04 18:30:05 +02:00
Marvin Hagemeister 03f6981860 fix: serialized compute signals re-created as normal signals (#3183)
Fixes https://github.com/denoland/fresh/issues/3182
2025-08-03 20:31:36 +02:00
Marvin Hagemeister a472f0c3c6 chore: release 2.0.0-alpha.52 (#3172) 2025-08-01 14:31:35 +02:00
Marvin Hagemeister 6e287e1201 fix: wasm recurse error esbuild plugin (#3169) 2025-08-01 14:25:43 +02:00
Marvin Hagemeister 6a41b7b194 chore: release 2.0.0-alpha.51 (#3166) 2025-08-01 10:15:22 +02:00
Marvin Hagemeister 1cecb372a6 chore: update @deno/esbuild-plugin (#3164)
It contains a few good bug fixes as it doesn't rely on entrypoints
anymore.
2025-08-01 09:05:32 +02:00
Marvin Hagemeister c08710f7dd chore: release 2.0.0-alpha.50 (#3160) 2025-07-31 09:31:35 +02:00
Marvin Hagemeister f87d2180fb chore: release 2.0.0-alpha.49 (#3156) 2025-07-30 15:20:36 +02:00
Marvin Hagemeister d8d19c4113 chore: release 2.0.0-alpha.48 (#3154) 2025-07-30 12:33:00 +02:00
Marvin Hagemeister d44dcdd60e chore: release 2.0.0-alpha.47 (#3152) 2025-07-30 09:10:08 +02:00
Marvin Hagemeister ff34ec8342 chore: lift dependency to deno.json + update esbuild (#3142) 2025-07-25 19:01:28 +02:00
Marvin Hagemeister d573622a40 feat: add separate tailwindcss v3 plugin (#3135)
Makes it easier to keep using tailwindcss v3 with newer Fresh versions.
2025-07-25 10:27:22 +02:00