typescript 5.4.0-dev.20240118 → 5.4.0-dev.20240119
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 +1 -1
- package/lib/tsserver.js +5 -2
- package/lib/typescript.js +5 -2
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240119`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
package/lib/tsserver.js
CHANGED
|
@@ -2341,7 +2341,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2341
2341
|
|
|
2342
2342
|
// src/compiler/corePublic.ts
|
|
2343
2343
|
var versionMajorMinor = "5.4";
|
|
2344
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2344
|
+
var version = `${versionMajorMinor}.0-dev.20240119`;
|
|
2345
2345
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2346
2346
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2347
2347
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -140582,7 +140582,7 @@ function isDeclarationExported(declaration) {
|
|
|
140582
140582
|
function getReferenceNodes(declaration, checker, file) {
|
|
140583
140583
|
const references = [];
|
|
140584
140584
|
const cannotInline = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(declaration.name, checker, file, (ref) => {
|
|
140585
|
-
if (ts_FindAllReferences_exports.isWriteAccessForReference(ref)) {
|
|
140585
|
+
if (ts_FindAllReferences_exports.isWriteAccessForReference(ref) && !isShorthandPropertyAssignment(ref.parent)) {
|
|
140586
140586
|
return true;
|
|
140587
140587
|
}
|
|
140588
140588
|
if (isExportSpecifier(ref.parent) || isExportAssignment(ref.parent)) {
|
|
@@ -140610,6 +140610,9 @@ function getReplacementExpression(reference, replacement) {
|
|
|
140610
140610
|
if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) {
|
|
140611
140611
|
return factory.createParenthesizedExpression(replacement);
|
|
140612
140612
|
}
|
|
140613
|
+
if (isIdentifier(reference) && isShorthandPropertyAssignment(parent2)) {
|
|
140614
|
+
return factory.createPropertyAssignment(reference, replacement);
|
|
140615
|
+
}
|
|
140613
140616
|
return replacement;
|
|
140614
140617
|
}
|
|
140615
140618
|
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.4";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20240119`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -138907,7 +138907,7 @@ ${lanes.join("\n")}
|
|
|
138907
138907
|
function getReferenceNodes(declaration, checker, file) {
|
|
138908
138908
|
const references = [];
|
|
138909
138909
|
const cannotInline = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(declaration.name, checker, file, (ref) => {
|
|
138910
|
-
if (ts_FindAllReferences_exports.isWriteAccessForReference(ref)) {
|
|
138910
|
+
if (ts_FindAllReferences_exports.isWriteAccessForReference(ref) && !isShorthandPropertyAssignment(ref.parent)) {
|
|
138911
138911
|
return true;
|
|
138912
138912
|
}
|
|
138913
138913
|
if (isExportSpecifier(ref.parent) || isExportAssignment(ref.parent)) {
|
|
@@ -138935,6 +138935,9 @@ ${lanes.join("\n")}
|
|
|
138935
138935
|
if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) {
|
|
138936
138936
|
return factory.createParenthesizedExpression(replacement);
|
|
138937
138937
|
}
|
|
138938
|
+
if (isIdentifier(reference) && isShorthandPropertyAssignment(parent2)) {
|
|
138939
|
+
return factory.createPropertyAssignment(reference, replacement);
|
|
138940
|
+
}
|
|
138938
138941
|
return replacement;
|
|
138939
138942
|
}
|
|
138940
138943
|
var refactorName4, refactorDescription, inlineVariableAction;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.4";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20240119`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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": "5.4.0-dev.
|
|
5
|
+
"version": "5.4.0-dev.20240119",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "55153b027490cea949d50747b4b4637029120777"
|
|
117
117
|
}
|