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
Types broken for TypeScript < 3 #135
Comments
That is a new syntax, yes. 2.8.3 is pretty far behind. Have you talked about upgrading? @kolodny it looks like the release was not backwards compatible for TS projects < v3. Maybe we can backport a fix and bump the version of this package to a major? |
@jedmao Yeah, we'd like to upgrade, but when we last tried it turned out to be a complicated mess with Webpack and other dependencies, so we shelved it until we've got more time for it. TS3 was released less than 6 months ago, so it seems like 2.8 might still be in the support window for most libraries. |
Is there some way to provide different typings for older TS versions? If there is then we can just use the pre typescript versions since those seemed to work fine |
Yeah we can tell people to lock their versions and all, but it doesn't change the fact that this "minor" version bump just broke something. |
Hmm, in that case, I'd suggest reverting the last change and publishing another minor version and then republishing the current as a major version bump |
Need to publish a new "patch" version, not a minor version, so |
It might even make sense to create a |
Unfortunately, I don't know that that really helps us. If it's about needing to lock to a version, we can do that now. The ideal for us would be that we could continue to upgrade It's not a big deal, but we do try to keep the bulk of our libraries up to date. So far, this is the first library we've run into that needs to be locked due to TS support, aside from the direct TS dependencies. |
The 2.x branch should now be safe for ts@2 users. Closing for now since there isn't much else to do for this. Feel free to reopen is your issues can be further addressed. Thanks! |
When we upgraded
immutability-helper
to version2.9.0
, our TypeScript build broke with the following error:I'm wondering if this is a syntax that is was added in TypeScript 3, as we're still on
2.8.3
.The text was updated successfully, but these errors were encountered: