@aburi/diff 0.1.0 → 0.3.0
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/LICENSE +202 -0
- package/README.md +4 -4
- package/dist/index.d.mts +294 -42
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1408 -269
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
- package/src/components.ts +166 -13
- package/src/delta.ts +129 -30
- package/src/diff.ts +295 -38
- package/src/errors.ts +16 -0
- package/src/index.ts +13 -1
- package/src/match.ts +634 -175
- package/src/similarity.ts +299 -19
- package/src/slice.ts +327 -0
- package/src/status.ts +2 -2
package/src/status.ts
CHANGED
|
@@ -9,8 +9,8 @@ export type SymbolStatus = "unchanged" | "moved" | "changed" | "moved+changed" |
|
|
|
9
9
|
* drop-rule flip, not a genuine code edit (§4.1 rationale).
|
|
10
10
|
*
|
|
11
11
|
* "pathChanged" catches both physical file relocation AND in-file rename: any Symbol id
|
|
12
|
-
* mismatch between base and head means the identifier moved, and DF9 ("method
|
|
13
|
-
* (
|
|
12
|
+
* mismatch between base and head means the identifier moved, and DF9 ("method rename
|
|
13
|
+
* (same file, same logic) → moved") relies on this. Stage-1 pairs cannot trigger the id branch
|
|
14
14
|
* (they match by exact id), so this only affects stage-2+ pairings where the pair was
|
|
15
15
|
* discovered via fingerprint or name/signature similarity.
|
|
16
16
|
*/
|