@agoric/casting 0.4.3-upgrade-18a-dev-4ee0508.0 → 0.4.3-upgrade-19-dev-aa5fa27.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,7 +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.4.3-u18a.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u18.5...@agoric/casting@0.4.3-u18a.0) (2025-02-07)
6
+ ### [0.4.3-u19.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u19.0...@agoric/casting@0.4.3-u19.1) (2025-03-03)
7
7
 
8
8
  **Note:** Version bump only for package @agoric/casting
9
9
 
@@ -11,53 +11,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ### [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)
15
-
16
-
17
- ### Features
18
-
19
- * makeTendermintRpcClient ([129516a](https://github.com/Agoric/agoric-sdk/commit/129516a8f3ae58f16d17460f58d2c69ee215a584))
20
-
21
-
22
-
23
- ### [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)
24
-
25
- **Note:** Version bump only for package @agoric/casting
26
-
27
-
28
-
29
-
30
-
31
- ### [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)
32
-
33
- **Note:** Version bump only for package @agoric/casting
34
-
35
-
36
-
37
-
38
-
39
- ### [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)
40
-
41
- **Note:** Version bump only for package @agoric/casting
42
-
43
-
44
-
45
-
46
-
47
- ### [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)
48
-
49
- **Note:** Version bump only for package @agoric/casting
50
-
51
-
52
-
53
-
54
-
55
- ### [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)
14
+ ### [0.4.3-u19.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.2...@agoric/casting@0.4.3-u19.0) (2025-02-24)
56
15
 
57
16
 
58
17
  ### Features
59
18
 
60
19
  * **casting:** makeHttpClient for explicit net access with cosmjs ([5bc5138](https://github.com/Agoric/agoric-sdk/commit/5bc513853d144f2967d9c2fc5b21fa2c4e284982))
20
+ * makeTendermintRpcClient ([129516a](https://github.com/Agoric/agoric-sdk/commit/129516a8f3ae58f16d17460f58d2c69ee215a584))
61
21
  * **types:** ambient exports from agoric/internal ([71d18c4](https://github.com/Agoric/agoric-sdk/commit/71d18c4221f63f1c0e7c45562b5a0a86a0b4b5c0))
62
22
  * **types:** explicit exports from notifier ([0bc72a8](https://github.com/Agoric/agoric-sdk/commit/0bc72a88c7d91ff1b2f00ee5cabeb58c6315598e))
63
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/casting",
3
- "version": "0.4.3-upgrade-18a-dev-4ee0508.0+4ee0508",
3
+ "version": "0.4.3-upgrade-19-dev-aa5fa27.0+aa5fa27",
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-4ee0508.0+4ee0508",
26
- "@agoric/notifier": "0.7.0-upgrade-18a-dev-4ee0508.0+4ee0508",
27
- "@agoric/store": "0.9.3-upgrade-18a-dev-4ee0508.0+4ee0508",
25
+ "@agoric/internal": "0.4.0-upgrade-19-dev-aa5fa27.0+aa5fa27",
26
+ "@agoric/notifier": "0.7.0-upgrade-19-dev-aa5fa27.0+aa5fa27",
27
+ "@agoric/store": "0.9.3-upgrade-19-dev-aa5fa27.0+aa5fa27",
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-4ee0508.0+4ee0508",
41
- "@endo/ses-ava": "^1.2.8",
40
+ "@agoric/cosmic-proto": "0.5.0-upgrade-19-dev-aa5fa27.0+aa5fa27",
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": "4ee05088e5ada989a866a11ff65838d395505ce6"
64
+ "gitHead": "aa5fa276b7fb72283263b4ab05d7dec3807fa50c"
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
  }