eyecite-ts 0.28.0 → 0.28.1

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.
@@ -79,15 +79,18 @@ interface ResolutionResult {
79
79
  */
80
80
  resolvedTo?: number;
81
81
  /**
82
- * Index of the immediately preceding cited authority in document order,
83
- * regardless of whether *that* citation itself resolved to a full cite.
84
- * Bluebook Rule 4.1 / Indigo Book R6.2.2: `Id.` anchors here.
82
+ * Index of this short-form's antecedent.
85
83
  *
86
- * - When the predecessor is a full citation or successfully-resolved
87
- * short-form, this points one step back (may equal `resolvedTo`).
88
- * - When the predecessor is an unresolved short-form (e.g. because the
89
- * case name appears only in prose), this still points at it; the
90
- * `resolvedTo` field stays undefined.
84
+ * - SUCCESS path (`resolvedTo` defined): mirrors `resolvedTo`, so consumers
85
+ * have one source of truth for what the short-form points at even when
86
+ * an intervening citation of a different authority sits between the
87
+ * resolved antecedent and the short-form (#508 for `Id.`, #795 for supra
88
+ * and shortFormCase).
89
+ * - UNRESOLVED/fallback path (`resolvedTo` undefined, e.g. the case name
90
+ * appears only in prose): points at the immediately preceding cited
91
+ * authority in document order per Bluebook Rule 4.1 / Indigo Book
92
+ * R6.2.2, so a subsequent `Id.` (or a consumer walking the chain) can
93
+ * still cluster with the short-form.
91
94
  * - Records the immediate predecessor only; follow transitively via
92
95
  * `resolutions[antecedentIndex].antecedentIndex` for the originator.
93
96
  * Same idiom as `ShortFormCaseCitation.pinciteInheritedFrom`.
@@ -121,4 +124,4 @@ type ResolvedCitation<C extends Citation = Citation> = C extends ShortFormCitati
121
124
  };
122
125
  //#endregion
123
126
  export { FootnoteMap as a, ScopeStrategy as i, ResolutionResult as n, FootnoteZone as o, ResolvedCitation as r, ResolutionOptions as t };
124
- //# sourceMappingURL=types-BcFwx-j6.d.cts.map
127
+ //# sourceMappingURL=types-CG-iShfq.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-CG-iShfq.d.cts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;;EAOA,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;EA+CE;;;;;;;;;;;;;;;;;EA5BF,eAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;AAAA"}
@@ -79,15 +79,18 @@ interface ResolutionResult {
79
79
  */
80
80
  resolvedTo?: number;
81
81
  /**
82
- * Index of the immediately preceding cited authority in document order,
83
- * regardless of whether *that* citation itself resolved to a full cite.
84
- * Bluebook Rule 4.1 / Indigo Book R6.2.2: `Id.` anchors here.
82
+ * Index of this short-form's antecedent.
85
83
  *
86
- * - When the predecessor is a full citation or successfully-resolved
87
- * short-form, this points one step back (may equal `resolvedTo`).
88
- * - When the predecessor is an unresolved short-form (e.g. because the
89
- * case name appears only in prose), this still points at it; the
90
- * `resolvedTo` field stays undefined.
84
+ * - SUCCESS path (`resolvedTo` defined): mirrors `resolvedTo`, so consumers
85
+ * have one source of truth for what the short-form points at even when
86
+ * an intervening citation of a different authority sits between the
87
+ * resolved antecedent and the short-form (#508 for `Id.`, #795 for supra
88
+ * and shortFormCase).
89
+ * - UNRESOLVED/fallback path (`resolvedTo` undefined, e.g. the case name
90
+ * appears only in prose): points at the immediately preceding cited
91
+ * authority in document order per Bluebook Rule 4.1 / Indigo Book
92
+ * R6.2.2, so a subsequent `Id.` (or a consumer walking the chain) can
93
+ * still cluster with the short-form.
91
94
  * - Records the immediate predecessor only; follow transitively via
92
95
  * `resolutions[antecedentIndex].antecedentIndex` for the originator.
93
96
  * Same idiom as `ShortFormCaseCitation.pinciteInheritedFrom`.
@@ -121,4 +124,4 @@ type ResolvedCitation<C extends Citation = Citation> = C extends ShortFormCitati
121
124
  };
122
125
  //#endregion
123
126
  export { FootnoteMap as a, ScopeStrategy as i, ResolutionResult as n, FootnoteZone as o, ResolvedCitation as r, ResolutionOptions as t };
124
- //# sourceMappingURL=types-BxTRgDes.d.mts.map
127
+ //# sourceMappingURL=types-vZQj0rvB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-vZQj0rvB.d.mts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;;EAOA,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;EA+CE;;;;;;;;;;;;;;;;;EA5BF,eAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { n as Citation, p as FullCaseCitation } from "../citation-CC26NIPR.cjs";
2
- import { r as ResolvedCitation } from "../types-BcFwx-j6.cjs";
2
+ import { r as ResolvedCitation } from "../types-CG-iShfq.cjs";
3
3
 
4
4
  //#region src/utils/types.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as Citation, p as FullCaseCitation } from "../citation-ag6I-jIx.mjs";
2
- import { r as ResolvedCitation } from "../types-BxTRgDes.mjs";
2
+ import { r as ResolvedCitation } from "../types-vZQj0rvB.mjs";
3
3
 
4
4
  //#region src/utils/types.d.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyecite-ts",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "TypeScript port of eyecite - extract, resolve, and annotate legal citations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-BcFwx-j6.d.cts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;;EAOA,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;EA4CE;;;;;;;;;;;;;;EA5BF,eAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;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