Version 0.025 - 2026-12-03
  - New Span->unpack, unpack_to_array, parse_packed and parse_packed_to_array
    decode integers and length-prefixed fields using perl's pack notation.
    Bytes ('a') are returned as Spans, and lengths that run past the end of
    the data are an error rather than being truncated.
  - New append_pack writes the same formats, taking SecretBuffers, Spans or
    plain values as arguments
  - append_lenprefixed now returns the buffer, for chaining
  - New Span->bytes_needed: if a parse fails because the span ended early,
    this is the minimum number of additional bytes required
  - Breaking change for C API users: structs secret_buffer_parse and
    secret_buffer_parse_rw have a new 'bytes_needed' field, changing their
    size and layout.  C code compiled against an earlier SecretBuffer.h must
    be recompiled, and code that fills in these structs field-by-field must
    initialize the new field.
  - C API: new secret_buffer_parse_packed and secret_buffer_append_pack
  - Span->parse_lenprefixed($count) now fails if fewer than $count strings
    are present, instead of returning the ones it found.  An empty span is
    now a failure for the default count of 1.
  - Methods which take bytes or a pattern (append, assign, splice, memcmp,
    index, scan, and the Span parse, scan, trim, starts_with and cmp methods)
    now die when given something that isn't a string: a ref to an array,
    hash, sub or ref, a glob, or an object that doesn't overload
    stringification.  Previously these were treated as an empty string or as
    text like "HASH(0x1234)".
  - Patterns may now be a ref to a scalar, like the arguments of append
  - Bug fixes for parsing and testing:
    - Fix memcmp ordering of bytes 0x80..0xFF (now unsigned, like C memcmp)
      This can affect sort order if memcmp were used as a sort function.
    - Fix codepoint U+0080 not matching regex charsets like [[:cntrl:]]
    - Span->encoding no longer accepts the internal-only encoding number 7
    - Fix Span->len and Span->length setters, which always died with "BUG"
    - Fix stale results when a variable holding a regex is assigned a different
      regex (the charset was cached on the variable instead of the regex)
  - Bug fixes for ConsoleState:
    - Fix ConsoleState->line_input(1) disabling Ctrl-C (ISIG) on POSIX
    - ConsoleState->new now restores echo if setting line_input fails
  - Fix C / XS bugs:
    - write_async and AsyncResult->wait were completely broken when the
      background writer thread was required.  This had been masked by the
      pipe buffer size absorbing the entire write, preventing the backgroud
      thread from needing to run.
    - Fix use-after-free when the scalar given to unmask_to outlives its buffer
    - Fix append, assign, splice, memcmp and others treating a substr() result
      or tied scalar argument as an empty string
    - Fix various undefined behavior when append, assign, splice, substr, or
      append_lenprefixed was given an argument from the same buffer as was
      being written.
    - Fix crash in new()/secret() when an attribute method grows Perl's stack
    - Fix crashes using SecretBuffers, Spans or regex charsets in a new ithread
    - Fix file descriptor leak in append_random on systems without getrandom()
    - Fix memory leak of every ConsoleState object

Version 0.024 - 2026-05-05
  - New append_console_line features: timeout, state, utf8
  - buf->len is now available as an alias for buf->length
  - scan (and Span methods) now can parse regex charclasses \w, \s, \d,
    \W, \S, \D without [] brackets, and '.'
  - Further semi-breaking change related to secret_buffer_parse: the
    secret_buffer_transcode second parameter is now a secret_buffer_parse_rw
    which requires edits to any C code that was directly compiling against
    SecretBuffer.h.  However, runtime linking is unaffected because it is
    binary-compatible with the previous.
  - New bundled version of inc/ExtUtils/CFeatureTest.pm
  - Added disclaimers about constant-time memcmp, scan, and Span->cmp

Version 0.023 - 2026-04-05
  - Fix 5.8 compat
  - Documentation fix on ->append and ->assign

