Fix return value of Protobuf.JSON.RFC3339.encode/2.
Improve error message when encoding oneoff.
Add support for proto3 optional field.
Bug fixes
Fix encoding root structs with transform module.
Fix a bug with negative durations in JSON.
Fix enum default value for structs where module is not available.
Support transform module in JSON encoder.
v0.10.0
Enhancements
Add Protobuf.get_unknown_varints/1, returns fields that could not be
decoded.
Support JSON mapping for proto2 schemas.
No longer warn when decoding unknown enum values.
Validate options in Protobuf.JSON.encode/2.
Raise Protobuf.DecodeError instead of CaseClauseError when trying to
decode an unknown wire type.
Raise Protobuf.DecodeError instead of MatchError when trying to
decode invalid delimeted types.
Include protoc-gen-elixir plugin version in generated files.
Bug fixes
Encode fields in the order they are defined in the schema.
Encode the value of oneof fields even when it's the default value.
Camelization fixes in generated code using the module_prefix and
package_prefix options.
Add nil to oneof typespec union.
Skip calling Type.new/1 for structs with transform modules.
Deprecations
Warn if @type t is defined inside a module that calls use Protobuf. To
fix this warning the files can be regenerated with the latest version of
protobuf.
Breaking changes
Raise an error if only @type t or defstruct is defined inside a module
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps protobuf from 0.9.0 to 0.11.0.
Changelog
Sourced from protobuf's changelog.
... (truncated)
Commits
885f39e
Release v0.11.0bac0d6a
Support TransformModule in JSON encoder (#310)9a45a01
Fix conformance tests in CI (#309)a1a65b0
Fix decoding of proto3 optional non-nil defaults (#302)042b58f
Update README to 0.10.0 (#307)ace76fd
Fix CI deps caching (#305)6a37705
Do not load module for enum defaults (#303)48c39d4
Fix use Bitwise warning (#296)747fca4
Regenerate Protobuf descriptors19eeb0e
Add a regression test that fails on OTP 25Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)