Start renaming

This commit is contained in:
2026-11-11 11:45:20 -03:00
parent ae22ec5276
commit 216d54a0ae
179 changed files with 890 additions and 449 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { App, staticFiles } from "fresh";
import { App, staticFiles } from "sweet";
import {
ALL_ISLAND_DIR,
assertNotSelector,
@@ -10,7 +10,7 @@ import {
} from "./test_utils.tsx";
import { FakeServer } from "../src/test_utils.ts";
import { Partial } from "fresh/runtime";
import { Partial } from "sweet/runtime";
const allIslandCache = await buildProd({ islandDir: ALL_ISLAND_DIR });
+5 -5
View File
@@ -20,11 +20,11 @@ Deno.test("Docs Code example checks", async () => {
const denoJson = {
lock: false,
imports: {
fresh: `jsr:@fresh/core@${FRESH_VERSION}`,
"@fresh/plugin-tailwind-v3":
`jsr:@fresh/plugin-tailwind@^${twDenoJson.version}`,
"@fresh/plugin-tailwind":
`jsr:@fresh/plugin-tailwind@^${twDenoJson.version}`,
fresh: `jsr:@paulaboks/sweet@${FRESH_VERSION}`,
"@paulaboks/sweet-tailwind-v3":
`jsr:@paulaboks/sweet-tailwind@^${twDenoJson.version}`,
"@paulaboks/sweet-tailwind":
`jsr:@paulaboks/sweet-tailwind@^${twDenoJson.version}`,
preact: `npm:preact@^${PREACT_VERSION}`,
"@deno/gfm": "jsr:@deno/gfm@^0.11.0",
"@std/expect": "jsr:@std/expect@^1.0.16",
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function DynamicMetaIsland() {
const [count, setCount] = useState(0);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function LinkIsland() {
const [ready, setReady] = useState(false);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function MetaIsland() {
const [ready, setReady] = useState(false);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function MultiHeadA() {
const [ready, setReady] = useState(false);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function MultiHeadB() {
const [ready, setReady] = useState(false);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function StyleIdIsland() {
const [ready, setReady] = useState(false);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function TemplateIsland() {
const [ready, setReady] = useState(false);
@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
import { Head } from "sweet/runtime";
export function TitleIsland() {
const [s, set] = useState(0);
@@ -1,4 +1,4 @@
import type { PageProps } from "@fresh/core";
import type { PageProps } from "@paulaboks/sweet";
export default function Page({ Component }: PageProps) {
return (
@@ -1,6 +1,6 @@
import { useEffect } from "preact/hooks";
import { useSignal } from "@preact/signals";
import { IS_BROWSER } from "fresh/runtime";
import { IS_BROWSER } from "sweet/runtime";
export function NodeProcess() {
const active = useSignal(false);
@@ -1,4 +1,4 @@
import { Partial } from "fresh/runtime";
import { Partial } from "sweet/runtime";
export function PartialInIsland() {
return (
+1 -1
View File
@@ -5,7 +5,7 @@ import rootConfig from "../../../deno.json" with { type: "json" };
import freshConfig from "../deno.json" with { type: "json" };
Deno.test("Fresh version consistency", () => {
const freshImport: string = rootConfig.imports.fresh;
const freshImport: string = rootConfig.imports.sweet;
const rangeStr = freshImport.split("@").pop()!;
const importRange = tryParseRange(rangeStr);
+2 -2
View File
@@ -1,5 +1,5 @@
import { App, staticFiles } from "fresh";
import { Head } from "fresh/runtime";
import { App, staticFiles } from "sweet";
import { Head } from "sweet/runtime";
import {
buildProd,
parseHtml,
+1 -1
View File
@@ -1,4 +1,4 @@
import { App, staticFiles } from "fresh";
import { App, staticFiles } from "sweet";
import { BlockIsland } from "./fixtures_islands/BlockIsland.tsx";
import { Counter } from "./fixtures_islands/Counter.tsx";
import { IslandInIsland } from "./fixtures_islands/IslandInIsland.tsx";
+1 -1
View File
@@ -5,7 +5,7 @@
* and has no element with `f-client-nav="true"`. The full Fresh client runtime
* (fresh-runtime.js + inline boot script) must only appear when actually needed.
*/
import { App } from "fresh";
import { App } from "sweet";
import { signal } from "@preact/signals";
import { Counter } from "./fixtures_islands/Counter.tsx";
import { expect } from "@std/expect";
+2 -2
View File
@@ -1,5 +1,5 @@
import { App, staticFiles } from "fresh";
import { Partial } from "fresh/runtime";
import { App, staticFiles } from "sweet";
import { Partial } from "sweet/runtime";
import {
ALL_ISLAND_DIR,
assertMetaContent,