diff --git a/AGENTS.md b/AGENTS.md index 52039c9f..40791ed2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,20 +7,22 @@ with workspace members in `packages/*` and `www/`. ### Packages -- **`packages/fresh/`** (`@fresh/core`): Core framework — routing, rendering, - islands, build cache, middlewares, and client/server runtime. -- **`packages/plugin-vite/`** (`@fresh/plugin-vite`): Vite integration plugin +- **`packages/fresh/`** (`@paulaboks/sweet`): Core framework — routing, + rendering, islands, build cache, middlewares, and client/server runtime. +- **`packages/plugin-vite/`** (`@paulaboks/sweet-vite`): Vite integration plugin with dev server, SSR/client builds, and HMR. -- **`packages/init/`** (`@fresh/init`): Project scaffolding - (`deno run -Ar jsr:@fresh/init`). +- **`packages/init/`** (`@paulaboks/sweet-init`): Project scaffolding + (`deno run -Ar jsr:@paulaboks/sweet-init`). - **`packages/update/`** (`@fresh/update`): Automated Fresh 1.x to 2.x migration tool using ts-morph for AST transforms. -- **`packages/build-id/`** (`@fresh/build-id`): Build/deployment ID generation. -- **`packages/plugin-tailwindcss/`** (`@fresh/plugin-tailwind`): TailwindCSS v4 - plugin. -- **`packages/plugin-tailwindcss-v3/`** (`@fresh/plugin-tailwind-v3`): Legacy +- **`packages/build-id/`** (`@paulaboks/sweet-build-id`): Build/deployment ID + generation. +- **`packages/plugin-tailwindcss/`** (`@paulaboks/sweet-tailwind`): TailwindCSS + v4 plugin. +- **`packages/plugin-tailwindcss-v3/`** (`@paulaboks/sweet-tailwind-v3`): Legacy TailwindCSS v3 plugin. -- **`packages/examples/`** (`@fresh/examples`): Example components for tests. +- **`packages/examples/`** (`@paulaboks/sweet-examples`): Example components for + tests. ### Other directories diff --git a/README.md b/README.md index e7bbaf1e..b44f773a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ You can scaffold a new project by running the Fresh init script. To scaffold a project run the following: ```sh -deno run -Ar jsr:@fresh/init +deno run -Ar jsr:@paulaboks/sweet-init ``` Then navigate to the newly created project folder: diff --git a/deno.json b/deno.json index 4a683868..c3c21eea 100644 --- a/deno.json +++ b/deno.json @@ -43,7 +43,7 @@ "imports": { "@deno/doc": "jsr:@deno/doc@^0.172.0", "@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.2.0", - "@fresh/build-id": "jsr:@fresh/build-id@^1.0.0", + "@paulaboks/sweet-build-id": "jsr:@paulaboks/sweet-build-id@^1.0.0", "@std/cli": "jsr:@std/cli@^1.0.19", "@std/collections": "jsr:@std/collections@^1.1.2", "@std/dotenv": "jsr:@std/dotenv@^0.225.5", @@ -58,7 +58,7 @@ "docsearch": "npm:@docsearch/js@^3.5.2", "esbuild": "npm:esbuild@0.25.7", "esbuild-wasm": "npm:esbuild-wasm@0.25.7", - "fresh": "jsr:@fresh/core@^2.0.0", + "sweet": "jsr:@paulaboks/sweet@^2.0.0", "mime-db": "npm:mime-db@^1.54.0", "preact": "npm:preact@^10.28.2", "preact-render-to-string": "npm:preact-render-to-string@^6.6.5", diff --git a/deno.lock b/deno.lock index 3d597009..b6c94bf9 100644 --- a/deno.lock +++ b/deno.lock @@ -76,12 +76,12 @@ "npm:@preact/signals@2": "2.9.0_preact@10.29.1", "npm:@preact/signals@^2.2.1": "2.9.0_preact@10.29.1", "npm:@preact/signals@^2.5.1": "2.9.0_preact@10.29.1", - "npm:@prefresh/vite@^2.4.8": "2.4.11_preact@10.29.1_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3", - "npm:@radix-ui/themes@^3.2.1": "3.2.1_react@19.1.1_react-dom@19.1.1__react@19.1.1", + "npm:@prefresh/vite@^2.4.8": "2.4.11_preact@10.29.1_vite@7.3.1", + "npm:@radix-ui/themes@^3.2.1": "3.2.1_react@19.1.1_react-dom@19.1.1", "npm:@remix-run/node-fetch-server@0.12": "0.12.0", "npm:@supabase/postgrest-js@^1.21.4": "1.21.4", "npm:@tailwindcss/postcss@^4.1.10": "4.1.16", - "npm:@tailwindcss/vite@^4.1.12": "4.1.16_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_@types+node@24.9.2", + "npm:@tailwindcss/vite@^4.1.12": "4.1.16_vite@7.3.1_@types+node@24.9.2", "npm:@types/babel__core@^7.20.5": "7.20.5", "npm:@types/mime-db@^1.43.6": "1.43.6", "npm:@types/node@^24.1.0": "24.9.2", @@ -122,8 +122,8 @@ "npm:tailwindcss@^3.4.17": "3.4.18_postcss@8.5.6_jiti@1.21.7", "npm:tailwindcss@^4.1.10": "4.1.16", "npm:ts-morph@^27.0.2": "27.0.2", - "npm:vite-plugin-inspect@^11.3.2": "11.3.3_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_@types+node@24.9.2", - "npm:vite-plugin-pwa@^1.0.3": "1.2.0_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_workbox-build@7.4.0__@types+babel__core@7.20.5_workbox-window@7.4.0_@types+babel__core@7.20.5", + "npm:vite-plugin-inspect@^11.3.2": "11.3.3_vite@7.3.1_@types+node@24.9.2", + "npm:vite-plugin-pwa@^1.0.3": "1.2.0_vite@7.3.1_workbox-build@7.4.0_workbox-window@7.4.0_@types+babel__core@7.20.5", "npm:vite@^7.1.4": "7.3.1_@types+node@24.9.2_picomatch@4.0.3", "npm:vite@^7.3.1": "7.3.1_@types+node@24.9.2_picomatch@4.0.3" }, @@ -1630,7 +1630,7 @@ "@floating-ui/utils" ] }, - "@floating-ui/react-dom@2.1.6_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@floating-ui/react-dom@2.1.6_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw==", "dependencies": [ "@floating-ui/dom", @@ -1740,7 +1740,7 @@ "@prefresh/utils@1.2.1": { "integrity": "sha512-vq/sIuN5nYfYzvyayXI4C2QkprfNaHUQ9ZX+3xLD8nL3rWyzpxOm1+K7RtMbhd+66QcaISViK7amjnheQ/4WZw==" }, - "@prefresh/vite@2.4.11_preact@10.29.1_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3": { + "@prefresh/vite@2.4.11_preact@10.29.1_vite@7.3.1": { "integrity": "sha512-/XjURQqdRiCG3NpMmWqE9kJwrg9IchIOWHzulCfqg2sRe/8oQ1g5De7xrk9lbqPIQLn7ntBkKdqWXIj4E9YXyg==", "dependencies": [ "@babel/core", @@ -1761,7 +1761,7 @@ "@radix-ui/primitive@1.1.3": { "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==" }, - "@radix-ui/react-accessible-icon@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-accessible-icon@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A==", "dependencies": [ "@radix-ui/react-visually-hidden", @@ -1769,7 +1769,7 @@ "react-dom" ] }, - "@radix-ui/react-accordion@1.2.12_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-accordion@1.2.12_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==", "dependencies": [ "@radix-ui/primitive", @@ -1785,7 +1785,7 @@ "react-dom" ] }, - "@radix-ui/react-alert-dialog@1.1.15_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-alert-dialog@1.1.15_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==", "dependencies": [ "@radix-ui/primitive", @@ -1798,7 +1798,7 @@ "react-dom" ] }, - "@radix-ui/react-arrow@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-arrow@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==", "dependencies": [ "@radix-ui/react-primitive", @@ -1806,7 +1806,7 @@ "react-dom" ] }, - "@radix-ui/react-aspect-ratio@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-aspect-ratio@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==", "dependencies": [ "@radix-ui/react-primitive", @@ -1814,7 +1814,7 @@ "react-dom" ] }, - "@radix-ui/react-avatar@1.1.10_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-avatar@1.1.10_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==", "dependencies": [ "@radix-ui/react-context", @@ -1826,7 +1826,7 @@ "react-dom" ] }, - "@radix-ui/react-checkbox@1.3.3_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-checkbox@1.3.3_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==", "dependencies": [ "@radix-ui/primitive", @@ -1841,7 +1841,7 @@ "react-dom" ] }, - "@radix-ui/react-collapsible@1.1.12_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-collapsible@1.1.12_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==", "dependencies": [ "@radix-ui/primitive", @@ -1856,7 +1856,7 @@ "react-dom" ] }, - "@radix-ui/react-collection@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-collection@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==", "dependencies": [ "@radix-ui/react-compose-refs", @@ -1873,7 +1873,7 @@ "react" ] }, - "@radix-ui/react-context-menu@2.2.16_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-context-menu@2.2.16_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==", "dependencies": [ "@radix-ui/primitive", @@ -1892,7 +1892,7 @@ "react" ] }, - "@radix-ui/react-dialog@1.1.15_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-dialog@1.1.15_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==", "dependencies": [ "@radix-ui/primitive", @@ -1919,7 +1919,7 @@ "react" ] }, - "@radix-ui/react-dismissable-layer@1.1.11_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-dismissable-layer@1.1.11_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==", "dependencies": [ "@radix-ui/primitive", @@ -1931,7 +1931,7 @@ "react-dom" ] }, - "@radix-ui/react-dropdown-menu@2.1.16_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-dropdown-menu@2.1.16_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==", "dependencies": [ "@radix-ui/primitive", @@ -1951,7 +1951,7 @@ "react" ] }, - "@radix-ui/react-focus-scope@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-focus-scope@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==", "dependencies": [ "@radix-ui/react-compose-refs", @@ -1961,7 +1961,7 @@ "react-dom" ] }, - "@radix-ui/react-form@0.1.8_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-form@0.1.8_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ==", "dependencies": [ "@radix-ui/primitive", @@ -1974,7 +1974,7 @@ "react-dom" ] }, - "@radix-ui/react-hover-card@1.1.15_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-hover-card@1.1.15_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg==", "dependencies": [ "@radix-ui/primitive", @@ -1997,7 +1997,7 @@ "react" ] }, - "@radix-ui/react-label@2.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-label@2.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==", "dependencies": [ "@radix-ui/react-primitive", @@ -2005,7 +2005,7 @@ "react-dom" ] }, - "@radix-ui/react-menu@2.1.16_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-menu@2.1.16_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==", "dependencies": [ "@radix-ui/primitive", @@ -2030,7 +2030,7 @@ "react-remove-scroll" ] }, - "@radix-ui/react-menubar@1.1.16_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-menubar@1.1.16_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA==", "dependencies": [ "@radix-ui/primitive", @@ -2047,7 +2047,7 @@ "react-dom" ] }, - "@radix-ui/react-navigation-menu@1.2.14_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-navigation-menu@1.2.14_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==", "dependencies": [ "@radix-ui/primitive", @@ -2068,7 +2068,7 @@ "react-dom" ] }, - "@radix-ui/react-one-time-password-field@0.1.8_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-one-time-password-field@0.1.8_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg==", "dependencies": [ "@radix-ui/number", @@ -2087,7 +2087,7 @@ "react-dom" ] }, - "@radix-ui/react-password-toggle-field@0.1.3_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-password-toggle-field@0.1.3_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw==", "dependencies": [ "@radix-ui/primitive", @@ -2102,7 +2102,7 @@ "react-dom" ] }, - "@radix-ui/react-popover@1.1.15_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-popover@1.1.15_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==", "dependencies": [ "@radix-ui/primitive", @@ -2124,7 +2124,7 @@ "react-remove-scroll" ] }, - "@radix-ui/react-popper@1.2.8_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-popper@1.2.8_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==", "dependencies": [ "@floating-ui/react-dom", @@ -2141,7 +2141,7 @@ "react-dom" ] }, - "@radix-ui/react-portal@1.1.9_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-portal@1.1.9_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==", "dependencies": [ "@radix-ui/react-primitive", @@ -2150,7 +2150,7 @@ "react-dom" ] }, - "@radix-ui/react-presence@1.1.5_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-presence@1.1.5_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==", "dependencies": [ "@radix-ui/react-compose-refs", @@ -2159,7 +2159,7 @@ "react-dom" ] }, - "@radix-ui/react-primitive@2.1.3_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-primitive@2.1.3_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==", "dependencies": [ "@radix-ui/react-slot", @@ -2167,7 +2167,7 @@ "react-dom" ] }, - "@radix-ui/react-progress@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-progress@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==", "dependencies": [ "@radix-ui/react-context", @@ -2176,7 +2176,7 @@ "react-dom" ] }, - "@radix-ui/react-radio-group@1.3.8_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-radio-group@1.3.8_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==", "dependencies": [ "@radix-ui/primitive", @@ -2193,7 +2193,7 @@ "react-dom" ] }, - "@radix-ui/react-roving-focus@1.1.11_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-roving-focus@1.1.11_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==", "dependencies": [ "@radix-ui/primitive", @@ -2209,7 +2209,7 @@ "react-dom" ] }, - "@radix-ui/react-scroll-area@1.2.10_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-scroll-area@1.2.10_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==", "dependencies": [ "@radix-ui/number", @@ -2225,7 +2225,7 @@ "react-dom" ] }, - "@radix-ui/react-select@2.2.6_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-select@2.2.6_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==", "dependencies": [ "@radix-ui/number", @@ -2253,7 +2253,7 @@ "react-remove-scroll" ] }, - "@radix-ui/react-separator@1.1.7_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-separator@1.1.7_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==", "dependencies": [ "@radix-ui/react-primitive", @@ -2261,7 +2261,7 @@ "react-dom" ] }, - "@radix-ui/react-slider@1.3.6_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-slider@1.3.6_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==", "dependencies": [ "@radix-ui/number", @@ -2286,7 +2286,7 @@ "react" ] }, - "@radix-ui/react-switch@1.2.6_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-switch@1.2.6_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==", "dependencies": [ "@radix-ui/primitive", @@ -2300,7 +2300,7 @@ "react-dom" ] }, - "@radix-ui/react-tabs@1.1.13_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-tabs@1.1.13_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==", "dependencies": [ "@radix-ui/primitive", @@ -2315,7 +2315,7 @@ "react-dom" ] }, - "@radix-ui/react-toast@1.2.15_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-toast@1.2.15_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==", "dependencies": [ "@radix-ui/primitive", @@ -2334,7 +2334,7 @@ "react-dom" ] }, - "@radix-ui/react-toggle-group@1.1.11_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-toggle-group@1.1.11_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==", "dependencies": [ "@radix-ui/primitive", @@ -2348,7 +2348,7 @@ "react-dom" ] }, - "@radix-ui/react-toggle@1.1.10_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-toggle@1.1.10_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==", "dependencies": [ "@radix-ui/primitive", @@ -2358,7 +2358,7 @@ "react-dom" ] }, - "@radix-ui/react-toolbar@1.1.11_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-toolbar@1.1.11_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg==", "dependencies": [ "@radix-ui/primitive", @@ -2372,7 +2372,7 @@ "react-dom" ] }, - "@radix-ui/react-tooltip@1.2.8_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-tooltip@1.2.8_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==", "dependencies": [ "@radix-ui/primitive", @@ -2452,7 +2452,7 @@ "react" ] }, - "@radix-ui/react-visually-hidden@1.2.3_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/react-visually-hidden@1.2.3_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==", "dependencies": [ "@radix-ui/react-primitive", @@ -2463,7 +2463,7 @@ "@radix-ui/rect@1.1.1": { "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==" }, - "@radix-ui/themes@3.2.1_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "@radix-ui/themes@3.2.1_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-WJL2YKAGItkunwm3O4cLTFKCGJTfAfF6Hmq7f5bCo1ggqC9qJQ/wfg/25AAN72aoEM1yqXZQ+pslsw48AFR0Xg==", "dependencies": [ "@radix-ui/colors", @@ -2825,7 +2825,7 @@ "tailwindcss@4.1.16" ] }, - "@tailwindcss/vite@4.1.16_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_@types+node@24.9.2": { + "@tailwindcss/vite@4.1.16_vite@7.3.1_@types+node@24.9.2": { "integrity": "sha512-bbguNBcDxsRmi9nnlWJxhfDWamY3lmcyACHcdO1crxfzuLpOhHLLtEIN/nCbbAtj5rchUgQD17QVAKi1f7IsKg==", "dependencies": [ "@tailwindcss/node", @@ -4837,7 +4837,7 @@ "queue-microtask@1.2.3": { "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" }, - "radix-ui@1.4.3_react@19.1.1_react-dom@19.1.1__react@19.1.1": { + "radix-ui@1.4.3_react@19.1.1_react-dom@19.1.1": { "integrity": "sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==", "dependencies": [ "@radix-ui/primitive", @@ -5650,7 +5650,7 @@ "util-deprecate@1.0.2": { "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "vite-dev-rpc@1.1.0_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_@types+node@24.9.2": { + "vite-dev-rpc@1.1.0_vite@7.3.1_@types+node@24.9.2": { "integrity": "sha512-pKXZlgoXGoE8sEKiKJSng4hI1sQ4wi5YT24FCrwrLt6opmkjlqPPVmiPWWJn8M8byMxRGzp1CrFuqQs4M/Z39A==", "dependencies": [ "birpc", @@ -5658,13 +5658,13 @@ "vite-hot-client" ] }, - "vite-hot-client@2.1.0_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_@types+node@24.9.2": { + "vite-hot-client@2.1.0_vite@7.3.1_@types+node@24.9.2": { "integrity": "sha512-7SpgZmU7R+dDnSmvXE1mfDtnHLHQSisdySVR7lO8ceAXvM0otZeuQQ6C8LrS5d/aYyP/QZ0hI0L+dIPrm4YlFQ==", "dependencies": [ "vite" ] }, - "vite-plugin-inspect@11.3.3_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_@types+node@24.9.2": { + "vite-plugin-inspect@11.3.3_vite@7.3.1_@types+node@24.9.2": { "integrity": "sha512-u2eV5La99oHoYPHE6UvbwgEqKKOQGz86wMg40CCosP6q8BkB6e5xPneZfYagK4ojPJSj5anHCrnvC20DpwVdRA==", "dependencies": [ "ansis", @@ -5679,7 +5679,7 @@ "vite-dev-rpc" ] }, - "vite-plugin-pwa@1.2.0_vite@7.3.1__@types+node@24.9.2__picomatch@4.0.3_workbox-build@7.4.0__@types+babel__core@7.20.5_workbox-window@7.4.0_@types+babel__core@7.20.5": { + "vite-plugin-pwa@1.2.0_vite@7.3.1_workbox-build@7.4.0_workbox-window@7.4.0_@types+babel__core@7.20.5": { "integrity": "sha512-a2xld+SJshT9Lgcv8Ji4+srFJL4k/1bVbd1x06JIkvecpQkwkvCncD1+gSzcdm3s+owWLpMJerG3aN5jupJEVw==", "dependencies": [ "debug", @@ -5985,10 +5985,10 @@ "jsr:@astral/astral@~0.5.6", "jsr:@deno/doc@0.172", "jsr:@deno/esbuild-plugin@^1.2.0", - "jsr:@fresh/build-id@1", - "jsr:@fresh/core@2", "jsr:@marvinh-test/fresh-island@^0.0.3", "jsr:@matmen/imagescript@^1.3.0", + "jsr:@paulaboks/sweet-build-id@1", + "jsr:@paulaboks/sweet@2", "jsr:@std/async@^1.0.13", "jsr:@std/cli@^1.0.19", "jsr:@std/collections@^1.1.2", @@ -6042,7 +6042,7 @@ }, "packages/examples": { "dependencies": [ - "jsr:@fresh/core@2", + "jsr:@paulaboks/sweet@2", "npm:@preact/signals@^2.2.1", "npm:preact@^10.27.0" ] @@ -6079,8 +6079,8 @@ "packages/plugin-vite": { "dependencies": [ "jsr:@deno/loader@0.4", - "jsr:@fresh/core@2", "jsr:@marvinh-test/import-json@^0.0.1", + "jsr:@paulaboks/sweet@2", "npm:@babel/core@^7.28.0", "npm:@babel/preset-react@^7.27.1", "npm:@prefresh/vite@^2.4.8", diff --git a/docs/1.x/examples/using-fresh-canary-version.md b/docs/1.x/examples/using-fresh-canary-version.md index ddc2236d..6fc32aa8 100644 --- a/docs/1.x/examples/using-fresh-canary-version.md +++ b/docs/1.x/examples/using-fresh-canary-version.md @@ -29,7 +29,7 @@ If you need a particular commit (for testing specific fixes or features): "update": "deno run -A -r jsr:@fresh/update ." }, "imports": { -- "$fresh/": "jsr:@fresh/core@^2.0.0", +- "$fresh/": "jsr:@paulaboks/sweet@^2.0.0", + "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/your-commit-hash/", "preact": "npm:preact@^10.26.9", "@preact/signals": "npm:@preact/signals@^2.2.0" @@ -59,7 +59,7 @@ For testing your own fork or PR: ### Using JSR ```sh Terminal -deno run -A -r jsr:@fresh/init@2.0.0-alpha.35 +deno run -A -r jsr:@paulaboks/sweet-init@2.0.0-alpha.35 ``` ### From local source diff --git a/docs/latest/advanced/api-reference.md b/docs/latest/advanced/api-reference.md index ce6a65b9..8bb2f821 100644 --- a/docs/latest/advanced/api-reference.md +++ b/docs/latest/advanced/api-reference.md @@ -6,51 +6,51 @@ description: | This page lists all public exports from Fresh's entry points. > [info]: You can also explore Fresh's full API documentation on JSR: -> [`@fresh/core`](https://jsr.io/@fresh/core/doc) +> [`@paulaboks/sweet`](https://jsr.io/@paulaboks/sweet/doc) ## `fresh` The main entry point for server-side code. ```ts -import { App, createDefine, HttpError, page, staticFiles } from "fresh"; +import { App, createDefine, HttpError, page, staticFiles } from "sweet"; ``` -| Export | Kind | Description | -| --------------------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------- | -| [`App`](https://jsr.io/@fresh/core/doc/~/App) | Class | The main application class. See [App](/docs/concepts/app). | -| [`staticFiles`](https://jsr.io/@fresh/core/doc/~/staticFiles) | Function | Middleware for serving static files. See [Static Files](/docs/concepts/static-files). | -| [`createDefine`](https://jsr.io/@fresh/core/doc/~/createDefine) | Function | Create type-safe `define.*` helpers. See [Define Helpers](/docs/advanced/define). | -| [`page`](https://jsr.io/@fresh/core/doc/~/page) | Function | Return data from a handler to a page component. See [Data Fetching](/docs/concepts/data-fetching). | -| [`HttpError`](https://jsr.io/@fresh/core/doc/~/HttpError) | Class | Throw HTTP errors with status codes. See [Error Handling](/docs/advanced/error-handling). | -| [`cors`](https://jsr.io/@fresh/core/doc/~/cors) | Function | CORS middleware. See [cors](/docs/plugins/cors). | -| [`csrf`](https://jsr.io/@fresh/core/doc/~/csrf) | Function | CSRF protection middleware. See [csrf](/docs/plugins/csrf). | -| [`csp`](https://jsr.io/@fresh/core/doc/~/csp) | Function | Content Security Policy middleware. See [csp](/docs/plugins/csp). | -| [`trailingSlashes`](https://jsr.io/@fresh/core/doc/~/trailingSlashes) | Function | Trailing slash enforcement middleware. See [trailingSlashes](/docs/plugins/trailing-slashes). | +| Export | Kind | Description | +| -------------------------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------- | +| [`App`](https://jsr.io/@paulaboks/sweet/doc/~/App) | Class | The main application class. See [App](/docs/concepts/app). | +| [`staticFiles`](https://jsr.io/@paulaboks/sweet/doc/~/staticFiles) | Function | Middleware for serving static files. See [Static Files](/docs/concepts/static-files). | +| [`createDefine`](https://jsr.io/@paulaboks/sweet/doc/~/createDefine) | Function | Create type-safe `define.*` helpers. See [Define Helpers](/docs/advanced/define). | +| [`page`](https://jsr.io/@paulaboks/sweet/doc/~/page) | Function | Return data from a handler to a page component. See [Data Fetching](/docs/concepts/data-fetching). | +| [`HttpError`](https://jsr.io/@paulaboks/sweet/doc/~/HttpError) | Class | Throw HTTP errors with status codes. See [Error Handling](/docs/advanced/error-handling). | +| [`cors`](https://jsr.io/@paulaboks/sweet/doc/~/cors) | Function | CORS middleware. See [cors](/docs/plugins/cors). | +| [`csrf`](https://jsr.io/@paulaboks/sweet/doc/~/csrf) | Function | CSRF protection middleware. See [csrf](/docs/plugins/csrf). | +| [`csp`](https://jsr.io/@paulaboks/sweet/doc/~/csp) | Function | Content Security Policy middleware. See [csp](/docs/plugins/csp). | +| [`trailingSlashes`](https://jsr.io/@paulaboks/sweet/doc/~/trailingSlashes) | Function | Trailing slash enforcement middleware. See [trailingSlashes](/docs/plugins/trailing-slashes). | **Types:** -| Export | Kind | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------- | -| [`Context`](https://jsr.io/@fresh/core/doc/~/Context) / [`FreshContext`](https://jsr.io/@fresh/core/doc/~/FreshContext) | Interface | The request context passed to all middlewares and handlers. | -| [`PageProps`](https://jsr.io/@fresh/core/doc/~/PageProps) | Type | Props received by page components (`data`, `url`, `params`, `state`, etc.). | -| [`Middleware`](https://jsr.io/@fresh/core/doc/~/Middleware) / [`MiddlewareFn`](https://jsr.io/@fresh/core/doc/~/MiddlewareFn) | Type | Middleware function type. | -| [`HandlerFn`](https://jsr.io/@fresh/core/doc/~/HandlerFn) | Type | Single handler function type. | -| [`HandlerByMethod`](https://jsr.io/@fresh/core/doc/~/HandlerByMethod) | Type | Object with per-method handler functions. | -| [`RouteHandler`](https://jsr.io/@fresh/core/doc/~/RouteHandler) | Type | Union of `HandlerFn` and `HandlerByMethod`. | -| [`PageResponse`](https://jsr.io/@fresh/core/doc/~/PageResponse) | Type | Return type of `page()`. | -| [`RouteConfig`](https://jsr.io/@fresh/core/doc/~/RouteConfig) | Interface | Route configuration (`routeOverride`, `skipInheritedLayouts`, etc.). | -| [`LayoutConfig`](https://jsr.io/@fresh/core/doc/~/LayoutConfig) | Interface | Layout configuration (`skipInheritedLayouts`, `skipAppWrapper`). | -| [`Define`](https://jsr.io/@fresh/core/doc/~/Define) | Interface | Type of the object returned by `createDefine()`. | -| [`FreshConfig`](https://jsr.io/@fresh/core/doc/~/FreshConfig) / [`ResolvedFreshConfig`](https://jsr.io/@fresh/core/doc/~/ResolvedFreshConfig) | Interface | App configuration types. | -| [`ListenOptions`](https://jsr.io/@fresh/core/doc/~/ListenOptions) | Interface | Options for `app.listen()`. | -| [`Island`](https://jsr.io/@fresh/core/doc/~/Island) | Type | Island component type. | -| [`Method`](https://jsr.io/@fresh/core/doc/~/Method) | Type | HTTP method union type. | -| [`RouteData`](https://jsr.io/@fresh/core/doc/~/RouteData) | Type | Data type returned by route handlers via `page()`. | -| [`Lazy`](https://jsr.io/@fresh/core/doc/~/Lazy) / [`MaybeLazy`](https://jsr.io/@fresh/core/doc/~/MaybeLazy) | Type | Utility types for lazily-loaded routes and middleware. | -| [`CORSOptions`](https://jsr.io/@fresh/core/doc/~/CORSOptions) | Interface | Options for `cors()`. | -| [`CsrfOptions`](https://jsr.io/@fresh/core/doc/~/CsrfOptions) | Interface | Options for `csrf()`. | -| [`CSPOptions`](https://jsr.io/@fresh/core/doc/~/CSPOptions) | Interface | Options for `csp()`. | +| Export | Kind | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------- | +| [`Context`](https://jsr.io/@paulaboks/sweet/doc/~/Context) / [`FreshContext`](https://jsr.io/@paulaboks/sweet/doc/~/FreshContext) | Interface | The request context passed to all middlewares and handlers. | +| [`PageProps`](https://jsr.io/@paulaboks/sweet/doc/~/PageProps) | Type | Props received by page components (`data`, `url`, `params`, `state`, etc.). | +| [`Middleware`](https://jsr.io/@paulaboks/sweet/doc/~/Middleware) / [`MiddlewareFn`](https://jsr.io/@paulaboks/sweet/doc/~/MiddlewareFn) | Type | Middleware function type. | +| [`HandlerFn`](https://jsr.io/@paulaboks/sweet/doc/~/HandlerFn) | Type | Single handler function type. | +| [`HandlerByMethod`](https://jsr.io/@paulaboks/sweet/doc/~/HandlerByMethod) | Type | Object with per-method handler functions. | +| [`RouteHandler`](https://jsr.io/@paulaboks/sweet/doc/~/RouteHandler) | Type | Union of `HandlerFn` and `HandlerByMethod`. | +| [`PageResponse`](https://jsr.io/@paulaboks/sweet/doc/~/PageResponse) | Type | Return type of `page()`. | +| [`RouteConfig`](https://jsr.io/@paulaboks/sweet/doc/~/RouteConfig) | Interface | Route configuration (`routeOverride`, `skipInheritedLayouts`, etc.). | +| [`LayoutConfig`](https://jsr.io/@paulaboks/sweet/doc/~/LayoutConfig) | Interface | Layout configuration (`skipInheritedLayouts`, `skipAppWrapper`). | +| [`Define`](https://jsr.io/@paulaboks/sweet/doc/~/Define) | Interface | Type of the object returned by `createDefine()`. | +| [`FreshConfig`](https://jsr.io/@paulaboks/sweet/doc/~/FreshConfig) / [`ResolvedFreshConfig`](https://jsr.io/@paulaboks/sweet/doc/~/ResolvedFreshConfig) | Interface | App configuration types. | +| [`ListenOptions`](https://jsr.io/@paulaboks/sweet/doc/~/ListenOptions) | Interface | Options for `app.listen()`. | +| [`Island`](https://jsr.io/@paulaboks/sweet/doc/~/Island) | Type | Island component type. | +| [`Method`](https://jsr.io/@paulaboks/sweet/doc/~/Method) | Type | HTTP method union type. | +| [`RouteData`](https://jsr.io/@paulaboks/sweet/doc/~/RouteData) | Type | Data type returned by route handlers via `page()`. | +| [`Lazy`](https://jsr.io/@paulaboks/sweet/doc/~/Lazy) / [`MaybeLazy`](https://jsr.io/@paulaboks/sweet/doc/~/MaybeLazy) | Type | Utility types for lazily-loaded routes and middleware. | +| [`CORSOptions`](https://jsr.io/@paulaboks/sweet/doc/~/CORSOptions) | Interface | Options for `cors()`. | +| [`CsrfOptions`](https://jsr.io/@paulaboks/sweet/doc/~/CsrfOptions) | Interface | Options for `csrf()`. | +| [`CSPOptions`](https://jsr.io/@paulaboks/sweet/doc/~/CSPOptions) | Interface | Options for `csp()`. | ## `fresh/runtime` @@ -65,34 +65,34 @@ import { HttpError, IS_BROWSER, Partial, -} from "fresh/runtime"; +} from "sweet/runtime"; ``` -| Export | Kind | Description | -| --------------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------- | -| [`IS_BROWSER`](https://jsr.io/@fresh/core/doc/runtime/~/IS_BROWSER) | Constant | `true` in the browser, `false` on the server. Use to guard browser-only code. | -| [`asset`](https://jsr.io/@fresh/core/doc/runtime/~/asset) | Function | Add cache-busting query params to asset URLs. See [Static Files](/docs/concepts/static-files). | -| [`assetSrcSet`](https://jsr.io/@fresh/core/doc/runtime/~/assetSrcSet) | Function | Apply `asset()` to all URLs in a `srcset` string. | -| [`Partial`](https://jsr.io/@fresh/core/doc/runtime/~/Partial) | Component | Mark a region for partial updates. See [Partials](/docs/advanced/partials). | -| [`Head`](https://jsr.io/@fresh/core/doc/runtime/~/Head) | Component | Add elements to the document `
`. See [ element](/docs/advanced/head). | -| [`HttpError`](https://jsr.io/@fresh/core/doc/runtime/~/HttpError) | Class | HTTP error class (re-exported from `fresh`). | +| Export | Kind | Description | +| -------------------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------- | +| [`IS_BROWSER`](https://jsr.io/@paulaboks/sweet/doc/runtime/~/IS_BROWSER) | Constant | `true` in the browser, `false` on the server. Use to guard browser-only code. | +| [`asset`](https://jsr.io/@paulaboks/sweet/doc/runtime/~/asset) | Function | Add cache-busting query params to asset URLs. See [Static Files](/docs/concepts/static-files). | +| [`assetSrcSet`](https://jsr.io/@paulaboks/sweet/doc/runtime/~/assetSrcSet) | Function | Apply `asset()` to all URLs in a `srcset` string. | +| [`Partial`](https://jsr.io/@paulaboks/sweet/doc/runtime/~/Partial) | Component | Mark a region for partial updates. See [Partials](/docs/advanced/partials). | +| [`Head`](https://jsr.io/@paulaboks/sweet/doc/runtime/~/Head) | Component | Add elements to the document ``. See [ element](/docs/advanced/head). | +| [`HttpError`](https://jsr.io/@paulaboks/sweet/doc/runtime/~/HttpError) | Class | HTTP error class (re-exported from `fresh`). | ## `fresh/dev` Development and build tools. Only used in `dev.ts` (legacy) or build scripts. ```ts -import { Builder } from "fresh/dev"; +import { Builder } from "sweet/dev"; ``` -| Export | Kind | Description | -| --------------------------------------------------------- | ----- | ---------------------------------------------------------------------- | -| [`Builder`](https://jsr.io/@fresh/core/doc/dev/~/Builder) | Class | Pre-Vite build system (legacy). See [Builder](/docs/advanced/builder). | +| Export | Kind | Description | +| -------------------------------------------------------------- | ----- | ---------------------------------------------------------------------- | +| [`Builder`](https://jsr.io/@paulaboks/sweet/doc/dev/~/Builder) | Class | Pre-Vite build system (legacy). See [Builder](/docs/advanced/builder). | **Types:** -| Export | Kind | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------------------------- | -| [`BuildOptions`](https://jsr.io/@fresh/core/doc/dev/~/BuildOptions) | Interface | Options for `new Builder()`. | -| [`ResolvedBuildConfig`](https://jsr.io/@fresh/core/doc/dev/~/ResolvedBuildConfig) | Interface | Resolved build configuration. | -| [`OnTransformArgs`](https://jsr.io/@fresh/core/doc/dev/~/OnTransformArgs) / [`OnTransformOptions`](https://jsr.io/@fresh/core/doc/dev/~/OnTransformOptions) / [`TransformFn`](https://jsr.io/@fresh/core/doc/dev/~/TransformFn) | Type | Build plugin hook types. | +| Export | Kind | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------------------------- | +| [`BuildOptions`](https://jsr.io/@paulaboks/sweet/doc/dev/~/BuildOptions) | Interface | Options for `new Builder()`. | +| [`ResolvedBuildConfig`](https://jsr.io/@paulaboks/sweet/doc/dev/~/ResolvedBuildConfig) | Interface | Resolved build configuration. | +| [`OnTransformArgs`](https://jsr.io/@paulaboks/sweet/doc/dev/~/OnTransformArgs) / [`OnTransformOptions`](https://jsr.io/@paulaboks/sweet/doc/dev/~/OnTransformOptions) / [`TransformFn`](https://jsr.io/@paulaboks/sweet/doc/dev/~/TransformFn) | Type | Build plugin hook types. | diff --git a/docs/latest/advanced/app-wrapper.md b/docs/latest/advanced/app-wrapper.md index d4e501b0..d7505727 100644 --- a/docs/latest/advanced/app-wrapper.md +++ b/docs/latest/advanced/app-wrapper.md @@ -111,7 +111,7 @@ routes that return JSON, or pages that need a completely different HTML structure. Use `skipAppWrapper` in the route config: ```tsx routes/embed.tsx -import { type RouteConfig } from "fresh"; +import { type RouteConfig } from "sweet"; import { define } from "../utils.ts"; export const config: RouteConfig = { diff --git a/docs/latest/advanced/builder.md b/docs/latest/advanced/builder.md index 21703435..226bf540 100644 --- a/docs/latest/advanced/builder.md +++ b/docs/latest/advanced/builder.md @@ -11,7 +11,7 @@ The `Builder` class is used to generate production assets of your app. You'll typically find it being created inside your project's `dev.ts` file. ```ts dev.ts -import { Builder } from "fresh/dev"; +import { Builder } from "sweet/dev"; const builder = new Builder({ target: "safari12" }); @@ -167,12 +167,12 @@ that. } ``` -2. Run `deno install jsr:@fresh/plugin-tailwind` +2. Run `deno install jsr:@paulaboks/sweet-tailwind` 3. Update `dev.ts`: ```diff dev.ts - import { Builder } from "fresh/dev"; -+ import { tailwind } from "@fresh/plugin-tailwind"; + import { Builder } from "sweet/dev"; ++ import { tailwind } from "@paulaboks/sweet-tailwind"; const builder = new Builder(); + tailwind(builder); @@ -205,8 +205,8 @@ If you can't update to the current version of tailwindcss we have a dedicated decided on your own when it's best to update to v4. ```ts dev.ts -import { Builder } from "fresh/dev"; -import { tailwind } from "@fresh/plugin-tailwind-v3"; +import { Builder } from "sweet/dev"; +import { tailwind } from "@paulaboks/sweet-tailwind-v3"; tailwind(builder, {}); ``` diff --git a/docs/latest/advanced/define.md b/docs/latest/advanced/define.md index afe587ca..147b20a4 100644 --- a/docs/latest/advanced/define.md +++ b/docs/latest/advanced/define.md @@ -30,7 +30,7 @@ export async function otherMiddleware(ctx: Context