@agoric/casting 0.4.3-upgrade-18a-dev-2899fb9.0 → 0.4.3-upgrade-19-dev-c605745.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,66 +3,6 @@
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.4.3-u18.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u18.4...@agoric/casting@0.4.3-u18.5) (2024-12-24)
7
-
8
-
9
- ### Features
10
-
11
- * makeTendermintRpcClient ([129516a](https://github.com/Agoric/agoric-sdk/commit/129516a8f3ae58f16d17460f58d2c69ee215a584))
12
-
13
-
14
-
15
- ### [0.4.3-u18.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u18.3...@agoric/casting@0.4.3-u18.4) (2024-12-17)
16
-
17
- **Note:** Version bump only for package @agoric/casting
18
-
19
-
20
-
21
-
22
-
23
- ### [0.4.3-u18.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u18.2...@agoric/casting@0.4.3-u18.3) (2024-12-09)
24
-
25
- **Note:** Version bump only for package @agoric/casting
26
-
27
-
28
-
29
-
30
-
31
- ### [0.4.3-u18.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u18.1...@agoric/casting@0.4.3-u18.2) (2024-11-21)
32
-
33
- **Note:** Version bump only for package @agoric/casting
34
-
35
-
36
-
37
-
38
-
39
- ### [0.4.3-u18.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u18.0...@agoric/casting@0.4.3-u18.1) (2024-11-19)
40
-
41
- **Note:** Version bump only for package @agoric/casting
42
-
43
-
44
-
45
-
46
-
47
- ### [0.4.3-u18.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.2...@agoric/casting@0.4.3-u18.0) (2024-10-31)
48
-
49
-
50
- ### Features
51
-
52
- * **casting:** makeHttpClient for explicit net access with cosmjs ([5bc5138](https://github.com/Agoric/agoric-sdk/commit/5bc513853d144f2967d9c2fc5b21fa2c4e284982))
53
- * **types:** ambient exports from agoric/internal ([71d18c4](https://github.com/Agoric/agoric-sdk/commit/71d18c4221f63f1c0e7c45562b5a0a86a0b4b5c0))
54
- * **types:** explicit exports from notifier ([0bc72a8](https://github.com/Agoric/agoric-sdk/commit/0bc72a88c7d91ff1b2f00ee5cabeb58c6315598e))
55
-
56
-
57
- ### Bug Fixes
58
-
59
- * **casting:** dont crash on bad capdata ([8f4ba3a](https://github.com/Agoric/agoric-sdk/commit/8f4ba3a2f56174161d88f57280513ee5a0f5d4d9))
60
- * **casting:** explicitly harden prototypes ([833c9b3](https://github.com/Agoric/agoric-sdk/commit/833c9b3f63bb83362789bc1261eabf71a8e88ea2))
61
- * **casting:** properly follow an unpopulated state entry ([97be818](https://github.com/Agoric/agoric-sdk/commit/97be818c4f5c507830f70392f334fa60dd6d7f94))
62
- * update for `[@jessie](https://github.com/jessie).js/safe-await-separator` ([94c6b3c](https://github.com/Agoric/agoric-sdk/commit/94c6b3c83a5326594f1e2886ae01d6a703a7a68f))
63
-
64
-
65
-
66
6
  ### [0.4.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.1...@agoric/casting@0.4.2) (2023-06-02)
67
7
 
68
8
  **Note:** Version bump only for package @agoric/casting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/casting",
3
- "version": "0.4.3-upgrade-18a-dev-2899fb9.0+2899fb9",
3
+ "version": "0.4.3-upgrade-19-dev-c605745.0+c605745",
4
4
  "description": "Agoric's OCap broadcasting system",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -16,32 +16,33 @@
16
16
  "lint-fix": "yarn lint:eslint --fix",
17
17
  "lint": "run-s --continue-on-error lint:*",
18
18
  "lint:types": "tsc",
19
- "lint:eslint": "eslint --ext .js,.ts ."
19
+ "lint:eslint": "eslint ."
20
20
  },
21
21
  "keywords": [],
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.4.0-upgrade-18a-dev-2899fb9.0+2899fb9",
26
- "@agoric/notifier": "0.7.0-upgrade-18a-dev-2899fb9.0+2899fb9",
27
- "@agoric/store": "0.9.3-upgrade-18a-dev-2899fb9.0+2899fb9",
25
+ "@agoric/internal": "0.3.3-upgrade-19-dev-c605745.0+c605745",
26
+ "@agoric/notifier": "0.6.3-upgrade-19-dev-c605745.0+c605745",
27
+ "@agoric/store": "0.9.3-upgrade-19-dev-c605745.0+c605745",
28
28
  "@cosmjs/encoding": "^0.32.3",
29
29
  "@cosmjs/proto-signing": "^0.32.3",
30
30
  "@cosmjs/stargate": "^0.32.3",
31
31
  "@cosmjs/tendermint-rpc": "^0.32.3",
32
- "@endo/errors": "^1.2.8",
33
- "@endo/far": "^1.1.9",
34
- "@endo/init": "^1.1.7",
35
- "@endo/lockdown": "^1.0.13",
36
- "@endo/marshal": "^1.6.2",
37
- "@endo/promise-kit": "^1.1.8"
32
+ "@endo/errors": "^1.2.9",
33
+ "@endo/far": "^1.1.10",
34
+ "@endo/init": "^1.1.8",
35
+ "@endo/lockdown": "^1.0.14",
36
+ "@endo/marshal": "^1.6.3",
37
+ "@endo/promise-kit": "^1.1.9"
38
38
  },
39
39
  "devDependencies": {
40
- "@agoric/cosmic-proto": "0.5.0-upgrade-18a-dev-2899fb9.0+2899fb9",
41
- "@endo/ses-ava": "^1.2.8",
40
+ "@agoric/cosmic-proto": "0.4.1-upgrade-19-dev-c605745.0+c605745",
41
+ "@endo/ses-ava": "^1.2.9",
42
42
  "ava": "^5.3.0",
43
43
  "c8": "^10.1.2",
44
44
  "express": "^5.0.1",
45
+ "tsd": "^0.31.2",
45
46
  "ws": "^7.2.0"
46
47
  },
47
48
  "publishConfig": {
@@ -58,7 +59,7 @@
58
59
  "workerThreads": false
59
60
  },
60
61
  "typeCoverage": {
61
- "atLeast": 88.99
62
+ "atLeast": 89.22
62
63
  },
63
- "gitHead": "2899fb9f83681eeb3dde7e29bbc9238b20e2f49a"
64
+ "gitHead": "c605745ee6619292b51cec5fc0db0a25ff1b203c"
64
65
  }
@@ -15,7 +15,11 @@ import {
15
15
  import { makeTendermintRpcClient } from '../src/makeHttpClient.js';
16
16
  import { captureIO, replayIO, web1, web2 } from './net-access-fixture.js';
17
17
 
18
- /** @type {import('ava').TestFn<Awaited<ReturnType<typeof makeTestContext>>>} */
18
+ /**
19
+ * @import {EReturn} from '@endo/far';
20
+ */
21
+
22
+ /** @type {import('ava').TestFn<EReturn<typeof makeTestContext>>} */
19
23
  const test = /** @type {any} */ (anyTest);
20
24
 
21
25
  const RECORDING = false;
@@ -0,0 +1,31 @@
1
+ import { E } from '@endo/far';
2
+ import { expectType } from 'tsd';
3
+ import type { ValueFollower } from '../src/follower-cosmjs.js';
4
+ import { makeFollower } from '../src/follower.js';
5
+ import { iterateLatest } from '../src/iterable.js';
6
+ import { makeLeader } from '../src/leader-netconfig.js';
7
+ import type { ValueFollowerElement } from '../src/types.js';
8
+
9
+ type ThePublishedDatum = { a: 1; b: 'two' };
10
+ type TheFollowerElement = ValueFollowerElement<ThePublishedDatum>;
11
+
12
+ const leader = makeLeader();
13
+
14
+ {
15
+ const f = makeFollower<ThePublishedDatum>('', leader, {});
16
+ expectType<ValueFollower<ThePublishedDatum>>(await f);
17
+
18
+ expectType<AsyncIterable<TheFollowerElement>>(await E(f).getLatestIterable());
19
+
20
+ expectType<AsyncIterable<TheFollowerElement>>(await E(f).getLatestIterable());
21
+
22
+ expectType<AsyncIterable<TheFollowerElement>>(
23
+ await E(f).getReverseIterable(),
24
+ );
25
+
26
+ const iter = iterateLatest(f);
27
+ for await (const { value } of iter) {
28
+ assert(value, 'value undefined');
29
+ expectType<ThePublishedDatum>(value);
30
+ }
31
+ }
@@ -1 +1 @@
1
- {"root":["./src/casting-spec.js","./src/change-follower.js","./src/defaults.js","./src/follower-cosmjs.js","./src/follower.js","./src/iterable.js","./src/leader-netconfig.js","./src/leader.js","./src/main.js","./src/makeHttpClient.js","./src/netconfig.js","./src/shuffle.js","./src/types.js"],"version":"5.7.2"}
1
+ {"root":["./src/casting-spec.js","./src/change-follower.js","./src/defaults.js","./src/follower-cosmjs.js","./src/follower.js","./src/iterable.js","./src/leader-netconfig.js","./src/leader.js","./src/main.js","./src/makeHttpClient.js","./src/netconfig.js","./src/shuffle.js","./src/types.js"],"version":"5.8.1-rc"}
package/tsconfig.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "include": [
6
6
  "*.js",
7
7
  "public/**/*.js",
8
- "src/**/*.js",
9
- "test/**/*.js",
8
+ "src",
9
+ "test",
10
10
  ],
11
11
  }