typescript 5.4.0-dev.20240219 → 5.5.0-dev.20240221

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 CHANGED
@@ -17,8 +17,8 @@ and limitations under the License.
17
17
  "use strict";
18
18
 
19
19
  // src/compiler/corePublic.ts
20
- var versionMajorMinor = "5.4";
21
- var version = `${versionMajorMinor}.0-dev.20240219`;
20
+ var versionMajorMinor = "5.5";
21
+ var version = `${versionMajorMinor}.0-dev.20240221`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
package/lib/tsserver.js CHANGED
@@ -1231,6 +1231,7 @@ __export(server_exports, {
1231
1231
  isBindingOrAssignmentPattern: () => isBindingOrAssignmentPattern,
1232
1232
  isBindingPattern: () => isBindingPattern,
1233
1233
  isBlock: () => isBlock,
1234
+ isBlockLike: () => isBlockLike,
1234
1235
  isBlockOrCatchScoped: () => isBlockOrCatchScoped,
1235
1236
  isBlockScope: () => isBlockScope,
1236
1237
  isBlockScopedContainerTopLevel: () => isBlockScopedContainerTopLevel,
@@ -2339,8 +2340,8 @@ __export(server_exports, {
2339
2340
  module.exports = __toCommonJS(server_exports);
2340
2341
 
2341
2342
  // src/compiler/corePublic.ts
2342
- var versionMajorMinor = "5.4";
2343
- var version = `${versionMajorMinor}.0-dev.20240219`;
2343
+ var versionMajorMinor = "5.5";
2344
+ var version = `${versionMajorMinor}.0-dev.20240221`;
2344
2345
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2345
2346
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2346
2347
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -135470,6 +135471,17 @@ function fileShouldUseJavaScriptRequire(file, program, host, preferRequire) {
135470
135471
  }
135471
135472
  return preferRequire;
135472
135473
  }
135474
+ function isBlockLike(node) {
135475
+ switch (node.kind) {
135476
+ case 241 /* Block */:
135477
+ case 312 /* SourceFile */:
135478
+ case 268 /* ModuleBlock */:
135479
+ case 296 /* CaseClause */:
135480
+ return true;
135481
+ default:
135482
+ return false;
135483
+ }
135484
+ }
135473
135485
 
135474
135486
  // src/services/exportInfoMap.ts
135475
135487
  var ImportKind = /* @__PURE__ */ ((ImportKind2) => {
@@ -140819,6 +140831,14 @@ registerRefactor(refactorNameForMoveToFile, {
140819
140831
  if (!interactiveRefactorArguments) {
140820
140832
  return emptyArray;
140821
140833
  }
140834
+ if (context.endPosition !== void 0) {
140835
+ const file = context.file;
140836
+ const startNodeAncestor = findAncestor(getTokenAtPosition(file, context.startPosition), isBlockLike);
140837
+ const endNodeAncestor = findAncestor(getTokenAtPosition(file, context.endPosition), isBlockLike);
140838
+ if (startNodeAncestor && !isSourceFile(startNodeAncestor) && endNodeAncestor && !isSourceFile(endNodeAncestor)) {
140839
+ return emptyArray;
140840
+ }
140841
+ }
140822
140842
  if (context.preferences.allowTextChangesInNewFiles && statements) {
140823
140843
  return [{ name: refactorNameForMoveToFile, description: description2, actions: [moveToFileAction] }];
140824
140844
  }
@@ -144896,17 +144916,6 @@ function isExtractableExpression(node) {
144896
144916
  }
144897
144917
  return true;
144898
144918
  }
144899
- function isBlockLike(node) {
144900
- switch (node.kind) {
144901
- case 241 /* Block */:
144902
- case 312 /* SourceFile */:
144903
- case 268 /* ModuleBlock */:
144904
- case 296 /* CaseClause */:
144905
- return true;
144906
- default:
144907
- return false;
144908
- }
144909
- }
144910
144919
  function isInJSXContent(node) {
144911
144920
  return isStringLiteralJsxAttribute(node) || (isJsxElement(node) || isJsxSelfClosingElement(node) || isJsxFragment(node)) && (isJsxElement(node.parent) || isJsxFragment(node.parent));
144912
144921
  }
@@ -175656,6 +175665,7 @@ __export(ts_exports2, {
175656
175665
  isBindingOrAssignmentPattern: () => isBindingOrAssignmentPattern,
175657
175666
  isBindingPattern: () => isBindingPattern,
175658
175667
  isBlock: () => isBlock,
175668
+ isBlockLike: () => isBlockLike,
175659
175669
  isBlockOrCatchScoped: () => isBlockOrCatchScoped,
175660
175670
  isBlockScope: () => isBlockScope,
175661
175671
  isBlockScopedContainerTopLevel: () => isBlockScopedContainerTopLevel,
@@ -190480,6 +190490,7 @@ start(initializeNodeSystem(), require("os").platform());
190480
190490
  isBindingOrAssignmentPattern,
190481
190491
  isBindingPattern,
190482
190492
  isBlock,
190493
+ isBlockLike,
190483
190494
  isBlockOrCatchScoped,
190484
190495
  isBlockScope,
190485
190496
  isBlockScopedContainerTopLevel,
@@ -4139,7 +4139,7 @@ declare namespace ts {
4139
4139
  responseRequired?: boolean;
4140
4140
  }
4141
4141
  }
4142
- const versionMajorMinor = "5.4";
4142
+ const versionMajorMinor = "5.5";
4143
4143
  /** The version of the TypeScript compiler release */
4144
4144
  const version: string;
4145
4145
  /**
package/lib/typescript.js CHANGED
@@ -34,8 +34,8 @@ var ts = (() => {
34
34
  var init_corePublic = __esm({
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
- versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-dev.20240219`;
37
+ versionMajorMinor = "5.5";
38
+ version = `${versionMajorMinor}.0-dev.20240221`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -133717,6 +133717,17 @@ ${lanes.join("\n")}
133717
133717
  }
133718
133718
  return preferRequire;
133719
133719
  }
133720
+ function isBlockLike(node) {
133721
+ switch (node.kind) {
133722
+ case 241 /* Block */:
133723
+ case 312 /* SourceFile */:
133724
+ case 268 /* ModuleBlock */:
133725
+ case 296 /* CaseClause */:
133726
+ return true;
133727
+ default:
133728
+ return false;
133729
+ }
133730
+ }
133720
133731
  var scanner, SemanticMeaning, tripleSlashDirectivePrefixRegex, typeKeywords, QuotePreference, displayPartWriter, lineFeed2, ANONYMOUS, syntaxMayBeASICandidate;
133721
133732
  var init_utilities4 = __esm({
133722
133733
  "src/services/utilities.ts"() {
@@ -140162,6 +140173,14 @@ ${lanes.join("\n")}
140162
140173
  if (!interactiveRefactorArguments) {
140163
140174
  return emptyArray;
140164
140175
  }
140176
+ if (context.endPosition !== void 0) {
140177
+ const file = context.file;
140178
+ const startNodeAncestor = findAncestor(getTokenAtPosition(file, context.startPosition), isBlockLike);
140179
+ const endNodeAncestor = findAncestor(getTokenAtPosition(file, context.endPosition), isBlockLike);
140180
+ if (startNodeAncestor && !isSourceFile(startNodeAncestor) && endNodeAncestor && !isSourceFile(endNodeAncestor)) {
140181
+ return emptyArray;
140182
+ }
140183
+ }
140165
140184
  if (context.preferences.allowTextChangesInNewFiles && statements) {
140166
140185
  return [{ name: refactorNameForMoveToFile, description: description2, actions: [moveToFileAction] }];
140167
140186
  }
@@ -143321,17 +143340,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
143321
143340
  }
143322
143341
  return true;
143323
143342
  }
143324
- function isBlockLike(node) {
143325
- switch (node.kind) {
143326
- case 241 /* Block */:
143327
- case 312 /* SourceFile */:
143328
- case 268 /* ModuleBlock */:
143329
- case 296 /* CaseClause */:
143330
- return true;
143331
- default:
143332
- return false;
143333
- }
143334
- }
143335
143343
  function isInJSXContent(node) {
143336
143344
  return isStringLiteralJsxAttribute(node) || (isJsxElement(node) || isJsxSelfClosingElement(node) || isJsxFragment(node)) && (isJsxElement(node.parent) || isJsxFragment(node.parent));
143337
143345
  }
@@ -187242,6 +187250,7 @@ ${e.message}`;
187242
187250
  isBindingOrAssignmentPattern: () => isBindingOrAssignmentPattern,
187243
187251
  isBindingPattern: () => isBindingPattern,
187244
187252
  isBlock: () => isBlock,
187253
+ isBlockLike: () => isBlockLike,
187245
187254
  isBlockOrCatchScoped: () => isBlockOrCatchScoped,
187246
187255
  isBlockScope: () => isBlockScope,
187247
187256
  isBlockScopedContainerTopLevel: () => isBlockScopedContainerTopLevel,
@@ -189663,6 +189672,7 @@ ${e.message}`;
189663
189672
  isBindingOrAssignmentPattern: () => isBindingOrAssignmentPattern,
189664
189673
  isBindingPattern: () => isBindingPattern,
189665
189674
  isBlock: () => isBlock,
189675
+ isBlockLike: () => isBlockLike,
189666
189676
  isBlockOrCatchScoped: () => isBlockOrCatchScoped,
189667
189677
  isBlockScope: () => isBlockScope,
189668
189678
  isBlockScopedContainerTopLevel: () => isBlockScopedContainerTopLevel,
@@ -53,8 +53,8 @@ var fs = __toESM(require("fs"));
53
53
  var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
- var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-dev.20240219`;
56
+ var versionMajorMinor = "5.5";
57
+ var version = `${versionMajorMinor}.0-dev.20240221`;
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.20240219",
5
+ "version": "5.5.0-dev.20240221",
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": "d04e3489b0d8e6bc9a8a9396a633632a5a467328"
116
+ "gitHead": "35a88398013c3dac4a94fa43e43f5023b1339f40"
117
117
  }