Skip to content

Commit

Permalink
Release v0.14 (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Jan 16, 2025
1 parent 62dfa12 commit 6c53c49
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
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

0 comments on commit 6c53c49

Please sign in to comment.