@agoric/async-flow 0.2.0-u21.0.1 → 0.2.0-u22.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,8 +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.2.0-u21.0 (2025-06-19)
7
-
6
+ ## 0.2.0-u22.0 (2025-09-08)
8
7
 
9
8
  ### ⚠ BREAKING CHANGES
10
9
 
@@ -23,7 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
23
22
  * **types:** HostOf, GuestOf ([35380af](https://github.com/Agoric/agoric-sdk/commit/35380af4bbda51be2a9cd047f9c4992791090e94))
24
23
  * **types:** infer orchestrate() return ([67665a8](https://github.com/Agoric/agoric-sdk/commit/67665a89cb162c350389e52fd812c895d42f37fb))
25
24
 
26
-
27
25
  ### Bug Fixes
28
26
 
29
27
  * **async-flow:** fix endowment equate bug ([b7b59fd](https://github.com/Agoric/agoric-sdk/commit/b7b59fd3704ba96174a764c90e664527635a56a7))
@@ -31,7 +29,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
31
29
  * **async-flow:** panic if a guest fulfills during replay ([77aadf6](https://github.com/Agoric/agoric-sdk/commit/77aadf64238bda2d27f8e39d535a3bff0d119e97))
32
30
  * **async-flow:** stopgap `E` only for `makeReplayMembraneForTest` ([b8693fa](https://github.com/Agoric/agoric-sdk/commit/b8693fa151f887b7867f9017456cfbbfa79752e2))
33
31
  * **async-flow:** unwrapped function is a remotable ([1edbcee](https://github.com/Agoric/agoric-sdk/commit/1edbcee21ab3a51f166dc30b4a56b8e7eef08dac))
34
-
35
-
32
+ * use isPrimitive rather than deprecated isObject ([76ef9a3](https://github.com/Agoric/agoric-sdk/commit/76ef9a357ea25ccd4228320e4323d2afbaa589f0))
36
33
 
37
34
  # Change Log
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/async-flow",
3
- "version": "0.2.0-u21.0.1",
3
+ "version": "0.2.0-u22.0",
4
4
  "description": "Upgrade async functions at await points by replay",
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": "yarn run -T tsc --build tsconfig.build.json",
11
- "postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
11
+ "postpack": "git clean -f '*.d.*ts*' '*.tsbuildinfo'",
12
12
  "test": "ava",
13
- "test:c8": "c8 --all $C8_OPTIONS ava",
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": "yarn run -T run-s --continue-on-error 'lint:*'",
@@ -24,24 +24,24 @@
24
24
  "author": "Agoric",
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@agoric/base-zone": "0.1.1-u21.0.1",
28
- "@agoric/internal": "0.4.0-u21.0.1",
29
- "@agoric/store": "0.9.3-u21.0.1",
30
- "@agoric/vow": "0.2.0-u21.0.1",
31
- "@endo/common": "^1.2.10",
32
- "@endo/errors": "^1.2.10",
33
- "@endo/eventual-send": "^1.3.1",
34
- "@endo/marshal": "^1.6.4",
35
- "@endo/pass-style": "^1.5.0",
36
- "@endo/patterns": "^1.5.0",
37
- "@endo/promise-kit": "^1.1.10"
27
+ "@agoric/base-zone": "0.2.0-u22.0",
28
+ "@agoric/internal": "0.4.0-u22.0",
29
+ "@agoric/store": "0.10.0-u22.0",
30
+ "@agoric/vow": "0.2.0-u22.0",
31
+ "@endo/common": "^1.2.13",
32
+ "@endo/errors": "^1.2.13",
33
+ "@endo/eventual-send": "^1.3.4",
34
+ "@endo/marshal": "^1.8.0",
35
+ "@endo/pass-style": "^1.6.3",
36
+ "@endo/patterns": "^1.7.0",
37
+ "@endo/promise-kit": "^1.1.13"
38
38
  },
39
39
  "devDependencies": {
40
- "@agoric/swingset-vat": "0.33.0-u21.0.1",
41
- "@agoric/zone": "0.3.0-u21.0.1",
42
- "@endo/env-options": "^1.1.8",
40
+ "@agoric/swingset-vat": "0.33.0-u22.0",
41
+ "@agoric/zone": "0.3.0-u22.0",
42
+ "@endo/env-options": "^1.1.11",
43
43
  "ava": "^5.3.0",
44
- "tsd": "^0.31.1"
44
+ "tsd": "^0.33.0"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
@@ -60,7 +60,7 @@
60
60
  "workerThreads": false
61
61
  },
62
62
  "typeCoverage": {
63
- "atLeast": 77.11
63
+ "atLeast": 77.17
64
64
  },
65
- "gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
65
+ "gitHead": "dbf78c32d14bf4a38bfd7a10d061011a0ff368e6"
66
66
  }
package/src/convert.js CHANGED
@@ -4,7 +4,7 @@ import { objectMap } from '@endo/common/object-map.js';
4
4
  import {
5
5
  getErrorConstructor,
6
6
  getTag,
7
- isObject,
7
+ isPrimitive,
8
8
  makeTagged,
9
9
  passStyleOf,
10
10
  } from '@endo/pass-style';
@@ -32,7 +32,7 @@ const makeConvert = (convertRemotable, convertPromiseOrVow, convertError) => {
32
32
  };
33
33
 
34
34
  const innerConvert = specimen => {
35
- if (!isObject(specimen)) {
35
+ if (isPrimitive(specimen)) {
36
36
  return specimen;
37
37
  }
38
38
  const passStyle = passStyleOf(specimen);
package/src/equate.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Fail, X, annotateError, q } from '@endo/errors';
2
2
  import { throwLabeled } from '@endo/common/throw-labeled.js';
3
- import { getTag, isObject, passStyleOf } from '@endo/pass-style';
3
+ import { getTag, isPrimitive, passStyleOf } from '@endo/pass-style';
4
4
  import { recordNames } from '@endo/marshal';
5
5
  import { isVow } from '@agoric/vow/src/vow-utils.js';
6
6
 
@@ -23,7 +23,7 @@ export const makeEquate = bijection => {
23
23
  };
24
24
 
25
25
  const innerEquate = (g, h) => {
26
- if (!isObject(g)) {
26
+ if (isPrimitive(g)) {
27
27
  is(g, h) ||
28
28
  // separate line so I can set a breakpoint
29
29
  Fail`unequal ${g} vs ${h}`;
@@ -1 +1 @@
1
- {"root":["./index.js","./src/async-flow.js","./src/bijection.js","./src/convert.js","./src/endowments.js","./src/ephemera.js","./src/equate.js","./src/log-store.js","./src/replay-membrane.js","./src/type-guards.js","./src/types-index.d.ts","./src/types.ts"],"version":"5.8.3"}
1
+ {"root":["./index.js","./src/async-flow.js","./src/bijection.js","./src/convert.js","./src/endowments.js","./src/ephemera.js","./src/equate.js","./src/log-store.js","./src/replay-membrane.js","./src/type-guards.js","./src/types-index.d.ts","./src/types.ts"],"version":"5.9.2"}