Skip to content

Commit 9221520

Browse files
author
DevBot
committed
fix(v0.41.0-alpha1): add missing deps from rebase and fix CI gates
- Add sanitize-html + @types/sanitize-html to adapter-vite and content deno.json - Change markdown.ts and head-injection.ts to use bare import from imports map - Add flexsearch to root deno.json (needed by open-search island) - Remove @openelement/protocol from removedPackages in check-package-surface.ts - Fix trailing newline formatting issues Verification: - deno task test: 894 passed, 0 failed - deno task autoflow:push: 5/5 gates PASS (fmt:check, lint, typecheck, graph:check, package-surface:check) - deno task build: passed
1 parent 482d35a commit 9221520

11 files changed

Lines changed: 22 additions & 13 deletions

File tree

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"@playwright/test": "npm:@playwright/test@1.59.1",
2525
"preact": "npm:preact@^10.28.0",
2626
"preact-render-to-string": "npm:preact-render-to-string@^6.5.0",
27-
"@preact/signals-core": "npm:@preact/signals-core@^1.12.1"
27+
"@preact/signals-core": "npm:@preact/signals-core@^1.12.1",
28+
"flexsearch": "npm:flexsearch@^0.7"
2829
},
2930
"vendor": true,
3031
"nodeModulesDir": "manual",

deno.lock

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/current/VERSION_PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ Build/test gates: `deno task test`, `deno task test:coverage:check`,
123123
- `docs/release/v0.41.0.md` summarizing the distribution migration.
124124
- Updated `docs/status/STATUS.md` active line section.
125125
- Updated `docs/roadmap/ROADMAP.md` version ladder and v0.41.0 section.
126-
- CI run evidence showing `deno-api:check` and `pack:dry-run` pass.
126+
- CI run evidence showing `deno-api:check` and `pack:dry-run` pass.

docs/governance/PROJECT_WORKFLOW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ record the npm outcome truthfully.
116116

117117
`deno task workflow:check` verifies that the workflow itself remains visible and
118118
that the active version plan has the required shape. AutoFlow3 is the single
119-
gate and evidence control plane for hooks and CI.
119+
gate and evidence control plane for hooks and CI.

packages/adapter-vite/deno.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"imports": {
1717
"@mdx-js/rollup": "npm:@mdx-js/rollup@^3.1.1",
1818
"@hono/vite-dev-server": "npm:@hono/vite-dev-server@^0.25.3",
19+
"sanitize-html": "npm:sanitize-html@^2.17.4",
20+
"@types/sanitize-html": "npm:@types/sanitize-html@^2",
1921
"vite": "npm:vite@8.0.10"
2022
},
2123
"tasks": {

packages/adapter-vite/src/head-injection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { OpenElementError } from '@openelement/core/errors';
1616
import { escapeAttr as escapeHtmlAttr } from '@openelement/core';
1717
import { createLogger } from '@openelement/core/logger';
1818
// @deno-types="npm:@types/sanitize-html@^2"
19-
import sanitizeHtml, { type IOptions as SanitizeHtmlOptions } from 'npm:sanitize-html@^2.17.4';
19+
import sanitizeHtml, { type IOptions as SanitizeHtmlOptions } from 'sanitize-html';
2020

2121
const log = createLogger('adapter-vite:head-injection');
2222

packages/content/deno.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"marked": "npm:marked@^15",
1515
"gray-matter": "npm:gray-matter@^4.0.3",
1616
"@mdx-js/mdx": "npm:@mdx-js/mdx@^3.1.1",
17+
"sanitize-html": "npm:sanitize-html@^2.17.4",
18+
"@types/sanitize-html": "npm:@types/sanitize-html@^2",
1719
"vite": "npm:vite@8.0.10"
1820
},
1921
"publish": {

packages/content/src/blog/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import matter from 'gray-matter';
88
import { marked } from 'marked';
99
// @deno-types="npm:@types/sanitize-html@^2"
10-
import sanitizeHtml from 'npm:sanitize-html@^2.17.4';
10+
import sanitizeHtml from 'sanitize-html';
1111
import type { BlogPost, OpenElementBlogOptions } from './types.ts';
1212

1313
/**

tools/autoflow/release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,4 +422,4 @@ export async function runCaptured(command: string[]): Promise<string> {
422422
throw new Error(`${command.join(' ')} failed with exit ${output.code}\n${stdout}${stderr}`);
423423
}
424424
return stdout;
425-
}
425+
}

tools/check-package-surface.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const removedPackages = [
2323
'@openelement/compat-check',
2424
'@openelement/elements',
2525
'@openelement/hub',
26-
'@openelement/protocol',
2726
'@openelement/protocols',
2827
'@openelement/rpc',
2928
'@openelement/runtime',

0 commit comments

Comments
 (0)