-
Notifications
You must be signed in to change notification settings - Fork 32
Update Typescript to v5 #711
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
Conversation
It seems the version of the node in the GitHub actions has to be updated to |
Where are these pipelines configured? Can't seem to find anything about them in the repository. Running in Azure, not Github? |
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 think it would be reasonable to keep the support of 4.x along with the new 5.x
@@ -21,7 +21,7 @@ | |||
}, | |||
"typings": "dist/index.d.ts", | |||
"peerDependencies": { | |||
"typescript": "^4.0" | |||
"typescript": "^5.0.0" |
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.
it'd be nice to keep 4.x support 4 || 5
@@ -261,7 +261,7 @@ export function createTransformer({ | |||
); | |||
|
|||
const updateExportAssignmentExpression = (node: ts.ExportAssignment, expression: ts.Expression) => | |||
context.factory.updateExportAssignment(node, node.decorators, node.modifiers, expression); | |||
context.factory.updateExportAssignment(node, node.modifiers, expression); |
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.
is it possible to support both - old and new APIs? maybe pass TS version parameter to the config
@janpe please take a look - the tests are failing now |
I'm currently not able to find time to proceed with this |
fixes #710, supersedes #711 - the peer dependency is set to 4.8+ because there [was a breaking change in the API we use in 4.8](https://github.com/microsoft/TypeScript/wiki/API-Breaking-Changes#decorators-are-placed-on-modifiers-on-typescripts-syntax-trees) - use `styled-components` package for types instead of `@types/styled-components`
superseded by #713 |
Update Typescript to ^5.0.0
createTransformer
requires some refactoring regardingtransformer
return value.