typescript 4.9.0-dev.20220830 → 4.9.0-dev.20220831

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,59 +46,6 @@ with any additional questions or comments.
46
46
  * [Programming handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
47
47
  * [Homepage](https://www.typescriptlang.org/)
48
48
 
49
- ## Building
50
-
51
- In order to build the TypeScript compiler, ensure that you have [Git](https://git-scm.com/downloads) and [Node.js](https://nodejs.org/) installed.
52
-
53
- Clone a copy of the repo:
54
-
55
- ```bash
56
- git clone https://github.com/microsoft/TypeScript.git
57
- ```
58
-
59
- Change to the TypeScript directory:
60
-
61
- ```bash
62
- cd TypeScript
63
- ```
64
-
65
- Install [Gulp](https://gulpjs.com/) tools and dev dependencies:
66
-
67
- ```bash
68
- npm install -g gulp
69
- npm ci
70
- ```
71
-
72
- Use one of the following to build and test:
73
-
74
- ```
75
- gulp local # Build the compiler into built/local.
76
- gulp clean # Delete the built compiler.
77
- gulp LKG # Replace the last known good with the built one.
78
- # Bootstrapping step to be executed when the built compiler reaches a stable state.
79
- gulp tests # Build the test infrastructure using the built compiler.
80
- gulp runtests # Run tests using the built compiler and test infrastructure.
81
- # You can override the specific suite runner used or specify a test for this command.
82
- # Use --tests=<testPath> for a specific test and/or --runner=<runnerName> for a specific suite.
83
- # Valid runners include conformance, compiler, fourslash, project, user, and docker
84
- # The user and docker runners are extended test suite runners - the user runner
85
- # works on disk in the tests/cases/user directory, while the docker runner works in containers.
86
- # You'll need to have the docker executable in your system path for the docker runner to work.
87
- gulp runtests-parallel # Like runtests, but split across multiple threads. Uses a number of threads equal to the system
88
- # core count by default. Use --workers=<number> to adjust this.
89
- gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests.
90
- gulp lint # Runs eslint on the TypeScript source.
91
- gulp help # List the above commands.
92
- ```
93
-
94
-
95
- ## Usage
96
-
97
- ```bash
98
- node built/local/tsc.js hello.ts
99
- ```
100
-
101
-
102
49
  ## Roadmap
103
50
 
104
51
  For details on our planned features and future direction please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap).
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220830");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220831");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -44844,7 +44844,7 @@ var ts;
44844
44844
  }
44845
44845
  var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
44846
44846
  if (ts.isBindingElement(visited)) {
44847
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name)) {
44847
+ if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
44848
44848
  visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken, undefined, visited.propertyName, undefined);
44849
44849
  }
44850
44850
  else {
package/lib/tsserver.js CHANGED
@@ -109,7 +109,7 @@ var ts;
109
109
  // The following is baselined as a literal template type without intervention
110
110
  /** The version of the TypeScript compiler release */
111
111
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
112
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220830");
112
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220831");
113
113
  /* @internal */
114
114
  var Comparison;
115
115
  (function (Comparison) {
@@ -54278,7 +54278,7 @@ var ts;
54278
54278
  }
54279
54279
  var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, /*nodesVisitor*/ undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
54280
54280
  if (ts.isBindingElement(visited)) {
54281
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name)) {
54281
+ if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
54282
54282
  visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken,
54283
54283
  /* propertyName*/ undefined, visited.propertyName,
54284
54284
  /*initializer*/ undefined);
@@ -108,7 +108,7 @@ var ts;
108
108
  // The following is baselined as a literal template type without intervention
109
109
  /** The version of the TypeScript compiler release */
110
110
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
111
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220830");
111
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220831");
112
112
  /* @internal */
113
113
  var Comparison;
114
114
  (function (Comparison) {
@@ -54277,7 +54277,7 @@ var ts;
54277
54277
  }
54278
54278
  var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, /*nodesVisitor*/ undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
54279
54279
  if (ts.isBindingElement(visited)) {
54280
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name)) {
54280
+ if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
54281
54281
  visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken,
54282
54282
  /* propertyName*/ undefined, visited.propertyName,
54283
54283
  /*initializer*/ undefined);
package/lib/typescript.js CHANGED
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220830");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220831");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -54268,7 +54268,7 @@ var ts;
54268
54268
  }
54269
54269
  var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, /*nodesVisitor*/ undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
54270
54270
  if (ts.isBindingElement(visited)) {
54271
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name)) {
54271
+ if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
54272
54272
  visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken,
54273
54273
  /* propertyName*/ undefined, visited.propertyName,
54274
54274
  /*initializer*/ undefined);
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220830");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220831");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -54268,7 +54268,7 @@ var ts;
54268
54268
  }
54269
54269
  var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, /*nodesVisitor*/ undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
54270
54270
  if (ts.isBindingElement(visited)) {
54271
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name)) {
54271
+ if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
54272
54272
  visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken,
54273
54273
  /* propertyName*/ undefined, visited.propertyName,
54274
54274
  /*initializer*/ undefined);
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220830");
92
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220831");
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -54258,7 +54258,7 @@ var ts;
54258
54258
  }
54259
54259
  var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, /*nodesVisitor*/ undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
54260
54260
  if (ts.isBindingElement(visited)) {
54261
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name)) {
54261
+ if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
54262
54262
  visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken,
54263
54263
  /* propertyName*/ undefined, visited.propertyName,
54264
54264
  /*initializer*/ undefined);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.9.0-dev.20220830",
5
+ "version": "4.9.0-dev.20220831",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [