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

Increase the input limits from 128 bytes to 8192 bytes #222

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

snorp
Copy link
Contributor

@snorp snorp commented Aug 4, 2023

In particular, the 128 byte limit is problematic for info as used in
the Mobile Document Request API (https://github.com/WICG/mobile-document-request-api)
and similar schemes.

@snorp snorp marked this pull request as ready for review August 4, 2023 17:43
In particular, the 128 byte limit is problematic for `info` as used in
the Mobile Document Request API (https://github.com/WICG/mobile-document-request-api)
and similar schemes.
@codecov-commenter
Copy link

Codecov Report

Merging #222 (d9b9f3a) into main (e617cbd) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #222   +/-   ##
=======================================
  Coverage   97.01%   97.01%           
=======================================
  Files          32       32           
  Lines        2483     2483           
  Branches      224      224           
=======================================
  Hits         2409     2409           
  Misses         73       73           
  Partials        1        1           
Flag Coverage Δ
unittests 97.01% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/consts.ts 100.00% <100.00%> (ø)

@dajiaji
Copy link
Owner

dajiaji commented Aug 4, 2023

Thanks for the PR.

In JavaScript, basically, there is no need to impose restrictions on the size of "info", but I applied quite strict constraints as the initial implementation. There is no problem with relaxing it to 8192 bytes.

@dajiaji dajiaji merged commit 13fa7c0 into dajiaji:main Aug 4, 2023
14 of 15 checks passed
@dajiaji
Copy link
Owner

dajiaji commented Aug 4, 2023

@snorp As a supplementary note, I have plans to release v1.0.0 within the next few days. The next release after merging this PR will be v1.0.0, and please be aware that it contains some BREAKING changes.

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