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

fix(node/TS): eliminate incompatable types to protected properties #3544

Merged
merged 1 commit into from
Apr 11, 2018

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Apr 10, 2018

Resolves an issue in Node and TypeScript where if a project had more than one copy of RxJS, even if it was the same version, types would be incompatable between say, Observable and Observable, due to protected fields in the dts files. As all of these fields are really implementation details of the library, and my be removed at any time do to architectural changes, it is prudent to mark them as deprecated. Marking them as public only serves to eliminate the type incompatibilities.

Resolves an issue in Node and TypeScript where if a project had more than one copy of RxJS, even if it was the same version, types would be incompatable between say, Observable and Observable, due to protected fields in the dts files. As all of these fields are really implementation details of the library, and my be removed at any time do to architectural changes, it is prudent to mark them as deprecated. Marking them as public only serves to eliminate the type incompatibilities.
@benlesh benlesh requested a review from jasonaden April 10, 2018 20:46
@benlesh benlesh merged commit 21dd3bd into ReactiveX:master Apr 11, 2018
benlesh added a commit to benlesh/rxjs that referenced this pull request Apr 11, 2018
This deprecates protected properties that users should not be using when extending types they probably should not be extending. This also makes them public, mostly so in situations where there are multiple copies of rxjs in in a node project, TypeScript is still happy with the resulting dts files

related to ReactiveX#3544
benlesh added a commit that referenced this pull request Apr 11, 2018
… TS (#3546)

This deprecates protected properties that users should not be using when extending types they probably should not be extending. This also makes them public, mostly so in situations where there are multiple copies of rxjs in in a node project, TypeScript is still happy with the resulting dts files

related to #3544
ProbablePrime added a commit to mixer/cdk-std that referenced this pull request Apr 18, 2018
A new version of RXJS marked these as public and not protected. 

See: ReactiveX/rxjs#3544
ProbablePrime added a commit to mixer/cdk-std that referenced this pull request Apr 18, 2018
A new version of RXJS marked these as public and not protected. 

See: ReactiveX/rxjs#3544
@ORESoftware
Copy link

@lock
Copy link

lock bot commented Jun 5, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants