@aburi/diff 0.3.0 → 0.5.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/README.md +5 -2
- package/dist/index.d.mts +179 -251
- package/dist/index.mjs +1 -2180
- package/package.json +5 -5
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/src/components.ts +0 -258
- package/src/delta.ts +0 -400
- package/src/diff.ts +0 -494
- package/src/errors.ts +0 -51
- package/src/index.ts +0 -57
- package/src/match.ts +0 -797
- package/src/signature.ts +0 -53
- package/src/similarity.ts +0 -414
- package/src/slice.ts +0 -327
- package/src/status.ts +0 -36
package/README.md
CHANGED
|
@@ -12,8 +12,11 @@ Symbols are paired across base / head via cascading stages:
|
|
|
12
12
|
1. **id-match** — `<language>:<path>#<qname>` equal → same Symbol.
|
|
13
13
|
2. **git-rename** — optional table (from `git diff --find-renames`) rescues moved
|
|
14
14
|
files whose ids diverged only in the path segment.
|
|
15
|
-
3. **logic-fingerprint** — remaining Symbols with the same
|
|
16
|
-
hash pair up (rename-invariant, whitespace-invariant).
|
|
15
|
+
3. **logic-fingerprint** — remaining Symbols of the same kind with the same
|
|
16
|
+
`fingerprint.logic` hash pair up (rename-invariant, whitespace-invariant). Where
|
|
17
|
+
that logic names nothing (a class, a body that only calls something), unrelated
|
|
18
|
+
bodies share the hash, so a pair there also needs names of two words or more
|
|
19
|
+
with a similarity of 0.85.
|
|
17
20
|
4. **name+signature** — same simple name + compatible `Signature` (input/output
|
|
18
21
|
set + throws) — the fuzzy layer.
|
|
19
22
|
5. **dropped-weak** — last-resort match for pairs where both sides are dropped
|