Releases: badgateway/structured-headers
Releases · badgateway/structured-headers
v2.0.0
The "Structured Field Values" was updated in RFC9651. This new specification added the 'Date' and 'Display String' field type, which encode unix timestamp and Unicode string respectively.
Perfect time to update this package as well! This new major release supports the new standard, and also has a few other changes:
- #66: We now convert from/to
ArrayBuffer
instead of a custom ByteSequence object. This is a breaking change. - Add support for
Date
andDisplayString
from RFC9651. - Switched to ESM, but we're still bundling a CommonJS build.
- No longer shipping a minified build.
- Dropped Chai and now using
node:assert
. - Dropped Mocha and now using
node:test
.
v2.0.0-alpha.1
- Fixed
exports
value inpackage.json
. (@CxRes)
v2.0.0-alpha.0
- Support for a new
Date
andDisplay String
types, from the new draft draft-ietf-httpbis-sfbis. - Simplified serializing Dictionaries and Items. The existing signatures still work, but the new API is a bit more natural and doesn't require wrapping everything in arrays and Maps.
- Now requires Node 18.
- Converted to ESM.
- No longer providing a Webpack build. Most frontend applications already do their own bundling. Please let us know if you need this, so we can redo this with modern tools.
v1.0.1
v1.0.0
v0.5.0
- All the serializer functions are now exported. (@adrianhopebailie)
- Added an
isByteSequence
helper function (@adrianhopebailie) - Bring all dependencies up to date.
v0.4.1
v0.4.0
v0.3.0
- Fully up to date with draft-ietf-httpbis-header-structure-13.
- Parameterized Lists and List of Lists are gone, their feautures are merged
into List and Dictionaries. - Both lists and dictionaries now require an object such as
{value: x, parameters: y}
. This is a breaking change, but was required to
support parameters correctly everywhere. - Stricter float parsing.
v0.2.0
- Fully up to date with draft-ietf-httpbis-header-structure-10.
- True and False are now encoded as
?1
and?0
. - Added serializing support.
- Integers with more than 15 digits now error as per the new draft.
- Updated all dependencies.