@agoric/solo 0.11.0-upgrade-18-dev-aaebae4.0 → 0.11.0-upgrade-18-dev-bd8fd54.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,6 +3,15 @@
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.11.0-u18.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.11.0-u18.5...@agoric/solo@0.11.0-u18.6) (2024-12-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **internal:** Introduce deepCopyJsonable ([f875bb0](https://github.com/Agoric/agoric-sdk/commit/f875bb0923323d019396c605ea9bb4d1382f7f79))
12
+
13
+
14
+
6
15
  ## [0.11.0-u18.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.11.0-u18.4...@agoric/solo@0.11.0-u18.5) (2024-12-17)
7
16
 
8
17
  **Note:** Version bump only for package @agoric/solo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/solo",
3
- "version": "0.11.0-upgrade-18-dev-aaebae4.0+aaebae4",
3
+ "version": "0.11.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "build": "exit 0",
13
13
  "test": "ava",
14
- "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
14
+ "test:c8": "c8 --all $C8_OPTIONS ava",
15
15
  "test:xs": "exit 0",
16
16
  "lint-fix": "yarn lint:eslint --fix",
17
17
  "lint": "run-s --continue-on-error lint:*",
@@ -22,26 +22,26 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22-upgrade-18-dev-aaebae4.0+aaebae4",
26
- "@agoric/cache": "0.3.3-upgrade-18-dev-aaebae4.0+aaebae4",
27
- "@agoric/cosmic-swingset": "0.42.0-upgrade-18-dev-aaebae4.0+aaebae4",
28
- "@agoric/internal": "0.4.0-upgrade-18-dev-aaebae4.0+aaebae4",
29
- "@agoric/notifier": "0.7.0-upgrade-18-dev-aaebae4.0+aaebae4",
30
- "@agoric/spawner": "0.6.9-upgrade-18-dev-aaebae4.0+aaebae4",
31
- "@agoric/store": "0.9.3-upgrade-18-dev-aaebae4.0+aaebae4",
32
- "@agoric/swing-store": "0.10.0-upgrade-18-dev-aaebae4.0+aaebae4",
33
- "@agoric/swingset-vat": "0.33.0-upgrade-18-dev-aaebae4.0+aaebae4",
34
- "@agoric/telemetry": "0.6.3-upgrade-18-dev-aaebae4.0+aaebae4",
35
- "@agoric/time": "0.3.3-upgrade-18-dev-aaebae4.0+aaebae4",
36
- "@agoric/vats": "0.16.0-upgrade-18-dev-aaebae4.0+aaebae4",
37
- "@agoric/wallet": "0.19.0-upgrade-18-dev-aaebae4.0+aaebae4",
38
- "@endo/captp": "^4.4.2",
39
- "@endo/errors": "^1.2.7",
40
- "@endo/eventual-send": "^1.2.7",
41
- "@endo/import-bundle": "^1.3.1",
42
- "@endo/init": "^1.1.6",
43
- "@endo/marshal": "^1.6.1",
44
- "@endo/promise-kit": "^1.1.7",
25
+ "@agoric/access-token": "0.4.22-upgrade-18-dev-bd8fd54.0+bd8fd54",
26
+ "@agoric/cache": "0.3.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
27
+ "@agoric/cosmic-swingset": "0.42.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
28
+ "@agoric/internal": "0.4.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
29
+ "@agoric/notifier": "0.7.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
30
+ "@agoric/spawner": "0.6.9-upgrade-18-dev-bd8fd54.0+bd8fd54",
31
+ "@agoric/store": "0.9.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
32
+ "@agoric/swing-store": "0.10.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
33
+ "@agoric/swingset-vat": "0.33.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
34
+ "@agoric/telemetry": "0.6.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
35
+ "@agoric/time": "0.3.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
36
+ "@agoric/vats": "0.16.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
37
+ "@agoric/wallet": "0.19.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
38
+ "@endo/captp": "^4.4.3",
39
+ "@endo/errors": "^1.2.8",
40
+ "@endo/eventual-send": "^1.2.8",
41
+ "@endo/import-bundle": "^1.3.2",
42
+ "@endo/init": "^1.1.7",
43
+ "@endo/marshal": "^1.6.2",
44
+ "@endo/promise-kit": "^1.1.8",
45
45
  "anylogger": "^0.21.0",
46
46
  "deterministic-json": "^1.0.5",
47
47
  "esm": "agoric-labs/esm#Agoric-built",
@@ -55,10 +55,10 @@
55
55
  "ws": "^7.2.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@agoric/ertp": "0.16.3-upgrade-18-dev-aaebae4.0+aaebae4",
59
- "@endo/bundle-source": "^3.4.2",
58
+ "@agoric/ertp": "0.16.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
59
+ "@endo/bundle-source": "^3.5.0",
60
60
  "ava": "^5.3.0",
61
- "c8": "^9.1.0"
61
+ "c8": "^10.1.2"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -77,7 +77,7 @@
77
77
  "workerThreads": false
78
78
  },
79
79
  "typeCoverage": {
80
- "atLeast": 73.54
80
+ "atLeast": 74.02
81
81
  },
82
- "gitHead": "aaebae4892112869b545faad80bfbe0b8d8602b8"
82
+ "gitHead": "bd8fd545c40400566a6ff3838b1499173fcf9aaf"
83
83
  }
@@ -696,14 +696,12 @@ ${chainID} chain does not yet know of address ${clientAddr}${adviseEgress(
696
696
  .then(txResult => {
697
697
  // The result had an error code (not 0 or undefined for success).
698
698
  if (txResult.code) {
699
- // eslint-disable-next-line no-use-before-define
700
699
  failedSend(
701
700
  makeError(`Error in tx processing: ${txResult.log}`),
702
701
  );
703
702
  }
704
703
  })
705
704
  .catch(err =>
706
- // eslint-disable-next-line no-use-before-define
707
705
  failedSend(makeError(`Error in tx processing: ${err}`)),
708
706
  );
709
707
 
package/src/start.js CHANGED
@@ -120,7 +120,6 @@ const buildSwingset = async (
120
120
  const withInputQueue = makeWithQueue();
121
121
  const queueThunkForKernel = withInputQueue(async thunk => {
122
122
  thunk();
123
- // eslint-disable-next-line no-use-before-define
124
123
  await processKernel();
125
124
  });
126
125
 
package/src/vat-http.js CHANGED
@@ -3,6 +3,7 @@ import { E } from '@endo/eventual-send';
3
3
  import { makePromiseKit } from '@endo/promise-kit';
4
4
  import { Far } from '@endo/marshal';
5
5
 
6
+ import { deepCopyJsonable } from '@agoric/internal/src/js-utils.js';
6
7
  import { makeNotifierKit } from '@agoric/notifier';
7
8
  import { makeCache } from '@agoric/cache';
8
9
  import { getReplHandler } from '@agoric/vats/src/repl.js';
@@ -27,7 +28,6 @@ export function buildRootObject(vatPowers) {
27
28
 
28
29
  const lookup = async (...path) => {
29
30
  // Take a snapshot of the current home.
30
- // eslint-disable-next-line no-use-before-define
31
31
  const root = replObjects.home;
32
32
 
33
33
  if (path.length === 1 && Array.isArray(path[0])) {
@@ -82,7 +82,7 @@ export function buildRootObject(vatPowers) {
82
82
  D(commandDevice).sendResponse(
83
83
  count,
84
84
  isException,
85
- obj || JSON.parse(JSON.stringify(obj)),
85
+ obj || deepCopyJsonable(obj),
86
86
  );
87
87
 
88
88
  // Map an URL only to its latest handler.
@@ -186,7 +186,7 @@ export function buildRootObject(vatPowers) {
186
186
  // Launder the data, since the command device tends to pass device nodes
187
187
  // when there are empty objects, which screw things up for us.
188
188
  // Analysis is in https://github.com/Agoric/agoric-sdk/pull/1956
189
- const obj = JSON.parse(JSON.stringify(rawObj));
189
+ const obj = deepCopyJsonable(rawObj);
190
190
  console.debug(
191
191
  `vat-http.inbound (from browser) ${count}`,
192
192
  JSON.stringify(obj, undefined, 2),
package/src/web.js CHANGED
@@ -370,7 +370,6 @@ export async function makeHTTPListener(
370
370
  return;
371
371
  }
372
372
 
373
- // eslint-disable-next-line no-use-before-define
374
373
  sendJSON({ ...res, meta });
375
374
  } catch (error) {
376
375
  inboundCommand(