Skip to content

Deprecated hashStream#45

Merged
segayuu merged 4 commits intohexojs:masterfrom
segayuu:deprecated-hashStream
Nov 5, 2018
Merged

Deprecated hashStream#45
segayuu merged 4 commits intohexojs:masterfrom
segayuu:deprecated-hashStream

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.

3 participants