Skip to content

v1.1.0

Choose a tag to compare

@jhump jhump released this 17 Oct 21:53
f90aa08

This version includes several enhancements to the "github.com/jhump/protoreflect/desc/protoprint" package.

Changes/fixes:

  1. Trailing comments will be rendered on the same line as element in many cases.
  2. Fixed issue with errant comments showing up before and after extend ... blocks.
  3. Changed canonical ordering of elements when Printer.SortElements is true: options now show up after the package and import statements.

Additions:

  1. The protoprint.Printer type has a new method that allows printing any kind of descriptor to a string, not just files.
  2. There are several new options on protoprint.Printer which provide more control over how comments, type references, and whitespace get printed.

Deprecations:

  1. The OmitDetachedComments field of protoprint.Printer has been deprecated in favor of a new field that provides more control over what comments are included in the printed output.