Skip to content

v1.25.0

Choose a tag to compare

@suprabhat02 suprabhat02 released this 02 Nov 07:51
· 38 commits to main since this release
25fbb3b

Minor Changes

  • d2725cf: Consistent limits, and a way to test against real clipboards.

    • parseNumber, parseAddresses and extractOtp take a maxLength option, like the other
      text parsers. Their limits are now named DEFAULT_NUMBER_MAX_LENGTH,
      DEFAULT_ADDRESS_LIST_MAX_LENGTH and DEFAULT_OTP_MAX_LENGTH; NUMBER_MAX_LENGTH,
      ADDRESS_LIST_MAX_LENGTH and OTP_SCAN_LENGTH stay as deprecated aliases until 2.0.
    • parseAddresses now accepts maxAddresses: Infinity, as every other limit does.
    • New docs: the Clipboard Inspector, which shows every format a paste holds and saves it as a
      capture for bug reports; the API conventions; and the proposal for a future 2.0.
    • The test suite has a corpus harness for real clipboard captures: each capture is run through
      every converter and held to a reviewed result. The corpus starts empty; captures made with
      the Inspector are what fill it.