@agoric/network 0.2.0-u21.0 → 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
 
@@ -18,7 +17,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
18
17
  * **network:** export `SendOptionsShape` ([abafe8e](https://github.com/Agoric/agoric-sdk/commit/abafe8ecb449d8fb2c84bd4c5ad18933a64a471e))
19
18
  * **types:** explicit exports from network ([65c2075](https://github.com/Agoric/agoric-sdk/commit/65c2075021dfb0ecf62a6009f7c411c7c49eb624))
20
19
 
21
-
22
20
  ### Bug Fixes
23
21
 
24
22
  * **lint:** addressing lint errors ([bfe10d9](https://github.com/Agoric/agoric-sdk/commit/bfe10d9cc3878c322ca624a3a603e80f94dc6970))
@@ -29,4 +27,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
29
27
  * **network:** introduce `Finalizer` to close network ([54b9b00](https://github.com/Agoric/agoric-sdk/commit/54b9b009fff3fd3ab54f731adee97195acaa238f))
30
28
  * **network:** use new `ERef` and `FarRef` ([3027adf](https://github.com/Agoric/agoric-sdk/commit/3027adf8613154dec167c5fccf5f207f6d2af701))
31
29
  * **network:** use vow types, correct revealed problems ([d1c1240](https://github.com/Agoric/agoric-sdk/commit/d1c1240bcf534a316533d4c203f45f01fdfc825d))
30
+ * use isPrimitive rather than deprecated isObject ([76ef9a3](https://github.com/Agoric/agoric-sdk/commit/76ef9a357ea25ccd4228320e4323d2afbaa589f0))
32
31
  * **vats:** `vtransfer` code cleanup ([8ac8197](https://github.com/Agoric/agoric-sdk/commit/8ac819709ef9ced0badee25e6715a5847b1e3f4c))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/network",
3
- "version": "0.2.0-u21.0",
3
+ "version": "0.2.0-u22.0",
4
4
  "description": "Agoric's network protocol API",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -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:*'",
@@ -21,22 +21,22 @@
21
21
  "author": "Agoric",
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@agoric/internal": "workspace:*",
25
- "@agoric/store": "workspace:*",
26
- "@agoric/vat-data": "workspace:*",
27
- "@endo/base64": "^1.0.9",
28
- "@endo/errors": "^1.2.10",
29
- "@endo/far": "^1.1.11",
30
- "@endo/pass-style": "^1.5.0",
31
- "@endo/patterns": "^1.5.0",
32
- "@endo/promise-kit": "^1.1.10"
24
+ "@agoric/internal": "0.4.0-u22.0",
25
+ "@agoric/store": "0.10.0-u22.0",
26
+ "@agoric/vat-data": "0.6.0-u22.0",
27
+ "@endo/base64": "^1.0.12",
28
+ "@endo/errors": "^1.2.13",
29
+ "@endo/far": "^1.1.14",
30
+ "@endo/pass-style": "^1.6.3",
31
+ "@endo/patterns": "^1.7.0",
32
+ "@endo/promise-kit": "^1.1.13"
33
33
  },
34
34
  "devDependencies": {
35
- "@agoric/swingset-liveslots": "workspace:*",
36
- "@agoric/swingset-vat": "workspace:*",
37
- "@agoric/vow": "workspace:*",
38
- "@agoric/zone": "workspace:*",
39
- "@endo/bundle-source": "^4.0.0",
35
+ "@agoric/swingset-liveslots": "0.11.0-u22.0",
36
+ "@agoric/swingset-vat": "0.33.0-u22.0",
37
+ "@agoric/vow": "0.2.0-u22.0",
38
+ "@agoric/zone": "0.3.0-u22.0",
39
+ "@endo/bundle-source": "^4.1.2",
40
40
  "ava": "^5.3.0",
41
41
  "c8": "^10.1.3"
42
42
  },
@@ -68,5 +68,5 @@
68
68
  "typeCoverage": {
69
69
  "atLeast": 91.16
70
70
  },
71
- "gitHead": "e4dd46857133403d584bcf822a81817b355532f9"
71
+ "gitHead": "dbf78c32d14bf4a38bfd7a10d061011a0ff368e6"
72
72
  }
package/src/bytes.d.ts CHANGED
@@ -42,5 +42,4 @@ export function byteSourceToBase64(byteSource: ByteSource): string;
42
42
  export function base64ToBytes(string: string): Bytes;
43
43
  export type ByteSource = Bytes | Buffer | Uint8Array | Iterable<number>;
44
44
  import type { Bytes } from './types.js';
45
- import type { Bytes as Bytes_1 } from './types.js';
46
45
  //# sourceMappingURL=bytes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["bytes.js"],"names":[],"mappings":"AAKA;;GAEG;AAEH,2EAA2E;AAE3E;;;;;;;GAOG;AACH,6CAHW,OAAO,GACL,UAAU,CAgBtB;AAuBD;;;;;;GAMG;AACH,oCAHW,UAAU,GACR,KAAK,CAOjB;AAED;;;;;GAKG;AACH,qCAHW,KAAK,GACH,MAAM,CAIlB;AAED;;;;;GAKG;AACH,+CAHW,UAAU,GACR,MAAM,CAKlB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,GACJ,KAAK,CAIjB;yBA1Fa,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;2BAHpC,YAAY;sCAAZ,YAAY"}
1
+ {"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["bytes.js"],"names":[],"mappings":"AAKA;;GAEG;AAEH,2EAA2E;AAE3E;;;;;;;GAOG;AACH,6CAHW,OAAO,GACL,UAAU,CAgBtB;AAuBD;;;;;;GAMG;AACH,oCAHW,UAAU,GACR,KAAK,CAOjB;AAED;;;;;GAKG;AACH,qCAHW,KAAK,GACH,MAAM,CAIlB;AAED;;;;;GAKG;AACH,+CAHW,UAAU,GACR,MAAM,CAKlB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,GACJ,KAAK,CAIjB;yBA1Fa,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;2BAHpC,YAAY"}
package/src/bytes.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
  import { X, Fail } from '@endo/errors';
3
3
  import { encodeBase64, decodeBase64 } from '@endo/base64';
4
- import { isObject } from '@endo/pass-style';
4
+ import { isPrimitive } from '@endo/pass-style';
5
5
 
6
6
  /**
7
7
  * @import {Bytes} from './types.js';
@@ -22,7 +22,7 @@ export function coerceToByteSource(specimen) {
22
22
  return specimen;
23
23
  }
24
24
 
25
- isObject(specimen) ||
25
+ !isPrimitive(specimen) ||
26
26
  assert.fail(X`non-object ${specimen} is not a ByteSource`, TypeError);
27
27
 
28
28
  const obj = /** @type {{}} */ (specimen);