Skip to content

Latest commit

 

History

History
388 lines (201 loc) · 12.1 KB

CHANGELOG.md

File metadata and controls

388 lines (201 loc) · 12.1 KB

1.80.0 (2021-05-09)

Features

1.79.8 (2021-05-09)

Bug Fixes

1.79.7 (2021-04-27)

Bug Fixes

1.79.6 (2021-04-24)

Bug Fixes

1.79.5 (2021-04-24)

Bug Fixes

1.79.4 (2021-04-23)

Bug Fixes

1.79.3 (2021-04-16)

Bug Fixes

  • Add long dep to ts-proto-descriptors. (#275) (0d20827)

1.79.2 (2021-04-07)

Bug Fixes

1.79.1 (2021-04-04)

Bug Fixes

1.79.0 (2021-04-02)

Features

1.78.1 (2021-04-02)

Bug Fixes

1.78.0 (2021-04-02)

Features

v1.77.0

  • Fix bytes initialization. Fixes #237. (willclarktech and webmaster128)
  • Better camelization for FOO_BAR to fooBar
  • Add message.$type fields and a type register. See #254. (aikoven)
  • Don't output long initialization for only types. Fixes #247.

v1.76.0

  • Always initial long when forceLong=long. Fixes #247. (daw1012345)

v1.75.0

  • Fix stringEnums combined with outputEncodeMethods

v1.74.0

  • Fix @improbable-eng imports to work with babel. (m!m)

v1.73.0

  • Fix compiler errors when strict is enabled. Fixes #235. (Graham)

v1.72.0

  • Revert the change in v1.70.0 that changed useOptionals handling of repeated fields.

Before this PR, useOptionals was purely a type system tweak, and this PR introduced a change to decoding semantics, so it needs to be re-introduced under a separate flag to avoid being a breaking change.

v1.71.0

  • Add constEnum option to enable const enums. Fixes #230. (lxgreen)

v1.70.0

  • Update useOptionals to make repeated fields optional as well. Fixes #225. (i-dot)

v1.69.0

  • Actually fix #223.

v1.68.0

  • Allow setting outputJsonMethods=true while using nestJs=true. Fixes #223.

v1.67.0

  • Add outputPartialMethods. See #207. (mharsat)

v1.66.0

  • Allow returnObservable=true when not using grpc-web. See #220. (ardyfeb)
  • Fix useDate=false in encoding/JSON methods. See #211. (willclarktech)
  • Revert back to object spread instead of Object.create for primitive default values. Fixes #218.

v1.65.0

  • Fix globalThis compilation errors with messages called Error

v1.64.0

  • Don't put default values on the wire while encoding. Fixed #213. (webmaster128)

v1.63.0

  • Qualify Object.create with globalThis to avoid collisions with message names of Object. Fixes #216.

v1.62.0

  • Use ts-proto-descriptors package to read/write the protoc stdin CodeGeneratorRequest and stdout CodeGeneratorResponse messages.

v1.61.0

  • Use Object.create in decode to create messages so that hasOwnProperty will be false for fields that are using default values.

    In theory fields being default values is not supposed to be observable (on the wire at least), but protobuf itself specifically uses this for the FieldDescriptorProto.oneofIndex field.

v1.60.0

  • New outputSchema option to include the *.proto schema/metadata in the generated output file (Vilsol)

v1.59.0

  • Fix DeepPartial imports when services and messages are in separate files

v1.58.0

  • Fix JSON parsing of long wrapper values when forceLong != long (jessebutterfield)

v1.57.0

  • Accidental duplicate publish.

v1.56.0

  • Fix import collisions for imported-only symbols (stezu)

v1.55.0

  • Fix missing fromTimestamp import in generated code, fixes #200 (jessebutterfield)

v1.54.0

  • Fix google.protobuf.BytesValue in fromPartial & fromJSON (ebakoba)

v1.53.0

  • Fix typo for method names in service output (willclarktech)

v1.52.0

  • Fix stringEnums=true in fromJSON and fromPartial output (mharsat)

v1.51.0

  • Re-publish to fix previous publish error.

v1.50.0

  • Allow setting addGrpcMetadata=true w/o using NestJS (#188)

v1.49.0

  • Add exportCommonSymbols flag (defaults true) that, when false skips exporting a few common symbols (i.e. DeepPartial) that make it more likely for multiple generated files to be imported by import * from ... and not have import conflicts, i.e. for barrel imports.

v1.48.0

  • Tweak atob & btoa utility methods to prefix Buffer with globalThis to avoid issues in non-node envs. Fixes #77.

v1.47.0

  • Avoid import conflicts when an imported message name matches a locally-declared message name, see #36.

v1.46.0

  • Import protobufjs/minimal as a default import when using esModuleInterop
    • This should fix running in "type: module" ESM modules, see #181

v1.45.0

  • Add new esModuleInterop option to fix Long imports for projects that use esModuleInterop: true in their tsconfig.json.

v1.44.0

  • Fix DeepPartial when used with Longs (willclarktech)

v1.43.0

  • Polyfill globalThis for Node v10 support (willclarktech)

v1.42.1

  • Handle @deprecated when there are no other comments (ShakedH)

v1.42.0

  • Messages and fields that are marked as deprecated in *.proto files will have a @deprecated marker included in their JSDoc output (ShakedH)
  • Upgraded to the latest ts-poet

v1.41.1

  • [grpc-web] Remove import = to support not using synthetic default imports

v1.41.0

  • [grpc-web] Fix code generation errors introduced in v1.40.0
  • [grpc-web] Revert breaking change of unaryTransport / invokeTransport
    • Now client constructors take transport & streamingTransport, and streaming calls will use streamingTransport is set, and otherwise fallback on transport.
  • [grpc-web] Remove rxjs dependency unless streaming is actually used

v1.40.0

  • Add support for grpc-web streaming responses (PhilipMantrov)

v1.38.0

  • Add unrecognizedEnum option for disabling the UNRECOGNIZED enum values (ShakedH)

v1.37.0

  • Fix forceLong behavior when using wrapper types (Graham)
  • Add rpcDataLoaderOptions (Felix Mo)
  • Add useDate option to disable java.util.Date mapping (Graham)
    • This is primarily useful for NestJS which can only encode the original google.protobuf.Timestamp type
  • Add stringEnums option (Bastian Eicher)
    • Note this is not supported in the binary encode/decode methods yet
  • Avoid unnecessary import = usage (Graham)

v1.36.0

  • Add a protobufPackage exported const for metadata

v1.35.1

  • Fix maps of enums (@ahmadj-levelbenefits)

v1.35.0

  • Fix proto3 optional support

v1.34.0

  • Fix blobs in fromPartial and toJSON

v1.33.0

  • Automatically configure protobuf.util.Long when 64-bit numbers are used (fixes #78)

v1.32.0

  • Add support for the experimental proto3 optional keyword

v1.31.0

  • Fix oneof=unions not decoding default values correctly (@philikon)

v1.30.0

  • Accept cross-call metadata args in the GrpcWebImpl constructor
  • Accept DeepPartial request types for grpc-web calls

v1.29.0

  • Fix toJSON with maps of messages (#124 by @mscolnick)

v1.28.0

  • Use enum keyword for modeling keywords again
  • Fix maps of google.protobuf.Timestamps
  • Fix name conflicts when using google.type.Date
  • Fix maps of bytes in JSON
  • Add initial support for grpc-web using the @improbable-eng/grpc-web runtime

v1.27.1

  • Extra release to ensure the build output is correct.

v1.27.0

  • Added a addNestjsRestParameter=true that adds a ...rest: any parameter to use NestJS decorators like @CurrentUser (@ToonvanStrijp)

v1.26.0

  • Added a oneof=properties that generates oneofs as an Abstract Data Type (ADT) of each option (@philikon)

v1.25.0

  • Added a useOptionals=true option that makes non-scaler/oneof fields optional, i.e. message?: Message instead of message: Message | undefined (@philikon)

v1.24.0

  • Messages no longer use a base prototype to get default values. (@cliedeman)

v1.23.0

  • Added a env=both option and made that the default

    This restores the pre-1.22.0 behavior that bytes are Uint8Array so that the Buffer support is not a breaking change. Users have to opt-in with env=node.

    Also fixes a bug introduced in 1.22.0 that output an as Buffer without first checking env=node.

v1.22.0

  • Added a env=node/env=browser option that defaults to env=node

    Currently env=node only changes the types of bytes from Uint8Array to Buffer, as a convenience for Node programming where Buffer (which is the defacto subclass of Uint8Array) is more widely used (@dolsup)

v1.21.5

  • Drop drop falsey values in maps in decode and fromPartial. Fixes #79. (@timostamm)

v1.21.4

  • Repeated fields cannot be optional, fixes #80 (@philikon)

v1.21.2 and v1.21.3

  • Use globalThis.Error instead of global.Error for browsers, fix for #70

v1.21.1

  • Fix NestJS decorator for only-stream-in / only-stream-out methods

v1.21.0

  • Allow Message.decode methods to take a Uint8Array (or Buffer) directly instead of having to pass a Reader

v1.20.2

  • Another fix for NestJS-related PACKAGE_NAME consts

v1.20.1

  • Fix for NestJS-related PACKAGE_NAME consts

v1.20.0

  • Support for NestJS streams

v1.19.0

  • Added support for generating NestJS friendly output (thanks Ian Gregson!)
    • See the readme for new options nestJs, lowerCaseServiceMethods, returnObservable, etc.