Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

protoscript

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protoscript - npm Package Versions

23

0.0.22

Diff

Changelog

Source

v0.0.22

  • 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!
tatethurston
published 0.0.21 •

Changelog

Source

v0.0.21

  • Fix compiler path on Windows.
tatethurston
published 0.0.20 •

Changelog

Source

v0.0.20

  • Preserve protoscript import when well known types are imported. This corrects a regression in 0.0.19.
tatethurston
published 0.0.19 •

Changelog

Source

v0.0.19

  • Fix JSON serializtion for Timestamp and Duration well known types. See #39.
  • Accept all value permutations as described by the Proto3 JSON spec when parsing JSON messages.
  • #initialize now accepts partial messages. This enables you to create a full message with select fields set to a user-provided value:
    const ron = User.initialize({ firstName: "Ron" });
    
tatethurston
published 0.0.18 •

Changelog

Source

v0.0.18

  • Fix JSON deserializtion of recursive (self referencing) messages.
  • Fix generated TypeScript types for repeated recursive (self referencing) messages.
tatethurston
published 0.0.17 •

Changelog

Source

v0.0.17

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

Changelog

Source

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
    
tatethurston
published 0.0.15 •

Changelog

Source

v0.0.15

This release includes a number of 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.
tatethurston
published 0.0.14 •

Changelog

Source

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.

tatethurston
published 0.0.13 •

Changelog

Source

v0.0.13

Update package Protocol Buffers Well-Known Types to enable strict ESM.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc