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(delayWhen): only deprecates when subscriptionDelay presents #5797

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

imcotton
Copy link
Contributor

@imcotton imcotton commented Oct 5, 2020

Noticed this after vscode starts showing the deprecation from jsdoc, not sure how to test this change tho.

@imcotton
Copy link
Contributor Author

imcotton commented Oct 5, 2020

api_guardian is failing, not exactly have fixing in mind, could use some help.

@cartant
Copy link
Collaborator

cartant commented Oct 6, 2020

Thanks for the PR.

... not sure how to test this change tho.

We should add some dtslint tests to make sure that the deprecations work as expected. ATM, there aren't many examples of this, as the ExpectDeprecation assertion was something that I added in anticipation of fixing up these sorts of false positives - and I've not yet got around to that. For an example, have a look at of:

it('should deprecate correctly', () => {
of(queueScheduler); // $ExpectDeprecation
of(a, queueScheduler); // $ExpectDeprecation
of(a, b, queueScheduler); // $ExpectDeprecation
of(a, b, c, queueScheduler); // $ExpectDeprecation
of(a, b, c, d, queueScheduler); // $ExpectDeprecation
of(a, b, c, d, e, queueScheduler); // $ExpectDeprecation
of(a, b, c, d, e, f, queueScheduler); // $ExpectDeprecation
of(a, b, c, d, e, f, g, queueScheduler); // $ExpectDeprecation
of(a, b, c, d, e, f, g, h, queueScheduler); // $ExpectDeprecation
of(a, b, c, d, e, f, g, h, i, queueScheduler); // $ExpectDeprecation
of<A>(); // $ExpectDeprecation
of(); // $ExpectNoDeprecation
of(a); // $ExpectNoDeprecation
of(a, b); // $ExpectNoDeprecation
of(a, b, c); // $ExpectNoDeprecation
of(a, b, c, d); // $ExpectNoDeprecation
});

To run the dtslint tests, use npm run dtslint.

Note that there is also an ExpectNoDeprecation assertion.

api_guardian is failing

You should be able to use npm run api_guardian:update to update its files.

@imcotton
Copy link
Contributor Author

imcotton commented Oct 6, 2020

Updated, have spec-dtslint and api_guardian included.

@benlesh benlesh merged commit 43d1731 into ReactiveX:master Oct 6, 2020
@benlesh
Copy link
Member

benlesh commented Oct 6, 2020

Thank you @imcotton

imcotton added a commit to imcotton/rxjs that referenced this pull request Oct 8, 2020
imcotton added a commit to imcotton/rxjs that referenced this pull request Oct 8, 2020
cartant pushed a commit that referenced this pull request Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants