@mapples/textpatch 1.6.0-beta.20260929132641 → 1.6.0-beta.20260930095510
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 +7 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @mapples/textpatch
|
|
2
|
+
|
|
3
|
+
## 1.6.0-beta.20260930095510
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b6d3791: Source text as git-style hunks (RFC-0001 A13). New `@mapples/textpatch`: unified-diff hunks for a file's text — `makeHunks`, an exact `applyHunks` mirrored line for line by the server's Python applier, `merge3` (line-level 3-way, no markers), `textHash` — shared by the Creator and the `mapples` CLI. `@mapplesorg/jpatch` gains the `text: {base, hunks}` update directive on `Source` (the tree applies it with base verification; `patch.text` is refused), the `SOURCE_BASE_MISMATCH` / `SOURCE_PATCH_INVALID` codes, and code-aware summaries (`Edited code of “Home” (+12 −3)` via `namesFromTree`). The Creator's outbox sends a Save as hunks against the optimistic text, coalesces repeated Saves of one file, and rebases a queued directive over a peer's edit with a 3-way merge — overlapping lines surface as a casualty instead of a silent overwrite. `@mapplesorg/api` gains `Network.Core.Canvas.historyCommit` (`GET …/canvas/history/{seq}`), and the History panel expands a commit into its changes with the hunks of every code edit.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapples/textpatch",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.20260930095510",
|
|
4
4
|
"description": "Unified-diff hunks for Mapples Source text (RFC-0001 A13): generate, apply exactly, 3-way merge, text hash. Shared by the Creator and the mapples CLI; mirrored by the server's Python applier.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
"README.md",
|
|
37
37
|
"package.json"
|
|
38
38
|
]
|
|
39
|
-
}
|
|
39
|
+
}
|