typescript 4.8.0-dev.20220613 → 4.8.0-dev.20220614

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
@@ -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.8";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220613";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220614";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -54118,7 +54118,7 @@ var ts;
54118
54118
  return true;
54119
54119
  if (s & 65536 && (!strictNullChecks && !(t & 3145728) || t & 65536))
54120
54120
  return true;
54121
- if (s & 524288 && t & 67108864 && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source)))
54121
+ if (s & 524288 && t & 67108864 && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(ts.getObjectFlags(source) & 8192)))
54122
54122
  return true;
54123
54123
  if (relation === assignableRelation || relation === comparableRelation) {
54124
54124
  if (s & 1)
@@ -54728,7 +54728,7 @@ var ts;
54728
54728
  return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068) && !(target.flags & 131068));
54729
54729
  }
54730
54730
  if (target.flags & 2097152) {
54731
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2);
54731
+ return typeRelatedToEachType(source, target, reportErrors, 2);
54732
54732
  }
54733
54733
  if (relation === comparableRelation && target.flags & 131068) {
54734
54734
  var constraints = ts.sameMap(source.types, getBaseConstraintOrType);
@@ -101452,9 +101452,11 @@ var ts;
101452
101452
  }
101453
101453
  function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
101454
101454
  ts.Debug.assert(!!resolution.refCount);
101455
+ var affectingLocations = resolution.affectingLocations;
101456
+ if (!affectingLocations.length)
101457
+ return;
101455
101458
  if (addToResolutionsWithOnlyAffectingLocations)
101456
101459
  resolutionsWithOnlyAffectingLocations.push(resolution);
101457
- var affectingLocations = resolution.affectingLocations;
101458
101460
  for (var _i = 0, affectingLocations_1 = affectingLocations; _i < affectingLocations_1.length; _i++) {
101459
101461
  var affectingLocation = affectingLocations_1[_i];
101460
101462
  createFileWatcherOfAffectingLocation(affectingLocation);
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.20220613";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20220614";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -64918,7 +64918,7 @@ var ts;
64918
64918
  return true;
64919
64919
  if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */))
64920
64920
  return true;
64921
- if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source)))
64921
+ if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(ts.getObjectFlags(source) & 8192 /* FreshLiteral */)))
64922
64922
  return true;
64923
64923
  if (relation === assignableRelation || relation === comparableRelation) {
64924
64924
  if (s & 1 /* Any */)
@@ -65621,7 +65621,7 @@ var ts;
65621
65621
  return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068 /* Primitive */) && !(target.flags & 131068 /* Primitive */));
65622
65622
  }
65623
65623
  if (target.flags & 2097152 /* Intersection */) {
65624
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2 /* Target */);
65624
+ return typeRelatedToEachType(source, target, reportErrors, 2 /* Target */);
65625
65625
  }
65626
65626
  // Source is an intersection. For the comparable relation, if the target is a primitive type we hoist the
65627
65627
  // constraints of all non-primitive types in the source into a new intersection. We do this because the
@@ -122458,9 +122458,11 @@ var ts;
122458
122458
  }
122459
122459
  function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
122460
122460
  ts.Debug.assert(!!resolution.refCount);
122461
+ var affectingLocations = resolution.affectingLocations;
122462
+ if (!affectingLocations.length)
122463
+ return;
122461
122464
  if (addToResolutionsWithOnlyAffectingLocations)
122462
122465
  resolutionsWithOnlyAffectingLocations.push(resolution);
122463
- var affectingLocations = resolution.affectingLocations;
122464
122466
  // Watch package json
122465
122467
  for (var _i = 0, affectingLocations_1 = affectingLocations; _i < affectingLocations_1.length; _i++) {
122466
122468
  var affectingLocation = affectingLocations_1[_i];
@@ -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.20220613";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220614";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -65112,7 +65112,7 @@ var ts;
65112
65112
  return true;
65113
65113
  if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */))
65114
65114
  return true;
65115
- if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source)))
65115
+ if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(ts.getObjectFlags(source) & 8192 /* FreshLiteral */)))
65116
65116
  return true;
65117
65117
  if (relation === assignableRelation || relation === comparableRelation) {
65118
65118
  if (s & 1 /* Any */)
@@ -65815,7 +65815,7 @@ var ts;
65815
65815
  return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068 /* Primitive */) && !(target.flags & 131068 /* Primitive */));
65816
65816
  }
65817
65817
  if (target.flags & 2097152 /* Intersection */) {
65818
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2 /* Target */);
65818
+ return typeRelatedToEachType(source, target, reportErrors, 2 /* Target */);
65819
65819
  }
65820
65820
  // Source is an intersection. For the comparable relation, if the target is a primitive type we hoist the
65821
65821
  // constraints of all non-primitive types in the source into a new intersection. We do this because the
@@ -122652,9 +122652,11 @@ var ts;
122652
122652
  }
122653
122653
  function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
122654
122654
  ts.Debug.assert(!!resolution.refCount);
122655
+ var affectingLocations = resolution.affectingLocations;
122656
+ if (!affectingLocations.length)
122657
+ return;
122655
122658
  if (addToResolutionsWithOnlyAffectingLocations)
122656
122659
  resolutionsWithOnlyAffectingLocations.push(resolution);
122657
- var affectingLocations = resolution.affectingLocations;
122658
122660
  // Watch package json
122659
122661
  for (var _i = 0, affectingLocations_1 = affectingLocations; _i < affectingLocations_1.length; _i++) {
122660
122662
  var affectingLocation = affectingLocations_1[_i];
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.20220613";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220614";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -65112,7 +65112,7 @@ var ts;
65112
65112
  return true;
65113
65113
  if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */))
