-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript 5.7 and fix coverage CI #10561
Changes from all commits
42bb239
e63b369
292d2f3
9c28c53
27ce0b0
140ff5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,15 @@ const FIRST_LOWER_NEAR_KEYWORD = /^[a-z][a-zA-Z0-9_$]*$/; | |
* @import {Bank, BankManager} from '@agoric/vats/src/vat-bank.js' | ||
*/ | ||
|
||
// XXX when inferred, error TS2742: cannot be named without a reference to '../../../node_modules/@endo/exo/src/get-interface.js'. This is likely not portable. A type annotation is necessary. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand this error but explicit return values is totally acceptable anyway |
||
/** | ||
* @typedef {{ | ||
* machine: any; | ||
* helper: any; | ||
* public: any; | ||
* }} ProvisionPoolKit | ||
*/ | ||
|
||
/** | ||
* @typedef {import('@agoric/zoe/src/zoeService/utils.js').Instance< | ||
* import('@agoric/inter-protocol/src/psm/psm.js').start | ||
|
@@ -506,6 +515,7 @@ export const prepareProvisionPoolKit = ( | |
* @param {object} opts | ||
* @param {Brand<'nat'>} opts.poolBrand | ||
* @param {ERef<StorageNode>} opts.storageNode | ||
* @returns {Promise<ProvisionPoolKit>} | ||
*/ | ||
const makeProvisionPoolKit = async ({ poolBrand, storageNode }) => { | ||
const fundPurse = await E(poolBank).getPurse(poolBrand); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,10 @@ | |
|
||
import { CONTRACT_ELECTORATE, ParamTypes } from '@agoric/governance'; | ||
|
||
const makeReserveTerms = (poserInvitationAmount, timer) => ({ | ||
timer, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a change to the runtime behavior. A new chain will now no longer have the timer in the reserve terms where before that it would have. What is the motivation? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Motivation is the caller never provided the argument and it's now detected. The runtime impact is that property will be omitted from the return instead of being undefined. I don't see anything checking for the key presence specifically. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given lack of value at the caller site, that change sounds reasonable |
||
/** | ||
* @param {InvitationAmount} poserInvitationAmount | ||
*/ | ||
const makeReserveTerms = poserInvitationAmount => ({ | ||
governedParams: harden({ | ||
[CONTRACT_ELECTORATE]: { | ||
type: ParamTypes.INVITATION, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,7 @@ async function runTestScript( | |
/** | ||
* Handle callback "command" from xsnap subprocess. | ||
* | ||
* @type { (msg: ArrayBuffer) => Promise<ArrayBuffer> } | ||
* @type { (msg: ArrayBuffer) => Promise<Uint8Array<ArrayBufferLike>> } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a significant change of type. New one looks right but I'm surprised we didn't have an error before. |
||
*/ | ||
async function handleCommand(message) { | ||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
declare var issueCommand: (msg: ArrayBuffer) => ArrayBuffer; | ||
declare var issueCommand: (msg: ArrayBufferLike) => ArrayBuffer; | ||
|
||
namespace global { | ||
declare var issueCommand: (msg: ArrayBuffer) => ArrayBuffer; | ||
declare var issueCommand: (msg: ArrayBufferLike) => ArrayBuffer; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3774,7 +3774,14 @@ | |
dependencies: | ||
"@types/node" "*" | ||
|
||
"@types/node@*", "@types/[email protected]", "@types/node@>=13.7.0", "@types/node@^22.0.0": | ||
"@types/node@*", "@types/node@>=13.7.0", "@types/node@^22.9.0": | ||
version "22.9.0" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.9.0.tgz#b7f16e5c3384788542c72dc3d561a7ceae2c0365" | ||
integrity sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ== | ||
dependencies: | ||
undici-types "~6.19.8" | ||
|
||
"@types/[email protected]": | ||
version "22.7.5" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.5.tgz#cfde981727a7ab3611a481510b473ae54442b92b" | ||
integrity sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ== | ||
|
@@ -12172,7 +12179,7 @@ typescript-eslint@^7.18.0, typescript-eslint@^7.3.1: | |
"@typescript-eslint/parser" "7.18.0" | ||
"@typescript-eslint/utils" "7.18.0" | ||
|
||
"[email protected] - 5.6.x", typescript@^5.4.5, typescript@^5.6.2, typescript@~5.6.2, typescript@~5.6.3: | ||
"[email protected] - 5.6.x", typescript@~5.6.3: | ||
version "5.6.3" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" | ||
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== | ||
|
@@ -12182,6 +12189,11 @@ typescript-eslint@^7.18.0, typescript-eslint@^7.3.1: | |
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" | ||
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== | ||
|
||
typescript@^5.4.5, typescript@~5.7.1: | ||
version "5.7.2" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" | ||
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== | ||
|
||
uc.micro@^2.0.0, uc.micro@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee" | ||
|
@@ -12202,7 +12214,7 @@ unbox-primitive@^1.0.2: | |
has-symbols "^1.0.3" | ||
which-boxed-primitive "^1.0.2" | ||
|
||
undici-types@~6.19.2: | ||
undici-types@~6.19.2, undici-types@~6.19.8: | ||
version "6.19.8" | ||
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" | ||
integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I should have noticed this one. 😛