Skip to content

Releases: tatethurston/ProtoScript

v0.0.23

23 Feb 02:05
e53e1c7

Choose a tag to compare

What's Changed

  • Remove hardcoded compiler path on Windows to support monorepos. Thanks @lordvlad!

New Contributors

Full Changelog: v0.0.22...v0.0.24

v0.0.22

03 Jan 16:44
ec366d4

Choose a tag to compare

What's Changed

  • Fix Timestamp and Duration JSON serialization. Previously, when either seconds or nanos were 0, the Timestamp / Duration was omitted from the serialized json. Thanks @martynchamberlin!

Full Changelog: v0.0.21...v0.0.22

v0.0.21

29 Dec 02:30
200cca4

Choose a tag to compare

What's Changed

Full Changelog: v0.0.20...v0.0.21

v0.0.20

25 Oct 04:49
f02cb79

Choose a tag to compare

What's Changed

  • Preserve protoscript import when well known types are imported by @tatethurston in #47

Full Changelog: https://github.com/tatethurston/ProtoScript/blob/main/CHANGELOG.md#v0020

v0.0.19

25 Oct 03:42
b7276f1

Choose a tag to compare

What's Changed

Full Changelog: https://github.com/tatethurston/ProtoScript/blob/main/CHANGELOG.md#v0019

v0.0.18

27 Jul 17:47
383d9c5

Choose a tag to compare

v0.0.18

  • Fix JSON deserialization of recursive (self referencing) messages.
  • Fix generated TypeScript types for repeated recursive (self referencing) messages.

Full Changelog: v0.0.17...v0.0.18

v0.0.17

24 Jul 01:01

Choose a tag to compare

v0.0.17

  • Omit Uint8Array from PartialDeep type. This fixes a type error for TypeScript users that use bytes.

Full Changelog: v0.0.16...v0.0.17

v0.0.16

23 Jul 19:18
ed8eaa3

Choose a tag to compare

v0.0.16

  • encode methods now accept partials for nested messages as well (PartialDeep instead of Partial). Previously, the types required that full messages were provided for any nested messages.

Buf users will need to update their buf.gen.yaml path:

buf.gen.yaml

version: v1
plugins:
  - name: protoc-gen-protoscript
-    path: ./node_modules/protoscript/compiler.js
+    path: ./node_modules/protoscript/dist/compiler.js
    out: .
    opt:
      - language=typescript
    strategy: all

Full Changelog: v0.0.15...v0.0.16

v0.0.15

21 Jun 16:23
8956d0b

Choose a tag to compare

v0.0.15

This release includes the following bug fixes:

  • Fix treeshaking for nested messages. Previously, there were cases where protobuf did not tree shake out of JSON only client usage. Thanks @noahseger!
  • Fix camelcasing for fieldnames with multiple sequential underscores. Thanks @noahseger!
  • Fix generated toInt helper when using aliased enums. Thanks @noahseger!
  • Fix recursive message initialization. Previously, recursive messages, messages with fields that referenced themselves, would cause an infinite loop when initializing because protoscript eagerly instantiates message objects. Now the compiler detects cycles and will instead generate up until the cycle, and mark the recursive field as optional.

New Contributors

Full Changelog: v0.0.14...v0.0.15

v0.0.14

18 Nov 23:52
d0992c6

Choose a tag to compare

v0.0.14

  • Fix intermittent EAGAIN issue encountered when compiling protos

  • Use glob imports for generated messages instead of destructuring. This preserves tree shaking, but preserves module namespacing to disambiguate name collisions between protos. Previously, identically named messages in different modules could causes a name collision, eg:

    // foo.proto
    message Foo {}
    // bar.proto
    import "foo.proto";
    message Foo {}

    Would result in errors in the generated code. Now, this is namespaced and works correctly.

Full Changelog: v0.0.13...v0.0.14