Skip to content

Commit

Permalink
Merge pull request #9076 from Agoric/6512-ambient-types
Browse files Browse the repository at this point in the history
end runtime imports of other packages for types
  • Loading branch information
mergify[bot] authored Mar 12, 2024
2 parents 21c29e2 + fff56f6 commit 6793c14
Show file tree
Hide file tree
Showing 28 changed files with 24 additions and 35 deletions.
2 changes: 1 addition & 1 deletion packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 90.56
"atLeast": 90.61
}
}
2 changes: 1 addition & 1 deletion packages/SwingSet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 75.05
"atLeast": 75.03
}
}
2 changes: 1 addition & 1 deletion packages/agoric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 76.93
"atLeast": 77.17
}
}
2 changes: 1 addition & 1 deletion packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 87.83
"atLeast": 87.57
}
}
2 changes: 0 additions & 2 deletions packages/builders/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
// Ambient types
import '@agoric/network/exported.js';
3 changes: 1 addition & 2 deletions packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"dependencies": {
"@agoric/ertp": "^0.16.2",
"@agoric/internal": "^0.3.2",
"@agoric/network": "^0.1.0",
"@agoric/notifier": "^0.6.2",
"@agoric/smart-wallet": "^0.5.3",
"@agoric/vat-data": "^0.5.2",
Expand Down Expand Up @@ -79,6 +78,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 73.62
"atLeast": 73.8
}
}
2 changes: 1 addition & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"timeout": "20m"
},
"typeCoverage": {
"atLeast": 86.81
"atLeast": 90.97
}
}
2 changes: 1 addition & 1 deletion packages/casting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 89.58
"atLeast": 89.6
}
}
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"timeout": "20m"
},
"typeCoverage": {
"atLeast": 79.84
"atLeast": 80.49
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import {
} from '@agoric/vats/src/core/utils.js';
import { makeCoreProposalBehavior } from '../../src/coreProposalBehavior.js';

// TODO remove this stubborn case
// https://github.com/Agoric/agoric-sdk/issues/6512
import '@agoric/vats/src/core/types-ambient.js';

// TODO: we need to rewrite writeCoreProposal.js to produce BundleIDs,
// although this test doesn't exercise that.

Expand Down
2 changes: 1 addition & 1 deletion packages/import-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 82.1
"atLeast": 94.73
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '@agoric/vats/src/core/types-ambient.js';

import { test as anyTest } from '@agoric/zoe/tools/prepare-test-env-ava.js';

import { NonNullish } from '@agoric/assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 76.57
"atLeast": 91.68
}
}
2 changes: 1 addition & 1 deletion packages/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@
"timeout": "2m"
},
"typeCoverage": {
"atLeast": 89.74
"atLeast": 89.76
}
}
2 changes: 1 addition & 1 deletion packages/pegasus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 89.97
"atLeast": 90.79
}
}
2 changes: 1 addition & 1 deletion packages/smart-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 93.75
"atLeast": 93.76
}
}
3 changes: 0 additions & 3 deletions packages/smart-wallet/src/invitations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { InvitationHandleShape } from '@agoric/zoe/src/typeGuards.js';
import { E } from '@endo/far';
import { shape } from './typeGuards.js';

// Ambient types. Needed only for dev but this does a runtime import.
import '@agoric/zoe/exported.js';

const { Fail } = assert;

// A safety limit
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 68.76
"atLeast": 73.13
}
}
2 changes: 1 addition & 1 deletion packages/spawner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"timeout": "2m"
},
"typeCoverage": {
"atLeast": 50
"atLeast": 55.05
}
}
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
"timeout": "2m"
},
"typeCoverage": {
"atLeast": 85.75
"atLeast": 86.12
}
}
2 changes: 1 addition & 1 deletion packages/swingset-liveslots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 75.2
"atLeast": 75.22
}
}
2 changes: 1 addition & 1 deletion packages/swingset-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
"timeout": "2m"
},
"typeCoverage": {
"atLeast": 53.18
"atLeast": 54.98
}
}
2 changes: 1 addition & 1 deletion packages/vat-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"node": ">=14.15.0"
},
"typeCoverage": {
"atLeast": 98.78
"atLeast": 98.79
}
}
1 change: 0 additions & 1 deletion packages/vats/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Ambient types
import '@agoric/zoe/exported.js';
import './src/core/types-ambient.js';

// eslint-disable-next-line import/export -- no named exports
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
"workerThreads": false
},
"typeCoverage": {
"atLeast": 91.05
"atLeast": 89.52
}
}
2 changes: 2 additions & 0 deletions packages/vats/src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { keyEQ } from '@agoric/store';
import { makeNameHubKit } from '../nameHub.js';
import { makeLogHooks, makePromiseSpace } from './promise-space.js';

import './types-ambient.js';

const { entries, fromEntries, keys } = Object;
const { Fail, quote: q } = assert;

Expand Down
2 changes: 1 addition & 1 deletion packages/vow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 87.51
"atLeast": 88.27
}
}
2 changes: 1 addition & 1 deletion packages/zoe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@
"access": "public"
},
"typeCoverage": {
"atLeast": 84.72
"atLeast": 84.73
}
}

0 comments on commit 6793c14

Please sign in to comment.