Skip to content

Fix (and ignore one!) type errors #8

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

Merged
merged 10 commits into from
Mar 22, 2023

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented Mar 11, 2023

Related to handling ReadableStreams in writeFile and writeTextFile, convert bigint to number in offset parameter usage, and ignore one type error that I do not understand 😅

This change to the writeFile API was introduced, from what I can tell, in v1.30 of deno (here). The change to the seek operations seem to have come from here (also in v1.30).

This seems to pass the tests now, at least.

Not sure if this is entirely correct - could use a bit of guidance and review. Happy to adjust it as needed.

…writeTextFile, convert bigint to number in offset parameter usage, and ignore one type error that I do not understand 😅
@codecov
Copy link

codecov bot commented Mar 11, 2023

Codecov Report

Merging #8 (c323b45) into main (277d946) will increase coverage by 0.98%.
The diff coverage is 92.59%.

❗ Current head c323b45 differs from pull request most recent head 292c533. Consider uploading reports for the commit 292c533 to get more accurate results

@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   66.75%   67.74%   +0.98%     
==========================================
  Files           2        2              
  Lines         361      372      +11     
  Branches       33       34       +1     
==========================================
+ Hits          241      252      +11     
  Misses        120      120              
Impacted Files Coverage Δ
src/polyfill.ts 77.04% <90.00%> (+1.04%) ⬆️
src/memory_file.ts 58.73% <100.00%> (+0.66%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ayame113
Copy link
Owner

Thank you for your contribution!
I'm short on time this week, so I'll check this PR out later. please wait a little bit.

@filmaj
Copy link
Contributor Author

filmaj commented Mar 13, 2023

Hey @ayame113 I fixed up the PR and added tests for it - it actually works now, unlike my initial PR 😅

Copy link
Owner

@ayame113 ayame113 left a comment

Choose a reason for hiding this comment

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

🎉🎉🎉🎉🎉🎉🎉🎉
🎉LGTM. very nice!!!🎉
🎉🎉🎉🎉🎉🎉🎉🎉

@ayame113 ayame113 merged commit 8f0fa17 into ayame113:main Mar 22, 2023
@filmaj filmaj deleted the handle-readablestreams branch March 25, 2023 13:31
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.

2 participants