@agoric/swingset-xsnap-supervisor 0.10.3-u14.0 → 0.10.3-u16.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.
@@ -1 +1 @@
1
- e0d2dafc7e981947b42118e8c950837109683bae56f7b4f5bffa1b67e5c1e768
1
+ 7cd7b3cdaafeba43a6fc38036b482d8f09d248d84c8102bf14165d4f53068ce6
package/lib/capdata.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { Fail } from '@agoric/assert';
2
2
 
3
- /* eslint-disable jsdoc/require-returns-check */
4
3
  /**
5
4
  * Assert function to ensure that something expected to be a capdata object
6
5
  * actually is. A capdata object should have a .body property that's a string
@@ -4,10 +4,10 @@ import {
4
4
  } from '@agoric/swingset-liveslots';
5
5
 
6
6
  /**
7
- * @typedef {import('@agoric/swingset-liveslots').VatDeliveryObject} VatDeliveryObject
8
- * @typedef {import('@agoric/swingset-liveslots').VatDeliveryResult} VatDeliveryResult
9
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallObject} VatSyscallObject
10
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallHandler} VatSyscallHandler
7
+ * @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
8
+ * @import {VatDeliveryResult} from '@agoric/swingset-liveslots'
9
+ * @import {VatSyscallObject} from '@agoric/swingset-liveslots'
10
+ * @import {VatSyscallHandler} from '@agoric/swingset-liveslots'
11
11
  * @typedef {import('@endo/marshal').CapData<string>} SwingSetCapData
12
12
  * @typedef { (delivery: VatDeliveryObject) => (VatDeliveryResult | Promise<VatDeliveryResult>) } VatDispatcherSyncAsync
13
13
  * @typedef { (delivery: VatDeliveryObject) => Promise<VatDeliveryResult> } VatDispatcher
@@ -18,13 +18,13 @@ import {
18
18
  } from './supervisor-helper.js';
19
19
 
20
20
  /**
21
- * @typedef {import('@agoric/swingset-liveslots').VatDeliveryObject} VatDeliveryObject
22
- * @typedef {import('@agoric/swingset-liveslots').VatDeliveryResult} VatDeliveryResult
23
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallObject} VatSyscallObject
24
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallResult} VatSyscallResult
25
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallHandler} VatSyscallHandler
26
- * @typedef {import('@agoric/swingset-liveslots').LiveSlotsOptions} LiveSlotsOptions
27
- * @typedef {import('@agoric/swingset-liveslots').MeterControl} MeterControl
21
+ * @import {VatDeliveryObject} from '@agoric/swingset-liveslots'
22
+ * @import {VatDeliveryResult} from '@agoric/swingset-liveslots'
23
+ * @import {VatSyscallObject} from '@agoric/swingset-liveslots'
24
+ * @import {VatSyscallResult} from '@agoric/swingset-liveslots'
25
+ * @import {VatSyscallHandler} from '@agoric/swingset-liveslots'
26
+ * @import {LiveSlotsOptions} from '@agoric/swingset-liveslots'
27
+ * @import {MeterControl} from '@agoric/swingset-liveslots'
28
28
  */
29
29
 
30
30
  const encoder = new TextEncoder();
@@ -32,7 +32,6 @@ const decoder = new TextDecoder();
32
32
 
33
33
  // eslint-disable-next-line no-unused-vars
34
34
  function workerLog(first, ...args) {
35
- // eslint-disable-next-line
36
35
  // console.log(`---worker: ${first}`, ...args);
37
36
  }
38
37
 
