reactive-md 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG-ch.md +113 -96
  2. package/CHANGELOG.md +113 -96
  3. package/LICENSE +21 -21
  4. package/README-ch.md +123 -122
  5. package/README-en.md +147 -146
  6. package/README.md +147 -146
  7. package/bin/reactive-md.mjs +1 -1
  8. package/dist-library/reactive-md-react.js +199 -103
  9. package/dist-library/reactive-md.css +1 -1
  10. package/dist-library/reactive-md.js +1 -1
  11. package/dist-library/{runtime-DtjdPXxJ.js → runtime-D3QTVYaz.js} +122 -122
  12. package/dist-standalone/reactive-md-standalone.css +1 -1
  13. package/dist-standalone/reactive-md-standalone.js +1 -1
  14. package/docs/compatibility-ch.md +3 -3
  15. package/docs/compatibility-en.md +3 -3
  16. package/docs/release-0.4.0-ch.md +4 -4
  17. package/docs/release-0.4.0-en.md +4 -4
  18. package/docs/release-0.4.1-ch.md +23 -0
  19. package/docs/release-0.4.1-en.md +23 -0
  20. package/docs/releasing-ch.md +101 -101
  21. package/docs/releasing-en.md +101 -101
  22. package/examples/integration/core/package.json +7 -7
  23. package/examples/integration/react/index.html +12 -12
  24. package/examples/integration/react/main.jsx +21 -21
  25. package/examples/integration/react/package.json +9 -9
  26. package/examples/local/catalog.reactive.md +20 -20
  27. package/examples/local/checklist.reactive.md +32 -32
  28. package/examples/local/comparison.reactive.md +47 -47
  29. package/examples/local/components.reactive.md +44 -44
  30. package/examples/local/counter.reactive.md +7 -7
  31. package/examples/local/diagnostics.reactive.md +54 -54
  32. package/examples/local/diagram.reactive.md +44 -44
  33. package/examples/local/gallery.reactive.md +61 -61
  34. package/examples/local/parameters.reactive.md +36 -36
  35. package/examples/local/planning.reactive.md +24 -24
  36. package/examples/local/pricing.reactive.md +20 -20
  37. package/examples/local/zh/catalog.reactive.md +20 -20
  38. package/examples/local/zh/charts.reactive.md +73 -73
  39. package/examples/local/zh/checklist.reactive.md +32 -32
  40. package/examples/local/zh/comparison.reactive.md +47 -47
  41. package/examples/local/zh/components.reactive.md +44 -44
  42. package/examples/local/zh/counter.reactive.md +7 -7
  43. package/examples/local/zh/diagnostics.reactive.md +54 -54
  44. package/examples/local/zh/diagram.reactive.md +44 -44
  45. package/examples/local/zh/gallery.reactive.md +61 -61
  46. package/examples/local/zh/parameters.reactive.md +36 -36
  47. package/examples/local/zh/planning.reactive.md +24 -24
  48. package/examples/local/zh/pricing.reactive.md +20 -20
  49. package/package.json +91 -90
@@ -6,8 +6,8 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
6
6
 
7
7
  | 项目 | 当前值 | 说明 |
8
8
  | --- | --- | --- |
9
- | 包版本 | `0.4.0` | 预览版,发布在 `next` 分发渠道 |
10
- | 分发标签 | `next` → `0.4.0`;`latest` → `0.3.1` | `0.3.1` 保持稳定通道,直到另行决定提升 |
9
+ | 包版本 | `0.4.0` | 0.x 预览版,同时提供于 `latest` 和 `next` 渠道 |
10
+ | 分发标签 | `latest` → `0.4.0`;`next` → `0.4.0` | 默认安装使用 `latest` |
11
11
  | 语法版本 | `local-draft-2` | `LOCAL_SYNTAX_VERSION`;当前构建只接受这一修订 |
12
12
  | 源码修订指令 | 可选 `<!-- reactive-md: local-draft-2 -->` | 文档前导区中的一行;无指令源码继续按当前修订解析 |
13
13
  | 组块协议 | `component-protocol-1` | 贡献与验收契约,见[组块协议](component-protocol-ch.md);不是运行时版本选择参数 |
@@ -100,4 +100,4 @@ Node 端消费指在 Node 中导入 `reactive-md`、调用 `compileLocal` 和 `c
100
100
  语言范围见[语法规范](local-interaction-syntax-ch.md),安全边界与宿主责任见[安全策略](../SECURITY-ch.md)。
101
101
 
102
102
 
103
- 新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](local-components-v2-ch.md),升级清单见[0.4.0 发布与迁移](release-0.4.0-ch.md)。`0.4.0` 是 `next` 渠道的预览版,`0.3.1` 仍为 `latest`。
103
+ 新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](local-components-v2-ch.md),升级清单见[0.4.0 发布与迁移](release-0.4.0-ch.md)。`0.4.0` 同时提供于 `latest` 和 `next` 渠道。
@@ -6,8 +6,8 @@ Reactive MD is currently a 0.x preview. This page covers package versions, synta
6
6
 
7
7
  | Item | Current value | Notes |
8
8
  | --- | --- | --- |
9
- | Package version | `0.4.0` | Preview release, published on the `next` distribution channel |
10
- | Distribution tags | `next` → `0.4.0`; `latest` → `0.3.1` | `0.3.1` remains the stable channel until a separate promotion decision |
9
+ | Package version | `0.4.0` | 0.x preview, available on both `latest` and `next` |
10
+ | Distribution tags | `latest` → `0.4.0`; `next` → `0.4.0` | Default installs use `latest` |
11
11
  | Syntax version | `local-draft-2` | `LOCAL_SYNTAX_VERSION`; the current build accepts only this revision |
12
12
  | Source revision directive | Optional `<!-- reactive-md: local-draft-2 -->` | One line in the document prologue; unversioned source keeps current-revision behavior |
13
13
  | Component protocol | `component-protocol-1` | Contribution and acceptance contract, see [Component protocol](component-protocol-en.md); not a runtime version selection parameter |
@@ -100,4 +100,4 @@ Node-side consumption means importing `reactive-md` in Node and calling `compile
100
100
  See the [syntax specification](local-interaction-syntax-en.md) for the language scope, and the [security policy](../SECURITY.md) for the security boundary and host responsibilities.
101
101
 
102
102
 
103
- See [local-draft-2 components and migration](local-components-v2-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](release-0.4.0-en.md) for the upgrade checklist. `0.4.0` is the preview release on `next`; `0.3.1` remains `latest`.
103
+ See [local-draft-2 components and migration](local-components-v2-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](release-0.4.0-en.md) for the upgrade checklist. `0.4.0` is available on both `latest` and `next`.
@@ -1,8 +1,8 @@
1
1
  # 0.4.0 预览与迁移
