From c4ee536c7ac423d0517a6bcc581974f01cef9655 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Sat, 4 May 2024 11:34:12 -0400 Subject: [PATCH] pin new versions --- checker.tsx | 10 +++++----- deno.jsonc | 14 ++++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/checker.tsx b/checker.tsx index c44c7bd..599651f 100644 --- a/checker.tsx +++ b/checker.tsx @@ -167,10 +167,10 @@ export async function Check() const importMap = imports.json.imports as Record; const bake =async(obj:ConfigCheck)=> await Deno.writeTextFile(Deno.cwd()+"/"+obj.path, JSON.stringify(obj.json, null, "\t")); - importMap["react"] = `https://esm.sh/preact@10.18.1/compat`; - importMap["react/"] = `https://esm.sh/preact@10.18.1/compat/`; - importMap["@preact/signals"] = `https://esm.sh/@preact/signals@1.2.1`; - importMap["@twind/core"] = `https://esm.sh/@twind/core@1.1.3`; + importMap["react"] = `https://esm.sh/preact@10.20.2/compat`; + importMap["react/"] = `https://esm.sh/preact@10.20.2/compat/`; + importMap["@preact/signals"] = `https://esm.sh/@preact/signals@1.2.3?deps=preact@10.20.2`; + importMap["@twind/core"] = `https://esm.sh/v126/@twind/core@1.1.3/es2022/core.mjs`; importMap[">able/"] = `${RootHost}`; if(!importMap[">able/app.tsx"]) { @@ -200,7 +200,7 @@ export async function Check() { "lib": ["deno.window", "dom", "dom.iterable", "dom.asynciterable"], "jsx": "react-jsx", - "jsxImportSource": "react" + "jsxImportSource": importMap["react"] } const optionsCurrent = config.json.compilerOptions as Record || {}; //const compLib:string[] = compOpts.lib as string[] || []; diff --git a/deno.jsonc b/deno.jsonc index aab72ec..c729253 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,11 +1,13 @@ { "imports": { - "react": "https://esm.sh/preact@10.18.1/compat", - "react-original": "https://esm.sh/preact@10.18.1/compat", - "react/": "https://esm.sh/preact@10.18.1/compat/", - "@preact/signals": "https://esm.sh/@preact/signals@1.2.1", - "signals-original": "https://esm.sh/@preact/signals@1.2.1", + + "react": "https://esm.sh/preact@10.20.2/compat", + "react-original": "https://esm.sh/preact@10.20.2/compat", + "react/": "https://esm.sh/preact@10.20.2/compat/", + "@preact/signals": "https://esm.sh/@preact/signals@1.2.3?deps=preact@10.20.2", "@twind/core": "https://esm.sh/@twind/core@1.1.3", + + ">able/": "./", ">able/app.tsx": "./app.tsx" }, @@ -19,7 +21,7 @@ }, "compilerOptions": { "jsx": "react-jsx", - "jsxImportSource": "react", + "jsxImportSource": "https://esm.sh/preact@10.20.2/compat", "lib": [ "deno.window", "dom", -- 2.34.1