Version 0.022 - 2026-04-05
  - Fix ->load_file when the path is a device node (or where -s fails)
  - Allow multiple arguments to ->append and ->assign
  - Semi-breaking change: pointers in struct secret_buffer_parse are now
    declared as 'const', which could break C code that makes direct use
    of that struct.

Version 0.021 - 2026-03-12
  - Fix ->save_file(x, 'rename') when the path was a bare filename
  - Enhance append_console_line:
     - echo "\n" back to console when 'prompt' option is used
     - better heuristics for default prompt_fh
     - undefined $input_fh now means "the default terminal"
     - $input_fh is no longer a required argument

Version 0.020 - 2026-03-08
  - Fix bugs in ::PEM->headers (unicode_values, call methods on tied hash)

Version 0.019 - 2026-03-05
  - Method 'memcmp' and Span->cmp are now constant-time operations, protecting
    against timing attacks when comparing passwords.
  - Method ->scan has a new CONST_TIME flag that improves protection against
    timing attacks, but needs more work.
  - The ::PEM object has an improved design where ->header_kv is the official
    array of attributes and 'headers' is a view of that array, providing
    features like multi-value, case-insensitivity, and whitespace trimming
    without modifying the original array.
  - Breaking Change: The return value of ->scan on failure to match is now an
    empty list, where previously it was (x,0) where x was sometimes useful
    and sometimes not and would vary depending on other flags.

Version 0.018 - 2026-02-11
  - New exportable span() function which universally constructs a span
    from a SecretBuffer, Span object, or plain scalar.
  - PEM object header values are no longer secrets, by default.
    This is a breaking change, but the module has been out less than two months.
  - New methods to encode and decode variable-length integers and
    length-prefixed strings:
     - append_lenprefixed     / parse_lenprefixed
     - append_base128le       / parse_base128le
     - append_base128be       / parse_base128be
     - append_asn1_der_length / parse_asn1_der_length
  - New method Span->append_to, and normalize Span->copy_to to overwrite.
    This is a breaking change in that ->copy_to used to append to SecretBuffer
    but overwrite scalars.  Now copy_to overwrites for both destination types
    and append_to appends to both destination types.
  - Change type of secret_buffer_charset_test_codepoint codepoint from `uint32_t`
    to `U32` so that users of Inline aren't forced to `#include <stdint.h>`
    This is a breaking change for any C code which was looking up the function by
    name in the %C_API hash, but the ABI is unchanged.

Version 0.017 - 2025-12-28
  - New features for append_console_line: char_mask, char_count, char_class
  - New attribute 'line_input' for ConsoleState toggles line buffering
  - New method Span->set_up_us_the_bom processes byte-order-marks
  - Return value of memcmp is now normalized to -1/0/1

Version 0.016 - 2025-12-27
  - New append_console_line(prompt => $txt) feature resolves race condition
    between printing prompt and disabling echo
  - New Crypt::SecretBuffer::ConsoleState utility class lets users disable
    TTY echo more flexibly
  - Fix bug where ->sysread was actually calling the ->read implementation
  - Fix Win32 compatibility (compile errors in 0.013 - 0.015)
  - Fix TTY tests on BSD (race condition in append_console_line)

Version 0.015 - 2025-12-22
  - Fix 5.8 and C89 compatibility

Version 0.014 - 2025-12-22
  - Fix MULTIPLICITY (ithreads) support

Version 0.013 - 2025-12-21
  - New method $span->cmp($other) is like memcmp but on Unicode codepoints
  - Span objects now also have overloaded cmp, stringify, and boolean cast
  - New PEM parser class