2
2
 
3
- 状态:发布在 `next` 分发渠道的预览版。包版本 `0.4.0`,语法修订 `local-draft-2`,组块协议 `component-protocol-1`,主题协议 `reactive-md-theme-1`。这些是彼此独立的版本轴;`local-draft-2`、`component-protocol-1` 和 `reactive-md-theme-1` 都不是包版本。
3
+ 状态:同时提供于 `latest` 和 `next` 渠道的 0.x 预览版。包版本 `0.4.0`,语法修订 `local-draft-2`,组块协议 `component-protocol-1`,主题协议 `reactive-md-theme-1`。这些是彼此独立的版本轴;`local-draft-2`、`component-protocol-1` 和 `reactive-md-theme-1` 都不是包版本。
4
4
 
5
- 使用 `npm install reactive-md@next` 安装预览版,或用 `npm install reactive-md@0.4.0` 固定版本。`0.3.1` 仍为 `latest` 版本。
5
+ 使用 `npm install reactive-md` 安装,或用 `npm install reactive-md@0.4.0` 固定版本。`latest` 和 `next` 均指向 `0.4.0`。
6
6
 
7
7
  本文汇总 0.4.0 包含的能力、对现有文档和宿主的变化,以及从 `0.3.1` / `local-draft-1` 升级的步骤。具体规则仍以链接的参考页为准;本页是升级清单。显式修订声明和迁移工具见[源码修订与迁移](source-versioning-ch.md)。
8
8
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  - 需要命名计算、格式化、校验、集合、新输入类型、主题或离线 HTML 导出的作者。
12
12
  - 可以把宿主更新到 `local-draft-2`,并愿意补充 `LocalValueKind` 穷举、运行时适配器和状态处理的宿主。
13
- - 固定使用 `0.3.1`、只需要 `local-draft-1` 的项目可以继续留在旧版本;它仍为 `latest`。当前构建只接受一个语法修订,不提供独立的 `local-draft-1` 模式;使用受支持旧写法的无指令源码按 `local-draft-2` 规则读取,显式 `local-draft-1` 声明必须先迁移。
13
+ - 固定使用 `0.3.1`、只需要 `local-draft-1` 的项目可以继续固定使用该版本。当前构建只接受一个语法修订,不提供独立的 `local-draft-1` 模式;使用受支持旧写法的无指令源码按 `local-draft-2` 规则读取,显式 `local-draft-1` 声明必须先迁移。
14
14
 
15
15
  ## 0.4.0 包含的能力
16
16
 
@@ -70,7 +70,7 @@
70
70
 
71
71
  ## 升级清单
72
72
 
73
- 1. 从 `next` 安装 `0.4.0` 或固定 `0.4.0`,保存原始 `.reactive.md` 源码,并记录 `LOCAL_SYNTAX_VERSION`。
73
+ 1. 使用 `npm install reactive-md` 安装 `0.4.0` 或固定 `0.4.0`,保存原始 `.reactive.md` 源码,并记录 `LOCAL_SYNTAX_VERSION`。
74
74
  2. 对每份源码运行 `reactive-md migrate <file> --check` 或 `migrateLocalSource`。无版本声明的历史文档要加 `--from local-draft-1`;写出结果前处理全部阻止项。
75
75
  3. 在代码区域之外搜索 15 个新增可识别标签名,按需要转义或放进代码。
76
76
  4. 搜索 `bind`、`bind-start`、`bind-end`、`bind-x`、`bind-y` 的值,确认没有 17 个新增保留标识符;如有则重命名绑定和引用。核心入口的 `renameLocalBinding` 和编辑器重命名会同时更新声明、表达式引用与绘图参数。
@@ -1,8 +1,8 @@
1
1
  # 0.4.0 preview and migration
2
2
 
3
- Status: preview release on the `next` distribution channel. Package version `0.4.0`, syntax revision `local-draft-2`, component protocol `component-protocol-1`, theme protocol `reactive-md-theme-1`. These are separate version axes; `local-draft-2`, `component-protocol-1` and `reactive-md-theme-1` are not package versions.
3
+ Status: 0.x preview available on both `latest` and `next`. Package version `0.4.0`, syntax revision `local-draft-2`, component protocol `component-protocol-1`, theme protocol `reactive-md-theme-1`. These are separate version axes; `local-draft-2`, `component-protocol-1` and `reactive-md-theme-1` are not package versions.
4
4
 
5
- Install the preview with `npm install reactive-md@next`, or pin it with `npm install reactive-md@0.4.0`. `0.3.1` remains the `latest` release.
5
+ Install with `npm install reactive-md`, or pin it with `npm install reactive-md@0.4.0`. Both `latest` and `next` resolve to `0.4.0`.
6
6
 
7
7
  This page summarizes what 0.4.0 contains, what changes for existing documents and hosts, and how to move from `0.3.1` / `local-draft-1`. Detailed rules remain in the linked reference pages; this page is the upgrade checklist. Explicit revision declarations and the migration tools are specified in [Source revisions and migration](source-versioning-en.md).
8
8
 
@@ -10,7 +10,7 @@ This page summarizes what 0.4.0 contains, what changes for existing documents an
10
10
 
11
11
  - Authors who need named calculations, formatting, validation, collections, new input types, themes or offline HTML export.
12
12
  - Hosts that can adopt `local-draft-2` and update exhaustive `LocalValueKind` checks, runtime adapters and state handling.
13
- - Projects that pin `0.3.1` and only need `local-draft-1` can stay there; it remains the `latest` release. The build accepts one syntax revision and has no separate `local-draft-1` mode; unversioned source in supported old forms is read under `local-draft-2` rules, while an explicit `local-draft-1` declaration must be migrated first.
13
+ - Projects that pin `0.3.1` and only need `local-draft-1` can stay on that pinned version. The build accepts one syntax revision and has no separate `local-draft-1` mode; unversioned source in supported old forms is read under `local-draft-2` rules, while an explicit `local-draft-1` declaration must be migrated first.
14
14
 
15
15
  ## What 0.4.0 contains
16
16
 
@@ -70,7 +70,7 @@ A source may declare `<!-- reactive-md: local-draft-2 -->` in its prologue. Unve
70
70
 
71
71
  ## Upgrade checklist
72
72
 
