@agoric/store 0.9.3-u20.0 → 0.9.3-u21.0.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
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/store",
|
|
3
|
-
"version": "0.9.3-
|
|
3
|
+
"version": "0.9.3-u21.0.1",
|
|
4
4
|
"description": "Wrapper for JavaScript map",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^20.9 || ^22.11"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "exit 0",
|
|
12
12
|
"test": "ava",
|
|
13
13
|
"test:xs": "exit 0",
|
|
14
14
|
"lint-fix": "yarn lint:eslint --fix",
|
|
15
|
-
"lint": "run-s --continue-on-error lint:*",
|
|
16
|
-
"lint:types": "tsc",
|
|
17
|
-
"lint:eslint": "eslint .",
|
|
18
|
-
"prepack": "tsc --build tsconfig.build.json",
|
|
15
|
+
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
16
|
+
"lint:types": "yarn run -T tsc",
|
|
17
|
+
"lint:eslint": "yarn run -T eslint .",
|
|
18
|
+
"prepack": "yarn run -T tsc --build tsconfig.build.json",
|
|
19
19
|
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"typeCoverage": {
|
|
64
64
|
"atLeast": 89.62
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
|
|
67
67
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ export { makeScalarWeakSetStore } from "./stores/scalarWeakSetStore.js";
|
|
|
2
2
|
export { makeScalarSetStore } from "./stores/scalarSetStore.js";
|
|
3
3
|
export { makeScalarWeakMapStore } from "./stores/scalarWeakMapStore.js";
|
|
4
4
|
export { makeScalarMapStore } from "./stores/scalarMapStore.js";
|
|
5
|
-
export { provideLazy } from "./stores/store-utils.js";
|
|
6
5
|
/** @type {MustMatch} */
|
|
7
6
|
export const mustMatch: MustMatch;
|
|
8
7
|
export { makeLegacyMap } from "./legacy/legacyMap.js";
|
|
9
8
|
export { makeLegacyWeakMap } from "./legacy/legacyWeakMap.js";
|
|
10
9
|
export * from "./types.js";
|
|
11
10
|
import type { MustMatch } from '@agoric/internal';
|
|
11
|
+
export { makeAtomicProvider, provideLazy } from "./stores/store-utils.js";
|
|
12
12
|
export { isKey, assertKey, assertScalarKey, makeCopySet, getCopySetKeys, makeCopyBag, makeCopyBagFromElements, getCopyBagEntries, makeCopyMap, getCopyMapEntries, coerceToElements, coerceToBagEntries, compareKeys, keyLT, keyLTE, keyEQ, keyGTE, keyGT, elementsIsSuperset, elementsIsDisjoint, elementsCompare, elementsUnion, elementsDisjointUnion, elementsIntersection, elementsDisjointSubtract, setIsSuperset, setIsDisjoint, setCompare, setUnion, setDisjointUnion, setIntersection, setDisjointSubtract, bagIsSuperbag, bagCompare, bagUnion, bagIntersection, bagDisjointSubtract, M, getRankCover, isPattern, assertPattern, matches, isCopySet, isCopyMap } from "@endo/patterns";
|
|
13
13
|
export { initEmpty, defineExoClass, defineExoClassKit, makeExo } from "@endo/exo";
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;;AAgEA,wBAAwB;AACxB,wBADW,SAAS,CACuB;;;;+BAhEf,kBAAkB"}
|
package/src/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { makeScalarSetStore } from './stores/scalarSetStore.js';
|
|
|
8
8
|
export { makeScalarWeakMapStore } from './stores/scalarWeakMapStore.js';
|
|
9
9
|
export { makeScalarMapStore } from './stores/scalarMapStore.js';
|
|
10
10
|
|
|
11
|
-
export { provideLazy } from './stores/store-utils.js';
|
|
11
|
+
export { makeAtomicProvider, provideLazy } from './stores/store-utils.js';
|
|
12
12
|
|
|
13
13
|
// /////////////////////// Deprecated Re-exports ///////////////////////////////
|
|
14
14
|
// Importers should import directly from the packages shown below
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function makeMapStoreMethods<K extends Key, V extends Passable>(jsmap: Map<K, V>, assertKVOkToAdd: (k: K, v: V) => void, assertKVOkToSet: (k: K, v: V) => void, assertKeyOkToDelete?: (k: K) => void, tag?: string): MapStoreMethods<K, V>;
|
|
2
|
-
export function makeScalarMapStore(tag?: string, { keyShape, valueShape }?: StoreOptions): MapStore<
|
|
2
|
+
export function makeScalarMapStore<K, V>(tag?: string, { keyShape, valueShape }?: StoreOptions): MapStore<K, V>;
|
|
3
3
|
import type { Key } from '@endo/patterns';
|
|
4
4
|
import type { Passable } from '@endo/pass-style';
|
|
5
5
|
import type { MapStoreMethods } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalarMapStore.d.ts","sourceRoot":"","sources":["scalarMapStore.js"],"names":[],"mappings":"AAkCO,oCATY,CAAC,SAAP,GAAK,EACM,CAAC,SAAZ,QAAU,SACZ,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,mBACT,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,mBACpB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,wBACpB,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,QACd,MAAM,GACJ,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAyFjC;
|
|
1
|
+
{"version":3,"file":"scalarMapStore.d.ts","sourceRoot":"","sources":["scalarMapStore.js"],"names":[],"mappings":"AAkCO,oCATY,CAAC,SAAP,GAAK,EACM,CAAC,SAAZ,QAAU,SACZ,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,mBACT,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,mBACpB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,wBACpB,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,QACd,MAAM,GACJ,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAyFjC;AAmBM,mCANM,CAAC,EACD,CAAC,QACH,MAAM,6BACN,YAAY,GACV,SAAS,CAAC,EAAE,CAAC,CAAC,CA8C1B;yBApK8B,gBAAgB;8BADpB,kBAAkB;qCAEa,aAAa;kCAAb,aAAa;8BAAb,aAAa"}
|
|
@@ -132,9 +132,11 @@ export const makeMapStoreMethods = (
|
|
|
132
132
|
* or remotables. Other storeMaps will accept, for example, copyArrays and
|
|
133
133
|
* copyRecords, as keys and look them up based on equality of their contents.
|
|
134
134
|
*
|
|
135
|
+
* @template K=any
|
|
136
|
+
* @template V=any
|
|
135
137
|
* @param {string} [tag] - the column name for the key
|
|
136
138
|
* @param {StoreOptions} [options]
|
|
137
|
-
* @returns {MapStore<
|
|
139
|
+
* @returns {MapStore<K, V>}
|
|
138
140
|
*/
|
|
139
141
|
export const makeScalarMapStore = (
|
|
140
142
|
tag = 'key',
|