@matrajs/mcp 1.0.1 → 1.0.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.
@@ -22,21 +22,22 @@ every one of those is on the runtime side of this file.
22
22
 
23
23
  ## Speed, in a browser
24
24
 
25
- Four editors mounted in the same page, in the same run, in WebKit. Each cell is
26
- the median of three runs of a median of seven samples. Milliseconds, lower is
27
- better. `bench/browser` builds and runs this.
25
+ Four editors mounted in the same page, in the same run, in Chrome 152 on
26
+ 2026-09-05 Matra 1.0.1 against Tiptap 3.31, Lexical 0.50 and Slate 0.126.
27
+ Each cell is the median of three runs of a median of seven samples.
28
+ Milliseconds, lower is better. `bench/browser` builds and runs this.
28
29
 
29
30
  **No editor** is the same paragraphs built by hand into a `contenteditable`
30
31
  div, with nothing else in the page — the floor none of these can go under.
31
32
 
32
33
  | operation | No editor | Matra | Tiptap | Lexical | Slate |
33
34
  |---|---|---|---|---|---|
34
- | parse a document, 2000 ¶ | — | **8.3** | 15.6 | 77.6 | — |
35
- | `getHTML()`, 2000 ¶ | — | **1.5** | 3.6 | 7.1 | — |
36
- | keystroke, 200 ¶ | — | **0.127** | 0.275 | 0.197 | — |
37
- | keystroke, 2000 ¶ | — | **0.847** | 1.188 | 1.160 | — |
38
- | mount + first render, 200 ¶ | 1.1 | **2.0** | 4.3 | 3.2 | 8.0 |
39
- | mount + first render, 2000 ¶ | 10.9 | **22.1** | 37.7 | 26.0 | 93.0 |
35
+ | parse a document, 2000 ¶ | — | **2.2** | 8.1 | 35.8 | — |
36
+ | `getHTML()`, 2000 ¶ | — | **0.3** | 1.7 | 5.3 | — |
37
+ | keystroke, 200 ¶ | — | **0.073** | 0.158 | 0.102 | — |
38
+ | keystroke, 2000 ¶ | — | **0.480** | 0.622 | 0.547 | — |
39
+ | mount + first render, 200 ¶ | 1.0 | **1.2** | 4.6 | 2.3 | 5.0 |
40
+ | mount + first render, 2000 ¶ | 12.2 | **14.6** | 34.1 | 21.6 | 50.2 |
40
41
 
41
42
  **Absolute milliseconds only mean anything within one run.** Same harness, same
42
43
  browser, a different day: Lexical parsed the same document in 34.7 ms one week
package/docs/changelog.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All packages share one version number and are released together.
4
4
 
5
+ ## 1.0.2 — 2026-09-05
6
+
7
+ **Solid mounts.** A Solid ref runs when its element is made, before it is in
8
+ the page — and an element cloned from a template does not even belong to the
9
+ page's document yet. The editor was mounted on it anyway, so the drag handle
10
+ had no body to go in and the mount threw. `createMatra` now mounts once the
11
+ element is in place, and the drag handle is built on the first mouse move
12
+ when there is no body to put it in at mount. Found by running the install
13
+ matrix's Solid app in a real Chrome: happy-dom gives cloned elements a
14
+ document, so the DOM checks had passed.
15
+
16
+ **The browser benchmark, rerun.** Matra 1.0.1 against Tiptap 3.31, Lexical
17
+ 0.50 and Slate 0.126 in Chrome 152, all four mounted in one page, the median
18
+ of three runs. Matra leads every row; the tables in `BENCHMARKS.md`, on the
19
+ landing page and on the benchmarks page carry the new figures.
20
+
5
21
  ## 1.0.1 — 2026-09-05
6
22
 
7
23
  Three bugs a person meets in the first minute, found by driving every
@@ -6,7 +6,7 @@ Every figure on the landing page comes from one run of one harness with all four
6
6
 
7
7
  ## Method
8
8
 
9
- - WebKit, one page, one run · all four editors mounted side by side.
9
+ - Chrome 152, one page, one run · all four editors mounted side by side · Matra 1.0.1, Tiptap 3.31, Lexical 0.50, Slate 0.126, on 2026-09-05.
10
10
 
11
11
  - Median of seven samples, after five warm-up rounds.
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matrajs/mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "The Matra documentation as a Model Context Protocol server, so any AI tool can read it. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "author": "Nahim Hossain Shohan",