Skip to content

Remove uneeded data event for performance and consistency reasons - #62

Merged
clue merged 1 commit into
clue:masterfrom
clue-labs:data
Sep 19, 2017
Merged

Remove uneeded data event for performance and consistency reasons#62
clue merged 1 commit into
clue:masterfrom
clue-labs:data

Conversation

@clue

@clue clue commented Sep 19, 2017

Copy link
Copy Markdown
Owner

The data event is underdocumented for the most part and has attracted some low quality code in the past. It used to be more of a poor attempt to make the Client behave like a ReadableStreamInterface which doesn't make much sense for the rest of the interface anyway.

As such, this PR simply removes the data event, which makes the interface more consistent. Removing unneeded events also has a noticeable effect on performance.

@clue clue added BC break easy pick Good for newcomers labels Sep 19, 2017
@clue clue added this to the v2.0.0 milestone Sep 19, 2017
@clue
clue merged commit 2dfe566 into clue:master Sep 19, 2017
@clue
clue deleted the data branch September 19, 2017 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC break easy pick Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant