Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Releases: hatsyjs/http-header-value

Release 3.2.0

15 Jun 05:32

Choose a tag to compare

New Features

  • Add @hatsy/http-header-value/headers sub-module containing header-specific parsers and operations.
  • Add @hatsy/http-header-value/node sub-module containing info extracted from Node.js HTTP server objects.
  • Add HttpForwardRep - HTTP request forwarding report extracted from Forwarded and X-Forwarded-... request headers.
    Only trusted info is extracted. The trust policy is defined by HttpForwardTrust.
  • Add HttpAddressRep - HTTP request addressing info, such as URL and remote address.
    It is extracted from Node.js HTTP request.

Release 3.1.0

12 Jun 06:14

Choose a tag to compare

Changes

  • Named item is added to its own parameter map.
    This makes it simpler to inspect headers like Forwarded: by=proxy;host=test.com;proto=https,
    since by will be available as item.p.by.
    Such parameter won't have parameters itself.

Release 3.0.0

26 May 07:33

Choose a tag to compare

New Features

  • Add HthvParserConfig.dateTime flag.
    Turns date/time parsing support.
    false by default.
  • Add hthvParseDT() parser.
    Defualt parser that additionally recognizes date/time values.

Breaking Changes

  • Date/time values are not recognized by default.

Release 2.1.0

19 May 05:13

Choose a tag to compare

Bundling

  • Transpile to ES2018

Release 2.0.2

26 Dec 10:01

Choose a tag to compare

Bundling

  • Preserve /*#__PURE__*/ annotations.

Release 2.0.1

10 Nov 07:37

Choose a tag to compare

Bug Fix

  • Fix broken type declarations

Release 2.0.0

08 Nov 07:45

Choose a tag to compare

New Features

  • Preconfigured custom parser can be constructed by newHthvParser() function.
  • New custom parsers:
    • hthvParseCommented() to parse header values including comments,
    • hthvParseDirectives() to parse directives with space-separated parameters,
    • hthvParseSemiSep() to parse semicolon-separated items without parameters,
    • hthvParseURIs() to parse URIs without parameters.
  • Angle-bracketed strings support.

Breaking Changes

  • Comments are not recognized by default.
    A comment option may be passed to parser configuration. Or hthvParseCommented() can be used instead.

Release 1.0.0

06 Nov 08:06

Choose a tag to compare

Initial release