Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat: update TypeScript to 5.3-rc#7923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
JoshuaKGoldberg merged 8 commits intotypescript-eslint:mainfromJoshuaKGoldberg:typescript-5.3-rcNov 19, 2023
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
c923169
feat: update TypeScript to 5.3-rc
JoshuaKGoldberg0feee23
Add 5.3.0-beta ||
JoshuaKGoldberg7e019ba
yarn.lock too
JoshuaKGoldbergf29202f
Revert "Went back to 5.3.0-beta"
JoshuaKGoldberg19103fe
Use 5.4.0-dev.20231117
JoshuaKGoldberg2220bb8
Revert warnAboutTSVersion range
JoshuaKGoldberg051e5c8
Merge branch 'main' into typescript-5.3-rc
JoshuaKGoldberg75eefcf
Aha, checksum now updates
JoshuaKGoldbergFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
6 changes: 3 additions & 3 deletions...ypescript-npm-5.3.0-beta-33b1e90865.patch → .../typescript-npm-5.3.1-rc-6c4278ffd3.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions.yarn/patches/typescript-npm-5.4.0-dev.20231117-78a04a34c5.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
diff --git a/lib/typescript.d.ts b/lib/typescript.d.ts | ||
index 7135bb786332478763097e4fa2274ac0222ecbb2..446baab7b0d29f1e88842f97f58d343b816c8df0 100644 | ||
--- a/lib/typescript.d.ts | ||
+++ b/lib/typescript.d.ts | ||
@@ -4493,8 +4493,8 @@ declare namespace ts { | ||
JSDocFunctionType = 324, | ||
JSDocVariadicType = 325, | ||
JSDocNamepathType = 326, | ||
+ /** @deprecated This was only added in 4.7 */ | ||
JSDoc = 327, | ||
- /** @deprecated Use SyntaxKind.JSDoc */ | ||
JSDocComment = 327, | ||
JSDocText = 328, | ||
JSDocTypeLiteral = 329, | ||
@@ -5068,6 +5068,8 @@ declare namespace ts { | ||
readonly name: PropertyName; | ||
readonly questionToken?: QuestionToken; | ||
readonly type?: TypeNode; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly initializer?: Expression | undefined; | ||
} | ||
interface PropertyDeclaration extends ClassElement, JSDocContainer { | ||
readonly kind: SyntaxKind.PropertyDeclaration; | ||
@@ -5093,6 +5095,10 @@ declare namespace ts { | ||
readonly parent: ObjectLiteralExpression; | ||
readonly name: PropertyName; | ||
readonly initializer: Expression; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly questionToken?: QuestionToken | undefined; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly exclamationToken?: ExclamationToken | undefined; | ||
} | ||
interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { | ||
readonly kind: SyntaxKind.ShorthandPropertyAssignment; | ||
@@ -5100,6 +5106,12 @@ declare namespace ts { | ||
readonly name: Identifier; | ||
readonly equalsToken?: EqualsToken; | ||
readonly objectAssignmentInitializer?: Expression; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly modifiers?: NodeArray<Modifier> | undefined; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly questionToken?: QuestionToken | undefined; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly exclamationToken?: ExclamationToken | undefined; | ||
} | ||
interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { | ||
readonly kind: SyntaxKind.SpreadAssignment; | ||
@@ -5224,6 +5236,8 @@ declare namespace ts { | ||
} | ||
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { | ||
readonly kind: SyntaxKind.FunctionType; | ||
+ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ | ||
+ readonly modifiers?: NodeArray<Modifier> | undefined; | ||
} | ||
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { | ||
readonly kind: SyntaxKind.ConstructorType; | ||
@@ -8995,7 +9009,13 @@ declare namespace ts { | ||
function symbolName(symbol: Symbol): string; | ||
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined; | ||
function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function getDecorators(node: HasDecorators): readonly Decorator[] | undefined; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function getModifiers(node: HasModifiers): readonly Modifier[] | undefined; | ||
/** | ||
* Gets the JSDoc parameter tags for the node if present. | ||
@@ -9525,7 +9545,13 @@ declare namespace ts { | ||
function isModuleName(node: Node): node is ModuleName; | ||
function isBinaryOperatorToken(node: Node): node is BinaryOperatorToken; | ||
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function canHaveModifiers(node: Node): node is HasModifiers; | ||
+ /** | ||
+ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. | ||
+ */ | ||
function canHaveDecorators(node: Node): node is HasDecorators; | ||
/** | ||
* Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes |
7 changes: 3 additions & 4 deletionsdocs/maintenance/Dependency_Version_Upgrades.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionspackage.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionpackages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletionsyarn.lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.