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

Document stream() detection limitation #434

Merged
merged 9 commits into from
Jul 22, 2021
Merged

Conversation

Borewit
Copy link
Collaborator

@Borewit Borewit commented Feb 1, 2021

Changes:

  1. Document stream() limitation.
  2. Make sample size in stream() configurable, and add corresponding unit tests

Includes PR: #468 (better to merge that one first)

readme.md Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Could we maybe let the user decide how big of a sample they want? That way they could decide whether they favor performance or accuracy.

@Borewit Borewit mentioned this pull request May 4, 2021
@Borewit Borewit force-pushed the document-stream-limitation branch from 3e67451 to d3b2543 Compare July 12, 2021 17:05
core.js Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
@sindresorhus sindresorhus changed the title Document stream() detection limitation. Document stream() detection limitation Jul 12, 2021
@Borewit
Copy link
Collaborator Author

Borewit commented Jul 14, 2021

I should actually put a bit of unit testing in place, with an exemplary pointing out (& testing one) with a different sample size.

Suppress the End-Of-Stream, instead assign `undefined` to `stream.fileType`.

Fix: #467
@Borewit Borewit force-pushed the document-stream-limitation branch from 8657114 to 0b84897 Compare July 20, 2021 12:48
Improve document stream() detection limitation.

Related: #426, #452
readme.md Outdated Show resolved Hide resolved
core.d.ts Outdated Show resolved Hide resolved
core.d.ts Outdated Show resolved Hide resolved
core.d.ts Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
test.js Outdated Show resolved Hide resolved
test.js Outdated Show resolved Hide resolved
@Borewit Borewit force-pushed the document-stream-limitation branch from 8dc4c7d to f68ae1b Compare July 22, 2021 12:44
@Borewit
Copy link
Collaborator Author

Borewit commented Jul 22, 2021

Note that the example provided for stream() is not working, see issue #470.

Improve document stream() detection limitation.

Related: #426, #452
@sindresorhus
Copy link
Owner

Not done: #434 (comment)

@sindresorhus sindresorhus merged commit dcd7c80 into main Jul 22, 2021
@sindresorhus sindresorhus deleted the document-stream-limitation branch July 22, 2021 14:47
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.

fromBuffer and stream methods give different results for same ai file
2 participants