-
Notifications
You must be signed in to change notification settings - Fork 3k
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(subject): Fixes signature of Subject::lift #2540
Conversation
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.
@hearnden thanks for the Pull Request, the change looks good to me.
We will have to discuss if it's a breaking change... honestly it could very well be a breaking change for some environments, so we'll have to decide when to bring this in.
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.
Looks good to me. Let's discuss today's meeting for versions.
@david-driscoll @kwonoj This might be breaking, so let's punt it to the next major. It's not a bug that should effect common uses cases, so we can wait a little bit. |
LGTM |
With |
@Igorbek right now 6.0.0-alpha.0 is targeting TS 2.3... I'll be updating that to TS 2.4 RC in short order. That should level this out for you. However, the stable branch will stay at 2.0, as there were breaking changes required to update to 2.1. It's better to not break anyone than make a few people happy. |
FYI, TypeScript has released 2.4; this issue is now caught by the compiler, so it won't be possible for anyone using rxjs version 5 to upgrade to the latest TypeScript. |
Can you check if turning on |
@david-driscoll Unfortunately, that doesn't help. While that gets rid of the error the compiler finds in Subject directly, it does nothing for all of the errors in my code that arise from using Subject. |
@karptonite |
@saneyuki Thanks! I think in this case, I'm better off just staying on ts 2.3.4 until the official fix comes. |
It would be really great if it could be released as soon as possible, as it affects Angular users too that can't upgrade to TypeScipt 2.4: angular/angular#17800 |
I managed to make it work with RxJS fixed at 5.4.1 and TS at 2.3.4 |
For all TypeScript users who want to upgrade to 2.4.x but don't want to use an alpha version of TypeScript, and don't want to upgrade to the next major version, is it possible to apply this change to v5 and release a new patch version? Of course this may not be possible if it's considered a breaking change. |
My hack was to automatically patch rxjs typings on |
I also think this fix should not be considered a breaking change, and would make total sense as a bugfix release version not even minor. |
This should just be a bugfix patch fix for 5.x.x. All we are doing is fixing the typings for the Typescript compiler to understand how to read and compile the code. |
fyi the fix already landed on RxJS 5.4.2 (changelog), you can either close this issue or leave it open. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Related issue (if exists):
#2539