reactive-md 0.5.3 → 0.6.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.
- package/CHANGELOG-ch.md +195 -165
- package/CHANGELOG.md +195 -165
- package/CONTRIBUTING-ch.md +67 -62
- package/CONTRIBUTING.md +69 -64
- package/README-ch.md +157 -155
- package/README-en.md +184 -181
- package/README.md +184 -181
- package/SECURITY-ch.md +81 -81
- package/SECURITY.md +81 -81
- package/THIRD_PARTY_NOTICES.md +585 -1
- package/bin/reactive-md.mjs +39 -39
- package/cli/args.mjs +181 -181
- package/cli/assets.mjs +390 -390
- package/cli/build.mjs +268 -268
- package/cli/document.mjs +130 -130
- package/cli/errors.mjs +61 -61
- package/cli/fs-utils.mjs +133 -133
- package/cli/glob.mjs +203 -203
- package/cli/help.mjs +138 -138
- package/cli/lint.mjs +177 -177
- package/cli/main.mjs +55 -55
- package/cli/migrate.mjs +368 -368
- package/cli/package.mjs +210 -210
- package/dist-library/{authoring-DJJjKYg9.js → authoring-BEVyth5X.js} +58 -58
- package/dist-library/compiler-Cm3ppMxG.js +46044 -0
- package/dist-library/react-Bh7_oxZp.js +59655 -0
- package/dist-library/reactive-md-authoring.js +2 -2
- package/dist-library/reactive-md-editor.js +13 -0
- package/dist-library/reactive-md-print.css +284 -284
- package/dist-library/reactive-md-react-unstyled.js +1 -1
- package/dist-library/reactive-md-react.js +1 -1
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +123 -123
- package/dist-library/{runtime-DXtle_6c.js → runtime-DlFYQ4s_.js} +151 -151
- package/dist-library/types/editor/types.d.ts +2 -0
- package/dist-library/types/local/code-block.d.ts +3 -1
- package/dist-library/types/local/code-languages.d.ts +7 -0
- package/dist-library/types/local/compiled-data.d.ts +6 -0
- package/dist-library/types/local/compiler.d.ts +1 -0
- package/dist-library/types/local/diagnostics.d.ts +31 -0
- package/dist-library/types/local/diagram-layout.d.ts +69 -0
- package/dist-library/types/local/html-names.d.ts +6 -0
- package/dist-library/types/local/html-table.d.ts +25 -0
- package/dist-library/types/local/math-display.d.ts +22 -22
- package/dist-library/types/local/math-view.d.ts +6 -7
- package/dist-library/types/local/table-surface.d.ts +10 -0
- package/dist-library/types/local/types.d.ts +2 -0
- package/dist-library/types/local/visuals.d.ts +9 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +331 -51
- package/docs/README.md +84 -0
- package/docs/{compatibility-ch.md → compatibility/compatibility-ch.md} +121 -109
- package/docs/{compatibility-en.md → compatibility/compatibility-en.md} +121 -109
- package/docs/{source-versioning-ch.md → compatibility/source-versioning-ch.md} +159 -159
- package/docs/{source-versioning-en.md → compatibility/source-versioning-en.md} +159 -159
- package/docs/{component-development-ch.md → development/component-development-ch.md} +210 -210
- package/docs/{component-development-en.md → development/component-development-en.md} +210 -210
- package/docs/{component-protocol-ch.md → development/component-protocol-ch.md} +747 -747
- package/docs/{component-protocol-en.md → development/component-protocol-en.md} +747 -747
- package/docs/{performance-ch.md → development/performance-ch.md} +76 -76
- package/docs/{performance-en.md → development/performance-en.md} +76 -76
- package/docs/{releasing-ch.md → development/releasing-ch.md} +108 -108
- package/docs/{releasing-en.md → development/releasing-en.md} +108 -108
- package/docs/guides/local-guide-ch.md +513 -0
- package/docs/guides/local-guide-en.md +513 -0
- package/docs/{author-tools-ch.md → integration/author-tools-ch.md} +57 -57
- package/docs/{author-tools-en.md → integration/author-tools-en.md} +57 -57
- package/docs/{editor-ch.md → integration/editor-ch.md} +7 -6
- package/docs/{editor-en.md → integration/editor-en.md} +7 -6
- package/docs/{local-integration-ch.md → integration/local-integration-ch.md} +33 -15
- package/docs/{local-integration-en.md → integration/local-integration-en.md} +33 -15
- package/docs/{shareable-export-ch.md → integration/shareable-export-ch.md} +221 -209
- package/docs/{shareable-export-en.md → integration/shareable-export-en.md} +223 -211
- package/docs/{computations-formatting-ch.md → reference/computations-formatting-ch.md} +87 -87
- package/docs/{computations-formatting-en.md → reference/computations-formatting-en.md} +87 -87
- package/docs/{constraints-collections-ch.md → reference/constraints-collections-ch.md} +84 -84
- package/docs/{constraints-collections-en.md → reference/constraints-collections-en.md} +84 -84
- package/docs/{diagnostics-counting-ch.md → reference/diagnostics-counting-ch.md} +104 -84
- package/docs/{diagnostics-counting-en.md → reference/diagnostics-counting-en.md} +104 -84
- package/docs/{html-compatibility-ch.md → reference/html-compatibility-ch.md} +42 -4
- package/docs/{html-compatibility-en.md → reference/html-compatibility-en.md} +42 -4
- package/docs/{local-components-v2-ch.md → reference/local-components-v2-ch.md} +138 -138
- package/docs/{local-components-v2-en.md → reference/local-components-v2-en.md} +104 -104
- package/docs/{local-interaction-syntax-ch.md → reference/local-interaction-syntax-ch.md} +515 -492
- package/docs/{local-interaction-syntax-en.md → reference/local-interaction-syntax-en.md} +511 -488
- package/docs/{theme-protocol-ch.md → reference/theme-protocol-ch.md} +107 -107
- package/docs/{theme-protocol-en.md → reference/theme-protocol-en.md} +107 -107
- package/docs/{release-0.4.0-ch.md → releases/release-0.4.0-ch.md} +89 -89
- package/docs/{release-0.4.0-en.md → releases/release-0.4.0-en.md} +89 -89
- package/docs/{release-0.4.1-ch.md → releases/release-0.4.1-ch.md} +23 -23
- package/docs/{release-0.4.1-en.md → releases/release-0.4.1-en.md} +23 -23
- package/docs/{release-0.5.0-ch.md → releases/release-0.5.0-ch.md} +4 -4
- package/docs/{release-0.5.0-en.md → releases/release-0.5.0-en.md} +4 -4
- package/docs/{release-0.5.1-ch.md → releases/release-0.5.1-ch.md} +4 -4
- package/docs/{release-0.5.1-en.md → releases/release-0.5.1-en.md} +4 -4
- package/docs/{release-0.5.2-ch.md → releases/release-0.5.2-ch.md} +3 -3
- package/docs/{release-0.5.2-en.md → releases/release-0.5.2-en.md} +3 -3
- package/docs/{release-0.5.3-ch.md → releases/release-0.5.3-ch.md} +1 -1
- package/docs/{release-0.5.3-en.md → releases/release-0.5.3-en.md} +1 -1
- package/docs/releases/release-0.6.0-ch.md +57 -0
- package/docs/releases/release-0.6.0-en.md +57 -0
- package/docs/releases/release-0.6.1-ch.md +27 -0
- package/docs/releases/release-0.6.1-en.md +27 -0
- package/examples/conformance/README.md +53 -53
- package/examples/conformance/component-protocol-1.json +482 -482
- package/examples/conformance/component-protocol-1.schema.json +76 -76
- package/examples/conformance/local-draft-1.json +50 -50
- package/examples/conformance/local-draft-2.json +212 -212
- package/examples/integration/README.md +47 -45
- package/examples/integration/core/index.mjs +32 -32
- package/examples/integration/worker/index.html +19 -19
- package/examples/integration/worker/main.js +61 -61
- package/examples/integration/worker/package.json +13 -13
- package/examples/integration/worker/worker.js +3 -3
- package/examples/local/README.md +74 -74
- package/examples/local/charts.reactive.md +73 -73
- package/examples/local/html-compat.reactive.md +19 -0
- package/examples/local/recipes/invoice-zh.reactive.md +36 -36
- package/examples/local/recipes/invoice.reactive.md +36 -36
- package/examples/local/recipes/workshop-zh.reactive.md +33 -33
- package/examples/local/recipes/workshop.reactive.md +33 -33
- package/examples/local/showcase/README.md +25 -25
- package/examples/local/showcase/explore.reactive.md +102 -102
- package/examples/local/showcase/flow.reactive.md +86 -86
- package/examples/local/showcase/forms.reactive.md +126 -126
- package/examples/local/showcase/functions.reactive.md +119 -119
- package/examples/local/showcase/layout.reactive.md +100 -100
- package/examples/local/showcase/statistics.reactive.md +108 -108
- package/examples/local/showcase/tasks.reactive.md +89 -89
- package/examples/local/showcase/zh/explore.reactive.md +102 -102
- package/examples/local/showcase/zh/flow.reactive.md +86 -86
- package/examples/local/showcase/zh/forms.reactive.md +126 -126
- package/examples/local/showcase/zh/functions.reactive.md +119 -119
- package/examples/local/showcase/zh/layout.reactive.md +100 -100
- package/examples/local/showcase/zh/statistics.reactive.md +108 -108
- package/examples/local/showcase/zh/tasks.reactive.md +89 -89
- package/package.json +152 -145
- package/dist-library/compiler-UyPwGzJZ.js +0 -22109
- package/dist-library/react-fizgU3i8.js +0 -12764
- package/docs/local-guide-ch.md +0 -967
- package/docs/local-guide-en.md +0 -967
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
# Release checklist
|
|
2
|
-
|
|
3
|
-
This file is the maintainers' manual release process. This checklist covers
|
|
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. `0.5.0` adds `reactive-md/editor` and `reactive-md/editor/styles.css`; `0.5.1`
|
|
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 the relevant 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.
|
|
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
|
|
21
|
-
|
|
22
|
-
Before releasing, maintainers:
|
|
23
|
-
|
|
24
|
-
1. Run `npm run notices` to regenerate `THIRD_PARTY_NOTICES.md` from installed dependencies. The
|
|
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. The gate also covers the editor entry, its stylesheet and two editor instances on one page. 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.
|
|
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
|
-
The editor entry uses the same React peer and a separate stylesheet:
|
|
75
|
-
|
|
76
|
-
```tsx
|
|
77
|
-
import { ReactiveMarkdownEditor } from 'reactive-md/editor';
|
|
78
|
-
import 'reactive-md/editor/styles.css';
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Static SSR rendering is covered by the packed check. The editor entry is imported in the server-render check and exercised in the browser 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`, including the editor entry and stylesheet, `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.
|
|
82
|
-
|
|
83
|
-
## Release notes
|
|
84
|
-
|
|
85
|
-
Release notes are for users and must include at least:
|
|
86
|
-
|
|
87
|
-
- The package version, `LOCAL_SYNTAX_VERSION`, component protocol revision and theme protocol revision; these are different version numbers.
|
|
88
|
-
- 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.
|
|
89
|
-
- User-visible changes, breaking changes and migration steps; link directly to the [changelog](
|
|
90
|
-
- Verified platforms, plus unverified browsers, general SSR hydration and other scope.
|
|
91
|
-
- Known limitations and a link to [SECURITY.md](
|
|
92
|
-
|
|
93
|
-
Do not write results for checks that have not run, and do not present the existence of CI configuration as CI passing.
|
|
94
|
-
|
|
95
|
-
## Manual release checklist
|
|
96
|
-
|
|
97
|
-
1. Confirm the working tree is clean, changes have been reviewed, and `npm ci` installs successfully from the lockfile.
|
|
98
|
-
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.
|
|
99
|
-
3. Confirm the version number, `CHANGELOG.md` and the release notes agree. `0.
|
|
100
|
-
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.
|
|
101
|
-
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.
|
|
102
|
-
6. Merge the release commit and wait for all CI on `main` to pass.
|
|
103
|
-
7. Create and push the tag manually, for example `v0.
|
|
104
|
-
8.
|
|
105
|
-
9. Verify the package contents, version, README, license and release notes on npm and GitHub Releases; reinstall once from the public registry.
|
|
106
|
-
10. Verify that the install command in the README works from the registry, and that the registry integrity digest matches the released tarball.
|
|
107
|
-
|
|
108
|
-
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 `0.6.1`, which updates both `latest` and `next`. See [Versions and compatibility](../compatibility/compatibility-en.md) for version rules and the [0.6.1 release notes](../releases/release-0.6.1-en.md) for the user-facing 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. `0.5.0` adds `reactive-md/editor` and `reactive-md/editor/styles.css`; `0.5.1` through `0.6.1` keep those entries. 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 the relevant 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.6.1` is `reactive-md-0.6.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`, `elkjs@0.12.0`, `katex@0.19.1` and their dependencies. KaTeX includes math fonts and the mhchem extension. The standalone HTML runtime also bundles React, React DOM and scheduler; the library React entry uses host-provided peers. All these bundles retain their 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 script covers `remark-gfm`, `remark-parse`, `unified`, `parse5`, `lowlight`, `elkjs`, `katex`, `react` and `react-dom`, including scheduler, plus the upstream mhchem attribution and Apache-2.0 license.
|
|
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. The gate also covers the editor entry, its stylesheet and two editor instances on one page. 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.6.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
|
+
The editor entry uses the same React peer and a separate stylesheet:
|
|
75
|
+
|
|
76
|
+
```tsx
|
|
77
|
+
import { ReactiveMarkdownEditor } from 'reactive-md/editor';
|
|
78
|
+
import 'reactive-md/editor/styles.css';
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Static SSR rendering is covered by the packed check. The editor entry is imported in the server-render check and exercised in the browser 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`, including the editor entry and stylesheet, `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.
|
|
82
|
+
|
|
83
|
+
## Release notes
|
|
84
|
+
|
|
85
|
+
Release notes are for users and must include at least:
|
|
86
|
+
|
|
87
|
+
- The package version, `LOCAL_SYNTAX_VERSION`, component protocol revision and theme protocol revision; these are different version numbers.
|
|
88
|
+
- The install command `npm install reactive-md`, `npm install reactive-md@next`, or `npm install reactive-md@<version>` to pin the release, with a downloadable tarball as an offline installation option.
|
|
89
|
+
- User-visible changes, breaking changes and migration steps; link directly to the [changelog](../../CHANGELOG.md) and the [0.6.1 release notes](../releases/release-0.6.1-en.md) for this cycle.
|
|
90
|
+
- Verified platforms, plus unverified browsers, general SSR hydration and other scope.
|
|
91
|
+
- Known limitations and a link to [SECURITY.md](../../SECURITY.md).
|
|
92
|
+
|
|
93
|
+
Do not write results for checks that have not run, and do not present the existence of CI configuration as CI passing.
|
|
94
|
+
|
|
95
|
+
## Manual release checklist
|
|
96
|
+
|
|
97
|
+
1. Confirm the working tree is clean, changes have been reviewed, and `npm ci` installs successfully from the lockfile.
|
|
98
|
+
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.
|
|
99
|
+
3. Confirm the version number, `CHANGELOG.md` and the release notes agree. `0.6.1` switches formula display to KaTeX with bundled math fonts; syntax revision `local-draft-2`, component protocol `component-protocol-2` and theme protocol `reactive-md-theme-1` are unchanged. Update a version axis only when its own contract changes.
|
|
100
|
+
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.
|
|
101
|
+
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.
|
|
102
|
+
6. Merge the release commit and wait for all CI on `main` to pass.
|
|
103
|
+
7. Create and push the tag manually, for example `v0.6.1`. Do not store npm tokens in an automated release workflow.
|
|
104
|
+
8. Attach the verified tarball, `package-verification.json` and a `release-manifest.json` containing `version`, source `commit`, `sha256` and `integrity` to a draft GitHub Release for the tag. Trigger `publish.yml` with `ref=v0.6.1`, `dist_tag=next`, `update_latest=true` and `use_verified_release=true`. npm trusted publishing uses OIDC; local npm login and OTP are not required. The workflow validates the source commit and archive hashes before publishing the attached file. Wait for success and confirm both dist-tags. When `latest` is outside the authorized scope, pass `update_latest=false`.
|
|
105
|
+
9. Verify the package contents, version, README, license and release notes on npm and GitHub Releases; reinstall once from the public registry.
|
|
106
|
+
10. Verify that the install command in the README works from the registry, and that the registry integrity digest matches the released tarball.
|
|
107
|
+
|
|
108
|
+
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.
|