From 7e5bed730f4a94dc54a6924b003cd1e4e27c5cb6 Mon Sep 17 00:00:00 2001 From: Taras Mankovski Date: Mon, 28 Sep 2026 02:52:04 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Upgrade=20staticalize=20to=200.3?= =?UTF-8?q?.0=20so=20the=20sitemap=20is=20valid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every sitemap this site has deployed wraps each `` in `` rather than ``, which is not the sitemaps.org schema. Crawlers are handed a document whose entries they have no reason to understand. It went unnoticed because staticalize's own reader accepts either spelling, so a site staticalized twice round-trips its own invalid output. thefrontside/staticalize#15 fixes the writer; 0.3.0 is the first release with it. 0.3.0 requires `--retries`, where 0.2.x applied a default of 3. Neither the task nor the workflow passed it, so both pass 3 now and keep the behaviour they had. The `@frontside/staticalize` import map entry goes away rather than moving with them. Nothing imports that specifier — the task names the full `jsr:` url — and it was the only thing pinning the package in the lockfile. --- .github/workflows/www.yaml | 10 ++++++---- deno.lock | 1 - www/deno.json | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/www.yaml b/.github/workflows/www.yaml index f3f2c6bf..7c55fc71 100644 --- a/.github/workflows/www.yaml +++ b/.github/workflows/www.yaml @@ -51,7 +51,7 @@ jobs: - name: Download Staticalize run: | - wget https://github.com/thefrontside/staticalize/releases/download/v0.2.6/staticalize-linux.tar.gz \ + wget https://github.com/thefrontside/staticalize/releases/download/v0.3.0/staticalize-linux.tar.gz \ -O /tmp/staticalize-linux.tar.gz tar -xzf /tmp/staticalize-linux.tar.gz -C /usr/local/bin chmod +x /usr/local/bin/staticalize-linux @@ -61,7 +61,8 @@ jobs: staticalize-linux \ --site=http://127.0.0.1:8000 \ --output=www/built \ - --base=https://interactors.netlify.app + --base=https://interactors.netlify.app \ + --retries=3 - name: Deploy Preview to Netlify id: netlify @@ -127,7 +128,7 @@ jobs: - name: Download Staticalize run: | - wget https://github.com/thefrontside/staticalize/releases/download/v0.2.6/staticalize-linux.tar.gz \ + wget https://github.com/thefrontside/staticalize/releases/download/v0.3.0/staticalize-linux.tar.gz \ -O /tmp/staticalize-linux.tar.gz tar -xzf /tmp/staticalize-linux.tar.gz -C /usr/local/bin chmod +x /usr/local/bin/staticalize-linux @@ -137,7 +138,8 @@ jobs: staticalize-linux \ --site=http://127.0.0.1:8000 \ --output=www/built \ - --base=https://interactors.netlify.app + --base=https://interactors.netlify.app \ + --retries=3 - name: Deploy to Production run: | diff --git a/deno.lock b/deno.lock index 2b9bc5f3..7f1ccc75 100644 --- a/deno.lock +++ b/deno.lock @@ -4325,7 +4325,6 @@ "www": { "dependencies": [ "jsr:@deno/doc@0.188.0", - "jsr:@frontside/staticalize@0.2.2", "jsr:@std/crypto@^1.0.5", "jsr:@std/encoding@^1.0.10", "jsr:@std/fs@1", diff --git a/www/deno.json b/www/deno.json index 26ba7b93..57312b7c 100644 --- a/www/deno.json +++ b/www/deno.json @@ -1,7 +1,7 @@ { "tasks": { "dev": "deno run -A main.tsx", - "staticalize": "deno run -A jsr:@frontside/staticalize@0.2.2/cli --site http://localhost:8000 --output=built --base=http://localhost:8000" + "staticalize": "deno run -A jsr:@frontside/staticalize@0.3.0/cli --site http://localhost:8000 --output=built --base=http://localhost:8000 --retries=3" }, "lint": { "exclude": ["built", "tailwind"], @@ -21,7 +21,6 @@ "effection": "npm:effection@^3.6.1", "revolution": "https://deno.land/x/revolution@0.6.1/mod.ts", "revolution/jsx-runtime": "https://deno.land/x/revolution@0.6.1/jsx-runtime.ts", - "@frontside/staticalize": "jsr:@frontside/staticalize@0.2.2", "@std/crypto": "jsr:@std/crypto@^1.0.5", "@std/encoding": "jsr:@std/encoding@^1.0.10", "@std/fs": "jsr:@std/fs@1",