brookmd 0.22.1 → 0.22.2

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.md CHANGED
@@ -4,6 +4,40 @@ Notable changes to brookmd (formerly `flux-md`). Format based on
4
4
  [Keep a Changelog](https://keepachangelog.com/); this project aims to follow
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## 0.22.2 — 2026-07-21
8
+
9
+ ### Performance
10
+
11
+ - **7–24% faster streaming across every benchmarked document shape** (native
12
+ and WASM builds alike), from a final profiling pass over the Rust core:
13
+ - the scanner's newline search (`line_end`) — the hottest primitive, re-run
14
+ by every block probe on every line — now scans 8 bytes per step (SWAR)
15
+ instead of one;
16
+ - the inline renderer copies runs of plain text with a single `push_str`
17
+ instead of per-byte dispatch + escape calls.
18
+
19
+ Rendered HTML is byte-identical (spec goldens, wire-envelope goldens,
20
+ chunk-independence property tests, and the streaming-parity fuzzer all
21
+ pass); the WASM binary grows 338 bytes (+0.16%). Ships as `brookmd-core`
22
+ 0.22.1 on crates.io.
23
+
24
+ ## 0.22.1 — 2026-07-21
25
+
26
+ ### Fixed
27
+
28
+ - **React Native / Metro compatibility**, both issues found by the new
29
+ app-level e2e gate (a real RN app on an emulator + simulator asserting the
30
+ wire goldens through the native parser):
31
+ - every conditional-exports subpath now ships a `default` condition, so
32
+ Metro's stock package-exports resolution works without custom
33
+ `unstable_conditionNames` (which could poison `@babel/runtime` helper
34
+ resolution and crash release bundles at startup);
35
+ - the browser worker bootstrap moved behind a `react-native` field map to
36
+ an `import.meta`-free shim, so Hermes can parse release bundles (Hermes
37
+ rejects `import.meta` at parse time even in unreachable code). Web
38
+ behavior is unchanged — the `new Worker(new URL(...))` pattern bundlers
39
+ analyze stays intact.
40
+
7
41
  ## 0.22.0 — 2026-07-20
8
42
 
9
43
  ### Changed
@@ -35,23 +69,6 @@ Notable changes to brookmd (formerly `flux-md`). Format based on
35
69
  - The old `flux-md` npm package is **deprecated and frozen at 0.21.0**; all future
36
70
  releases ship as `brookmd`.
37
71
 
38
- ## 0.22.1 — 2026-07-21
39
-
40
- ### Fixed
41
-
42
- - **React Native / Metro compatibility**, both issues found by the new
43
- app-level e2e gate (a real RN app on an emulator + simulator asserting the
44
- wire goldens through the native parser):
45
- - every conditional-exports subpath now ships a `default` condition, so
46
- Metro's stock package-exports resolution works without custom
47
- `unstable_conditionNames` (which could poison `@babel/runtime` helper
48
- resolution and crash release bundles at startup);
49
- - the browser worker bootstrap moved behind a `react-native` field map to
50
- an `import.meta`-free shim, so Hermes can parse release bundles (Hermes
51
- rejects `import.meta` at parse time even in unreachable code). Web
52
- behavior is unchanged — the `new Worker(new URL(...))` pattern bundlers
53
- analyze stays intact.
54
-
55
72
  ## 0.21.0 — 2026-07-20
56
73
 
57
74
  ### Added
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brookmd",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Zero-dep streaming markdown for the browser. Rust→WASM core, Web Worker per stream, incremental parse with speculative closure.",
5
5
  "type": "module",
6
6
  "sideEffects": ["./dist/worker.js", "./dist/styles.css"],