From e6179aa2915e3cfcf116e2fcaaccade66caecb86 Mon Sep 17 00:00:00 2001 From: Taras Mankovski Date: Sun, 27 Sep 2026 22:12:54 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Upgrade=20staticalize=20to=200.3?= =?UTF-8?q?.1=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 was the first release with it, and 0.3.1 adds the fixes that came out of adopting it. The task takes staticalize from npm rather than jsr. Deno's minimum dependency age refuses a jsr version for its first 24 hours, which would block the task on the day of every staticalize release; npm resolution is not subject to it. The package publishes a `bin` rather than a `/cli` export, so the specifier loses its subpath, and the jsr entry the lockfile was carrying for it goes away with nothing referencing it. 0.3.1 restored the default for `--retries`, so the task does not need to pass it. The workflow keeps its explicit `--concurrency=25` and `--retries=5`, which predate all of this. This site is the one the others name as canonical, so it needs no `--canonical` of its own. --- .github/workflows/deploy.yaml | 4 ++-- deno.json | 2 +- deno.lock | 18 ------------------ 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6aaacdd3..0670a2a5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -46,7 +46,7 @@ jobs: - name: Download Staticalize run: | - wget https://github.com/thefrontside/staticalize/releases/download/v0.2.7/staticalize-linux.tar.gz \ + wget https://github.com/thefrontside/staticalize/releases/download/v0.3.1/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 @@ -131,7 +131,7 @@ jobs: - name: Download Staticalize run: | - wget https://github.com/thefrontside/staticalize/releases/download/v0.2.7/staticalize-linux.tar.gz \ + wget https://github.com/thefrontside/staticalize/releases/download/v0.3.1/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 diff --git a/deno.json b/deno.json index 3e10a292..9e6aa246 100644 --- a/deno.json +++ b/deno.json @@ -2,7 +2,7 @@ "tasks": { "dev": "deno -A jsr:@effection-contrib/watch deno run -A main.tsx --dev", "start": "deno -A main.tsx", - "staticalize": "deno run -A jsr:@frontside/staticalize@0.2.6/cli --site http://localhost:8005 --output=built --base=http://localhost:8005" + "staticalize": "deno run -A npm:staticalize@0.3.1 --site http://localhost:8005 --output=built --base=http://localhost:8005" }, "lint": { "rules": { diff --git a/deno.lock b/deno.lock index 81e6fded..cd05e804 100644 --- a/deno.lock +++ b/deno.lock @@ -3,7 +3,6 @@ "specifiers": { "jsr:@effection/effection@3.6.1": "3.6.1", "jsr:@frontside/continuation@0.1.6": "0.1.6", - "jsr:@frontside/staticalize@0.2.6": "0.2.6", "jsr:@libs/xml@6": "6.0.8", "jsr:@std/cli@^1.0.6": "1.0.7", "jsr:@std/encoding@^1.0.5": "1.0.5", @@ -57,23 +56,6 @@ "@frontside/continuation@0.1.6": { "integrity": "f36a3b9ccdf49f0b15778a5e11a37d91bb097f67522f17ca5fbd668560b31c17" }, - "@frontside/staticalize@0.2.6": { - "integrity": "1a346d477fc72724fc04860e67164d4585f8da274e84a09b33e23400768aee05", - "dependencies": [ - "jsr:@libs/xml", - "jsr:@std/fs@1", - "jsr:@std/path@1", - "npm:@effectionx/context-api", - "npm:@effectionx/stream-helpers", - "npm:clayterm", - "npm:configliere", - "npm:effection@^4.0.2", - "npm:hast-util-from-html@^2.0.3", - "npm:hast-util-select@^6.0.4", - "npm:hast-util-to-html@^9.0.5", - "npm:zod@^4.1.11" - ] - }, "@libs/xml@6.0.8": { "integrity": "7aac7438ddd460fede488d6420e4973438919b54b8e882e851ed9a234716baa3" },