Skip to content

Releases: callmehiphop/pb-util

v1.0.3

12 Jan 21:57
Compare
Choose a tag to compare

Fixes

  • fix(struct): handle empty listValue (#16). Thanks @Leinvedan for the PR!

v1.0.2

10 Nov 00:35
Compare
Choose a tag to compare

Fixes

  • fix(struct): handle undefined fields (#14)

v1.0.0

01 Jun 20:00
Compare
Choose a tag to compare

Changes

  • feat(Value)!: attempt to find kind when kind field is absent (#10)
  • chore(deps)!: update all the things (#11)

Summary of Changes

This version introduces a couple of breaking changes.

  1. Dropped support for Node versions 8 and 10
  2. Upgraded TypeScript to 4.3
  3. Removed compile target (now compiling to ES3)
  4. Throw an exception if unable to determine kind when decoding messages.

We've add support for messages that are missing the kind field. If present they will be used as the ultimate source of truth, but if omitted we will attempt to look for a valid kind property (stringValue, structValue, etc.) and return the first one we find. You may experience unexpected issues if you have messages with no kind and multiple properties.

v0.1.3

09 Mar 20:13
Compare
Choose a tag to compare
  • fix(value): use kind as ultimate source of truth #6

    Previously we would explicitly check for a nullValue key before attempting to extract a value via kind key. However it appears that in certain cases a nullValue property can exist with other value types, but it should be ignored.

v0.1.2

08 Aug 17:38
Compare
Choose a tag to compare
  • fix(struct): encode false and null fields correctly #4

v0.1.1

14 Jun 13:22
Compare
Choose a tag to compare
  • fix(struct): add encoding check to not pass undefined values #2