Skip to content

Releases: gdbots/pbj-js

v3.0.2

22 Mar 17:50
Compare
Choose a tag to compare
  • Allow uuid package 8.x or 9.x. take 2.

v3.0.1

22 Mar 17:43
Compare
Choose a tag to compare
  • Allow uuid package 8.x or 9.x.

v3.0.0

22 Dec 21:25
545d87a
Compare
Choose a tag to compare

BREAKING CHANGES

  • Configure package as type module now.
  • Use lodash-es explicitly instead of using a babel plugin to replace it.
  • Use explicit imports (including .js) because tape/babel/node or whatever unholy combination of this isn't working without it.
  • Removes all uses of moment.js.

v2.0.1

13 Jul 15:53
Compare
Choose a tag to compare
  • Handle async imports in MessageResolver correctly for truly lazy loaded schemas. import(...) vs () => import(...).

v2.0.0

11 Jun 20:46
Compare
Choose a tag to compare

BREAKING CHANGES

  • Moves @gdbots/pbj/MessageRef to @gdbots/pbj/well-known/MessageRef
  • Adds implementation for new node-ref type with @gdbots/pbj/types/NodeRefType and @gdbots/pbj/well-known/NodeRef
  • All message resolution and deserialization/unmarshalling is now async so schemas can be lazy loaded.
  • Removes Mixin since the gdbots/pbjc no longer uses them.
  • Changes MessageResolver.findOneUsingMixin and MessageResolver.findAllUsingMixin to use a curie (string) for resolution and instead of returning the schema it just returns curies (strings) of the messages using the mixin and is also async.
  • Simplifies Schema so the mixins are just the curies in string form, not objects.
  • Removes use of @gdbots/common lib as those utils are now move to this lib @gdbots/pbj/utils/*.

v1.0.1

03 Dec 04:35
Compare
Choose a tag to compare
  • Guard against value's constructor name instead of instanceof in IdentifierType.
  • Guard against value's getEnumId value instead of instanceof in IntEnumType and StringEnumType.

v1.0.0

10 Jun 00:19
Compare
Choose a tag to compare
  • Tag first stable version.

v0.2.6

01 Apr 21:55
Compare
Choose a tag to compare
  • Allow IdentifierType to be 255 bytes, same as StringType.

v0.2.5

07 Mar 01:37
Compare
Choose a tag to compare
  • When setting a field to null or undefined, clear it.

v0.2.4

23 Dec 22:45
Compare
Choose a tag to compare
  • Apply same guard rules for all string types so format and pattern are enforced. This is needed because it is very common to need a text field type for a URL due to sizes often being greater than 255 bytes.