@agoric/zone 0.3.0-u17.1 → 0.3.0-u18.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/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.3.0-u17.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/zone@0.3.0-u17.0...@agoric/zone@0.3.0-u17.1) (2024-09-19)
6
+ ## [0.3.0-u18.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/zone@0.3.0-u18.0...@agoric/zone@0.3.0-u18.1) (2024-12-24)
7
7
 
8
8
  **Note:** Version bump only for package @agoric/zone
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [0.3.0-u17.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/zone@0.2.2...@agoric/zone@0.3.0-u17.0) (2024-09-17)
14
+ ## [0.3.0-u18.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/zone@0.2.2...@agoric/zone@0.3.0-u18.0) (2024-10-31)
15
15
 
16
16
 
17
17
  ### ⚠ BREAKING CHANGES
@@ -21,6 +21,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
21
21
  ### Features
22
22
 
23
23
  * **base-zone:** add `zone.watchPromise` ([9ce80d0](https://github.com/Agoric/agoric-sdk/commit/9ce80d06c0a56471d2da9f372b0b2d93d31d159a))
24
+ * **liveslots-tools:** prepare-strict-test-env ([d98d894](https://github.com/Agoric/agoric-sdk/commit/d98d89449d4bfc1419cd4410edef813db0e4ec55))
24
25
  * **zone:** implement `isStorable` for virtual zones ([20feefb](https://github.com/Agoric/agoric-sdk/commit/20feefbdef9aec159d32d3b2c6d266e4109ced99))
25
26
  * **zone:** implement `zone.makeOnce(key, maker)` ([d3be4c0](https://github.com/Agoric/agoric-sdk/commit/d3be4c08477d958c1760713a88d33de724d6e3a2))
26
27
  * **zone:** use fresh heap and virtual zones ([7a1a411](https://github.com/Agoric/agoric-sdk/commit/7a1a411cf719477e29a2bedeb91794fd633989e9))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zone",
3
- "version": "0.3.0-u17.1",
3
+ "version": "0.3.0-u18.1",
4
4
  "description": "Allocation zone abstraction for objects on the heap, persistent stores, etc.",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -8,9 +8,9 @@
8
8
  "scripts": {
9
9
  "build": "exit 0",
10
10
  "prepack": "tsc --build tsconfig.build.json",
11
- "postpack": "git clean -f '*.d.ts*'",
11
+ "postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
12
12
  "test": "ava",
13
- "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
13
+ "test:c8": "c8 --all $C8_OPTIONS ava",
14
14
  "test:xs": "exit 0",
15
15
  "lint-fix": "yarn lint:eslint --fix",
16
16
  "lint": "run-s --continue-on-error lint:*",
@@ -27,15 +27,15 @@
27
27
  "author": "Agoric",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@agoric/base-zone": "^0.1.1-u17.1",
31
- "@agoric/vat-data": "^0.5.3-u17.1",
32
- "@endo/errors": "^1.2.5",
33
- "@endo/far": "^1.1.5",
34
- "@endo/pass-style": "^1.4.3"
30
+ "@agoric/base-zone": "^0.1.1-u18.1",
31
+ "@agoric/vat-data": "^0.5.3-u18.1",
32
+ "@endo/errors": "^1.2.8",
33
+ "@endo/far": "^1.1.9",
34
+ "@endo/pass-style": "^1.4.7"
35
35
  },
36
36
  "devDependencies": {
37
- "@agoric/swingset-liveslots": "^0.10.3-u17.1",
38
- "@endo/patterns": "^1.4.3",
37
+ "@agoric/swingset-vat": "^0.33.0-u18.1",
38
+ "@endo/patterns": "^1.4.7",
39
39
  "ava": "^5.3.0"
40
40
  },
41
41
  "publishConfig": {
@@ -55,7 +55,7 @@
55
55
  "workerThreads": false
56
56
  },
57
57
  "typeCoverage": {
58
- "atLeast": 96.68
58
+ "atLeast": 98.56
59
59
  },
60
- "gitHead": "5259430561693bfcf58516c3ea54123895859708"
60
+ "gitHead": "f8c45b8a2e29a51522a81a6692af25b2d7f6b50f"
61
61
  }
package/src/durable.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export function makeDurableZone(baggage: import("@agoric/vat-data").Baggage, baseLabel?: string | undefined): import(".").Zone;
1
+ export function makeDurableZone(baggage: import("@agoric/vat-data").Baggage, baseLabel?: string): import(".").Zone;
2
2
  //# sourceMappingURL=durable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"durable.d.ts","sourceRoot":"","sources":["durable.js"],"names":[],"mappings":"AA0EO,yCAJI,OAAO,kBAAkB,EAAE,OAAO,mCAEhC,OAAO,GAAG,EAAE,IAAI,CA+C5B"}
1
+ {"version":3,"file":"durable.d.ts","sourceRoot":"","sources":["durable.js"],"names":[],"mappings":"AAyEO,yCAJI,OAAO,kBAAkB,EAAE,OAAO,cAClC,MAAM,GACJ,OAAO,GAAG,EAAE,IAAI,CA+C5B"}
package/src/durable.js CHANGED
@@ -50,7 +50,6 @@ const attachDurableStores = getBaggage => {
50
50
 
51
51
  /** @type {import('.').Stores} */
52
52
  return Far('durableStores', {
53
- // eslint-disable-next-line no-use-before-define
54
53
  detached: () => detachedDurableStores,
55
54
  isStorable,
56
55
  mapStore,
package/src/virtual.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export function makeVirtualZone(baseLabel?: string | undefined): import(".").Zone;
1
+ export function makeVirtualZone(baseLabel?: string): import(".").Zone;
2
2
  //# sourceMappingURL=virtual.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["virtual.js"],"names":[],"mappings":"AAiEO,iEAFM,OAAO,GAAG,EAAE,IAAI,CA+B5B"}
1
+ {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["virtual.js"],"names":[],"mappings":"AAiEO,4CAHI,MAAM,GACJ,OAAO,GAAG,EAAE,IAAI,CA+B5B"}
package/test/exos.test.js CHANGED
@@ -1,10 +1,9 @@
1
- // eslint-disable-next-line import/order
2
1
  import {
3
2
  annihilate,
4
3
  getBaggage,
5
4
  nextLife,
6
5
  test,
7
- } from './prepare-test-env-ava.js';
6
+ } from '@agoric/swingset-vat/tools/prepare-strict-test-env-ava.js';
8
7
 
9
8
  import * as vatData from '@agoric/vat-data';
10
9
 
@@ -3,7 +3,7 @@ import {
3
3
  getBaggage,
4
4
  nextLife,
5
5
  test,
6
- } from './prepare-test-env-ava.js';
6
+ } from '@agoric/swingset-vat/tools/prepare-strict-test-env-ava.js';
7
7
 
8
8
  import { makeDurableZone } from '../durable.js';
9
9
  import { makeHeapZone } from '../heap.js';
@@ -0,0 +1 @@
1
+ {"root":["./durable.js","./heap.js","./virtual.js","./src/durable.js","./src/index.js","./src/virtual.js"],"version":"5.7.2"}
@@ -1,21 +0,0 @@
1
- import '@agoric/swingset-liveslots/tools/prepare-test-env.js';
2
- import { reincarnate } from '@agoric/swingset-liveslots/tools/setup-vat-data.js';
3
-
4
- import test from 'ava';
5
-
6
- export { test };
7
-
8
- /** @type {ReturnType<typeof reincarnate>} */
9
- let incarnation;
10
-
11
- export const annihilate = () => {
12
- incarnation = reincarnate({ relaxDurabilityRules: false });
13
- };
14
-
15
- export const getBaggage = () => {
16
- return incarnation.fakeVomKit.cm.provideBaggage();
17
- };
18
-
19
- export const nextLife = () => {
20
- incarnation = reincarnate(incarnation);
21
- };