Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.14 #399

Merged
merged 4 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

## v0.14.0

### Enhancements

* Include `Google` modules in this package, removing the need for
`:google_protos`.
* Include comments from the Protobuf definitions in the generated module docs
when generating with the `include_docs=true` option.
* Add native `JSON` support for Elixir 1.18+.
* Add `Protobuf.JSON.encode_to_iodata/1`.
* Add the `Protobuf.TransformModule.typespec/1` macro. It allows transform modules to transform typespecs for the message.
* Add the `Protobuf.unknown_fields()` type.
* Keep same alphabetical order in options for `use Protobuf` in generated code.

### Bug fixes

* Fix `Protobuf.EncodeError` exception including unrelated fields in the message.
* Fix `Protobuf.Encoder.encode_to_iodata/1` not applying transformation on
outer struct before encoding it.
* Support decoding integer as floats in JSON.
* Support decoding scientific notation integers in JSON (conformance).
* Accept nulls for repeated and maps in JSON (conformance).
* Fix handling of defaults in map decoding (conformance).
* Ensure there's a newline in the end of generated files.

### Breaking changes

* Inclusion of Google modules in this package **requires** the removal of the
`:google_protos` dependency.
* Protobuf struct modules now depend on their transform modules. This can
cause circular dependencies if the transform module has a dependency in the
other direction.

## v0.13.0

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The package can be installed by adding `:protobuf` to your list of dependencies
```elixir
def deps do
[
{:protobuf, "~> 0.13.0"}
{:protobuf, "~> 0.14.0"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Protobuf.Mixfile do
use Mix.Project

@source_url "https://github.com/elixir-protobuf/protobuf"
@version "0.13.0"
@version "0.14.0"
@description "A pure Elixir implementation of Google Protobuf."

def project do
Expand Down
Loading