X Tutup
Skip to content

upgrade rxjs dependency and implement pure operators#5626

Closed
jeffbcross wants to merge 1 commit intoangular:masterfrom
jeffbcross:toPromise2
Closed

upgrade rxjs dependency and implement pure operators#5626
jeffbcross wants to merge 1 commit intoangular:masterfrom
jeffbcross:toPromise2

Conversation

@jeffbcross
Copy link
Copy Markdown
Contributor

…e effects

BREAKING CHANGE:

toPromise is no longer an instance method of the Observable returned
by Angular, and fromPromise is no longer available as a static method.

The easiest way to account for this change in applications is to import
the auto-patching modules from rxjs, which will automatically add these
operators back to the Observable prototype.

import 'rxjs/add/operator/toPromise';
import 'rxjs/add/observable/fromPromise';

Closes #5542

…e effects

BREAKING CHANGE:

toPromise is no longer an instance method of the `Observable` returned
by Angular, and fromPromise is no longer available as a static method.

The easiest way to account for this change in applications is to import
the auto-patching modules from rxjs, which will automatically add these
operators back to the Observable prototype.

```
import 'rxjs/add/operator/toPromise';
import 'rxjs/add/observable/fromPromise';
```

Closes angular#5542
@jeffbcross jeffbcross assigned robwormald and unassigned jeffbcross Dec 8, 2015
@jeffbcross jeffbcross added the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 8, 2015
@jeffbcross jeffbcross added this to the beta.0 milestone Dec 8, 2015
@jeffbcross jeffbcross changed the title DUPE of #5623 for TRAVIS upgrade rxjs dependency and implement pure operators Dec 8, 2015
@jeffbcross jeffbcross assigned jelbourn and unassigned robwormald Dec 8, 2015
@jeffbcross jeffbcross added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 8, 2015
@jeffbcross
Copy link
Copy Markdown
Contributor Author

LGTM is on the original PR #5623 Only difference in this PR is updating the RxJS version to latest.

@mary-poppins
Copy link
Copy Markdown

Merging PR #5626 on behalf of @jelbourn to branch presubmit-jelbourn-pr-5626.

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement side-effect free fromPromise and toPromise in ObservableWrapper

5 participants

X Tutup