Skip to content

Commit

Permalink
adopt TypeScript 5.5 release (#2326)
Browse files Browse the repository at this point in the history
_evergreen_

## Description

https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-rc/
(there's no final release post yet but that has all the big changes)

### Security Considerations

none

### Scaling Considerations

none

### Documentation Considerations

none

### Testing Considerations

CI

### Compatibility Considerations

none

### Upgrade Considerations

none
  • Loading branch information
turadg committed Jun 21, 2024
2 parents f2d38d7 + e275399 commit ad1706a
Show file tree
Hide file tree
Showing 42 changed files with 90 additions and 88 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"engines": {
"node": ">=16"
},
"packageManager": "yarn@4.2.2",
"packageManager": "yarn@4.3.0",
"devDependencies": {
"@jessie.js/eslint-plugin": "^0.4.1",
"@octokit/core": "^3.4.0",
Expand All @@ -25,7 +25,7 @@
"type-coverage": "^2.26.3",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "5.5.0-beta",
"typescript": "5.5.2",
"typescript-eslint": "^7.3.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"eslint": "^8.57.0",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"keywords": [],
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/bundle-source/src/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ export const makeFileWriter = (
* fs: Pick<import('fs'), 'existsSync'> &
* { promises: Pick<
* import('fs/promises'),
* 'readFile' | 'stat' | 'writeFile' | 'mkdir' | 'rm'
* 'readFile' | 'stat' | 'writeFile' | 'mkdir' | 'rename' | 'rm'
* >,
* },
* path: Pick<import('path'), 'resolve' | 'relative' | 'normalize'>,
* path: Pick<import('path'), 'dirname' | 'resolve' | 'relative' | 'normalize'>,
* os: Pick<import('os'), 'platform'>,
* }} io
* @param {number} [pid]
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@endo/ses-ava": "^1.2.2",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"dependencies": {
"@endo/errors": "^1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/check-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/cjs-module-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.30.7",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/compartment-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/env-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"c8": "^7.14.0",
"ses0_18_3": "npm:ses@0.18.3",
"tsd": "^0.30.7",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"requireindex": "~1.1.0",
"ts-api-utils": "~1.0.1",
"tsutils": "~3.21.0",
"typescript": "5.5.0-beta",
"typescript": "5.5.2",
"typescript-eslint": "^7.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint": "^8.57.0",
"rollup": "^2.79.1",
"tsd": "^0.30.7",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.30.7",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"keywords": [
"eventual send",
Expand Down
1 change: 1 addition & 0 deletions packages/eventual-send/src/no-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import makeE from './E.js';

// XXX module exports for HandledPromise fail if these aren't in scope
/** @import {Handler, HandledExecutor} from './handled-promise.js' */
/** @import {ECallableOrMethods, EGetters, ERef, ERemoteFunctions, ESendOnlyCallableOrMethods, LocalRecord, RemoteFunctions} from './E.js' */

const hp = HandledPromise;
export const E = makeE(hp);
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/far/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@endo/ses-ava": "^1.2.2",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"keywords": [
"eventual send",
Expand Down
2 changes: 1 addition & 1 deletion packages/import-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@endo/ses-ava": "^1.2.2",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"@endo/compartment-mapper": "^1.1.5",
"ava": "^6.1.3",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"dependencies": {
"@endo/base64": "^1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/lp32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@fast-check/ava": "^1.1.5",
"ava": "^6.1.3",
"c8": "^7.14.0",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
3 changes: 2 additions & 1 deletion packages/marshal/src/encodePassable.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ const liberalDecoders = /** @type {Required<DecodeOptions>} */ (
*/
const makeInnerDecode = (decodeStringSuffix, decodeArray, options) => {
const { decodeRemotable, decodePromise, decodeError } = options;
/** @type {(encoded: string, skip?: number) => Passable} */
const innerDecode = (encoded, skip = 0) => {
switch (encoded.charAt(skip)) {
case 'v': {
Expand Down Expand Up @@ -715,6 +716,7 @@ const makeInnerDecode = (decodeStringSuffix, decodeArray, options) => {
}
case '[':
case '^': {
// @ts-expect-error Type 'unknown[]' is not Passable
return decodeArray(encoded, innerDecode, skip);
}
case '(': {
Expand All @@ -728,7 +730,6 @@ const makeInnerDecode = (decodeStringSuffix, decodeArray, options) => {
}
}
};
// @ts-expect-error Type 'unknown' is not assignable to type 'Passable<PassableCap, Error>'.
return innerDecode;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/memoize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/nat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"ses": "^1.5.0",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"directories": {
"test": "test"
Expand Down
2 changes: 1 addition & 1 deletion packages/netstring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/promise-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ses-ava/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"sinon": "^15.1.0",
"terser": "^5.16.6",
"tsd": "^0.30.7",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/skel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"ava": "^6.1.3",
"c8": "^7.14.0",
"tsd": "^0.30.7",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/static-module-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"ts-api-utils": "~1.0.1",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-types-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [],
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"ts-api-utils": "~1.0.1",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/syrup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/test262-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/where/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
2 changes: 1 addition & 1 deletion packages/zip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"typescript": "5.5.0-beta"
"typescript": "5.5.2"
},
"files": [
"LICENSE*",
Expand Down
Loading

0 comments on commit ad1706a

Please sign in to comment.