@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.
- package/docs/benchmarks-full.md +10 -9
- package/docs/changelog.md +16 -0
- package/docs/docs-benchmarks.md +1 -1
- package/package.json +1 -1
package/docs/benchmarks-full.md
CHANGED
|
@@ -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
|
|
26
|
-
|
|
27
|
-
|
|
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 ¶ | — | **
|
|
35
|
-
| `getHTML()`, 2000 ¶ | — | **
|
|
36
|
-
| keystroke, 200 ¶ | — | **0.
|
|
37
|
-
| keystroke, 2000 ¶ | — | **0.
|
|
38
|
-
| mount + first render, 200 ¶ | 1.
|
|
39
|
-
| mount + first render, 2000 ¶ |
|
|
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
|
package/docs/docs-benchmarks.md
CHANGED
|
@@ -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
|
-
-
|
|
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