@agoric/base-zone 0.1.1-u16.0 → 0.1.1-u17.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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ### 0.1.1-u16.0 (2024-07-02)
6
+ ### 0.1.1-u17.0 (2024-09-17)
7
7
 
8
8
 
9
9
  ### Features
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
  * **base-zone:** add `zone.watchPromise` ([9ce80d0](https://github.com/Agoric/agoric-sdk/commit/9ce80d06c0a56471d2da9f372b0b2d93d31d159a))
12
12
  * **base-zone:** alt revocable api using amplifier ([#8977](https://github.com/Agoric/agoric-sdk/issues/8977)) ([5cdf6e3](https://github.com/Agoric/agoric-sdk/commit/5cdf6e3a8b4fbb5cb8e276e6efeec65d9c3d6623))
13
13
  * **base-zone:** new package ([b7bc677](https://github.com/Agoric/agoric-sdk/commit/b7bc677238eee5969ac0a95dc066434ef676216e))
14
- * **watchUtils:** handle non-storables ([111703e](https://github.com/Agoric/agoric-sdk/commit/111703ec70b65154c19c329d01627c15d730e2c5))
14
+ * **watchUtils:** handle non-storables ([8c27c67](https://github.com/Agoric/agoric-sdk/commit/8c27c6725ba7ef4b71d3ab0ccfdbddd755bcd926))
15
15
 
16
16
 
17
17
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/base-zone",
3
- "version": "0.1.1-u16.0",
3
+ "version": "0.1.1-u17.0",
4
4
  "description": "Allocation zone abstraction library and heap implementation",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -27,16 +27,17 @@
27
27
  "author": "Agoric",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@agoric/store": "^0.9.3-u16.0",
31
- "@endo/common": "^1.2.2",
32
- "@endo/exo": "^1.5.0",
33
- "@endo/far": "^1.1.2",
34
- "@endo/pass-style": "^1.4.0",
35
- "@endo/patterns": "^1.4.0"
30
+ "@agoric/store": "^0.9.3-u17.0",
31
+ "@endo/common": "^1.2.5",
32
+ "@endo/errors": "^1.2.5",
33
+ "@endo/exo": "^1.5.3",
34
+ "@endo/far": "^1.1.5",
35
+ "@endo/pass-style": "^1.4.3",
36
+ "@endo/patterns": "^1.4.3"
36
37
  },
37
38
  "devDependencies": {
38
- "@endo/init": "^1.1.2",
39
- "@endo/ses-ava": "^1.2.2",
39
+ "@endo/init": "^1.1.4",
40
+ "@endo/ses-ava": "^1.2.5",
40
41
  "ava": "^5.3.0"
41
42
  },
42
43
  "publishConfig": {
@@ -56,7 +57,7 @@
56
57
  "workerThreads": false
57
58
  },
58
59
  "typeCoverage": {
59
- "atLeast": 91.11
60
+ "atLeast": 91.4
60
61
  },
61
- "gitHead": "bbdf652c3f413381cb352a8a360db1063974fafd"
62
+ "gitHead": "515c4c0efccfc91b97da30037c10fc4b076851e2"
62
63
  }
@@ -1,5 +1,5 @@
1
1
  export function makeOnceKit(debugName: string, stores: import("./types.js").Stores, backingStore?: globalThis.MapStore<string, any> | undefined): {
2
2
  makeOnce: <V>(key: string, maker: (key: string) => V) => V;
3
- wrapProvider: <T extends (key: string, ...rest: unknown[]) => any>(provider: T, labelToKeys?: ((label: string) => string[]) | undefined) => T;
3
+ wrapProvider: <T extends (key: string, ...rest: any[]) => any>(provider: T, labelToKeys?: ((label: string) => string[]) | undefined) => T;
4
4
  };
5
5
  //# sourceMappingURL=make-once.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"make-once.d.ts","sourceRoot":"","sources":["make-once.js"],"names":[],"mappings":"AAYO,uCAJI,MAAM,UACN,OAAO,YAAY,EAAE,MAAM;eAyDvB,CAAC,OACH,MAAM,SACN,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,KAChB,CAAC;mBAhC0C,CAAC,SAA5C,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,GAAI,YAC5C,CAAC,yBACO,MAAM,KAAK,MAAM,EAAE,kBACzB,CAAC;EA4Cf"}
1
+ {"version":3,"file":"make-once.d.ts","sourceRoot":"","sources":["make-once.js"],"names":[],"mappings":"AAYO,uCAJI,MAAM,UACN,OAAO,YAAY,EAAE,MAAM;eAyDvB,CAAC,OACH,MAAM,SACN,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,KAChB,CAAC;mBAhCsC,CAAC,SAAxC,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,YACxC,CAAC,yBACO,MAAM,KAAK,MAAM,EAAE,kBACzB,CAAC;EA4Cf"}
package/src/make-once.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @ts-check
2
- const { Fail } = assert;
2
+ import { Fail } from '@endo/errors';
3
3
 
4
4
  /** @param {string} label */
5
5
  const defaultLabelToKeys = label => harden([label]);
@@ -35,7 +35,7 @@ export const makeOnceKit = (debugName, stores, backingStore = undefined) => {
35
35
  * Ensure the wrapped function is only called once per incarnation. It is
36
36
  * expected to update the backing store directly.
37
37
  *
38
- * @template {(key: string, ...rest: unknown[]) => any} T
38
+ * @template {(key: string, ...rest: any[]) => any} T
39
39
  * @param {T} provider
40
40
  * @param {(label: string) => string[]} [labelToKeys]
41
41
  * @returns {T}
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-revocable.d.ts","sourceRoot":"","sources":["prepare-revocable.js"],"names":[],"mappings":"AAsEO,yCAVO,CAAC,cACJ,OAAO,mBAAmB,EAAE,IAAI,aAChC,MAAM,gBAEN,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,mDAIf,iBAAiB,CAAC,CAAC,CAAC,CAyGhC;8BArKa,CAAC;YAED,CAAC,SAAS,EAAE,CAAC,KAAK,OAAO;;;;mBACzB,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC;;;YAMpB,MAAM,OAAO;;yBAIb,CAAC;aAED,YAAY;;;;eACZ,CAAC;;6BAKD,CAAC;YAED,YAAY,CAAC,CAAC,CAAC;WACf;QAAE,UAAU,EAAE,CAAC,CAAA;KAAE;;gCAIjB,CAAC;;;;;;;;;;;;;;;;kDAcH,gBAAgB,CAAC,CAAC,CAAC,WAAW,GAAG,EAAE,KAAK,GAAG"}
1
+ {"version":3,"file":"prepare-revocable.d.ts","sourceRoot":"","sources":["prepare-revocable.js"],"names":[],"mappings":"AAqEO,yCAVO,CAAC,cACJ,OAAO,mBAAmB,EAAE,IAAI,aAChC,MAAM,gBAEN,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,mDAIf,iBAAiB,CAAC,CAAC,CAAC,CAyGhC;8BArKa,CAAC;YAED,CAAC,SAAS,EAAE,CAAC,KAAK,OAAO;;;;mBACzB,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC;;;YAMpB,MAAM,OAAO;;yBAIb,CAAC;aAED,YAAY;;;;eACZ,CAAC;;6BAKD,CAAC;YAED,YAAY,CAAC,CAAC,CAAC;WACf;QAAE,UAAU,EAAE,CAAC,CAAA;KAAE;;gCAIjB,CAAC;;;;;;;;;;;;;;;;kDAcH,gBAAgB,CAAC,CAAC,CAAC,WAAW,GAAG,EAAE,KAAK,GAAG"}
@@ -1,7 +1,6 @@
1
- import { M } from '@endo/patterns';
1
+ import { Fail, q } from '@endo/errors';
2
2
  import { fromUniqueEntries } from '@endo/common/from-unique-entries.js';
3
-
4
- const { Fail, quote: q } = assert;
3
+ import { M } from '@endo/patterns';
5
4
 
6
5
  /** @import {Amplify} from '@endo/exo'; */
7
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"watch-promise.d.ts","sourceRoot":"","sources":["watch-promise.js"],"names":[],"mappings":"AAQA;;GAEG;AACH,yEAA6E;AAE7E;;GAEG;AACH;;;GAGG;AAEH;;GAEG;AACH;;GAEG;AAEH;;GAEG;AACH;;GAEG;AAuCI,gCALI,OAAO,CAAC,GAAG,CAAC,WACZ,cAAc,kBACX,OAAO,EAAA,GACR,IAAI,CAUhB;;gCA3C0B,OAAO,WAAW,OAAO,EAAE,KAAK,IAAI;2BACxC,OAAO,WAAW,OAAO,EAAE,KAAK,IAAI"}
1
+ {"version":3,"file":"watch-promise.d.ts","sourceRoot":"","sources":["watch-promise.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,yEAA6E;AAE7E;;GAEG;AACH;;;GAGG;AAEH;;GAEG;AACH;;GAEG;AAEH;;GAEG;AACH;;GAEG;AAuCI,gCALI,OAAO,CAAC,GAAG,CAAC,WACZ,cAAc,kBACX,OAAO,EAAA,GACR,IAAI,CAUhB;;gCA3C0B,OAAO,WAAW,OAAO,EAAE,KAAK,IAAI;2BACxC,OAAO,WAAW,OAAO,EAAE,KAAK,IAAI"}
@@ -1,9 +1,8 @@
1
1
  // @ts-check
2
+ import { Fail } from '@endo/errors';
2
3
  import { M } from '@endo/patterns';
3
4
  import { E } from '@endo/far';
4
5
 
5
- const { Fail } = assert;
6
-
7
6
  const { apply } = Reflect;
8
7
 
9
8
  /**