typescript 4.8.0-dev.20220720 → 4.8.0-dev.20220721
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/lib.dom.d.ts +2 -2
- package/lib/lib.webworker.d.ts +2 -2
- package/lib/tsc.js +4 -3
- package/lib/tsserver.js +4 -3
- package/lib/tsserverlibrary.js +4 -3
- package/lib/typescript.js +4 -3
- package/lib/typescriptServices.js +4 -3
- package/lib/typingsInstaller.js +4 -3
- package/package.json +1 -1
package/lib/lib.dom.d.ts
CHANGED
|
@@ -13848,11 +13848,11 @@ declare var SubmitEvent: {
|
|
|
13848
13848
|
* Available only in secure contexts.
|
|
13849
13849
|
*/
|
|
13850
13850
|
interface SubtleCrypto {
|
|
13851
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
13851
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13852
13852
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
13853
13853
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
13854
13854
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
13855
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
13855
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13856
13856
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
13857
13857
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
13858
13858
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -3008,11 +3008,11 @@ declare var StorageManager: {
|
|
|
3008
3008
|
* Available only in secure contexts.
|
|
3009
3009
|
*/
|
|
3010
3010
|
interface SubtleCrypto {
|
|
3011
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
3011
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
3012
3012
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
3013
3013
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
3014
3014
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
3015
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
3015
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
3016
3016
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
3017
3017
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
3018
3018
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
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.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220721";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -41385,7 +41385,7 @@ var ts;
|
|
|
41385
41385
|
}
|
|
41386
41386
|
}
|
|
41387
41387
|
function checkAndReportErrorForInvalidInitializer() {
|
|
41388
|
-
if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions)
|
|
41388
|
+
if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9)) {
|
|
41389
41389
|
error(errorLocation, errorLocation && propertyWithInvalidInitializer.type && ts.textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos)
|
|
41390
41390
|
? ts.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor
|
|
41391
41391
|
: ts.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, ts.declarationNameToString(propertyWithInvalidInitializer.name), diagnosticName(nameArg));
|
|
@@ -78644,7 +78644,8 @@ var ts;
|
|
|
78644
78644
|
else {
|
|
78645
78645
|
statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
|
|
78646
78646
|
}
|
|
78647
|
-
|
|
78647
|
+
var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
|
|
78648
|
+
ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
|
|
78648
78649
|
statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
|
|
78649
78650
|
var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), true);
|
|
78650
78651
|
ts.setTextRange(block, body);
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
112
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220721";
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -50437,7 +50437,7 @@ var ts;
|
|
|
50437
50437
|
// 1. When result is undefined, after checking for a missing "this."
|
|
50438
50438
|
// 2. When result is defined
|
|
50439
50439
|
function checkAndReportErrorForInvalidInitializer() {
|
|
50440
|
-
if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions)
|
|
50440
|
+
if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) {
|
|
50441
50441
|
// We have a match, but the reference occurred within a property initializer and the identifier also binds
|
|
50442
50442
|
// to a local variable in the constructor where the code will be emitted. Note that this is actually allowed
|
|
50443
50443
|
// with ESNext+useDefineForClassFields because the scope semantics are different.
|
|
@@ -93512,7 +93512,8 @@ var ts;
|
|
|
93512
93512
|
statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
|
|
93513
93513
|
}
|
|
93514
93514
|
// Add remaining statements from the body, skipping the super() call if it was found and any (already added) prologue statements
|
|
93515
|
-
|
|
93515
|
+
var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
|
|
93516
|
+
ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
|
|
93516
93517
|
// End the lexical environment.
|
|
93517
93518
|
statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
|
|
93518
93519
|
var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), /*multiLine*/ true);
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -303,7 +303,7 @@ var ts;
|
|
|
303
303
|
// The following is baselined as a literal template type without intervention
|
|
304
304
|
/** The version of the TypeScript compiler release */
|
|
305
305
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
306
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
306
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220721";
|
|
307
307
|
/* @internal */
|
|
308
308
|
var Comparison;
|
|
309
309
|
(function (Comparison) {
|
|
@@ -50631,7 +50631,7 @@ var ts;
|
|
|
50631
50631
|
// 1. When result is undefined, after checking for a missing "this."
|
|
50632
50632
|
// 2. When result is defined
|
|
50633
50633
|
function checkAndReportErrorForInvalidInitializer() {
|
|
50634
|
-
if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions)
|
|
50634
|
+
if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) {
|
|
50635
50635
|
// We have a match, but the reference occurred within a property initializer and the identifier also binds
|
|
50636
50636
|
// to a local variable in the constructor where the code will be emitted. Note that this is actually allowed
|
|
50637
50637
|
// with ESNext+useDefineForClassFields because the scope semantics are different.
|
|
@@ -93706,7 +93706,8 @@ var ts;
|
|
|
93706
93706
|
statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
|
|
93707
93707
|
}
|
|
93708
93708
|
// Add remaining statements from the body, skipping the super() call if it was found and any (already added) prologue statements
|
|
93709
|
-
|
|
93709
|
+
var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
|
|
93710
|
+
ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
|
|
93710
93711
|
// End the lexical environment.
|
|
93711
93712
|
statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
|
|
93712
93713
|
var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), /*multiLine*/ true);
|
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.20220721";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -50622,7 +50622,7 @@ var ts;
|
|
|
50622
50622
|
// 1. When result is undefined, after checking for a missing "this."
|
|
50623
50623
|
// 2. When result is defined
|
|
50624
50624
|
function checkAndReportErrorForInvalidInitializer() {
|
|
50625
|
-
if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions)
|
|
50625
|
+
if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) {
|
|
50626
50626
|
// We have a match, but the reference occurred within a property initializer and the identifier also binds
|
|
50627
50627
|
// to a local variable in the constructor where the code will be emitted. Note that this is actually allowed
|
|
50628
50628
|
// with ESNext+useDefineForClassFields because the scope semantics are different.
|
|
@@ -93697,7 +93697,8 @@ var ts;
|
|
|
93697
93697
|
statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
|
|
93698
93698
|
}
|
|
93699
93699
|
// Add remaining statements from the body, skipping the super() call if it was found and any (already added) prologue statements
|
|
93700
|
-
|
|
93700
|
+
var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
|
|
93701
|
+
ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
|
|
93701
93702
|
// End the lexical environment.
|
|
93702
93703
|
statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
|
|
93703
93704
|
var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), /*multiLine*/ true);
|
|
@@ -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.20220721";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -50622,7 +50622,7 @@ var ts;
|
|
|
50622
50622
|
// 1. When result is undefined, after checking for a missing "this."
|
|
50623
50623
|
// 2. When result is defined
|
|
50624
50624
|
function checkAndReportErrorForInvalidInitializer() {
|
|
50625
|
-
if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions)
|
|
50625
|
+
if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) {
|
|
50626
50626
|
// We have a match, but the reference occurred within a property initializer and the identifier also binds
|
|
50627
50627
|
// to a local variable in the constructor where the code will be emitted. Note that this is actually allowed
|
|
50628
50628
|
// with ESNext+useDefineForClassFields because the scope semantics are different.
|
|
@@ -93697,7 +93697,8 @@ var ts;
|
|
|
93697
93697
|
statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
|
|
93698
93698
|
}
|
|
93699
93699
|
// Add remaining statements from the body, skipping the super() call if it was found and any (already added) prologue statements
|
|
93700
|
-
|
|
93700
|
+
var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
|
|
93701
|
+
ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
|
|
93701
93702
|
// End the lexical environment.
|
|
93702
93703
|
statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
|
|
93703
93704
|
var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), /*multiLine*/ true);
|
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.20220721";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -50417,7 +50417,7 @@ var ts;
|
|
|
50417
50417
|
// 1. When result is undefined, after checking for a missing "this."
|
|
50418
50418
|
// 2. When result is defined
|
|
50419
50419
|
function checkAndReportErrorForInvalidInitializer() {
|
|
50420
|
-
if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions)
|
|
50420
|
+
if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */)) {
|
|
50421
50421
|
// We have a match, but the reference occurred within a property initializer and the identifier also binds
|
|
50422
50422
|
// to a local variable in the constructor where the code will be emitted. Note that this is actually allowed
|
|
50423
50423
|
// with ESNext+useDefineForClassFields because the scope semantics are different.
|
|
@@ -93492,7 +93492,8 @@ var ts;
|
|
|
93492
93492
|
statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
|
|
93493
93493
|
}
|
|
93494
93494
|
// Add remaining statements from the body, skipping the super() call if it was found and any (already added) prologue statements
|
|
93495
|
-
|
|
93495
|
+
var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
|
|
93496
|
+
ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
|
|
93496
93497
|
// End the lexical environment.
|
|
93497
93498
|
statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
|
|
93498
93499
|
var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), /*multiLine*/ true);
|
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.
|
|
5
|
+
"version": "4.8.0-dev.20220721",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|