@issuegraph/store 0.1.0 → 0.1.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.
- package/dist/model.d.ts +8 -7
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +10 -10
- package/dist/model.js.map +1 -1
- package/package.json +2 -2
package/dist/model.d.ts
CHANGED
|
@@ -69,14 +69,15 @@ export interface GraphDocument {
|
|
|
69
69
|
/**
|
|
70
70
|
* The identity of an edge, as a pure function of its content.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
72
|
+
* THE RULE ITSELF LIVES IN `@issuegraph/core`, and this is deliberately a thin
|
|
73
|
+
* delegation rather than a second implementation. The viewer stamps the same
|
|
74
|
+
* identity on a `together-with` connector so a click can name an edge, and it
|
|
75
|
+
* cannot depend on this package — so the format had to move to the one layer
|
|
76
|
+
* both already depend on. Two spellings of an identity is how a host comes to
|
|
77
|
+
* hold an id that matches no `StoredEdge`.
|
|
75
78
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* not, because for them the direction IS the fact: `A blocked-by B` and
|
|
79
|
-
* `B blocked-by A` are opposite claims about which issue may start.
|
|
79
|
+
* Kept as a named export because it is the store's vocabulary — callers here
|
|
80
|
+
* think in `EdgeKind` and `IssueRef`, not in the format's field names.
|
|
80
81
|
*/
|
|
81
82
|
export declare function edgeId(kind: EdgeKind, from: IssueRef, to: IssueRef): EdgeId;
|
|
82
83
|
/** An edge with its identity filled in from its content. */
|
package/dist/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;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AE,EAAE,EAAE,QAAQ,GAAG,UAAU,CAEjF;AAED,gFAAgF;AAChF,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAEpF;AAED,gEAAgE;AAChE,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAExE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,UAAU,EAAE,EAAE,CAAC,EAAE,SAAS,UAAU,EAAE,GAAG,OAAO,CAOvF"}
|
package/dist/model.js
CHANGED
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @see https://github.com/autnmy/issuegraph/blob/main/SPEC.md
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { edgeIdentity } from '@issuegraph/core';
|
|
11
11
|
/**
|
|
12
12
|
* The identity of an edge, as a pure function of its content.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* THE RULE ITSELF LIVES IN `@issuegraph/core`, and this is deliberately a thin
|
|
15
|
+
* delegation rather than a second implementation. The viewer stamps the same
|
|
16
|
+
* identity on a `together-with` connector so a click can name an edge, and it
|
|
17
|
+
* cannot depend on this package — so the format had to move to the one layer
|
|
18
|
+
* both already depend on. Two spellings of an identity is how a host comes to
|
|
19
|
+
* hold an id that matches no `StoredEdge`.
|
|
17
20
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* not, because for them the direction IS the fact: `A blocked-by B` and
|
|
21
|
-
* `B blocked-by A` are opposite claims about which issue may start.
|
|
21
|
+
* Kept as a named export because it is the store's vocabulary — callers here
|
|
22
|
+
* think in `EdgeKind` and `IssueRef`, not in the format's field names.
|
|
22
23
|
*/
|
|
23
24
|
export function edgeId(kind, from, to) {
|
|
24
|
-
|
|
25
|
-
return `${kind}|${encodeURIComponent(first)}|${encodeURIComponent(second)}`;
|
|
25
|
+
return edgeIdentity(kind, from, to);
|
|
26
26
|
}
|
|
27
27
|
/** An edge with its identity filled in from its content. */
|
|
28
28
|
export function makeEdge(kind, from, to) {
|
package/dist/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAiC,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAiC,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAmE/E;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,MAAM,CAAC,IAAc,EAAE,IAAc,EAAE,EAAY;IACjE,OAAO,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;AACtC,CAAC;AAED,4DAA4D;AAC5D,MAAM,UAAU,QAAQ,CAAC,IAAc,EAAE,IAAc,EAAE,EAAY;IACnE,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACxD,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,QAAQ,CAAC,QAAuB,EAAE,EAAU;IAC1D,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACvD,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,QAAQ,CAAC,QAAuB,EAAE,GAAa;IAC7D,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CAAC,CAAwB,EAAE,CAAwB;IAC5E,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;IACjF,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@issuegraph/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A framework-free client store for an Issuegraph document, plus the data-source port a host plugs its tracker into. Renders edits optimistically, dispatches every mutation outward, and never re-evaluates the selection order until the write lands.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"issuegraph",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"node": ">=18"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@issuegraph/core": "^0.1.
|
|
45
|
+
"@issuegraph/core": "^0.1.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^22.18.0",
|