65114
65114
  return true;
65115
- if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source)))
65115
+ if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(ts.getObjectFlags(source) & 8192 /* FreshLiteral */)))
65116
65116
  return true;
65117
65117
  if (relation === assignableRelation || relation === comparableRelation) {
65118
65118
  if (s & 1 /* Any */)
@@ -65815,7 +65815,7 @@ var ts;
65815
65815
  return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068 /* Primitive */) && !(target.flags & 131068 /* Primitive */));
65816
65816
  }
65817
65817
  if (target.flags & 2097152 /* Intersection */) {
65818
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2 /* Target */);
65818
+ return typeRelatedToEachType(source, target, reportErrors, 2 /* Target */);
65819
65819
  }
65820
65820
  // Source is an intersection. For the comparable relation, if the target is a primitive type we hoist the
65821
65821
  // constraints of all non-primitive types in the source into a new intersection. We do this because the
@@ -122652,9 +122652,11 @@ var ts;
122652
122652
  }
122653
122653
  function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
122654
122654
  ts.Debug.assert(!!resolution.refCount);
122655
+ var affectingLocations = resolution.affectingLocations;
122656
+ if (!affectingLocations.length)
122657
+ return;
122655
122658
  if (addToResolutionsWithOnlyAffectingLocations)
122656
122659
  resolutionsWithOnlyAffectingLocations.push(resolution);
122657
- var affectingLocations = resolution.affectingLocations;
122658
122660
  // Watch package json
122659
122661
  for (var _i = 0, affectingLocations_1 = affectingLocations; _i < affectingLocations_1.length; _i++) {
122660
122662
  var affectingLocation = affectingLocations_1[_i];
@@ -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.20220613";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20220614";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -65112,7 +65112,7 @@ var ts;
65112
65112
  return true;
65113
65113
  if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */))
65114
65114
  return true;
65115
- if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source)))
65115
+ if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(ts.getObjectFlags(source) & 8192 /* FreshLiteral */)))
65116
65116
  return true;
65117
65117
  if (relation === assignableRelation || relation === comparableRelation) {
65118
65118
  if (s & 1 /* Any */)
@@ -65815,7 +65815,7 @@ var ts;
65815
65815
  return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068 /* Primitive */) && !(target.flags & 131068 /* Primitive */));
65816
65816
  }
65817
65817
  if (target.flags & 2097152 /* Intersection */) {
65818
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2 /* Target */);
65818
+ return typeRelatedToEachType(source, target, reportErrors, 2 /* Target */);
65819
65819
  }
65820
65820
  // Source is an intersection. For the comparable relation, if the target is a primitive type we hoist the
65821
65821
  // constraints of all non-primitive types in the source into a new intersection. We do this because the
@@ -122652,9 +122652,11 @@ var ts;
122652
122652
  }
122653
122653
  function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
122654
122654
  ts.Debug.assert(!!resolution.refCount);
122655
+ var affectingLocations = resolution.affectingLocations;
122656
+ if (!affectingLocations.length)
122657
+ return;
122655
122658
  if (addToResolutionsWithOnlyAffectingLocations)
122656
122659
  resolutionsWithOnlyAffectingLocations.push(resolution);
122657
- var affectingLocations = resolution.affectingLocations;
122658
122660
  // Watch package json
122659
122661
  for (var _i = 0, affectingLocations_1 = affectingLocations; _i < affectingLocations_1.length; _i++) {
122660
122662
  var affectingLocation = affectingLocations_1[_i];
@@ -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.20220613";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220614";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -64907,7 +64907,7 @@ var ts;
64907
64907
  return true;
64908
64908
  if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */))
64909
64909
  return true;
64910
- if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source)))
64910
+ if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(ts.getObjectFlags(source) & 8192 /* FreshLiteral */)))
64911
64911
  return true;
64912
64912
  if (relation === assignableRelation || relation === comparableRelation) {
64913
64913
  if (s & 1 /* Any */)
@@ -65610,7 +65610,7 @@ var ts;
65610
65610
  return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068 /* Primitive */) && !(target.flags & 131068 /* Primitive */));
65611
65611
  }
65612
65612
  if (target.flags & 2097152 /* Intersection */) {
65613
- return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2 /* Target */);
65613
+ return typeRelatedToEachType(source, target, reportErrors, 2 /* Target */);
65614
65614
  }
65615
65615
  // Source is an intersection. For the comparable relation, if the target is a primitive type we hoist the
65616
65616
  // constraints of all non-primitive types in the source into a new intersection. We do this because the
@@ -122447,9 +122447,11 @@ var ts;
122447
122447
  }
122448
122448
  function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) {
122449
122449
  ts.Debug.assert(!!resolution.refCount);
122450
+ var affectingLocations = resolution.affectingLocations;
122451
+ if (!affectingLocations.length)
122452
+ return;
122450
122453
  if (addToResolutionsWithOnlyAffectingLocations)
122451
122454
  resolutionsWithOnlyAffectingLocations.push(resolution);
122452
- var affectingLocations = resolution.affectingLocations;
122453
122455
  // Watch package json
122454
122456
  for (var _i = 0, affectingLocations_1 = affectingLocations; _i < affectingLocations_1.length; _i++) {
122455
122457
  var affectingLocation = affectingLocations_1[_i];
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.8.0-dev.20220613",
5
+ "version": "4.8.0-dev.20220614",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [