Skip to content
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

Bumps TypeScript #2676

Merged
merged 2 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 57 additions & 57 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "4.2.2-pnpify",
"version": "4.3.0-beta-pnpify",
"main": "./lib/typescript.js",
"type": "commonjs"
}
16 changes: 16 additions & 0 deletions .yarn/versions/bb02f129.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declined:
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-exec"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- vscode-zipfs
- "@yarnpkg/builder"
- "@yarnpkg/cli"
- "@yarnpkg/doctor"
- "@yarnpkg/fslib"
- "@yarnpkg/parsers"
- "@yarnpkg/pnp"
- "@yarnpkg/pnpify"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jest-junit": "^10.0.0",
"micromatch": "^4.0.2",
"tslib": "^1.13.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"resolutions": {
"yoga-layout-prebuilt": "patch:[email protected]#./.yarn/patches/yoga-layout-prebuilt.patch"
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"typedoc": "next",
"typedoc-neo-theme": "^1.0.7",
"typedoc-plugin-yarn": "portal:./typedoc-plugin-yarn",
"typescript": "^4.2.2",
"typescript": "beta",
"unescape-html": "^1.1.0",
"unfetch": "^4.1.0",
"unified": "^7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-constraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@yarnpkg/builder": "workspace:^2.1.3",
"@yarnpkg/cli": "workspace:^2.4.0",
"@yarnpkg/core": "workspace:^2.4.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"scripts": {
"build:plugin-constraints": "builder build plugin",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@yarnpkg/core": "workspace:^2.4.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"scripts": {
"build:plugin-exec": "builder build plugin",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-interactive-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@yarnpkg/cli": "workspace:^2.4.0",
"@yarnpkg/core": "workspace:^2.4.0",
"@yarnpkg/plugin-essentials": "workspace:^2.4.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-stage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@yarnpkg/builder": "workspace:^2.1.3",
"@yarnpkg/cli": "workspace:^2.4.0",
"@yarnpkg/core": "workspace:^2.4.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"scripts": {
"build:plugin-stage": "builder build plugin",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@yarnpkg/cli": "workspace:^2.4.0",
"@yarnpkg/core": "workspace:^2.4.0",
"@yarnpkg/plugin-essentials": "workspace:^2.4.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"scripts": {
"build:plugin-typescript": "builder build plugin",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@yarnpkg/cli": "workspace:^2.4.0",
"@yarnpkg/core": "workspace:^2.4.0",
"@yarnpkg/plugin-pack": "workspace:^2.2.3",
"typescript": "^4.2.2"
"typescript": "beta"
},
"scripts": {
"build:plugin-version": "builder build plugin",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-workspace-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@yarnpkg/builder": "workspace:^2.1.3",
"@yarnpkg/cli": "workspace:^2.4.0",
"@yarnpkg/core": "workspace:^2.4.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"scripts": {
"build:plugin-workspace-tools": "builder build plugin",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-zipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@yarnpkg/libzip": "workspace:^2.2.1",
"@yarnpkg/pnpify": "workspace:^2.4.0",
"ts-loader": "^7.0.5",
"typescript": "^4.2.2",
"typescript": "beta",
"vsce": "^1.85.1",
"webpack": "^5.1.1",
"webpack-cli": "^4.0.0-beta.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/terser-webpack-plugin": "^3.0.0",
"@types/webpack-merge": "^4.1.5",
"@yarnpkg/monorepo": "workspace:0.0.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"peerDependencies": {
"typescript": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@yarnpkg/monorepo": "workspace:0.0.0",
"@yarnpkg/pnpify": "workspace:^2.4.0",
"micromatch": "^4.0.2",
"typescript": "^4.2.2"
"typescript": "beta"
},
"peerDependencies": {
"@yarnpkg/core": "^2.4.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-doctor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"micromatch": "^4.0.2",
"p-limit": "^2.2.0",
"tslib": "^1.13.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"devDependencies": {
"@types/micromatch": "^4.0.1",
Expand Down
10 changes: 5 additions & 5 deletions packages/yarnpkg-fslib/sources/NodeFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Dirent, SymlinkType}
import {BasePortableFakeFS, WriteFileOptions} from './FakeFS';
import {MkdirOptions, RmdirOptions, WatchOptions, WatchCallback, Watcher} from './FakeFS';
import {ENOSYS} from './errors';
import {FSPath, PortablePath, Filename, ppath, npath, NativePath} from './path';
import {FSPath, PortablePath, Filename, ppath, npath} from './path';

