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

Deprecated hashStream #45

Merged
merged 4 commits into from Nov 5, 2018
Merged

Deprecated hashStream #45

merged 4 commits into from Nov 5, 2018

Conversation

segayuu
Copy link
Contributor

@segayuu segayuu commented Oct 18, 2018

This PR is divided PR because #35 has become big.

Hash class It itself inherits the Transform class. There is no need to go through HashStream.
In addition, HashStream implementation does not assume objectMode, and objectMode is invalid in Transform options! (It is controlled by readableObjectMode and writableObjectMode)

Since the implementation was originally unclear, you can solve the problem by creating a new createSha1Hash() and migrating it to it.

 - deprecated HashStream
    - result for crypto.createHash() is stream
@segayuu segayuu requested a review from a team October 18, 2018 02:12
@coveralls
Copy link

coveralls commented Oct 18, 2018

Coverage Status

Coverage increased (+0.03%) to 96.687% when pulling 8296e97 on segayuu:deprecated-hashStream into c7cb519 on hexojs:master.

Copy link
Member

@NoahDragon NoahDragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@segayuu segayuu merged commit 17a9b7b into hexojs:master Nov 5, 2018
@segayuu segayuu deleted the deprecated-hashStream branch November 5, 2018 01:09
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.

None yet

3 participants