Skip to content

Commit

Permalink
Bump version to 4.6.0-beta, accept baselines, and LKG.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser authored Jan 21, 2022
1 parent 5e09e86 commit 40c4fac
Show file tree
Hide file tree
Showing 128 changed files with 868 additions and 896 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "typescript",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "4.6.0",
"version": "4.6.0-beta",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/corePublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace ts {
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
export const version: string = `${versionMajorMinor}.0-dev`;
export const version = `${versionMajorMinor}.0-beta`;

/**
* Type of objects whose values are all of the same type.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/a.ts (0 errors) ====
declare var dec: any, __decorate: any;
@dec export class A {
}

const o = { a: 1 };
const y = { ...o };

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/a.ts (0 errors) ====
declare var dec: any, __decorate: any;
@dec export class A {
}

const o = { a: 1 };
const y = { ...o };

2 changes: 2 additions & 0 deletions tests/baselines/reference/importAssertionNonstring.errors.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/compiler/mod.mts(1,52): error TS2837: Import assertion values must be string literal expressions.
tests/cases/compiler/mod.mts(3,52): error TS2837: Import assertion values must be string literal expressions.
tests/cases/compiler/mod.mts(5,52): error TS2837: Import assertion values must be string literal expressions.
Expand All @@ -6,6 +7,7 @@ tests/cases/compiler/mod.mts(9,52): error TS2837: Import assertion values must b
tests/cases/compiler/mod.mts(11,66): error TS2837: Import assertion values must be string literal expressions.


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/mod.mts (6 errors) ====
import * as thing1 from "./mod.mjs" assert {field: 0};
~
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error TS4124: Compiler option 'moduleResolution' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'moduleResolution' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
"version": "0.0.1",
"exports": "./entrypoint.js"
}
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
export declare function thing(): void;
==== tests/cases/compiler/index.ts (0 errors) ====
import * as p from "pkg";
p.thing();
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error TS4124: Compiler option 'moduleResolution' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'moduleResolution' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
"version": "0.0.1",
"exports": "./entrypoint.js"
}
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
export declare function thing(): void;
==== tests/cases/compiler/index.ts (0 errors) ====
import * as p from "pkg";
p.thing();
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/compiler/index.ts(1,20): error TS2307: Cannot find module 'pkg' or its corresponding type declarations.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
"version": "0.0.1",
"exports": "./entrypoint.js"
}
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
export declare function thing(): void;
==== tests/cases/compiler/index.ts (0 errors) ====
import * as p from "pkg";
p.thing();
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
"version": "0.0.1",
"exports": "./entrypoint.js"
}
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
export declare function thing(): void;
==== tests/cases/compiler/index.ts (0 errors) ====
import * as p from "pkg";
p.thing();
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/compiler/index.ts(1,20): error TS2307: Cannot find module 'pkg' or its corresponding type declarations.


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
"version": "0.0.1",
"exports": "./entrypoint.js"
}
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
export declare function thing(): void;
==== tests/cases/compiler/index.ts (0 errors) ====
import * as p from "pkg";
p.thing();
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/compiler/node_modules/pkg/package.json (0 errors) ====
{
"name": "pkg",
"version": "0.0.1",
"exports": "./entrypoint.js"
}
==== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts (0 errors) ====
export declare function thing(): void;
==== tests/cases/compiler/index.ts (0 errors) ====
import * as p from "pkg";
p.thing();
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/bar.mts(2,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './foo.mjs'?
/src/bar.mts(3,21): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/foo.mts (0 errors) ====
export function foo() {
return "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/buzz.mts(2,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/buzz.mts (1 errors) ====
// Extensionless relative path cjs import in an ES module
import foo = require("./foo"); // should error, should not ask for extension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/bar.mts(2,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './foo.jsx'?


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/foo.tsx (0 errors) ====
export function foo() {
return "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/bar.mts(2,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './foo.js'?


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/foo.tsx (0 errors) ====
export function foo() {
return "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/buzz.mts(2,8): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/buzz.mts (1 errors) ====
// Extensionless relative path dynamic import in an ES module
import("./foo").then(x => x); // should error, ask for extension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/bar.cts(4,21): error TS2307: Cannot find module './foo' or its corresponding type declarations.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/bar.cts (1 errors) ====
// Extensionless relative path import statement in a cjs module
// Import statements are not allowed in cjs files,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/bar.cts(2,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/bar.cts (1 errors) ====
// Extensionless relative path cjs import in a cjs module
import foo = require("./foo"); // should error, should not ask for extension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
/src/bar.cts(2,8): error TS2834: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== /src/bar.cts (1 errors) ====
// Extensionless relative path dynamic import in a cjs module
import("./foo").then(x => x); // should error, ask for extension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
// esm format file
import * as self from "package";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/conformance/node/allowJs/index.cjs(2,23): error TS1471: Module 'package' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/conformance/node/allowJs/index.js (0 errors) ====
// esm format file
import * as self from "package";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/conformance/node/index.cts(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
tests/cases/conformance/node/index.cts(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
tests/cases/conformance/node/index.cts(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
Expand Down Expand Up @@ -81,6 +82,7 @@ tests/cases/conformance/node/index.ts(83,21): error TS2834: Relative import path
tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'?


!!! error TS4124: Compiler option 'module' of value 'node12' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
// cjs format file
const x = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
tests/cases/conformance/node/index.cts(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
tests/cases/conformance/node/index.cts(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
tests/cases/conformance/node/index.cts(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.
Expand Down Expand Up @@ -81,6 +82,7 @@ tests/cases/conformance/node/index.ts(83,21): error TS2834: Relative import path
tests/cases/conformance/node/index.ts(84,21): error TS2835: Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean './subfolder2/another/index.mjs'?


!!! error TS4124: Compiler option 'module' of value 'nodenext' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
==== tests/cases/conformance/node/subfolder/index.ts (0 errors) ====
// cjs format file
const x = 1;
Expand Down
Loading

0 comments on commit 40c4fac

Please sign in to comment.