Skip to content
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

Drop support for prettier 2.0 #2760

Closed
timotheeguerin opened this issue Dec 18, 2023 · 1 comment · Fixed by #2956
Closed

Drop support for prettier 2.0 #2760

timotheeguerin opened this issue Dec 18, 2023 · 1 comment · Fixed by #2956

Comments

@timotheeguerin
Copy link
Member

timotheeguerin commented Dec 18, 2023

Prettier 3.0 has been out for some time and some of the apis are now deprecated. However updating to the newer api will break anyone that is using our plugin with prettier 2.0.

Apis that should be migrated:

  • .getValue() -> .node

If we think keeping prettier 2.0 support is important(not sure why) then we could maybe do a custom wrapper that calls the right function.

@markcowl
Copy link
Contributor

est: 2

timotheeguerin added a commit that referenced this issue Feb 28, 2024
fix #2760 
`@typespec/prettier-plugin-typespec` dropped support for prettier 2.0.
Update to 3.0 to use the new version of the plugin.
markcowl pushed a commit to markcowl/cadl that referenced this issue Mar 8, 2024
fix microsoft#2760
`@typespec/prettier-plugin-typespec` dropped support for prettier 2.0.
Update to 3.0 to use the new version of the plugin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants