ReactiveX / ReactiveX/rxjs

7.8.2 introduces breaking changes

Open
#7,536 6 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
31.7k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Calling .next() with no arguments like this

new Observable((observer) => {
  observer.next()
}

shows error

Expected 1 arguments, but got 0.ts(2554)

Subscriber.d.ts(42, 10): An argument for 'value' was not provided.
Expected behavior

No breaking changes in patch version updates.

Version

7.8.2

Additional context

Duplicate of https://github.com/ReactiveX/rxjs/issues/7534.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading Subscriber.d.ts at line 42 and compare this report with the linked duplicate issue 7534. Verify the no-argument observer.next() example against the 7.8.2 typings; done means the example compiles without introducing a breaking change in the patch release.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.