73
- 1. Install `0.4.0` from `next` or pin `0.4.0`, keep the original `.reactive.md` sources and record `LOCAL_SYNTAX_VERSION`.
73
+ 1. Install `0.4.0` with `npm install reactive-md` or pin `0.4.0`, keep the original `.reactive.md` sources and record `LOCAL_SYNTAX_VERSION`.
74
74
  2. Run `reactive-md migrate <file> --check` or `migrateLocalSource` on each source. Unversioned historical documents need `--from local-draft-1`; resolve every reported blocker before writing output.
75
75
  3. Search prose and examples for the 15 newly recognized tag names outside code regions; escape them or move them into code.
76
76
  4. Search `bind`, `bind-start`, `bind-end`, `bind-x` and `bind-y` values for the 17 newly reserved identifiers; rename the bindings and their references. The core `renameLocalBinding` helper and the editor rename action update declarations, expression references and plot parameters together.
@@ -0,0 +1,23 @@
1
+ # 0.4.1 发布说明
2
+
3
+ `reactive-md@0.4.1` 是兼容 0.4.0 的补丁版。语法仍为 `local-draft-2`,组块协议为 `component-protocol-1`,主题协议为 `reactive-md-theme-1`;现有 0.4.0 文档无需迁移。
4
+
5
+ ```sh
6
+ npm install reactive-md@0.4.1
7
+ ```
8
+
9
+ 本版本发布于 `latest` 和 `next`。离线安装可下载 [npm 安装包](https://registry.npmjs.org/reactive-md/-/reactive-md-0.4.1.tgz)。
10
+
11
+ ## 变化
12
+
13
+ 文档采用更柔和的底色、较少的边框、低饱和图表配色和更平滑的控件动效。输入框和按钮使用气泡圆角;滑块轨道采用统一样式,并支持 `color` 设置背景色。表格占满容器并均衡分配列宽,用三角形表示排序方向;环形图更充分地利用可用空间。
14
+
15
+ LaTeX 使用正文字号和黑白文字颜色,分段函数的表达式与条件保持分离。坐标控件增加网格、箭头轴、虚线投影和可拖动的坐标标注点。quiz 输入框占满可用宽度,题目和操作区整体垂直居中。Playground 在工具栏插入后保留编辑器滚动位置,日期输入框适应窄屏。
16
+
17
+ 本次更新调整外观和交互,编译器、运行时与状态文件契约保持不变。使用自定义样式的宿主应检查新的默认外观。完整变化见[变更记录](../CHANGELOG-ch.md);从较早 minor 版本升级时,参阅[0.4.0 迁移指南](release-0.4.0-ch.md)。
18
+
19
+ ## 验证与限制
20
+
21
+ 发布检查覆盖核心与 Demo 测试、类型、包入口、文档链接、离线安装包消费、静态 SSR、独立 HTML 和浏览器交互。CI 目标为 Node 22.12、24 与 Chromium;本地浏览器检查使用 Windows 上的 Microsoft Edge。导出 HTML 以外的通用 SSR 水合、Firefox 和 WebKit 尚未验证。
22
+
23
+ 项目仍处于 0.x 预览阶段。安全边界和宿主职责见 [SECURITY-ch.md](../SECURITY-ch.md)。
@@ -0,0 +1,23 @@
1
+ # 0.4.1 release notes
2
+
3
+ `reactive-md@0.4.1` is a compatible patch for 0.4.0. It keeps `local-draft-2`, `component-protocol-1` and `reactive-md-theme-1`; existing 0.4.0 documents need no migration.
4
+
5
+ ```sh
6
+ npm install reactive-md@0.4.1
7
+ ```
8
+
9
+ The release is available on `latest` and `next`. For offline installation, use the [npm tarball](https://registry.npmjs.org/reactive-md/-/reactive-md-0.4.1.tgz).
10
+
11
+ ## Changes
12
+
13
+ Documents use quieter surfaces, fewer borders, muted chart colors and smoother control transitions. Fields and buttons have rounded ends; sliders have custom tracks that honor their `color` attribute. Tables fill their container with balanced columns and triangle sort indicators. Donut charts use more of the available space.
14
+
15
+ LaTeX uses the body font size and black/white ink, and piecewise expressions keep their conditions separate. Coordinate controls gain a grid, arrow axes, dashed projections and a labeled draggable point. Quiz inputs fill the container and the question and actions are vertically centered. The Playground preserves editor scroll after toolbar insertion and fits date inputs on narrow screens.
16
+
17
+ These are visual and interaction changes; the compiler, runtime and state-file contracts remain unchanged. Hosts with custom styles should review the revised defaults. See the [changelog](../CHANGELOG.md) and the [0.4.0 migration guide](release-0.4.0-en.md) when upgrading from an earlier minor release.
18
+
19
+ ## Validation and limits
20
+
21
+ Release verification covers core and demo tests, types, package exports, documentation links, offline tarball consumers, static SSR, standalone HTML and browser interactions. CI targets Node 22.12 and 24 with Chromium; local browser checks use Microsoft Edge on Windows. General SSR hydration outside exported HTML, Firefox and WebKit remain unverified.
22
+
23
+ The project remains a 0.x preview. Security boundaries and host responsibilities are documented in [SECURITY.md](../SECURITY.md).
@@ -1,101 +1,101 @@
1
- # 发布清单
2
-
3
- 本文件是维护者的手动发布流程。本清单覆盖发布在 `next` 渠道的 `0.4.0` 预览版;`0.3.1` 保持 `latest`,直到另行决定提升。版本规则见[版本与兼容性](compatibility-ch.md),面向使用者的升级说明见[0.4.0 发布与迁移](release-0.4.0-ch.md)。
4
-
5
- ## 发布前确认
6
-
7
- ### 包身份与元数据
8
-
9
- 非 scope 名称 `reactive-md` 已由已发布的 `0.3.0`、`0.3.1` 建立,`reactive-md/react` 和 `reactive-md/styles.css` 子路径也随这些版本生效。不要把改名当作常规发布准备:改名会破坏导入、状态工具和文档。
10
-
11
- 1. 除非维护者明确决定改用 scope,否则保持 `reactive-md`。scope 需要对应的 npm 账号或组织权限。
12
- 2. 如果改名,同时更新 `package.json` 的 `name`、文档中的导入语句、tarball 文件名说明、示例和两个子路径,并在变更记录中按破坏性变更说明。
13
- 3. 核对 `package.json` 的 `repository`、`homepage`、`bugs`、`license`、`engines` 等发布元数据;当前已设置,发布前确认 URL 和最低 Node 版本仍然正确,并确认 `private` 保持移除状态。
14
- 4. 确认 `files` 覆盖发布所需内容。当前包含 `dist-library`、`dist-standalone`、`bin`、`cli`、README(`README.md`、`README-en.md`、`README-ch.md`)、中英文贡献指南、变更记录与安全策略、`THIRD_PARTY_NOTICES.md`、`docs` 和 `examples`;新增文档或 notice 时同步加入 `files`。
15
-
16
- 包名和版本决定 tarball 名称。当前 `0.4.0` 的预期文件名是 `reactive-md-0.4.0.tgz`;改名或改版本后以 `npm pack` 的实际输出为准。
17
-
18
- ### 第三方 notice
19
-
20
- 库产物打包了 `remark-gfm@4.0.1`、`remark-parse@11.0.0`、`unified@11.0.5` 及其依赖。独立 HTML 运行时还打包了 React、React DOM 和 scheduler;库的 React 入口使用宿主提供的 peer dependency。`THIRD_PARTY_NOTICES.md` 保留这些打包依赖的版权和许可声明。
21
-
22
- 维护者在发布前:
23
-
24
- 1. 运行 `npm run notices`,从已安装依赖重新生成 `THIRD_PARTY_NOTICES.md`。生成脚本覆盖 `remark-gfm`、`remark-parse`、`unified`、`react`、`react-dom` 的依赖树和实际许可证文本,包括 scheduler。
25
- 2. 确认 `package.json` 的 `files` 包含 `THIRD_PARTY_NOTICES.md`,并随 tarball 分发。
26
- 3. 检查 `npm pack --dry-run` 的输出,确认没有 `node_modules`、`demo/`、`demo/artifacts/`、测试产物或本地缓存。
27
- 4. 核对依赖许可证与打包内容一致;新增或升级 Markdown 依赖后重新生成 notice。
28
-
29
- ## 本地 tarball 安装
30
-
31
- 完整的本地门禁是:
32
-
33
- ```sh
34
- npm ci
35
- npm run verify:release
36
- ```
37
-
38
- `verify:release` 运行 Node 端与浏览器检查,构建包,在仓库外安装真实 tarball,并验证多份能力组合后的文档行为;它自行管理预览服务和浏览器生命周期。CI 通过 `verify:release:node` 和 `verify:release:browser` 分片运行同一门禁。本机需已安装浏览器。
39
-
40
- packed 检查会在 `artifacts/release-package/` 保留经过验证的原始安装包,并在同目录的 `package-verification.json` 记录 SHA256 与 npm integrity。完整门禁通过后发布这一安装包;源码、包元数据或随包文档变化后重新验证。
41
-
42
- 需要手工检查包内容时,直接使用 tarball。在仓库根目录:
43
-
44
- ```sh
45
- npm pack
46
- ```
47
-
48
- `npm pack` 会通过 `prepack` 先运行构建和 `npm run notices`,生成 `dist-library/` 与 `THIRD_PARTY_NOTICES.md`。`dist-library/` 是 `package.json` 的 `exports` 指向的目录。随后在一个空目录中验证安装:
49
-
50
- ```sh
51
- mkdir /tmp/reactive-md-consumer
52
- cd /tmp/reactive-md-consumer
53
- npm init -y
54
- npm install /path/to/reactive-md-0.4.0.tgz
55
- ```
56
-
57
- 核心入口可在 Node 中直接检查:
58
-
59
- ```sh
60
- node --input-type=module -e "import { compileLocal, LOCAL_SYNTAX_VERSION } from 'reactive-md'; console.log(LOCAL_SYNTAX_VERSION, compileLocal('# ok').ok)"
61
- ```
62
-
63
- React 入口需要另装 React 19:
64
-
65
- ```sh
66
- npm install react@19 react-dom@19
67
- ```
68
-
69
- ```tsx
70
- import { LocalReactiveDocument } from 'reactive-md/react';
71
- import 'reactive-md/styles.css';
72
- ```
73
-
74
- 静态 SSR 渲染由 packed 检查覆盖。单文件导出的静态首屏水合由 Playwright Chromium 和本地 Edge 浏览器检查覆盖;该路径之外的通用 SSR 水合尚未验证。安装验证还应确认 tarball 中的 `dist-library/types`、`dist-standalone`、`bin`、`cli`、`README.md`、`README-en.md`、`README-ch.md`、`CHANGELOG-ch.md`、`SECURITY-ch.md`、`THIRD_PARTY_NOTICES.md`、`docs` 和 `examples` 完整,并检查 `docs` 中没有指向未打包 `demo/`、`src/`、`tests/` 或 `.tasks/` 文件的本地链接。
75
-
76
- ## 发布说明
77
-
78
- 发布说明面向使用者,至少包含:
79
-
80
- - 包版本、`LOCAL_SYNTAX_VERSION`、组块协议修订与主题协议修订;这些不是同一个版本号。
81
- - 安装方式:`npm install reactive-md@next`,或使用 `npm install reactive-md@<version>` 固定版本;并提供可下载 tarball 作为离线安装选项。
82
- - 用户可见变化、破坏性变更和迁移步骤;直接链接[变更记录](../CHANGELOG-ch.md),本轮同时链接[0.4.0 发布说明](release-0.4.0-ch.md)。
83
- - 已验证的平台,以及未验证的浏览器、通用 SSR 水合等范围。
84
- - 已知限制和安全说明链接 [SECURITY-ch.md](../SECURITY-ch.md)。
85
-
86
- 不要写尚未执行的检查结果,也不要把 CI 配置存在写成 CI 已通过。
87
-
88
- ## 人工发布清单
89
-
90
- 1. 确认工作区干净,变更已审查;`npm ci` 从锁文件安装成功。
91
- 2. 在 Node 22.12 和受支持的较新 LTS(当前为 24)上运行 `npm run verify:release`。这是维护者和 CI 共用的完整门禁,不要用一组自行挑选的命令代替。
92
- 3. 确认版本号、`CHANGELOG-ch.md` 和发布说明一致。语法变化时更新 `LOCAL_SYNTAX_VERSION`;组块或主题协议修订仅在各自契约变化时更新,这些版本轴保持独立。
93
- 4. 检查门禁保留的安装包,包括文件列表、大小和许可文件。手动重新运行 `npm pack` 会产生新候选包,需要单独完成安装验证。
94
- 5. 核对安装包的 SHA256 与 `artifacts/release-package/package-verification.json` 一致,并记录到发布说明或内部发布记录。
95
- 6. 合并发布提交,等待 `main` 上的 CI 全部通过。
96
- 7. 手动创建并推送 tag,例如 `v0.4.0`。不要在自动发布工作流中保存 npm token。
97
- 8. 在维护者本机完成 npm 登录和双因素认证后,手动发布已经验证的预览版安装包:`npm publish artifacts/release-package/reactive-md-0.4.0.tgz --access public --tag next`。预览版使用 `next` 分发标签;是否更新稳定版的 `latest` 标签另行决定。
98
- 9. 在 npm 和 GitHub Releases 上核对包内容、版本、README、许可与发布说明;从公开 registry 重新安装一次。
99
- 10. 从 registry 验证 README 中的安装命令可用,核对 registry 的完整性摘要与发布 tarball 一致。
100
-
101
- README 中的版本与安装命令应在打包前准备好,并在发布后验证。发布过程中不要提交 token、`.npmrc` 凭据或本机路径。
1
+ # 发布清单
2
+
3
+ 本文件是维护者的手动发布流程。本清单覆盖 `0.4.1` 预览版,目前 `latest` 和 `next` 均指向该版本。版本规则见[版本与兼容性](compatibility-ch.md),面向使用者的升级说明见[0.4.1 发布说明](release-0.4.1-ch.md)。
4
+
5
+ ## 发布前确认
6
+
7
+ ### 包身份与元数据
8
+
9
+ 非 scope 名称 `reactive-md` 已由已发布的 `0.3.0`、`0.3.1` 建立,`reactive-md/react` 和 `reactive-md/styles.css` 子路径也随这些版本生效。不要把改名当作常规发布准备:改名会破坏导入、状态工具和文档。
10
+
11
+ 1. 除非维护者明确决定改用 scope,否则保持 `reactive-md`。scope 需要对应的 npm 账号或组织权限。
12
+ 2. 如果改名,同时更新 `package.json` 的 `name`、文档中的导入语句、tarball 文件名说明、示例和两个子路径,并在变更记录中按破坏性变更说明。
13
+ 3. 核对 `package.json` 的 `repository`、`homepage`、`bugs`、`license`、`engines` 等发布元数据;当前已设置,发布前确认 URL 和最低 Node 版本仍然正确,并确认 `private` 保持移除状态。
14
+ 4. 确认 `files` 覆盖发布所需内容。当前包含 `dist-library`、`dist-standalone`、`bin`、`cli`、README(`README.md`、`README-en.md`、`README-ch.md`)、中英文贡献指南、变更记录与安全策略、`THIRD_PARTY_NOTICES.md`、`docs` 和 `examples`;新增文档或 notice 时同步加入 `files`。
15
+
16
+ 包名和版本决定 tarball 名称。当前 `0.4.1` 的预期文件名是 `reactive-md-0.4.1.tgz`;改名或改版本后以 `npm pack` 的实际输出为准。
17
+
18
+ ### 第三方 notice
19
+
20
+ 库产物打包了 `remark-gfm@4.0.1`、`remark-parse@11.0.0`、`unified@11.0.5` 及其依赖。独立 HTML 运行时还打包了 React、React DOM 和 scheduler;库的 React 入口使用宿主提供的 peer dependency。`THIRD_PARTY_NOTICES.md` 保留这些打包依赖的版权和许可声明。
21
+
22
+ 维护者在发布前:
23
+
24
+ 1. 运行 `npm run notices`,从已安装依赖重新生成 `THIRD_PARTY_NOTICES.md`。生成脚本覆盖 `remark-gfm`、`remark-parse`、`unified`、`react`、`react-dom` 的依赖树和实际许可证文本,包括 scheduler。
25
+ 2. 确认 `package.json` 的 `files` 包含 `THIRD_PARTY_NOTICES.md`,并随 tarball 分发。
26
+ 3. 检查 `npm pack --dry-run` 的输出,确认没有 `node_modules`、`demo/`、`demo/artifacts/`、测试产物或本地缓存。
27
+ 4. 核对依赖许可证与打包内容一致;新增或升级 Markdown 依赖后重新生成 notice。
28
+
29
+ ## 本地 tarball 安装
30
+
31
+ 完整的本地门禁是:
32
+
33
+ ```sh
34
+ npm ci
35
+ npm run verify:release
36
+ ```
37
+
38
+ `verify:release` 运行 Node 端与浏览器检查,构建包,在仓库外安装真实 tarball,并验证多份能力组合后的文档行为;它自行管理预览服务和浏览器生命周期。CI 通过 `verify:release:node` 和 `verify:release:browser` 分片运行同一门禁。本机需已安装浏览器。
39
+
40
+ packed 检查会在 `artifacts/release-package/` 保留经过验证的原始安装包,并在同目录的 `package-verification.json` 记录 SHA256 与 npm integrity。完整门禁通过后发布这一安装包;源码、包元数据或随包文档变化后重新验证。
41
+
42
+ 需要手工检查包内容时,直接使用 tarball。在仓库根目录:
43
+
44
+ ```sh
45
+ npm pack
46
+ ```
47
+
48
+ `npm pack` 会通过 `prepack` 先运行构建和 `npm run notices`,生成 `dist-library/` 与 `THIRD_PARTY_NOTICES.md`。`dist-library/` 是 `package.json` 的 `exports` 指向的目录。随后在一个空目录中验证安装:
49
+
50
+ ```sh
51
+ mkdir /tmp/reactive-md-consumer
52
+ cd /tmp/reactive-md-consumer
53
+ npm init -y
54
+ npm install /path/to/reactive-md-0.4.1.tgz
55
+ ```
56
+
57
+ 核心入口可在 Node 中直接检查:
58
+
59
+ ```sh
60
+ node --input-type=module -e "import { compileLocal, LOCAL_SYNTAX_VERSION } from 'reactive-md'; console.log(LOCAL_SYNTAX_VERSION, compileLocal('# ok').ok)"
61
+ ```
62
+
63
+ React 入口需要另装 React 19:
64
+
65
+ ```sh
66
+ npm install react@19 react-dom@19
67
+ ```
68
+
69
+ ```tsx
70
+ import { LocalReactiveDocument } from 'reactive-md/react';
71
+ import 'reactive-md/styles.css';
72
+ ```
73
+
74
+ 静态 SSR 渲染由 packed 检查覆盖。单文件导出的静态首屏水合由 Playwright Chromium 和本地 Edge 浏览器检查覆盖;该路径之外的通用 SSR 水合尚未验证。安装验证还应确认 tarball 中的 `dist-library/types`、`dist-standalone`、`bin`、`cli`、`README.md`、`README-en.md`、`README-ch.md`、`CHANGELOG-ch.md`、`SECURITY-ch.md`、`THIRD_PARTY_NOTICES.md`、`docs` 和 `examples` 完整,并检查 `docs` 中没有指向未打包 `demo/`、`src/`、`tests/` 或 `.tasks/` 文件的本地链接。
75
+
76
+ ## 发布说明
77
+
78
+ 发布说明面向使用者,至少包含:
79
+
80
+ - 包版本、`LOCAL_SYNTAX_VERSION`、组块协议修订与主题协议修订;这些不是同一个版本号。
81
+ - 安装方式:`npm install reactive-md@next`,或使用 `npm install reactive-md@<version>` 固定版本;并提供可下载 tarball 作为离线安装选项。
82
+ - 用户可见变化、破坏性变更和迁移步骤;直接链接[变更记录](../CHANGELOG-ch.md),本轮同时链接[0.4.1 发布说明](release-0.4.1-ch.md)。
83
+ - 已验证的平台,以及未验证的浏览器、通用 SSR 水合等范围。
84
+ - 已知限制和安全说明链接 [SECURITY-ch.md](../SECURITY-ch.md)。
85
+
86
+ 不要写尚未执行的检查结果,也不要把 CI 配置存在写成 CI 已通过。
87
+
88
+ ## 人工发布清单
89
+
90
+ 1. 确认工作区干净,变更已审查;`npm ci` 从锁文件安装成功。
91
+ 2. 在 Node 22.12 和受支持的较新 LTS(当前为 24)上运行 `npm run verify:release`。这是维护者和 CI 共用的完整门禁,不要用一组自行挑选的命令代替。
92
+ 3. 确认版本号、`CHANGELOG-ch.md` 和发布说明一致。语法变化时更新 `LOCAL_SYNTAX_VERSION`;组块或主题协议修订仅在各自契约变化时更新,这些版本轴保持独立。
93
+ 4. 检查门禁保留的安装包,包括文件列表、大小和许可文件。手动重新运行 `npm pack` 会产生新候选包,需要单独完成安装验证。
94
+ 5. 核对安装包的 SHA256 与 `artifacts/release-package/package-verification.json` 一致,并记录到发布说明或内部发布记录。
95
+ 6. 合并发布提交,等待 `main` 上的 CI 全部通过。
96
+ 7. 手动创建并推送 tag,例如 `v0.4.1`。不要在自动发布工作流中保存 npm token。
97
+ 8. 在维护者本机完成 npm 登录和双因素认证后,手动发布已经验证的预览版安装包:`npm publish artifacts/release-package/reactive-md-0.4.1.tgz --access public --tag next`。预览版先发布到 `next`。维护者决定提升后,使用 `npm dist-tag add reactive-md@<version> latest` 更新默认版本。当前 `latest` 的兼容补丁版在发布验证后,同步更新这两个渠道。
98
+ 9. 在 npm 和 GitHub Releases 上核对包内容、版本、README、许可与发布说明;从公开 registry 重新安装一次。
99
+ 10. 从 registry 验证 README 中的安装命令可用,核对 registry 的完整性摘要与发布 tarball 一致。
100
+
101
+ README 中的版本与安装命令应在打包前准备好,并在发布后验证。发布过程中不要提交 token、`.npmrc` 凭据或本机路径。
@@ -1,101 +1,101 @@
1
- # Release checklist
2
-
3
- This file is the maintainers' manual release process. This checklist covers the `0.4.0` preview release on the `next` channel; `0.3.1` remains `latest` until a separate promotion decision. See [Versions and compatibility](compatibility-en.md) for version rules and [0.4.0 release and migration](release-0.4.0-en.md) for the user-facing upgrade summary.
4
-
5
- ## Before release
6
-
7
- ### Package identity and metadata
8
-
9
- The unscoped name `reactive-md` is already established by the published `0.3.0` and `0.3.1` releases, together with the `reactive-md/react` and `reactive-md/styles.css` subpaths. Do not treat a rename as routine release preparation: changing the name is a breaking change for imports, state tooling and documentation.
10
-
11
- 1. Keep `reactive-md` unless maintainers explicitly decide on a scoped rename. A scope requires the corresponding npm account or organization permissions.
12
- 2. If renaming, update `name` in `package.json`, import statements in the documentation, tarball filename references, examples and both subpaths, then record the change as breaking in the changelog.
13
- 3. Check release metadata in `package.json`: `repository`, `homepage`, `bugs`, `license`, `engines` and similar fields. They are currently set; before releasing, confirm the URLs and minimum Node version are still correct and that `private` remains removed.
14
- 4. Confirm `files` covers what needs to be published. It currently includes `dist-library`, `dist-standalone`, `bin`, `cli`, the READMEs (`README.md`, `README-en.md`, `README-ch.md`), the contributing, changelog and security guides in both languages, `THIRD_PARTY_NOTICES.md`, `docs` and `examples`; add any new documentation or notices to `files` as well.
15
-
16
- The package name and version determine the tarball name. The expected filename for `0.4.0` is `reactive-md-0.4.0.tgz`; after renaming or changing the version, use the actual output of `npm pack`.
17
-
18
- ### Third-party notices
19
-
20
- The library bundles `remark-gfm@4.0.1`, `remark-parse@11.0.0`, `unified@11.0.5` and their dependencies. The standalone HTML runtime also bundles React, React DOM and scheduler; the library React entry uses host-provided peers. All these bundles retain the installed dependencies' copyright and license notices in `THIRD_PARTY_NOTICES.md`.
21
-
22
- Before releasing, maintainers:
23
-
24
- 1. Run `npm run notices` to regenerate `THIRD_PARTY_NOTICES.md` from installed dependencies. The generation script covers the dependency trees and actual license texts of `remark-gfm`, `remark-parse`, `unified`, `react` and `react-dom`, including scheduler.
25
- 2. Confirm `files` in `package.json` includes `THIRD_PARTY_NOTICES.md` so it ships in the tarball.
26
- 3. Inspect the output of `npm pack --dry-run` and confirm there is no `node_modules`, `demo/`, `demo/artifacts/`, test output or local cache.
27
- 4. Check that dependency licenses match the packaged content; regenerate notices after adding or upgrading Markdown dependencies.
28
-
29
- ## Local tarball installation
30
-
31
- The complete local gate is:
32
-
33
- ```sh
34
- npm ci
35
- npm run verify:release
36
- ```
37
-
38
- `verify:release` runs the Node-side and browser checks, builds the package, installs the real tarball outside the repository and exercises combined document behavior. It manages the preview server and browser lifecycle itself. CI splits the same gate with `verify:release:node` and `verify:release:browser`. A browser must already be installed locally.
39
-
40
- The packed check retains the exact verified archive in `artifacts/release-package/` and records its SHA256 and npm integrity in `package-verification.json` there. Publish that archive after the complete gate passes. Re-run verification if source, package metadata or packaged documentation changes.
41
-
42
- To inspect the package manually, use the tarball directly. In the repository root:
43
-
44
- ```sh
45
- npm pack
46
- ```
47
-
48
- `npm pack` runs the build and `npm run notices` through `prepack` first, producing `dist-library/` and `THIRD_PARTY_NOTICES.md`. `dist-library/` is the directory targeted by `exports` in `package.json`. Then verify installation in an empty directory:
49
-
50
- ```sh
51
- mkdir /tmp/reactive-md-consumer
52
- cd /tmp/reactive-md-consumer
53
- npm init -y
54
- npm install /path/to/reactive-md-0.4.0.tgz
55
- ```
56
-
57
- The core entry can be checked directly in Node:
58
-
59
- ```sh
60
- node --input-type=module -e "import { compileLocal, LOCAL_SYNTAX_VERSION } from 'reactive-md'; console.log(LOCAL_SYNTAX_VERSION, compileLocal('# ok').ok)"
61
- ```
62
-
63
- The React entry requires React 19 to be installed separately:
64
-
65
- ```sh
66
- npm install react@19 react-dom@19
67
- ```
68
-
69
- ```tsx
70
- import { LocalReactiveDocument } from 'reactive-md/react';
71
- import 'reactive-md/styles.css';
72
- ```
73
-
74
- Static SSR rendering is covered by the packed check. Single-file export static-first hydration is covered by the Playwright Chromium and local Edge browser checks; general SSR hydration outside that path is unverified. Installation verification should also confirm that the tarball contains complete `dist-library/types`, `dist-standalone`, `bin`, `cli`, `README.md`, `README-en.md`, `README-ch.md`, `CHANGELOG.md`, `SECURITY.md`, `THIRD_PARTY_NOTICES.md`, `docs` and `examples`, and check that `docs` contains no local links to unpackaged `demo/`, `src/`, `tests/` or `.tasks/` files.
75
-
76
- ## Release notes
77
-
78
- Release notes are for users and must include at least:
79
-
80
- - The package version, `LOCAL_SYNTAX_VERSION`, component protocol revision and theme protocol revision; these are different version numbers.
81
- - The install command `npm install reactive-md@next`, or `npm install reactive-md@<version>` to pin the release, with a downloadable tarball as an offline installation option.
82
- - User-visible changes, breaking changes and migration steps; link directly to the [changelog](../CHANGELOG.md) and the [0.4.0 release notes](release-0.4.0-en.md) for this cycle.
83
- - Verified platforms, plus unverified browsers, general SSR hydration and other scope.
84
- - Known limitations and a link to [SECURITY.md](../SECURITY.md).
85
-
86
- Do not write results for checks that have not run, and do not present the existence of CI configuration as CI passing.
87
-
88
- ## Manual release checklist
89
-
90
- 1. Confirm the working tree is clean, changes have been reviewed, and `npm ci` installs successfully from the lockfile.
91
- 2. On Node 22.12 and a supported newer LTS (currently 24), run `npm run verify:release`. This is the same complete gate local maintainers and CI use; do not replace it with a list of hand-picked commands.
92
- 3. Confirm the version number, `CHANGELOG.md` and the release notes agree. Update `LOCAL_SYNTAX_VERSION` when syntax changes; update component or theme protocol revisions only when their own contracts change. These version axes remain independent.
93
- 4. Inspect the verified archive retained by the gate, including its file list, size and license files. A fresh manual `npm pack` produces a new candidate that needs its own installation verification.
94
- 5. Compare the archive's SHA256 with `artifacts/release-package/package-verification.json` and record it in the release notes or an internal release record.
95
- 6. Merge the release commit and wait for all CI on `main` to pass.
96
- 7. Create and push the tag manually, for example `v0.4.0`. Do not store npm tokens in an automated release workflow.
97
- 8. After signing in to npm and completing two-factor authentication on the maintainer's machine, publish the verified preview tarball manually: `npm publish artifacts/release-package/reactive-md-0.4.0.tgz --access public --tag next`. The preview uses the `next` distribution tag; changing the stable `latest` tag is a separate release decision.
98
- 9. Verify the package contents, version, README, license and release notes on npm and GitHub Releases; reinstall once from the public registry.
99
- 10. Verify that the install command in the README works from the registry, and that the registry integrity digest matches the released tarball.
100
-
101
- The version and install command in the README should be ready before packaging and verified after release. Do not commit tokens, `.npmrc` credentials or local paths during the release process.
1
+ # Release checklist
2
+
3
+ This file is the maintainers' manual release process. This checklist covers the `0.4.1` preview release, now available on both `latest` and `next`. See [Versions and compatibility](compatibility-en.md) for version rules and [0.4.1 release notes](release-0.4.1-en.md) for the user-facing upgrade summary.
4
+
5
+ ## Before release
6
+
7
+ ### Package identity and metadata
8
+
9
+ The unscoped name `reactive-md` is already established by the published `0.3.0` and `0.3.1` releases, together with the `reactive-md/react` and `reactive-md/styles.css` subpaths. Do not treat a rename as routine release preparation: changing the name is a breaking change for imports, state tooling and documentation.
10
+
11
+ 1. Keep `reactive-md` unless maintainers explicitly decide on a scoped rename. A scope requires the corresponding npm account or organization permissions.
12
+ 2. If renaming, update `name` in `package.json`, import statements in the documentation, tarball filename references, examples and both subpaths, then record the change as breaking in the changelog.
13
+ 3. Check release metadata in `package.json`: `repository`, `homepage`, `bugs`, `license`, `engines` and similar fields. They are currently set; before releasing, confirm the URLs and minimum Node version are still correct and that `private` remains removed.
14
+ 4. Confirm `files` covers what needs to be published. It currently includes `dist-library`, `dist-standalone`, `bin`, `cli`, the READMEs (`README.md`, `README-en.md`, `README-ch.md`), the contributing, changelog and security guides in both languages, `THIRD_PARTY_NOTICES.md`, `docs` and `examples`; add any new documentation or notices to `files` as well.
15
+
16
+ The package name and version determine the tarball name. The expected filename for `0.4.1` is `reactive-md-0.4.1.tgz`; after renaming or changing the version, use the actual output of `npm pack`.
17
+
18
+ ### Third-party notices
19
+
20
+ The library bundles `remark-gfm@4.0.1`, `remark-parse@11.0.0`, `unified@11.0.5` and their dependencies. The standalone HTML runtime also bundles React, React DOM and scheduler; the library React entry uses host-provided peers. All these bundles retain the installed dependencies' copyright and license notices in `THIRD_PARTY_NOTICES.md`.
21
+
22
+ Before releasing, maintainers:
23
+
24
+ 1. Run `npm run notices` to regenerate `THIRD_PARTY_NOTICES.md` from installed dependencies. The generation script covers the dependency trees and actual license texts of `remark-gfm`, `remark-parse`, `unified`, `react` and `react-dom`, including scheduler.
25
+ 2. Confirm `files` in `package.json` includes `THIRD_PARTY_NOTICES.md` so it ships in the tarball.
26
+ 3. Inspect the output of `npm pack --dry-run` and confirm there is no `node_modules`, `demo/`, `demo/artifacts/`, test output or local cache.
27
+ 4. Check that dependency licenses match the packaged content; regenerate notices after adding or upgrading Markdown dependencies.
28
+
29
+ ## Local tarball installation
30
+
31
+ The complete local gate is:
32
+
33
+ ```sh
34
+ npm ci
35
+ npm run verify:release
36
+ ```
37
+
38
+ `verify:release` runs the Node-side and browser checks, builds the package, installs the real tarball outside the repository and exercises combined document behavior. It manages the preview server and browser lifecycle itself. CI splits the same gate with `verify:release:node` and `verify:release:browser`. A browser must already be installed locally.
39
+
40
+ The packed check retains the exact verified archive in `artifacts/release-package/` and records its SHA256 and npm integrity in `package-verification.json` there. Publish that archive after the complete gate passes. Re-run verification if source, package metadata or packaged documentation changes.
41
+
42
+ To inspect the package manually, use the tarball directly. In the repository root:
43
+
44
+ ```sh
45
+ npm pack
46
+ ```
47
+
48
+ `npm pack` runs the build and `npm run notices` through `prepack` first, producing `dist-library/` and `THIRD_PARTY_NOTICES.md`. `dist-library/` is the directory targeted by `exports` in `package.json`. Then verify installation in an empty directory:
49
+
50
+ ```sh
51
+ mkdir /tmp/reactive-md-consumer
52
+ cd /tmp/reactive-md-consumer
53
+ npm init -y
54
+ npm install /path/to/reactive-md-0.4.1.tgz
55
+ ```
56
+
57
+ The core entry can be checked directly in Node:
58
+
59
+ ```sh
60
+ node --input-type=module -e "import { compileLocal, LOCAL_SYNTAX_VERSION } from 'reactive-md'; console.log(LOCAL_SYNTAX_VERSION, compileLocal('# ok').ok)"
61
+ ```
62
+
63
+ The React entry requires React 19 to be installed separately:
64
+
65
+ ```sh
66
+ npm install react@19 react-dom@19
67
+ ```
68
+
69
+ ```tsx
70
+ import { LocalReactiveDocument } from 'reactive-md/react';
71
+ import 'reactive-md/styles.css';
72
+ ```
73
+
74
+ Static SSR rendering is covered by the packed check. Single-file export static-first hydration is covered by the Playwright Chromium and local Edge browser checks; general SSR hydration outside that path is unverified. Installation verification should also confirm that the tarball contains complete `dist-library/types`, `dist-standalone`, `bin`, `cli`, `README.md`, `README-en.md`, `README-ch.md`, `CHANGELOG.md`, `SECURITY.md`, `THIRD_PARTY_NOTICES.md`, `docs` and `examples`, and check that `docs` contains no local links to unpackaged `demo/`, `src/`, `tests/` or `.tasks/` files.
75
+
76
+ ## Release notes
77
+
78
+ Release notes are for users and must include at least:
79
+
80
+ - The package version, `LOCAL_SYNTAX_VERSION`, component protocol revision and theme protocol revision; these are different version numbers.
81
+ - The install command `npm install reactive-md@next`, or `npm install reactive-md@<version>` to pin the release, with a downloadable tarball as an offline installation option.
82
+ - User-visible changes, breaking changes and migration steps; link directly to the [changelog](../CHANGELOG.md) and the [0.4.1 release notes](release-0.4.1-en.md) for this cycle.
83
+ - Verified platforms, plus unverified browsers, general SSR hydration and other scope.
84
+ - Known limitations and a link to [SECURITY.md](../SECURITY.md).
85
+
86
+ Do not write results for checks that have not run, and do not present the existence of CI configuration as CI passing.
87
+
88
+ ## Manual release checklist
89
+
90
+ 1. Confirm the working tree is clean, changes have been reviewed, and `npm ci` installs successfully from the lockfile.
91
+ 2. On Node 22.12 and a supported newer LTS (currently 24), run `npm run verify:release`. This is the same complete gate local maintainers and CI use; do not replace it with a list of hand-picked commands.
92
+ 3. Confirm the version number, `CHANGELOG.md` and the release notes agree. Update `LOCAL_SYNTAX_VERSION` when syntax changes; update component or theme protocol revisions only when their own contracts change. These version axes remain independent.
93
+ 4. Inspect the verified archive retained by the gate, including its file list, size and license files. A fresh manual `npm pack` produces a new candidate that needs its own installation verification.
94
+ 5. Compare the archive's SHA256 with `artifacts/release-package/package-verification.json` and record it in the release notes or an internal release record.
95
+ 6. Merge the release commit and wait for all CI on `main` to pass.
96
+ 7. Create and push the tag manually, for example `v0.4.1`. Do not store npm tokens in an automated release workflow.
97
+ 8. After signing in to npm and completing two-factor authentication on the maintainer's machine, publish the verified preview tarball manually: `npm publish artifacts/release-package/reactive-md-0.4.1.tgz --access public --tag next`. Preview releases start on `next`. Promote a verified version only after the maintainer decides: `npm dist-tag add reactive-md@<version> latest`. For a compatible patch to the current `latest`, verify the published version and update both channels to the patch.
98
+ 9. Verify the package contents, version, README, license and release notes on npm and GitHub Releases; reinstall once from the public registry.
99
+ 10. Verify that the install command in the README works from the registry, and that the registry integrity digest matches the released tarball.
100
+
101
+ The version and install command in the README should be ready before packaging and verified after release. Do not commit tokens, `.npmrc` credentials or local paths during the release process.
@@ -1,7 +1,7 @@
1
- {
2
- "name": "reactive-md-core-example",
3
- "private": true,
4
- "type": "module",
5
- "engines": { "node": ">=22.12.0" },
6
- "scripts": { "start": "node index.mjs" }
7
- }
1
+ {
2
+ "name": "reactive-md-core-example",
3
+ "private": true,
4
+ "type": "module",
5
+ "engines": { "node": ">=22.12.0" },
6
+ "scripts": { "start": "node index.mjs" }
7
+ }
@@ -1,12 +1,12 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Reactive MD integration</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script type="module" src="/main.jsx"></script>
11
- </body>
12
- </html>
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Reactive MD integration</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script type="module" src="/main.jsx"></script>
11
+ </body>
12
+ </html>