Version 0.012 - 2025-12-19
  - String patterns passed to scanning functions (scan, index, rindex, and
    various methods of Span) can now be perl unicode strings, or SecretBuffer
    objects, or Span objects (with their own encoding) and matches will be
    compared codepoint by codepoint.
  - Added BASE64 encoding
  - New exportable memcmp function, and method of SecretBuffer and Span objects
  - Exceptions in unmask_to and unmask_secrets_to now pass through to caller
    more correctly.
  - SecretBuffer overloads 'cmp' with the new memcmp function, so you can now
    compare buffers directly with cmp, lt, gt, eq and so on.
    (Span objects do not, yet, to avoid the complicated question of how best to
     compare mismatched encodings)
  - Fix debug-build-perl asertion failure in Span->copy_to when copying from
    buffer of capacity=0

Version 0.011 - 2025-12-02
  - Fix bug in parsing strings of '$encoding' parameters that could return
    an uninitialized value for an invalid encoding.
  - Fix compatibility of tests for Win32 and Cygwin

Version 0.010 - 2025-11-22
  - Fix bug where substr with replacement that shrinks the buffer would leave
    un-wiped bytes at the end of the string.
  - Fix compile error on BSD, possibly others
  - New methods: splice, append
  - substr, splice, append, and assign now all have special cases for assigning
    a Span of a buffer.
  - New C API functions:
     - secret_buffer_SvPVbyte
     - secret_buffer_splice
     - secret_buffer_splice_sv
  - Removed the short-lived secret_buffer_assign_sv from the previous release
    since secret_buffer_splice_sv provides a more powerful way to do it.
  - C API is now exported as package variables for simpler conditional use of
    the API, such as
    get_sv("Crypt::SecretBuffer::C_API::void secret_buffer_wipe(char *, size_t)",0);
  - Standardized signatures of exported functions in these variables
  - Removed the macros
      SECRET_BUFFER_DECLARE_FUNCTION_POINTERS,
      SECRET_BUFFER_DEFINE_FUNCTION_POINTERS, and
      SECRET_BUFFER_DEFINE_FUNCTION_POINTERS
    because I'm pretty sure they'll never get used, and so now SecretBuffer.h
    doesn't need to include SecretBufferManualLinkage.h and the user can just
    copy SecretBuffer.h as-is from the git repo.

Version 0.008 - 2025-11-17
  - New Span objects assist with parsing secrets.
  - New INI object for parsing common INI-like formats.
  - SecretBuffer now has 'rindex' and 'scan' methods, and 'index' allows the
    pattern to be a Regexp-ref as long as it is only a single character class.
  - New SecretBuffer methods load_file and save_file.
  - New C API functions:
     - secret_buffer_charset_from_regexpref
     - secret_buffer_charset_test_byte
     - secret_buffer_charset_test_codepoint
     - secret_buffer_parse_init
     - secret_buffer_match
     - secret_buffer_match_charset
     - secret_buffer_match_bytestr
     - secret_buffer_sizeof_transcode
     - secret_buffer_transcode
     - secret_buffer_assign_sv

Version 0.007 - 2025-10-31
  - New API unmask_secrets_to and ->unmask_to
  - Documented ways to use SecretBuffer without depending on it

Version 0.006 - 2025-09-09
  - Fix bug checking errno for EAGAIN after failed _append_random
  - Fix Makefile.PL feature tests for required lib linker flags
  - Fix Win32 compat when wincrypt.h isn't required/available

Version 0.005 - 2025-06-05
  - Fix bug in index() that fails to search on final char of buffer
  - Improved OS feature detection, which should fix many build failures
  - Fix 5.8 compat
  - More unit tests
  - Document security policy

Version 0.004 - 2025-06-05
  - Add "Inline with => Crypt::SecretBuffer" support
  - Tooling now provides C API from the XS shared lib as native exported symbols
  - Fix failing assertion in substr()

Version 0.003 - 2025-05-23
  - Make attribute accessor for stringify_mask
    Also allows stringify_mask to be specified in the constructor

Version 0.002 - 2025-05-23
  - Fix 5.8 compatibility
  - Fix exports & documentation

Version 0.001 - 2025-05-23
  - Initial version, working on Linux, FreeBSD, and MSWin32
