flux-md 0.5.0 → 0.5.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.md CHANGED
@@ -4,6 +4,19 @@ Notable changes to 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.5.1 — 2026-05-27
8
+
9
+ ### Performance
10
+
11
+ - A document with a very large number of link-reference definitions is now O(n)
12
+ instead of O(n²). The committed reference table was cloned on every append
13
+ (O(refs) per chunk); it's now shared into each render via an `Rc` (O(1)) with a
14
+ two-level lookup (committed, then the uncommitted tail), and folded in place
15
+ via `Rc::make_mut` once the render's clone is dropped. A 235 KB
16
+ reference-definition stream at 16-byte chunks: **~1,395 ms → ~53 ms** (~26×).
17
+ This was the last remaining O(n²) streaming shape — every realistic shape is
18
+ now O(n). Output is unchanged.
19
+
7
20
  ## 0.5.0 — 2026-05-27
8
21
 
9
22
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flux-md",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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
  "main": "./src/index.ts",
Binary file