Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Releases: uber/prototool

v1.0.0

23 Aug 22:07
Compare
Choose a tag to compare

Initial release.

v1.0.0-rc1

17 Aug 00:19
Compare
Choose a tag to compare
v1.0.0-rc1 Pre-release
Pre-release

Fixed

  • Fixed regression where prototool version did not output 'Git commit' and
    'Built'.

v0.7.1

15 Aug 19:59
Compare
Choose a tag to compare
v0.7.1 Pre-release
Pre-release

Fixed

  • Fixed an issue where Golang Mname=package modifiers were being duplicated.

v0.7.0

09 Aug 20:28
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Changed

  • Move protoc_includes and protoc_version settings under protoc key.
  • Move allow_unused_imports to protoc.allow_unused_imports.
  • Move protoc-url global flag under the applicable commands: all,
    compile, format, gen, and lint.
  • Rename gen to generate.

v0.6.0

03 Aug 22:41
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

Changed

  • Delete the ability to explicitly specify multiple files, and have the effect
    of one file being specified be the same as the former --dir-mode. See
    #16 for more details.
  • Delete protoc_include_wkt setting. This is always set to true.
  • Delete no_default_excludes setting. This is always set to true.
  • Delete gen.go_options.no_default_modifiers setting.
  • Delete lint.group setting.
  • Delete harbormaster global flag.
  • Refactor create.dir_to_base_package to the list create.packages See
    the documentation for more details.
  • Rename create.dir_to_base_package -> create.dir_to_package.
  • Move prototool init to prototool config init.
  • Move gen.plugin_overrides to gen.plugins.path.
  • Refactor lint configuration. See the documentation for details.
  • Refactor format --no-rewrite so that the previous default is now enabled via
    format --fix.

Fixed

  • Fix excludes setting to correctly match file path prefixes.

v0.5.0

26 Jul 07:09
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

Added

  • A linter to verify that no enum uses the option allow_alias.
  • The --protoc-url flag can now handle references to local protoc zip files
    as well as normal http references by handling urls of the form
    file:///path/to/protoc.zip.

Changed

  • The formatter now prints primitive field options on the same line
    as the field.
  • The commands binary-to-json, clean, descriptor-proto, download,
    field-descriptor-proto, json-to-binary, list-all-linters,
    list-all-lint-groups, list-linters, list-lint-group, and
    service-descriptor-proto are deleted to reduce the surface area
    for the v1.0 release.
  • The commands list-all-linters and list-linters are now flags
    on the lint command.
  • The flags --cache-path and --print-fields are deleted to reduce the
    surface area for the v1.0 release.
  • The option lint.group in the prototool.yaml configuration is deleted
    to reduce the surface area for the v1.0 release.
  • The command protoc-commands is now accessible via the --dry-run
    flag on the commands compile and gen.
  • The grpc command now takes the flags --address, --method, and --data
    or --stdin as opposed to parsing these from variable-length command args.
  • If more than one prototool.yaml is found for the input directory or files,
    an error is returned.
  • The prototool binary package is moved under internal.

v0.4.0

22 Jun 18:55
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Added

  • A new command prototool create to auto-generate Protobuf files from a
    template. The generated files have the Protobuf package, go_package,
    java_multiple_files, java_outer_classname, and java_package values set
    depending on the location of your file and config settings. Make sure to
    update your Vim plugin setup as well if using the Vim integration. See the
    documentation for prototool create in the README.md for more details.

Changed

  • The values for java_multiple_files, java_outer_classname, and
    java_package that pass lint by default now reflect what is expected
    by the Google Cloud APIs file structure. See
    https://cloud.google.com/apis/design/file_structure for more details.
  • protobuf format will now automatically update the value of go_package,
    java_multiple_files, java_outer_classname, and java_package to match
    what is expected in the default Style Guide. This functionality can be
    suppressed with the flag --no-rewrite. See the documentation for
    prototool format in the README.md for more details.
  • Formatting configuration options are removed. We think there should be
    only one way to format, so we went with defaults of two spaces for indents,
    semicolons at the end of RPCs if there are no RPC options, and always
    having a newline at the end of a file.

v0.3.0

14 Jun 18:27
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Added

  • Linters to verify that java_multiple_files and java_outer_classname are
    unset.

Fixed

  • The formatting order now reflects
    https://cloud.google.com/apis/design/file_structure by moving the location
    of imports to be below syntax, package, and file options.
  • Temporary files used for FileDescriptorSets are now properly cleaned up.
  • Packages that begin with a keyword no longer produce an error when using
    prototool format or prototool lint.

v0.2.0

29 May 11:28
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Added

  • A default lint rule to verify that a package is always declared.
  • A lint group all that contains all the lint rules, not just the default
    lint rules.
  • A flag --harbormaster that will print failures in JSON that is compatible
    with the Harbormaster API.

Fixed

  • prototool init will return an error if there is an existing prototool.yaml
    file instead of overwriting it.
  • Nested options are now properly printed out from prototool format.
  • Repeated options are now properly printed out from prototool format.
  • Weak and public imports are now properly printed out from prototool format.
  • Option keys with empty values are no longer printed out
    from prototool format.

v0.1.0

11 Apr 15:17
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Initial release.