-
Notifications
You must be signed in to change notification settings - Fork 150
fix: remove deprecated package @types/sass #583
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
fix: remove deprecated package @types/sass #583
Conversation
This is probably a good change to make, but it should probably also accompany a bump of the peerdep on Sass (to when the types are included in the package), which would necessitate a major bump - so we should try to see what other breaking changes we should batch that with. |
Hmm, fair point. We require version I'm not quite sure if type declarations are resolved in the same way as normal modules, but if they are then including Would you like me to add the bump for the peer dep in this PR? |
I don't see any mention of |
Any import of sass would use these types, at least before sass included its own types. At least some of them show up with a search. I can't speak for the original intention, but the dependency was introduced here, and it seems very much deliberate that only a few of the new types were included as dependencies, with the rest being only dev dependencies. My best guess is it was to ensure the types exported by this package would be valid in projects that import it. This is also the breakage Conduitry is referencing, that the type check for a project would break because they are on a version of sass that doesn't export the types, and they are no longer included as a dependency by svelte-preprocess. |
As @tlaundal rightly said, it was for the consumer's convenience as the options object would be typed, etc. If I'm not forgetting anything, we can keep the current If something unexpected happens, we can rollback this patch release and follow what @Conduitry suggested |
Released in |
Fixes #582.
My best guess is that
@types/sass
was included independencies
(and notdevDependencies
) as a convenience for users. With types now being included in the mainsass
package, it should no longer be an issue that people might havesass
without the types, so we can safely remove the types here without promotingsass
fromdevDependencies
todependencies
.This removes the warning described in #582.
Before submitting the PR, please make sure you do the following
pnpm lint
!)Tests
npm test
orpnpm test