Skip to content

Releases: badgateway/structured-headers

v2.0.2

30 Jul 15:39
a3bffd5

Choose a tag to compare

  • Use file extensions even when importing type-only files. (@mxxk).

v2.0.1

03 Jun 15:54
19d2acf

Choose a tag to compare

  • Update dependencies, including some dev depenendencies with security issues. (@apasel422)
  • Fixed a few tests. (@apasel422)

v2.0.0

03 Oct 02:37
14f6744

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

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

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

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

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

Choose a tag to compare

v0.4.1

09 Jun 18:19
f83b278

Choose a tag to compare

  • Corrected the 'main' property in package.json.

v0.4.0

16 May 03:45
7f0d3f5

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.