@agoric/store 0.9.3-u16.0 → 0.9.3-u17.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/package.json +10 -9
- package/src/index.js +10 -1
- package/src/legacy/legacyMap.js +1 -1
- package/src/legacy/legacyWeakMap.js +1 -1
- package/src/stores/scalarMapStore.js +3 -4
- package/src/stores/scalarSetStore.js +2 -3
- package/src/stores/scalarWeakMapStore.js +1 -2
- package/src/stores/scalarWeakSetStore.js +1 -2
- package/src/stores/store-utils.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/store",
|
|
3
|
-
"version": "0.9.3-
|
|
3
|
+
"version": "0.9.3-u17.1",
|
|
4
4
|
"description": "Wrapper for JavaScript map",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@endo/
|
|
34
|
-
"@endo/
|
|
35
|
-
"@endo/
|
|
36
|
-
"@endo/
|
|
33
|
+
"@endo/errors": "^1.2.5",
|
|
34
|
+
"@endo/exo": "^1.5.3",
|
|
35
|
+
"@endo/marshal": "^1.5.3",
|
|
36
|
+
"@endo/pass-style": "^1.4.3",
|
|
37
|
+
"@endo/patterns": "^1.4.3"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@endo/init": "^1.1.
|
|
40
|
-
"@endo/ses-ava": "^1.2.
|
|
40
|
+
"@endo/init": "^1.1.4",
|
|
41
|
+
"@endo/ses-ava": "^1.2.5",
|
|
41
42
|
"ava": "^5.3.0"
|
|
42
43
|
},
|
|
43
44
|
"files": [
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"timeout": "2m"
|
|
59
60
|
},
|
|
60
61
|
"typeCoverage": {
|
|
61
|
-
"atLeast": 89.
|
|
62
|
+
"atLeast": 89.53
|
|
62
63
|
},
|
|
63
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5259430561693bfcf58516c3ea54123895859708"
|
|
64
65
|
}
|
package/src/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {MustMatch} from '@agoric/internal';
|
|
3
|
+
*/
|
|
4
|
+
import { mustMatch as typelessMustMatch } from '@endo/patterns';
|
|
5
|
+
|
|
1
6
|
export { makeScalarWeakSetStore } from './stores/scalarWeakSetStore.js';
|
|
2
7
|
export { makeScalarSetStore } from './stores/scalarSetStore.js';
|
|
3
8
|
export { makeScalarWeakMapStore } from './stores/scalarWeakMapStore.js';
|
|
@@ -51,11 +56,15 @@ export {
|
|
|
51
56
|
isPattern,
|
|
52
57
|
assertPattern,
|
|
53
58
|
matches,
|
|
54
|
-
mustMatch,
|
|
55
59
|
isCopySet,
|
|
56
60
|
isCopyMap,
|
|
57
61
|
} from '@endo/patterns';
|
|
58
62
|
|
|
63
|
+
// XXX @agoric/store should not depend on @agoric/internal
|
|
64
|
+
// TODO move to Endo
|
|
65
|
+
/** @type {MustMatch} */
|
|
66
|
+
export const mustMatch = typelessMustMatch;
|
|
67
|
+
|
|
59
68
|
export {
|
|
60
69
|
initEmpty,
|
|
61
70
|
defineExoClass,
|
package/src/legacy/legacyMap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @import {LegacyMap, LegacyWeakMap} from '../types.js'; */
|
|
2
2
|
|
|
3
3
|
// TODO, once migrated to endo, import from @endo/errors instead
|
|
4
|
-
|
|
4
|
+
import { Fail, q } from '@endo/errors';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This module and its fraternal sibling legacyWeakMap exist only to ease a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @import {LegacyWeakMap} from '../types.js'; */
|
|
2
2
|
|
|
3
3
|
// TODO, once migrated to endo, import from @endo/errors instead
|
|
4
|
-
|
|
4
|
+
import { Fail, q } from '@endo/errors';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* See doccomment in the closely related `legacyMap.js` module.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { q } from '@endo/errors';
|
|
1
2
|
import {
|
|
2
3
|
Far,
|
|
3
4
|
assertPassable,
|
|
@@ -16,13 +17,11 @@ import { makeWeakMapStoreMethods } from './scalarWeakMapStore.js';
|
|
|
16
17
|
import { makeCurrentKeysKit } from './store-utils.js';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
|
-
* @import {Passable} from '@endo/pass-style'
|
|
20
|
-
* @import {Key, Pattern} from '@endo/patterns'
|
|
20
|
+
* @import {Passable} from '@endo/pass-style';
|
|
21
|
+
* @import {Key, Pattern} from '@endo/patterns';
|
|
21
22
|
* @import {MapStore, MapStoreMethods, StoreOptions} from '../types.js';
|
|
22
23
|
*/
|
|
23
24
|
|
|
24
|
-
const { quote: q } = assert;
|
|
25
|
-
|
|
26
25
|
/**
|
|
27
26
|
* @template {Key} K
|
|
28
27
|
* @template {Passable} V
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { q } from '@endo/errors';
|
|
1
2
|
import { Far, filterIterable } from '@endo/pass-style';
|
|
2
3
|
import { compareRank } from '@endo/marshal';
|
|
3
4
|
import {
|
|
@@ -11,12 +12,10 @@ import { makeWeakSetStoreMethods } from './scalarWeakSetStore.js';
|
|
|
11
12
|
import { makeCurrentKeysKit } from './store-utils.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
|
-
* @import {Key, Pattern} from '@endo/patterns'
|
|
15
|
+
* @import {Key, Pattern} from '@endo/patterns';
|
|
15
16
|
* @import {SetStore, SetStoreMethods, StoreOptions} from '../types.js';
|
|
16
17
|
*/
|
|
17
18
|
|
|
18
|
-
const { quote: q } = assert;
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* @template {Key} K
|
|
22
21
|
* @param {Set<K>} jsset
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { q, Fail } from '@endo/errors';
|
|
1
2
|
import { Far, assertPassable, passStyleOf } from '@endo/pass-style';
|
|
2
3
|
import {
|
|
3
4
|
getCopyMapEntries,
|
|
@@ -12,8 +13,6 @@ import {
|
|
|
12
13
|
* @import {WeakMapStore, StoreOptions} from '../types.js';
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
|
-
const { quote: q, Fail } = assert;
|
|
16
|
-
|
|
17
16
|
/**
|
|
18
17
|
* @template {Key} K
|
|
19
18
|
* @template {Passable} V
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { q, Fail } from '@endo/errors';
|
|
1
2
|
import { Far, passStyleOf } from '@endo/pass-style';
|
|
2
3
|
import {
|
|
3
4
|
getCopySetKeys,
|
|
@@ -6,8 +7,6 @@ import {
|
|
|
6
7
|
isCopySet,
|
|
7
8
|
} from '@endo/patterns';
|
|
8
9
|
|
|
9
|
-
const { quote: q, Fail } = assert;
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
* @import {Key} from '@endo/patterns';
|
|
13
12
|
* @import {StoreOptions, WeakSetStore, WeakSetStoreMethods} from '@agoric/store';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fail, q } from '@endo/errors';
|
|
1
2
|
import { Far } from '@endo/marshal';
|
|
2
3
|
import { M, matches } from '@endo/patterns';
|
|
3
4
|
|
|
@@ -8,8 +9,6 @@ import { M, matches } from '@endo/patterns';
|
|
|
8
9
|
* @import {Key} from '@endo/patterns';
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
|
-
const { Fail, quote: q } = assert;
|
|
12
|
-
|
|
13
12
|
// TODO: Undate `@endo/patterns` to export the original, and delete the
|
|
14
13
|
// reimplementation here.
|
|
15
14
|
/**
|