@@ -256,7 +255,8 @@ function makeWorker(port) {
256
255
 
257
256
  const workerEndowments = {
258
257
  console: makeVatConsole(makeLogMaker('vat')),
259
- assert,
258
+ // See https://github.com/Agoric/agoric-sdk/issues/9515
259
+ assert: globalThis.assert,
260
260
  // bootstrap provides HandledPromise
261
261
  HandledPromise: globalThis.HandledPromise,
262
262
  TextEncoder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-xsnap-supervisor",
3
- "version": "0.10.3-u14.0",
3
+ "version": "0.10.3-u16.1",
4
4
  "description": "Supervisor/Liveslots bundle for swingset xsnap workers",
5
5
  "author": "Agoric",
6
6
  "license": "Apache-2.0",
@@ -16,21 +16,21 @@
16
16
  "clean": "rm -rf dist",
17
17
  "lint": "run-s --continue-on-error lint:*",
18
18
  "lint:js": "eslint 'lib/**/*.js' 'src/**/*.js' 'scripts/**/*.js' 'test/**/*.js'",
19
- "lint:types": "tsc -p jsconfig.json",
19
+ "lint:types": "tsc",
20
20
  "lint-fix": "eslint --fix 'lib/**/*.js' 'src/**/*.js' 'scripts/**/*.js' 'test/**/*.js'",
21
21
  "test": "ava",
22
22
  "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
23
23
  "test:xs": "exit 0"
24
24
  },
25
25
  "devDependencies": {
26
- "@agoric/assert": "^0.6.1-u11wf.0",
27
- "@agoric/swingset-liveslots": "^0.10.3-u14.0",
28
- "@endo/bundle-source": "2.5.2-upstream-rollup",
29
- "@endo/import-bundle": "0.3.4",
30
- "@endo/init": "0.5.56",
31
- "@endo/marshal": "0.8.5",
32
- "ava": "^5.2.0",
33
- "c8": "^7.13.0"
26
+ "@agoric/assert": "^0.6.1-u16.0",
27
+ "@agoric/swingset-liveslots": "^0.10.3-u16.1",
28
+ "@endo/bundle-source": "^3.2.3",
29
+ "@endo/import-bundle": "^1.1.2",
30
+ "@endo/init": "^1.1.2",
31
+ "@endo/marshal": "^1.5.0",
32
+ "ava": "^5.3.0",
33
+ "c8": "^9.1.0"
34
34
  },
35
35
  "files": [
36
36
  "LICENSE*",
@@ -43,10 +43,16 @@
43
43
  },
44
44
  "ava": {
45
45
  "files": [
46
- "test/**/test-*.js"
46
+ "test/**/*.test.*"
47
+ ],
48
+ "require": [
49
+ "@endo/init/debug.js"
47
50
  ],
48
51
  "timeout": "2m",
49
52
  "workerThreads": false
50
53
  },
51
- "gitHead": "b3a6f3374cb3bddab39fc6d6f426429cae6c29c6"
54
+ "typeCoverage": {
55
+ "atLeast": 83.64
56
+ },
57
+ "gitHead": "2eaeab90b4015e355faea534c1c933351d25b1b9"
52
58
  }
package/CHANGELOG.md DELETED
@@ -1,73 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ### [0.10.3-u14.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.3-u13.0...@agoric/swingset-xsnap-supervisor@0.10.3-u14.0) (2024-02-27)
7
-
8
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
9
-
10
-
11
-
12
-
13
-
14
- ### [0.10.3-u13.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.3-u12.0...@agoric/swingset-xsnap-supervisor@0.10.3-u13.0) (2023-12-07)
15
-
16
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
17
-
18
-
19
-
20
-
21
-
22
- ### [0.10.3-u12.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.3-u11wf.0...@agoric/swingset-xsnap-supervisor@0.10.3-u12.0) (2023-11-10)
23
-
24
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
25
-
26
-
27
-
28
-
29
-
30
- ### [0.10.3-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.3-u11.0...@agoric/swingset-xsnap-supervisor@0.10.3-u11wf.0) (2023-09-23)
31
-
32
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
33
-
34
-
35
-
36
-
37
-
38
- ### [0.10.3-u11.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.2...@agoric/swingset-xsnap-supervisor@0.10.3-u11.0) (2023-08-24)
39
-
40
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
41
-
42
-
43
-
44
-
45
-
46
- ### [0.10.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.1...@agoric/swingset-xsnap-supervisor@0.10.2) (2023-06-02)
47
-
48
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
49
-
50
-
51
-
52
-
53
-
54
- ### [0.10.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/swingset-xsnap-supervisor@0.10.0...@agoric/swingset-xsnap-supervisor@0.10.1) (2023-05-24)
55
-
56
- **Note:** Version bump only for package @agoric/swingset-xsnap-supervisor
57
-
58
-
59
-
60
-
61
-
62
- ## 0.10.0 (2023-05-19)
63
-
64
-
65
- ### Features
66
-
67
- * add APIs for tracking/debugging undesired object retention (aka "leaks") ([0a7221b](https://github.com/Agoric/agoric-sdk/commit/0a7221b3c04f3b2894c30346fa2ea6fb0130c046)), closes [#7318](https://github.com/Agoric/agoric-sdk/issues/7318)
68
- * extract swingset-xsnap-supervisor out to a separate package ([0024f01](https://github.com/Agoric/agoric-sdk/commit/0024f0128ff658c93468069b6fa5cc3bebfbdc78)), closes [#6596](https://github.com/Agoric/agoric-sdk/issues/6596)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * don't retain a vat's raw bundle string after use ([1dda5ef](https://github.com/Agoric/agoric-sdk/commit/1dda5ef23e8fa624942a580487b3c94595eae5c3)), closes [#6981](https://github.com/Agoric/agoric-sdk/issues/6981)