export class NodeFS extends BasePortableFakeFS {
private readonly realFs: typeof fs;
Expand Down Expand Up @@ -45,7 +45,7 @@ export class NodeFS extends BasePortableFakeFS {
}

async opendirPromise(p: PortablePath, opts?: OpendirOptions): Promise<Dir<PortablePath>> {
return await new Promise<Dir<NativePath>>((resolve, reject) => {
return await new Promise<Dir<PortablePath>>((resolve, reject) => {
if (typeof opts !== `undefined`) {
this.realFs.opendir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject) as any);
} else {
Expand All @@ -56,10 +56,10 @@ export class NodeFS extends BasePortableFakeFS {
});
}

opendirSync(p: PortablePath, opts?: OpendirOptions): Dir<PortablePath> {
opendirSync(p: PortablePath, opts?: OpendirOptions) {
const dir = typeof opts !== `undefined`
? this.realFs.opendirSync(npath.fromPortablePath(p), opts) as Dir<NativePath>
: this.realFs.opendirSync(npath.fromPortablePath(p)) as Dir<NativePath>;
? this.realFs.opendirSync(npath.fromPortablePath(p), opts) as Dir<PortablePath>
: this.realFs.opendirSync(npath.fromPortablePath(p)) as Dir<PortablePath>;

return Object.defineProperty(dir, `path`, {value: p, configurable: true, writable: true});
}
Expand Down
3 changes: 0 additions & 3 deletions packages/yarnpkg-fslib/sources/ZipFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1342,9 +1342,6 @@ export class ZipFS extends BasePortableFakeFS {
private readFileBuffer(p: PortablePath, opts: {asyncDecompress: true}): Promise<Buffer>
private readFileBuffer(p: PortablePath, opts: {asyncDecompress: boolean}): Promise<Buffer> | Buffer
private readFileBuffer(p: PortablePath, opts: {asyncDecompress: boolean} = {asyncDecompress: false}): Buffer | Promise<Buffer> {
if (typeof p !== `string`)
throw errors.EBADF(`read`);

const resolvedP = this.resolveFilename(`open '${p}'`, p);
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
throw errors.ENOENT(`open '${p}'`);
Expand Down
1 change: 1 addition & 0 deletions packages/yarnpkg-parsers/sources/grammars/shell.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Subshell
Variable
= '${' name:Identifier ':-' arg:CommandString '}' { return { name, defaultValue: arg } }
/ '${' name:Identifier ':-}' { return { name, defaultValue: [] } }
/ '${' name:Identifier '[' from:Integer ',' from:Integer '}' { return { name, defaultValue: [] } }
/ '${' name:Identifier '}' { return { name } }
/ '$' name:Identifier { return { name } }

Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-pnp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@yarnpkg/builder": "workspace:^2.1.3",
"@yarnpkg/libzip": "workspace:^2.2.1",
"@yarnpkg/monorepo": "workspace:0.0.0",
"typescript": "^4.2.2",
"typescript": "beta",
"webpack": "^5.1.1",
"webpack-cli": "^4.0.0-beta.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-pnp/sources/loader/internalTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function makeError(pnpCode: ErrorCode, message: string, data: Record<stri
...propertySpec,
value: data,
},
});
}) as any;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-pnpify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@yarnpkg/monorepo": "workspace:0.0.0",
"@yarnpkg/pnp": "workspace:^2.3.2",
"eslint": "^6.8.0",
"typescript": "^4.2.2"
"typescript": "beta"
},
"peerDependencies": {
"eslint": "*",
Expand Down
46 changes: 23 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5466,7 +5466,7 @@ __metadata:
terser-webpack-plugin: ^3.0.4
ts-loader: ^7.0.5
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
val-loader: ^2.1.1
webpack: ^5.1.1
webpack-merge: ^4.2.2
Expand Down Expand Up @@ -5514,7 +5514,7 @@ __metadata:
semver: ^7.1.2
tslib: ^1.13.0
typanion: ^3.3.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/core": ^2.4.0
languageName: unknown
Expand Down Expand Up @@ -5584,7 +5584,7 @@ __metadata:
micromatch: ^4.0.2
p-limit: ^2.2.0
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
bin:
doctor: ./sources/boot-cli-dev.js
languageName: unknown
Expand Down Expand Up @@ -5717,7 +5717,7 @@ __metadata:
typedoc: next
typedoc-neo-theme: ^1.0.7
typedoc-plugin-yarn: "portal:./typedoc-plugin-yarn"
typescript: ^4.2.2
typescript: beta
unescape-html: ^1.1.0
unfetch: ^4.1.0
unified: ^7.1.0
Expand Down Expand Up @@ -5799,7 +5799,7 @@ __metadata:
jest-junit: ^10.0.0
micromatch: ^4.0.2
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
dependenciesMeta:
core-js:
built: false
Expand Down Expand Up @@ -5866,7 +5866,7 @@ __metadata:
node-emoji: ^1.8.1
tau-prolog: ^0.2.66
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/cli": ^2.4.0
"@yarnpkg/core": ^2.4.0
Expand Down Expand Up @@ -5925,7 +5925,7 @@ __metadata:
"@yarnpkg/core": "workspace:^2.4.0"
"@yarnpkg/fslib": "workspace:^2.4.0"
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/core": ^2.4.0
languageName: unknown
Expand Down Expand Up @@ -6021,7 +6021,7 @@ __metadata:
react: ^16.13.1
semver: ^7.1.2
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/cli": ^2.4.0
"@yarnpkg/core": ^2.4.0
Expand Down Expand Up @@ -6175,7 +6175,7 @@ __metadata:
"@yarnpkg/fslib": "workspace:^2.4.0"
clipanion: ^3.0.0-rc.10
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/cli": ^2.4.0
"@yarnpkg/core": ^2.4.0
Expand All @@ -6196,7 +6196,7 @@ __metadata:
algoliasearch: ^4.2.0
semver: ^7.1.2
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/cli": ^2.4.0
"@yarnpkg/core": ^2.4.0
Expand All @@ -6222,7 +6222,7 @@ __metadata:
react: ^16.13.1
semver: ^7.1.2
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/cli": ^2.4.0
"@yarnpkg/core": ^2.4.0
Expand All @@ -6244,7 +6244,7 @@ __metadata:
p-limit: ^2.2.0
tslib: ^1.13.0
typanion: ^3.3.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
"@yarnpkg/cli": ^2.4.0
"@yarnpkg/core": ^2.4.0
Expand All @@ -6262,7 +6262,7 @@ __metadata:
"@yarnpkg/monorepo": "workspace:0.0.0"
resolve.exports: ^1.0.2
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
webpack: ^5.1.1
webpack-cli: ^4.0.0-beta.8
languageName: unknown
Expand All @@ -6285,7 +6285,7 @@ __metadata:
eslint: ^6.8.0
lodash: ^4.17.15
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
peerDependencies:
eslint: "*"
typescript: "*"
Expand Down Expand Up @@ -26614,13 +26614,13 @@ [email protected]:
languageName: node
linkType: hard

typescript@^4.2.2:
version: 4.2.3
resolution: "typescript@npm:4.2.3"
typescript@beta:
version: 4.3.0-beta
resolution: "typescript@npm:4.3.0-beta"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: b4a2020c021211184ac15caf59936b2089c13e79685f340a31aaa839c9de2f73b44a5e3757292de6cdad2ed967aef80d4592161b814cc29c0570f261850c4bca
checksum: c165f915ad33919643fceeb71a70f5483fba468509bf4a04a7465f61dc14886dfc5f9bdf5ef3dd4dbf4d7204854abe1935e215d2c15080dd0bf6cba39e009908
languageName: node
linkType: hard

Expand All @@ -26644,13 +26644,13 @@ typescript@^4.2.2:
languageName: node
linkType: hard

"typescript@patch:typescript@^4.2.2#~builtin<compat/typescript>":
version: 4.2.3
resolution: "typescript@patch:typescript@npm%3A4.2.3#~builtin<compat/typescript>::version=4.2.3&hash=34ad7d"
"typescript@patch:typescript@beta#~builtin<compat/typescript>":
version: 4.3.0-beta
resolution: "typescript@patch:typescript@npm%3A4.3.0-beta#~builtin<compat/typescript>::version=4.3.0-beta&hash=34ad7d"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: c1dd9e722d11f93a66aa365459bc155aa48ee366f4194b743f9de0b62c1c5242e82a482c49fa8d2bcb3a90ecf4c1a35e1ac534df7408d17d17eb15718a6ad0fc
checksum: 499d52598d790aaf64421e2837528a53d84e7235f5dc33c786f5029deb9a4576240b2d8c2ac22b5941c8dc3fb82eb83b01dc40f61ca65ab6531758b109dbc791
languageName: node
linkType: hard

Expand Down Expand Up @@ -27610,7 +27610,7 @@ typescript@^4.2.2:
"@yarnpkg/pnpify": "workspace:^2.4.0"
ts-loader: ^7.0.5
tslib: ^1.13.0
typescript: ^4.2.2
typescript: beta
vsce: ^1.85.1
webpack: ^5.1.1
webpack-cli: ^4.0.0-beta.8
Expand Down