-
-
Notifications
You must be signed in to change notification settings - Fork 242
feat: typescript 6.0 support #2985
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e433559
wip
jasonlyu123 026cd33
Merge branch 'master' of https://github.com/sveltejs/language-tools i…
jasonlyu123 7e093ce
bumps
jasonlyu123 83f3ec2
another default change
jasonlyu123 9bc6cff
changeset
jasonlyu123 2c578bb
format
jasonlyu123 120ca56
fix svelte2tsx build for now
jasonlyu123 41bef87
more svelte2tsx migrate
jasonlyu123 c9b0987
add node to be explicit
jasonlyu123 02eadea
avoid svelteHTML.mapElementTag in perf test for now
jasonlyu123 4209e42
update svelte5 snapshot
jasonlyu123 e689a42
update svelte-check smoke test to bundler
jasonlyu123 c1fed4f
Merge branch 'master' of https://github.com/sveltejs/language-tools i…
jasonlyu123 9199b47
try fix flaky test
jasonlyu123 36742a6
Merge branch 'master' of https://github.com/sveltejs/language-tools i…
jasonlyu123 b224592
move typescript to peer in language server
jasonlyu123 24d9421
Merge branch 'master' of https://github.com/sveltejs/language-tools i…
jasonlyu123 c003ae9
another drive-by fix
jasonlyu123 7a659b1
Merge branch 'master' of https://github.com/sveltejs/language-tools i…
jasonlyu123 7d232bc
use 6.0.3
jasonlyu123 0f1ce0b
Merge branch 'ts-6.0' of https://github.com/jasonlyu123/language-tool…
jasonlyu123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,7 @@ | ||
| --- | ||
| 'svelte-language-server': patch | ||
| 'svelte-check': patch | ||
| 'svelte2tsx': patch | ||
| --- | ||
|
|
||
| feat: typescript 6.0 support |
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
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
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,34 @@ | ||
| declare module 'estree-walker' { | ||
| export function walk( | ||
| ast: import('estree').BaseNode, | ||
| { | ||
| enter, | ||
| leave | ||
| }: { | ||
| enter?: ( | ||
| this: { | ||
| skip: () => void; | ||
| remove: () => void; | ||
| replace: (node: import('estree').BaseNode) => void; | ||
| }, | ||
| node: import('estree').BaseNode, | ||
| parent: import('estree').BaseNode, | ||
| key: string, | ||
| index: number | ||
| ) => void; | ||
| leave?: ( | ||
| this: { | ||
| skip: () => void; | ||
| remove: () => void; | ||
| replace: (node: import('estree').BaseNode) => void; | ||
| }, | ||
| node: import('estree').BaseNode, | ||
| parent: import('estree').BaseNode, | ||
| key: string, | ||
| index: number | ||
| ) => void; | ||
| } | ||
| ): import('estree').BaseNode; | ||
|
|
||
| export type BaseNode = import('estree').BaseNode; | ||
| } |
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
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
1 change: 1 addition & 0 deletions
1
...rver/test/plugins/typescript/features/diagnostics/fixtures/checkjs-nostrict/tsconfig.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
1 change: 1 addition & 0 deletions
1
...e-server/test/plugins/typescript/features/diagnostics/fixtures/custom-types/tsconfig.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
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
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
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
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
packages/svelte2tsx/test/emitDts/samples/javascript/jsconfig.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
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
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 |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "strict": false, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. one day we will mark this strict and fight all the errors that come from it 😆 |
||
| "target": "es2018", | ||
| "lib": ["ES2018"], | ||
| "rootDir": "src", | ||
|
|
@@ -12,14 +13,19 @@ | |
| //let rollup handle these | ||
| "module": "esnext", | ||
| "moduleResolution": "node", | ||
|
|
||
| // rollup typescript plugin currently override moduleResolution to node | ||
| "ignoreDeprecations": "6.0", | ||
| "resolveJsonModule": true, | ||
| "allowSyntheticDefaultImports": true, | ||
| "forceConsistentCasingInFileNames": true, | ||
|
|
||
| "noImplicitThis": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true | ||
| "noUnusedParameters": true, | ||
| "types": ["node"] | ||
| }, | ||
| "include": ["src/*"], | ||
| "paths": { | ||
| "@/*": ["src/*"] | ||
| }, | ||
|
|
||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if the
||syntax works here. Is the intention to provide support for both? It might be better to specify this as a peerDep instead 🤔 though I'm not sure how that works with VS Code extensionsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's meant to support both. I tested by installing a git repository, and it seems to be working as I intended: By default, it installs 6.0 and can be manually overridden to be 5.9. I think we can also move it to peerDep and mark it a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
peer dep sounds good, though we gotta do language-server package as a minor then