Skip to content

Releases: badgateway/structured-headers

v2.0.0

03 Oct 02:37
14f6744
Compare
Choose a tag to compare

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 and DisplayString 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

23 Feb 23:08
6d4f30b
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release
  • Fixed exports value in package.json. (@CxRes)

v2.0.0-alpha.0

29 Jan 16:39
40a9a8d
Compare
Choose a tag to compare
v2.0.0-alpha.0 Pre-release
Pre-release
  • Support for a new Date and Display 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

03 Aug 01:49
6560cea
Compare
Choose a tag to compare
  • #33 This library emitted TypeError or a plain Error in a few places in the parser, where it should have been ParseError this is corrected everywhere now.

v1.0.0

13 Jun 03:43
c464645
Compare
Choose a tag to compare
  • This is mainly a re-release of 0.5.0. The package is stable and dependencies have been updated.
  • Dropped support for Node 12. The minimum Node version is now 14.

v0.5.0

13 Sep 19:29
ade13e9
Compare
Choose a tag to compare

v0.4.1

09 Jun 18:19
f83b278
Compare
Choose a tag to compare
  • Corrected the 'main' property in package.json.

v0.4.0

16 May 03:45
7f0d3f5
Compare
Choose a tag to compare
  • Fully up to date with RFC8941.
  • This is a complete rewrite, all APIs have changed and return the structures
    that are recommended by the actual RFC document.
  • Passing almost all tests from the HTTP WG test suite. See the readme
    for the exceptions.

v0.3.0

16 May 03:44
27a9a48
Compare
Choose a tag to compare
  • 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

16 May 03:42
Compare
Choose a tag to compare
  • 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.