Marvin Hagemeister
37a5d991a7
chore: exclude tests from publish ( #3288 )
2025-09-01 08:32:24 +02:00
Marvin Hagemeister
1e9ddcccc0
fix(init): document --vite arg ( #3277 )
2025-09-01 08:28:07 +02:00
Marvin Hagemeister
6c43edf451
www: fix slug ( #3287 )
...
Fixes https://github.com/denoland/fresh/issues/3254
2025-09-01 08:14:14 +02:00
Marvin Hagemeister
5d7a4c8e07
chore: rename non-jsx files .tsx -> .ts ( #3285 )
2025-09-01 08:03:04 +02:00
Marvin Hagemeister and fry69
33cb164b7d
fix(init): document Vite and ask in init ( #3281 ) ( #3286 )
...
Expands #3277
---------
Co-authored-by: fry69 <142489379+fry69@users.noreply.github.com >
2025-09-01 07:58:37 +02:00
Marvin Hagemeister
e33b447768
docs: remove version from init command ( #3276 )
2025-08-29 22:25:13 +02:00
Marvin Hagemeister
e1ab331528
chore: release @fresh/init@2.0.1 ( #3280 )
2025-08-29 21:25:16 +02:00
Marvin Hagemeister
839d4a5841
fix(init): get latest version from JSR ( #3279 )
2025-08-29 21:24:37 +02:00
Marvin Hagemeister
ce04409fad
chore: release 2.0.0-beta.1 ( #3275 )
2025-08-29 18:03:06 +02:00
Marvin Hagemeister
05203000da
feat(init): mark init as stable to make init command shorter ( #3274 )
2025-08-29 17:50:03 +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
8f8a6174ec
chore: release @fresh/plugin-vite@0.9.6 ( #3273 )
2025-08-29 14:35:15 +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
b2c4f049bc
fix(vite): island hmr ( #3269 )
2025-08-28 15:47:55 +02:00
Marvin Hagemeister
62b62058fa
feat(init): add --vite to bootstrap with vite ( #3270 )
2025-08-28 15:43:36 +02:00
Marvin Hagemeister
b0e75b7199
fix(vite): add back support for Preact DevTools ( #3266 )
2025-08-27 09:43:39 +02:00
Marvin Hagemeister
4803f2d80b
fix(vite): disable babel code size warning ( #3265 )
2025-08-27 09:43:23 +02:00
Marvin Hagemeister
111fe8063d
fix(vite): use better node -> fetch request polyfill ( #3267 )
2025-08-27 09:29:24 +02:00
Marvin Hagemeister
795ac6da2c
chore: release @fresh/plugin-vite@0.9.5 ( #3264 )
2025-08-26 15:30:02 +02:00
Marvin Hagemeister
bdf560ce22
fix(vite): reload page on route change ( #3263 )
2025-08-26 14:46:04 +02:00
Marvin Hagemeister
7afae637fe
chore: simplify fallback rendering ( #3262 )
2025-08-26 14:38:44 +02:00
Marvin Hagemeister
671af16a82
chore: release @fresh/plugin-vite@0.9.4 ( #3260 )
2025-08-26 10:26:22 +02:00
Marvin Hagemeister
a203448e01
chore: release 2.0.0-alpha.63 ( #3261 )
2025-08-26 10:16:41 +02:00
Marvin Hagemeister
f3c1a08c88
fix: remove reliance on cwd in App ( #3259 )
2025-08-26 10:07:36 +02:00
Marvin Hagemeister
adc5c2e4a8
chore: speed up vite tests ( #3258 )
2025-08-26 09:52:26 +02:00
Marvin Hagemeister
a743b0c5d3
fix(vite): account for query params in module ids ( #3257 )
2025-08-26 09:35:27 +02:00
Marvin Hagemeister
f1fe325c6d
chore: release 2.0.0-alpha.62 ( #3253 )
2025-08-25 18:46:09 +02:00
Marvin Hagemeister
46ccff35c3
fix: disable client-side <Head>component until perf issue is fixed ( #3255 )
...
Need to look at it in more detail tomorrow.
2025-08-25 18:45:56 +02:00
Marvin Hagemeister
8717fb8f77
chore: release @fresh/plugin-vite@0.9.3 ( #3251 )
2025-08-25 16:50:11 +02:00
Marvin Hagemeister
0555f9616c
chore: release 2.0.0-alpha.61 ( #3239 )
2025-08-25 16:05:17 +02:00
Marvin Hagemeister
280754ee09
fix(vite): update fresh version dependency ( #3250 )
2025-08-25 15:57:07 +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
bf25d10a84
fix(vite): support commonjs module.exports assignment ( #3247 )
2025-08-25 08:48:34 +02:00
Marvin Hagemeister
9975d1698f
fix(vite): client hmr ( #3246 )
2025-08-22 15:42:09 +02:00
Marvin Hagemeister
19af779873
chore: release @fresh/plugin-vite@0.9.2 ( #3241 )
2025-08-22 14:03:50 +02:00
Marvin Hagemeister
d1f7d49466
fix(vite): importing node:* builtins ( #3245 )
2025-08-22 13:58:39 +02:00
Marvin Hagemeister
138784a58e
fix(vite): address more commonjs scenarios ( #3244 )
2025-08-22 13:46:15 +02:00
Marvin Hagemeister
5c3fe27046
chore: refactor tests ( #3243 )
2025-08-22 12:14:19 +02:00
Marvin Hagemeister
873c54bd5f
feat(vite): get rid of unnecessary polyfills ( #3242 )
2025-08-22 11:23:57 +02:00
Marvin Hagemeister
27c2910b1d
fix(vite): babel transform being applied for non-js files ( #3238 )
2025-08-21 20:03:00 +02:00
Marvin Hagemeister
6dd250c520
chore: release 2.0.0-alpha.60 ( #3237 )
2025-08-21 18:27:56 +02:00
Marvin Hagemeister
85143f3c56
chore: release @fresh/plugin-vite@0.9.1 ( #3235 )
2025-08-21 14:38:05 +02:00
Marvin Hagemeister
105ffe55ee
fix(vite): only transform js-like files in deno loader ( #3234 )
2025-08-21 14:29:13 +02:00
Marvin Hagemeister
647d6f9adb
chore: release 2.0.0-alpha.59 ( #3231 )
...
Fixes https://github.com/denoland/fresh/issues/3229
2025-08-20 09:48:41 +02:00
Marvin Hagemeister
14fe895ba1
chore: release @fresh/plugin-vite@0.9.0 ( #3228 )
...
Doing a bigger version jump because I think it's close to being ready.
2025-08-19 19:56:48 +02:00
Marvin Hagemeister
ffa57be765
fix(vite): partial island loading ( #3226 )
2025-08-19 17:58:17 +02:00
Marvin Hagemeister
afdf5eaf6c
fix(vite): asset handling ( #3225 )
...
This PR reworks asset handling in our vite plugin. Importing assets in
js is now supported.
2025-08-19 16:45:33 +02:00
Marvin Hagemeister
09b0c73d9f
docs: mention new entrypoint in migration guide ( #3222 )
2025-08-18 12:58:39 +02:00
Marvin Hagemeister
f80d049dca
fix(vite): inline FRESH_PUBLIC_* env vars ( #3221 )
2025-08-16 23:14:03 +02:00
Marvin Hagemeister
59549c9532
fix(vite): npm resolution + cjs + duplicated preact signals ( #3211 )
2025-08-16 19:26:39 +02:00
Marvin Hagemeister
e05fd10977
chore: release 2.0.0-alpha.58 ( #3217 )
2025-08-12 12:55:38 +02:00
Marvin Hagemeister
fe4a59a88c
feat: support custom server entry ( #3216 )
2025-08-12 12:50:10 +02:00
Marvin Hagemeister
f27f10fbcb
docs: fix duplicate line ( #3215 )
2025-08-12 12:34:15 +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
d026375c3e
fix(vite): error when npm package requires json files ( #3210 )
2025-08-08 14:16:38 +02:00
Marvin Hagemeister
1f3f0a48f5
chore: release @fresh/plugin-vite@0.0.3 ( #3209 )
2025-08-08 12:31:34 +02:00
Marvin Hagemeister
9a764ae116
fix: vite resolution + cjs fixes ( #3208 )
2025-08-08 12:27:21 +02:00
Marvin Hagemeister
c97e8226af
chore: release @fresh/plugin-vite@0.0.2 ( #3207 )
2025-08-08 09:36:23 +02:00
Marvin Hagemeister
22ebb2dbfa
fix: support optional static, routes and island dir in vite plugin ( #3206 )
2025-08-08 09:23:38 +02:00
Marvin Hagemeister
0664476e46
fix: workaround vite treating npm: as built-ins ( #3205 )
...
Upstream fix: https://github.com/vitejs/vite/pull/20558
2025-08-08 00:22:54 +02:00
Marvin Hagemeister
a084a2c536
fix: unable to load CommonJS in vite plugin ( #3204 )
...
Vite has an internal check that limits CommonJS detection to only bare
specifier. This doesn't work well together with us resolving npm modules
to absolute file paths.
https://github.com/vitejs/vite/blob/main/packages/vite/src/node/ssr/fetchModule.ts#L46
I've tried re-using our own instance of `@rollup/plugin-commonjs` or
`esbuild` but couldn't get these to work in that setup. The easiest way
seems to be to just write our own CJS -> ESM translation layer.
With a little luck since the Deno ecosystem is heavy into ESM we might
get away with this. In either way this removes one of the two blockers
to using the vite plugin.
2025-08-08 00:04:16 +02:00
Marvin Hagemeister
3d1eb2c346
fix: basePath not working in dev server ( #3202 )
...
Fixes https://github.com/denoland/fresh/issues/3201
2025-08-07 12:38:37 +02:00
Marvin Hagemeister
073bacfbbb
chore: release 2.0.0-alpha.57 ( #3200 )
2025-08-06 17:55:19 +02:00
Marvin Hagemeister
d14d623482
fix: esbuild build-id plugin not loading published package ( #3199 )
2025-08-06 17:52:34 +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
27e407a1e3
feat: add define.layout helper ( #3198 )
2025-08-06 15:23:18 +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
ad76097581
fix: windows static file path handling ( #3188 )
2025-08-05 14:56:35 +02:00
Marvin Hagemeister
71b7d922ea
fix: add deno compile entry ( #3189 )
...
Fixes https://github.com/denoland/fresh/issues/3123
2025-08-05 14:53:08 +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
b0208c325d
chore: update CI to test build www on PRs ( #3171 )
...
This updates our CI workflow to build fresh.deno.dev as a quick e2e way
of checking you can build something.
We ran into a particular bug in the underlying `@deno/loader` library
that we use in our esbuild plugin that would have been caught by this.
2025-08-01 14:30:40 +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
5f928d2cac
fix(dev): dev server should not overtake app's root error handler ( #3165 )
2025-08-01 10:08:13 +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
62f8bb008e
docs: update Fresh 2 migration info ( #3161 )
2025-07-31 10:46:44 +02:00
Marvin Hagemeister
c08710f7dd
chore: release 2.0.0-alpha.50 ( #3160 )
2025-07-31 09:31:35 +02:00
Marvin Hagemeister
b898548e95
fix(build): incorrect specifier with file:// islands ( #3157 )
2025-07-31 09:23:15 +02:00
Marvin Hagemeister
f87d2180fb
chore: release 2.0.0-alpha.49 ( #3156 )
2025-07-30 15:20:36 +02:00
Marvin Hagemeister
996e4b0fb0
fix: missing fs routes due to floating promise ( #3155 )
...
This fixes a bug where file system routes where missing due to a
floating promise.
We really need type aware lint rules in Deno 👀
2025-07-30 15:17:33 +02:00
Marvin Hagemeister
d8d19c4113
chore: release 2.0.0-alpha.48 ( #3154 )
2025-07-30 12:33:00 +02:00
Marvin Hagemeister
1c9b096482
fix(dev): support registering islands as file URLs ( #3153 )
2025-07-30 12:29:29 +02:00
Marvin Hagemeister
d44dcdd60e
chore: release 2.0.0-alpha.47 ( #3152 )
2025-07-30 09:10:08 +02:00
Marvin Hagemeister
9d769f3cf1
feat: support setting production source maps on builder ( #3151 )
...
This adds a new `sourceMap` option on the `Builder` configuration. This
can be used to optionally specify how production source maps should be
generated.
See https://esbuild.github.io/api/#source-maps for more information.
2025-07-29 21:20:15 +02:00
Marvin Hagemeister
c30e46ec30
feat: optimize static asset content type handling ( #3149 )
...
No need to detect them at runtime when we can do this during build. This
saves us from having to load `@std/media-types` during production which
is quite a heavy library due to the amount of file types out there.
2025-07-29 20:30:13 +02:00
Marvin Hagemeister
b4e4a0c0f0
docs: update more pages for Fresh 2 ( #3141 )
2025-07-25 19:04: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
c9c85ba36d
docs: add page for define helpers ( #3139 )
2025-07-25 18:57:39 +02:00
Marvin Hagemeister
9e4dea516f
docs: add csrf() page ( #3138 )
2025-07-25 16:59:22 +02:00
Marvin Hagemeister
ae960adefd
chore: switch MiddlewareFn -> Middleware ( #3137 )
2025-07-25 16:00:49 +02:00
Marvin Hagemeister
3ad3e6ecf3
feat: support lazily loading routes/handlers ( #3131 )
...
We can improve cold start times by only loading route modules when the particular pattern matches. This PR introduces the concept of lazy middlewares, routes and handlers to do that.
2025-07-25 14:33:28 +02:00