typescript 6.0.0-dev.20251203 → 6.0.0-dev.20251204
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/SECURITY.md +2 -4
- package/lib/_tsc.js +11 -3
- package/lib/typescript.js +11 -3
- package/package.json +2 -2
package/SECURITY.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Security
|
|
4
4
|
|
|
5
|
-
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations
|
|
5
|
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
|
|
6
6
|
|
|
7
7
|
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
|
|
8
8
|
|
|
@@ -12,9 +12,7 @@ If you believe you have found a security vulnerability in any Microsoft-owned re
|
|
|
12
12
|
|
|
13
13
|
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
|
|
14
14
|
|
|
15
|
-
If you
|
|
16
|
-
|
|
17
|
-
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
|
|
15
|
+
You should receive a response within 24 hours. If for some reason you do not, please follow up using the messaging functionality found at the bottom of the Activity tab on your vulnerability report on [https://msrc.microsoft.com/report/vulnerability](https://msrc.microsoft.com/report/vulnerability/) or via email as described in the instructions at the bottom of [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc) or on MSRC's [FAQ page for reporting an issue](https://www.microsoft.com/en-us/msrc/faqs-report-an-issue).
|
|
18
16
|
|
|
19
17
|
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
20
18
|
|
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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20251204`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -69142,9 +69142,17 @@ function createTypeChecker(host) {
|
|
|
69142
69142
|
const constraint = getConstraintOfTypeParameter(inference.typeParameter);
|
|
69143
69143
|
if (constraint) {
|
|
69144
69144
|
const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper);
|
|
69145
|
-
if (
|
|
69146
|
-
|
|
69145
|
+
if (inferredType) {
|
|
69146
|
+
const constraintWithThis = getTypeWithThisArgument(instantiatedConstraint, inferredType);
|
|
69147
|
+
if (!context.compareTypes(inferredType, constraintWithThis)) {
|
|
69148
|
+
const filteredByConstraint = inference.priority === 128 /* ReturnType */ ? filterType(inferredType, (t) => !!context.compareTypes(t, constraintWithThis)) : neverType;
|
|
69149
|
+
inferredType = !(filteredByConstraint.flags & 131072 /* Never */) ? filteredByConstraint : void 0;
|
|
69150
|
+
}
|
|
69151
|
+
}
|
|
69152
|
+
if (!inferredType) {
|
|
69153
|
+
inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint;
|
|
69147
69154
|
}
|
|
69155
|
+
inference.inferredType = inferredType;
|
|
69148
69156
|
}
|
|
69149
69157
|
clearActiveMapperCaches();
|
|
69150
69158
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2286
2286
|
|
|
2287
2287
|
// src/compiler/corePublic.ts
|
|
2288
2288
|
var versionMajorMinor = "6.0";
|
|
2289
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2289
|
+
var version = `${versionMajorMinor}.0-dev.20251204`;
|
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -73770,9 +73770,17 @@ function createTypeChecker(host) {
|
|
|
73770
73770
|
const constraint = getConstraintOfTypeParameter(inference.typeParameter);
|
|
73771
73771
|
if (constraint) {
|
|
73772
73772
|
const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper);
|
|
73773
|
-
if (
|
|
73774
|
-
|
|
73773
|
+
if (inferredType) {
|
|
73774
|
+
const constraintWithThis = getTypeWithThisArgument(instantiatedConstraint, inferredType);
|
|
73775
|
+
if (!context.compareTypes(inferredType, constraintWithThis)) {
|
|
73776
|
+
const filteredByConstraint = inference.priority === 128 /* ReturnType */ ? filterType(inferredType, (t) => !!context.compareTypes(t, constraintWithThis)) : neverType;
|
|
73777
|
+
inferredType = !(filteredByConstraint.flags & 131072 /* Never */) ? filteredByConstraint : void 0;
|
|
73778
|
+
}
|
|
73779
|
+
}
|
|
73780
|
+
if (!inferredType) {
|
|
73781
|
+
inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint;
|
|
73775
73782
|
}
|
|
73783
|
+
inference.inferredType = inferredType;
|
|
73776
73784
|
}
|
|
73777
73785
|
clearActiveMapperCaches();
|
|
73778
73786
|
}
|
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": "6.0.0-dev.
|
|
5
|
+
"version": "6.0.0-dev.20251204",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "4ef237895d6479bed3e02448a9792ade7308766f"
|
|
119
119
|
}
|