typescript 4.6.0-dev.20211216 → 4.6.0-dev.20211218
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/lib/tsc.js +20 -14
- package/lib/tsserver.js +20 -14
- package/lib/tsserverlibrary.js +20 -14
- package/lib/typescript.js +20 -14
- package/lib/typescriptServices.js +20 -14
- package/lib/typingsInstaller.js +20 -14
- package/package.json +1 -1
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.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211218";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -15608,7 +15608,7 @@ var ts;
|
|
|
15608
15608
|
}
|
|
15609
15609
|
ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
|
|
15610
15610
|
function getUseDefineForClassFields(compilerOptions) {
|
|
15611
|
-
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions)
|
|
15611
|
+
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 : compilerOptions.useDefineForClassFields;
|
|
15612
15612
|
}
|
|
15613
15613
|
ts.getUseDefineForClassFields = getUseDefineForClassFields;
|
|
15614
15614
|
function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
|
|
@@ -45769,7 +45769,8 @@ var ts;
|
|
|
45769
45769
|
return false;
|
|
45770
45770
|
}
|
|
45771
45771
|
function getBaseTypeNodeOfClass(type) {
|
|
45772
|
-
|
|
45772
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
45773
|
+
return decl && ts.getEffectiveBaseTypeNode(decl);
|
|
45773
45774
|
}
|
|
45774
45775
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
45775
45776
|
var typeArgCount = ts.length(typeArgumentNodes);
|
|
@@ -45783,8 +45784,8 @@ var ts;
|
|
|
45783
45784
|
}
|
|
45784
45785
|
function getBaseConstructorTypeOfClass(type) {
|
|
45785
45786
|
if (!type.resolvedBaseConstructorType) {
|
|
45786
|
-
var decl = type.symbol
|
|
45787
|
-
var extended = ts.getEffectiveBaseTypeNode(decl);
|
|
45787
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
45788
|
+
var extended = decl && ts.getEffectiveBaseTypeNode(decl);
|
|
45788
45789
|
var baseTypeNode = getBaseTypeNodeOfClass(type);
|
|
45789
45790
|
if (!baseTypeNode) {
|
|
45790
45791
|
return type.resolvedBaseConstructorType = undefinedType;
|
|
@@ -48058,6 +48059,8 @@ var ts;
|
|
|
48058
48059
|
case 205:
|
|
48059
48060
|
case 206:
|
|
48060
48061
|
return traverse(node.expression);
|
|
48062
|
+
case 294:
|
|
48063
|
+
return traverse(node.initializer);
|
|
48061
48064
|
default:
|
|
48062
48065
|
return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);
|
|
48063
48066
|
}
|
|
@@ -60569,11 +60572,14 @@ var ts;
|
|
|
60569
60572
|
if (!ts.getContainingClass(privId)) {
|
|
60570
60573
|
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
60571
60574
|
}
|
|
60572
|
-
if (!ts.
|
|
60573
|
-
|
|
60574
|
-
|
|
60575
|
-
|
|
60576
|
-
|
|
60575
|
+
if (!ts.isForInStatement(privId.parent)) {
|
|
60576
|
+
if (!ts.isExpressionNode(privId)) {
|
|
60577
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);
|
|
60578
|
+
}
|
|
60579
|
+
var isInOperation = ts.isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101;
|
|
60580
|
+
if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {
|
|
60581
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Cannot_find_name_0, ts.idText(privId));
|
|
60582
|
+
}
|
|
60577
60583
|
}
|
|
60578
60584
|
return false;
|
|
60579
60585
|
}
|
|
@@ -72188,7 +72194,7 @@ var ts;
|
|
|
72188
72194
|
checkGrammarComputedPropertyName(name);
|
|
72189
72195
|
}
|
|
72190
72196
|
if (prop.kind === 295 && !inDestructuring && prop.objectAssignmentInitializer) {
|
|
72191
|
-
|
|
72197
|
+
grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);
|
|
72192
72198
|
}
|
|
72193
72199
|
if (name.kind === 80) {
|
|
72194
72200
|
grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
@@ -76692,7 +76698,7 @@ var ts;
|
|
|
76692
76698
|
var compilerOptions = context.getCompilerOptions();
|
|
76693
76699
|
var languageVersion = ts.getEmitScriptTarget(compilerOptions);
|
|
76694
76700
|
var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);
|
|
76695
|
-
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion <
|
|
76701
|
+
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9;
|
|
76696
76702
|
var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 || !useDefineForClassFields) && languageVersion >= 2;
|
|
76697
76703
|
var shouldTransformThisInStaticInitializers = languageVersion <= 8 || !useDefineForClassFields;
|
|
76698
76704
|
var previousOnSubstituteNode = context.onSubstituteNode;
|
|
@@ -76712,7 +76718,7 @@ var ts;
|
|
|
76712
76718
|
function transformSourceFile(node) {
|
|
76713
76719
|
var options = context.getCompilerOptions();
|
|
76714
76720
|
if (node.isDeclarationFile
|
|
76715
|
-
|| useDefineForClassFields && ts.getEmitScriptTarget(options)
|
|
76721
|
+
|| useDefineForClassFields && ts.getEmitScriptTarget(options) >= 9) {
|
|
76716
76722
|
return node;
|
|
76717
76723
|
}
|
|
76718
76724
|
var visited = ts.visitEachChild(node, visitor, context);
|
|
@@ -77382,7 +77388,7 @@ var ts;
|
|
|
77382
77388
|
return false;
|
|
77383
77389
|
}
|
|
77384
77390
|
if (useDefineForClassFields) {
|
|
77385
|
-
return languageVersion <
|
|
77391
|
+
return languageVersion < 9;
|
|
77386
77392
|
}
|
|
77387
77393
|
return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);
|
|
77388
77394
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211218";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -19716,7 +19716,7 @@ var ts;
|
|
|
19716
19716
|
}
|
|
19717
19717
|
ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
|
|
19718
19718
|
function getUseDefineForClassFields(compilerOptions) {
|
|
19719
|
-
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions)
|
|
19719
|
+
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
|
|
19720
19720
|
}
|
|
19721
19721
|
ts.getUseDefineForClassFields = getUseDefineForClassFields;
|
|
19722
19722
|
function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
|
|
@@ -55397,7 +55397,8 @@ var ts;
|
|
|
55397
55397
|
return false;
|
|
55398
55398
|
}
|
|
55399
55399
|
function getBaseTypeNodeOfClass(type) {
|
|
55400
|
-
|
|
55400
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55401
|
+
return decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55401
55402
|
}
|
|
55402
55403
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
55403
55404
|
var typeArgCount = ts.length(typeArgumentNodes);
|
|
@@ -55419,8 +55420,8 @@ var ts;
|
|
|
55419
55420
|
*/
|
|
55420
55421
|
function getBaseConstructorTypeOfClass(type) {
|
|
55421
55422
|
if (!type.resolvedBaseConstructorType) {
|
|
55422
|
-
var decl = type.symbol
|
|
55423
|
-
var extended = ts.getEffectiveBaseTypeNode(decl);
|
|
55423
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55424
|
+
var extended = decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55424
55425
|
var baseTypeNode = getBaseTypeNodeOfClass(type);
|
|
55425
55426
|
if (!baseTypeNode) {
|
|
55426
55427
|
return type.resolvedBaseConstructorType = undefinedType;
|
|
@@ -58057,6 +58058,8 @@ var ts;
|
|
|
58057
58058
|
case 205 /* PropertyAccessExpression */:
|
|
58058
58059
|
case 206 /* ElementAccessExpression */:
|
|
58059
58060
|
return traverse(node.expression);
|
|
58061
|
+
case 294 /* PropertyAssignment */:
|
|
58062
|
+
return traverse(node.initializer);
|
|
58060
58063
|
default:
|
|
58061
58064
|
return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);
|
|
58062
58065
|
}
|
|
@@ -72517,11 +72520,14 @@ var ts;
|
|
|
72517
72520
|
if (!ts.getContainingClass(privId)) {
|
|
72518
72521
|
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
72519
72522
|
}
|
|
72520
|
-
if (!ts.
|
|
72521
|
-
|
|
72522
|
-
|
|
72523
|
-
|
|
72524
|
-
|
|
72523
|
+
if (!ts.isForInStatement(privId.parent)) {
|
|
72524
|
+
if (!ts.isExpressionNode(privId)) {
|
|
72525
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);
|
|
72526
|
+
}
|
|
72527
|
+
var isInOperation = ts.isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101 /* InKeyword */;
|
|
72528
|
+
if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {
|
|
72529
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Cannot_find_name_0, ts.idText(privId));
|
|
72530
|
+
}
|
|
72525
72531
|
}
|
|
72526
72532
|
return false;
|
|
72527
72533
|
}
|
|
@@ -85908,7 +85914,7 @@ var ts;
|
|
|
85908
85914
|
if (prop.kind === 295 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) {
|
|
85909
85915
|
// having objectAssignmentInitializer is only valid in ObjectAssignmentPattern
|
|
85910
85916
|
// outside of destructuring it is a syntax error
|
|
85911
|
-
|
|
85917
|
+
grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);
|
|
85912
85918
|
}
|
|
85913
85919
|
if (name.kind === 80 /* PrivateIdentifier */) {
|
|
85914
85920
|
grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
@@ -91872,7 +91878,7 @@ var ts;
|
|
|
91872
91878
|
var compilerOptions = context.getCompilerOptions();
|
|
91873
91879
|
var languageVersion = ts.getEmitScriptTarget(compilerOptions);
|
|
91874
91880
|
var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);
|
|
91875
|
-
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion <
|
|
91881
|
+
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */;
|
|
91876
91882
|
// We don't need to transform `super` property access when targeting ES5, ES3 because
|
|
91877
91883
|
// the es2015 transformation handles those.
|
|
91878
91884
|
var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields) && languageVersion >= 2 /* ES2015 */;
|
|
@@ -91902,7 +91908,7 @@ var ts;
|
|
|
91902
91908
|
function transformSourceFile(node) {
|
|
91903
91909
|
var options = context.getCompilerOptions();
|
|
91904
91910
|
if (node.isDeclarationFile
|
|
91905
|
-
|| useDefineForClassFields && ts.getEmitScriptTarget(options)
|
|
91911
|
+
|| useDefineForClassFields && ts.getEmitScriptTarget(options) >= 9 /* ES2022 */) {
|
|
91906
91912
|
return node;
|
|
91907
91913
|
}
|
|
91908
91914
|
var visited = ts.visitEachChild(node, visitor, context);
|
|
@@ -92659,7 +92665,7 @@ var ts;
|
|
|
92659
92665
|
if (useDefineForClassFields) {
|
|
92660
92666
|
// If we are using define semantics and targeting ESNext or higher,
|
|
92661
92667
|
// then we don't need to transform any class properties.
|
|
92662
|
-
return languageVersion <
|
|
92668
|
+
return languageVersion < 9 /* ES2022 */;
|
|
92663
92669
|
}
|
|
92664
92670
|
return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);
|
|
92665
92671
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211218";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -19910,7 +19910,7 @@ var ts;
|
|
|
19910
19910
|
}
|
|
19911
19911
|
ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
|
|
19912
19912
|
function getUseDefineForClassFields(compilerOptions) {
|
|
19913
|
-
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions)
|
|
19913
|
+
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
|
|
19914
19914
|
}
|
|
19915
19915
|
ts.getUseDefineForClassFields = getUseDefineForClassFields;
|
|
19916
19916
|
function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
|
|
@@ -55591,7 +55591,8 @@ var ts;
|
|
|
55591
55591
|
return false;
|
|
55592
55592
|
}
|
|
55593
55593
|
function getBaseTypeNodeOfClass(type) {
|
|
55594
|
-
|
|
55594
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55595
|
+
return decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55595
55596
|
}
|
|
55596
55597
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
55597
55598
|
var typeArgCount = ts.length(typeArgumentNodes);
|
|
@@ -55613,8 +55614,8 @@ var ts;
|
|
|
55613
55614
|
*/
|
|
55614
55615
|
function getBaseConstructorTypeOfClass(type) {
|
|
55615
55616
|
if (!type.resolvedBaseConstructorType) {
|
|
55616
|
-
var decl = type.symbol
|
|
55617
|
-
var extended = ts.getEffectiveBaseTypeNode(decl);
|
|
55617
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55618
|
+
var extended = decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55618
55619
|
var baseTypeNode = getBaseTypeNodeOfClass(type);
|
|
55619
55620
|
if (!baseTypeNode) {
|
|
55620
55621
|
return type.resolvedBaseConstructorType = undefinedType;
|
|
@@ -58251,6 +58252,8 @@ var ts;
|
|
|
58251
58252
|
case 205 /* PropertyAccessExpression */:
|
|
58252
58253
|
case 206 /* ElementAccessExpression */:
|
|
58253
58254
|
return traverse(node.expression);
|
|
58255
|
+
case 294 /* PropertyAssignment */:
|
|
58256
|
+
return traverse(node.initializer);
|
|
58254
58257
|
default:
|
|
58255
58258
|
return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);
|
|
58256
58259
|
}
|
|
@@ -72711,11 +72714,14 @@ var ts;
|
|
|
72711
72714
|
if (!ts.getContainingClass(privId)) {
|
|
72712
72715
|
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
72713
72716
|
}
|
|
72714
|
-
if (!ts.
|
|
72715
|
-
|
|
72716
|
-
|
|
72717
|
-
|
|
72718
|
-
|
|
72717
|
+
if (!ts.isForInStatement(privId.parent)) {
|
|
72718
|
+
if (!ts.isExpressionNode(privId)) {
|
|
72719
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);
|
|
72720
|
+
}
|
|
72721
|
+
var isInOperation = ts.isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101 /* InKeyword */;
|
|
72722
|
+
if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {
|
|
72723
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Cannot_find_name_0, ts.idText(privId));
|
|
72724
|
+
}
|
|
72719
72725
|
}
|
|
72720
72726
|
return false;
|
|
72721
72727
|
}
|
|
@@ -86102,7 +86108,7 @@ var ts;
|
|
|
86102
86108
|
if (prop.kind === 295 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) {
|
|
86103
86109
|
// having objectAssignmentInitializer is only valid in ObjectAssignmentPattern
|
|
86104
86110
|
// outside of destructuring it is a syntax error
|
|
86105
|
-
|
|
86111
|
+
grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);
|
|
86106
86112
|
}
|
|
86107
86113
|
if (name.kind === 80 /* PrivateIdentifier */) {
|
|
86108
86114
|
grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
@@ -92066,7 +92072,7 @@ var ts;
|
|
|
92066
92072
|
var compilerOptions = context.getCompilerOptions();
|
|
92067
92073
|
var languageVersion = ts.getEmitScriptTarget(compilerOptions);
|
|
92068
92074
|
var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);
|
|
92069
|
-
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion <
|
|
92075
|
+
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */;
|
|
92070
92076
|
// We don't need to transform `super` property access when targeting ES5, ES3 because
|
|
92071
92077
|
// the es2015 transformation handles those.
|
|
92072
92078
|
var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields) && languageVersion >= 2 /* ES2015 */;
|
|
@@ -92096,7 +92102,7 @@ var ts;
|
|
|
92096
92102
|
function transformSourceFile(node) {
|
|
92097
92103
|
var options = context.getCompilerOptions();
|
|
92098
92104
|
if (node.isDeclarationFile
|
|
92099
|
-
|| useDefineForClassFields && ts.getEmitScriptTarget(options)
|
|
92105
|
+
|| useDefineForClassFields && ts.getEmitScriptTarget(options) >= 9 /* ES2022 */) {
|
|
92100
92106
|
return node;
|
|
92101
92107
|
}
|
|
92102
92108
|
var visited = ts.visitEachChild(node, visitor, context);
|
|
@@ -92853,7 +92859,7 @@ var ts;
|
|
|
92853
92859
|
if (useDefineForClassFields) {
|
|
92854
92860
|
// If we are using define semantics and targeting ESNext or higher,
|
|
92855
92861
|
// then we don't need to transform any class properties.
|
|
92856
|
-
return languageVersion <
|
|
92862
|
+
return languageVersion < 9 /* ES2022 */;
|
|
92857
92863
|
}
|
|
92858
92864
|
return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);
|
|
92859
92865
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211218";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -19910,7 +19910,7 @@ var ts;
|
|
|
19910
19910
|
}
|
|
19911
19911
|
ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
|
|
19912
19912
|
function getUseDefineForClassFields(compilerOptions) {
|
|
19913
|
-
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions)
|
|
19913
|
+
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
|
|
19914
19914
|
}
|
|
19915
19915
|
ts.getUseDefineForClassFields = getUseDefineForClassFields;
|
|
19916
19916
|
function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
|
|
@@ -55591,7 +55591,8 @@ var ts;
|
|
|
55591
55591
|
return false;
|
|
55592
55592
|
}
|
|
55593
55593
|
function getBaseTypeNodeOfClass(type) {
|
|
55594
|
-
|
|
55594
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55595
|
+
return decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55595
55596
|
}
|
|
55596
55597
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
55597
55598
|
var typeArgCount = ts.length(typeArgumentNodes);
|
|
@@ -55613,8 +55614,8 @@ var ts;
|
|
|
55613
55614
|
*/
|
|
55614
55615
|
function getBaseConstructorTypeOfClass(type) {
|
|
55615
55616
|
if (!type.resolvedBaseConstructorType) {
|
|
55616
|
-
var decl = type.symbol
|
|
55617
|
-
var extended = ts.getEffectiveBaseTypeNode(decl);
|
|
55617
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55618
|
+
var extended = decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55618
55619
|
var baseTypeNode = getBaseTypeNodeOfClass(type);
|
|
55619
55620
|
if (!baseTypeNode) {
|
|
55620
55621
|
return type.resolvedBaseConstructorType = undefinedType;
|
|
@@ -58251,6 +58252,8 @@ var ts;
|
|
|
58251
58252
|
case 205 /* PropertyAccessExpression */:
|
|
58252
58253
|
case 206 /* ElementAccessExpression */:
|
|
58253
58254
|
return traverse(node.expression);
|
|
58255
|
+
case 294 /* PropertyAssignment */:
|
|
58256
|
+
return traverse(node.initializer);
|
|
58254
58257
|
default:
|
|
58255
58258
|
return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);
|
|
58256
58259
|
}
|
|
@@ -72711,11 +72714,14 @@ var ts;
|
|
|
72711
72714
|
if (!ts.getContainingClass(privId)) {
|
|
72712
72715
|
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
72713
72716
|
}
|
|
72714
|
-
if (!ts.
|
|
72715
|
-
|
|
72716
|
-
|
|
72717
|
-
|
|
72718
|
-
|
|
72717
|
+
if (!ts.isForInStatement(privId.parent)) {
|
|
72718
|
+
if (!ts.isExpressionNode(privId)) {
|
|
72719
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);
|
|
72720
|
+
}
|
|
72721
|
+
var isInOperation = ts.isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101 /* InKeyword */;
|
|
72722
|
+
if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {
|
|
72723
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Cannot_find_name_0, ts.idText(privId));
|
|
72724
|
+
}
|
|
72719
72725
|
}
|
|
72720
72726
|
return false;
|
|
72721
72727
|
}
|
|
@@ -86102,7 +86108,7 @@ var ts;
|
|
|
86102
86108
|
if (prop.kind === 295 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) {
|
|
86103
86109
|
// having objectAssignmentInitializer is only valid in ObjectAssignmentPattern
|
|
86104
86110
|
// outside of destructuring it is a syntax error
|
|
86105
|
-
|
|
86111
|
+
grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);
|
|
86106
86112
|
}
|
|
86107
86113
|
if (name.kind === 80 /* PrivateIdentifier */) {
|
|
86108
86114
|
grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
@@ -92066,7 +92072,7 @@ var ts;
|
|
|
92066
92072
|
var compilerOptions = context.getCompilerOptions();
|
|
92067
92073
|
var languageVersion = ts.getEmitScriptTarget(compilerOptions);
|
|
92068
92074
|
var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);
|
|
92069
|
-
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion <
|
|
92075
|
+
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */;
|
|
92070
92076
|
// We don't need to transform `super` property access when targeting ES5, ES3 because
|
|
92071
92077
|
// the es2015 transformation handles those.
|
|
92072
92078
|
var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields) && languageVersion >= 2 /* ES2015 */;
|
|
@@ -92096,7 +92102,7 @@ var ts;
|
|
|
92096
92102
|
function transformSourceFile(node) {
|
|
92097
92103
|
var options = context.getCompilerOptions();
|
|
92098
92104
|
if (node.isDeclarationFile
|
|
92099
|
-
|| useDefineForClassFields && ts.getEmitScriptTarget(options)
|
|
92105
|
+
|| useDefineForClassFields && ts.getEmitScriptTarget(options) >= 9 /* ES2022 */) {
|
|
92100
92106
|
return node;
|
|
92101
92107
|
}
|
|
92102
92108
|
var visited = ts.visitEachChild(node, visitor, context);
|
|
@@ -92853,7 +92859,7 @@ var ts;
|
|
|
92853
92859
|
if (useDefineForClassFields) {
|
|
92854
92860
|
// If we are using define semantics and targeting ESNext or higher,
|
|
92855
92861
|
// then we don't need to transform any class properties.
|
|
92856
|
-
return languageVersion <
|
|
92862
|
+
return languageVersion < 9 /* ES2022 */;
|
|
92857
92863
|
}
|
|
92858
92864
|
return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);
|
|
92859
92865
|
}
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211218";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -19910,7 +19910,7 @@ var ts;
|
|
|
19910
19910
|
}
|
|
19911
19911
|
ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
|
|
19912
19912
|
function getUseDefineForClassFields(compilerOptions) {
|
|
19913
|
-
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions)
|
|
19913
|
+
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
|
|
19914
19914
|
}
|
|
19915
19915
|
ts.getUseDefineForClassFields = getUseDefineForClassFields;
|
|
19916
19916
|
function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
|
|
@@ -55591,7 +55591,8 @@ var ts;
|
|
|
55591
55591
|
return false;
|
|
55592
55592
|
}
|
|
55593
55593
|
function getBaseTypeNodeOfClass(type) {
|
|
55594
|
-
|
|
55594
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55595
|
+
return decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55595
55596
|
}
|
|
55596
55597
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
55597
55598
|
var typeArgCount = ts.length(typeArgumentNodes);
|
|
@@ -55613,8 +55614,8 @@ var ts;
|
|
|
55613
55614
|
*/
|
|
55614
55615
|
function getBaseConstructorTypeOfClass(type) {
|
|
55615
55616
|
if (!type.resolvedBaseConstructorType) {
|
|
55616
|
-
var decl = type.symbol
|
|
55617
|
-
var extended = ts.getEffectiveBaseTypeNode(decl);
|
|
55617
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55618
|
+
var extended = decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55618
55619
|
var baseTypeNode = getBaseTypeNodeOfClass(type);
|
|
55619
55620
|
if (!baseTypeNode) {
|
|
55620
55621
|
return type.resolvedBaseConstructorType = undefinedType;
|
|
@@ -58251,6 +58252,8 @@ var ts;
|
|
|
58251
58252
|
case 205 /* PropertyAccessExpression */:
|
|
58252
58253
|
case 206 /* ElementAccessExpression */:
|
|
58253
58254
|
return traverse(node.expression);
|
|
58255
|
+
case 294 /* PropertyAssignment */:
|
|
58256
|
+
return traverse(node.initializer);
|
|
58254
58257
|
default:
|
|
58255
58258
|
return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);
|
|
58256
58259
|
}
|
|
@@ -72711,11 +72714,14 @@ var ts;
|
|
|
72711
72714
|
if (!ts.getContainingClass(privId)) {
|
|
72712
72715
|
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
72713
72716
|
}
|
|
72714
|
-
if (!ts.
|
|
72715
|
-
|
|
72716
|
-
|
|
72717
|
-
|
|
72718
|
-
|
|
72717
|
+
if (!ts.isForInStatement(privId.parent)) {
|
|
72718
|
+
if (!ts.isExpressionNode(privId)) {
|
|
72719
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);
|
|
72720
|
+
}
|
|
72721
|
+
var isInOperation = ts.isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101 /* InKeyword */;
|
|
72722
|
+
if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {
|
|
72723
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Cannot_find_name_0, ts.idText(privId));
|
|
72724
|
+
}
|
|
72719
72725
|
}
|
|
72720
72726
|
return false;
|
|
72721
72727
|
}
|
|
@@ -86102,7 +86108,7 @@ var ts;
|
|
|
86102
86108
|
if (prop.kind === 295 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) {
|
|
86103
86109
|
// having objectAssignmentInitializer is only valid in ObjectAssignmentPattern
|
|
86104
86110
|
// outside of destructuring it is a syntax error
|
|
86105
|
-
|
|
86111
|
+
grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);
|
|
86106
86112
|
}
|
|
86107
86113
|
if (name.kind === 80 /* PrivateIdentifier */) {
|
|
86108
86114
|
grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
@@ -92066,7 +92072,7 @@ var ts;
|
|
|
92066
92072
|
var compilerOptions = context.getCompilerOptions();
|
|
92067
92073
|
var languageVersion = ts.getEmitScriptTarget(compilerOptions);
|
|
92068
92074
|
var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);
|
|
92069
|
-
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion <
|
|
92075
|
+
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */;
|
|
92070
92076
|
// We don't need to transform `super` property access when targeting ES5, ES3 because
|
|
92071
92077
|
// the es2015 transformation handles those.
|
|
92072
92078
|
var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields) && languageVersion >= 2 /* ES2015 */;
|
|
@@ -92096,7 +92102,7 @@ var ts;
|
|
|
92096
92102
|
function transformSourceFile(node) {
|
|
92097
92103
|
var options = context.getCompilerOptions();
|
|
92098
92104
|
if (node.isDeclarationFile
|
|
92099
|
-
|| useDefineForClassFields && ts.getEmitScriptTarget(options)
|
|
92105
|
+
|| useDefineForClassFields && ts.getEmitScriptTarget(options) >= 9 /* ES2022 */) {
|
|
92100
92106
|
return node;
|
|
92101
92107
|
}
|
|
92102
92108
|
var visited = ts.visitEachChild(node, visitor, context);
|
|
@@ -92853,7 +92859,7 @@ var ts;
|
|
|
92853
92859
|
if (useDefineForClassFields) {
|
|
92854
92860
|
// If we are using define semantics and targeting ESNext or higher,
|
|
92855
92861
|
// then we don't need to transform any class properties.
|
|
92856
|
-
return languageVersion <
|
|
92862
|
+
return languageVersion < 9 /* ES2022 */;
|
|
92857
92863
|
}
|
|
92858
92864
|
return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);
|
|
92859
92865
|
}
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -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 = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211218";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -19705,7 +19705,7 @@ var ts;
|
|
|
19705
19705
|
}
|
|
19706
19706
|
ts.getAllowJSCompilerOption = getAllowJSCompilerOption;
|
|
19707
19707
|
function getUseDefineForClassFields(compilerOptions) {
|
|
19708
|
-
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions)
|
|
19708
|
+
return compilerOptions.useDefineForClassFields === undefined ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
|
|
19709
19709
|
}
|
|
19710
19710
|
ts.getUseDefineForClassFields = getUseDefineForClassFields;
|
|
19711
19711
|
function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {
|
|
@@ -55386,7 +55386,8 @@ var ts;
|
|
|
55386
55386
|
return false;
|
|
55387
55387
|
}
|
|
55388
55388
|
function getBaseTypeNodeOfClass(type) {
|
|
55389
|
-
|
|
55389
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55390
|
+
return decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55390
55391
|
}
|
|
55391
55392
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
55392
55393
|
var typeArgCount = ts.length(typeArgumentNodes);
|
|
@@ -55408,8 +55409,8 @@ var ts;
|
|
|
55408
55409
|
*/
|
|
55409
55410
|
function getBaseConstructorTypeOfClass(type) {
|
|
55410
55411
|
if (!type.resolvedBaseConstructorType) {
|
|
55411
|
-
var decl = type.symbol
|
|
55412
|
-
var extended = ts.getEffectiveBaseTypeNode(decl);
|
|
55412
|
+
var decl = ts.getClassLikeDeclarationOfSymbol(type.symbol);
|
|
55413
|
+
var extended = decl && ts.getEffectiveBaseTypeNode(decl);
|
|
55413
55414
|
var baseTypeNode = getBaseTypeNodeOfClass(type);
|
|
55414
55415
|
if (!baseTypeNode) {
|
|
55415
55416
|
return type.resolvedBaseConstructorType = undefinedType;
|
|
@@ -58046,6 +58047,8 @@ var ts;
|
|
|
58046
58047
|
case 205 /* PropertyAccessExpression */:
|
|
58047
58048
|
case 206 /* ElementAccessExpression */:
|
|
58048
58049
|
return traverse(node.expression);
|
|
58050
|
+
case 294 /* PropertyAssignment */:
|
|
58051
|
+
return traverse(node.initializer);
|
|
58049
58052
|
default:
|
|
58050
58053
|
return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);
|
|
58051
58054
|
}
|
|
@@ -72506,11 +72509,14 @@ var ts;
|
|
|
72506
72509
|
if (!ts.getContainingClass(privId)) {
|
|
72507
72510
|
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
72508
72511
|
}
|
|
72509
|
-
if (!ts.
|
|
72510
|
-
|
|
72511
|
-
|
|
72512
|
-
|
|
72513
|
-
|
|
72512
|
+
if (!ts.isForInStatement(privId.parent)) {
|
|
72513
|
+
if (!ts.isExpressionNode(privId)) {
|
|
72514
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);
|
|
72515
|
+
}
|
|
72516
|
+
var isInOperation = ts.isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 101 /* InKeyword */;
|
|
72517
|
+
if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) {
|
|
72518
|
+
return grammarErrorOnNode(privId, ts.Diagnostics.Cannot_find_name_0, ts.idText(privId));
|
|
72519
|
+
}
|
|
72514
72520
|
}
|
|
72515
72521
|
return false;
|
|
72516
72522
|
}
|
|
@@ -85897,7 +85903,7 @@ var ts;
|
|
|
85897
85903
|
if (prop.kind === 295 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) {
|
|
85898
85904
|
// having objectAssignmentInitializer is only valid in ObjectAssignmentPattern
|
|
85899
85905
|
// outside of destructuring it is a syntax error
|
|
85900
|
-
|
|
85906
|
+
grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);
|
|
85901
85907
|
}
|
|
85902
85908
|
if (name.kind === 80 /* PrivateIdentifier */) {
|
|
85903
85909
|
grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
|
|
@@ -91861,7 +91867,7 @@ var ts;
|
|
|
91861
91867
|
var compilerOptions = context.getCompilerOptions();
|
|
91862
91868
|
var languageVersion = ts.getEmitScriptTarget(compilerOptions);
|
|
91863
91869
|
var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);
|
|
91864
|
-
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion <
|
|
91870
|
+
var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */;
|
|
91865
91871
|
// We don't need to transform `super` property access when targeting ES5, ES3 because
|
|
91866
91872
|
// the es2015 transformation handles those.
|
|
91867
91873
|
var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields) && languageVersion >= 2 /* ES2015 */;
|
|
@@ -91891,7 +91897,7 @@ var ts;
|
|
|
91891
91897
|
function transformSourceFile(node) {
|
|
91892
91898
|
var options = context.getCompilerOptions();
|
|
91893
91899
|
if (node.isDeclarationFile
|
|
91894
|
-
|| useDefineForClassFields && ts.getEmitScriptTarget(options)
|
|
91900
|
+
|| useDefineForClassFields && ts.getEmitScriptTarget(options) >= 9 /* ES2022 */) {
|
|
91895
91901
|
return node;
|
|
91896
91902
|
}
|
|
91897
91903
|
var visited = ts.visitEachChild(node, visitor, context);
|
|
@@ -92648,7 +92654,7 @@ var ts;
|
|
|
92648
92654
|
if (useDefineForClassFields) {
|
|
92649
92655
|
// If we are using define semantics and targeting ESNext or higher,
|
|
92650
92656
|
// then we don't need to transform any class properties.
|
|
92651
|
-
return languageVersion <
|
|
92657
|
+
return languageVersion < 9 /* ES2022 */;
|
|
92652
92658
|
}
|
|
92653
92659
|
return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);
|
|
92654
92660
|
}
|
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.6.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20211218",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|