protoscript
Advanced tools
Changelog
v0.0.22
Changelog
v0.0.20
Changelog
v0.0.19
const ron = User.initialize({ firstName: "Ron" });
Changelog
v0.0.18
Changelog
v0.0.17
Uint8Array
from PartialDeep
type. This fixes a type error for TypeScript users that use bytes
.Changelog
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
Changelog
v0.0.15
This release includes a number of bug fixes
Changelog
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.
Changelog
v0.0.13
Update package Protocol Buffers Well-Known Types to enable strict ESM.