Skip to content

Commit df12118

Browse files
authored
Release v0.13.0 (#376)
1 parent e0920e3 commit df12118

File tree

7 files changed

+70
-57
lines changed

7 files changed

+70
-57
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## v0.13.0
4+
5+
### Enhancements
6+
7+
* Do not allow encoding structs as a different struct
8+
* Support OTP 27
9+
10+
### Bug fixes
11+
12+
* Add optional keys to `Protobuf.decode/2` typespecs
13+
* Include `elixirpb` files in Hex package
14+
* Fix JSON encoding of proto3 optional non-nil defaults
15+
316
## v0.12.0
417

518
### Enhancements

lib/elixirpb.pb.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Elixirpb.FileOptions do
22
@moduledoc false
33

4-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
4+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
55

66
field :module_prefix, 1, optional: true, type: :string
77
end

lib/elixirpb/pb_extension.pb.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Elixirpb.PbExtension do
22
@moduledoc false
3-
use Protobuf, protoc_gen_elixir_version: "0.12.0"
3+
use Protobuf, protoc_gen_elixir_version: "0.13.0"
44

55
extend Google.Protobuf.FileOptions, :file, 1047, optional: true, type: Elixirpb.FileOptions
66
end

lib/google/protobuf/compiler/plugin.pb.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Google.Protobuf.Compiler.CodeGeneratorResponse.Feature do
22
@moduledoc false
33

4-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
4+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
55

66
field :FEATURE_NONE, 0
77
field :FEATURE_PROTO3_OPTIONAL, 1
@@ -10,7 +10,7 @@ end
1010
defmodule Google.Protobuf.Compiler.Version do
1111
@moduledoc false
1212

13-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
13+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
1414

1515
field :major, 1, optional: true, type: :int32
1616
field :minor, 2, optional: true, type: :int32
@@ -21,7 +21,7 @@ end
2121
defmodule Google.Protobuf.Compiler.CodeGeneratorRequest do
2222
@moduledoc false
2323

24-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
24+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
2525

2626
field :file_to_generate, 1, repeated: true, type: :string
2727
field :parameter, 2, optional: true, type: :string
@@ -32,7 +32,7 @@ end
3232
defmodule Google.Protobuf.Compiler.CodeGeneratorResponse.File do
3333
@moduledoc false
3434

35-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
35+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
3636

3737
field :name, 1, optional: true, type: :string
3838
field :insertion_point, 2, optional: true, type: :string
@@ -43,7 +43,7 @@ end
4343
defmodule Google.Protobuf.Compiler.CodeGeneratorResponse do
4444
@moduledoc false
4545

46-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
46+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
4747

4848
field :error, 1, optional: true, type: :string
4949
field :supported_features, 2, optional: true, type: :uint64

lib/google/protobuf/descriptor.pb.ex

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Google.Protobuf.FieldDescriptorProto.Type do
22
@moduledoc false
33

4-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
4+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
55

66
field :TYPE_DOUBLE, 1
77
field :TYPE_FLOAT, 2
@@ -26,7 +26,7 @@ end
2626
defmodule Google.Protobuf.FieldDescriptorProto.Label do
2727
@moduledoc false
2828

29-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
29+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
3030

3131
field :LABEL_OPTIONAL, 1
3232
field :LABEL_REQUIRED, 2
@@ -36,7 +36,7 @@ end
3636
defmodule Google.Protobuf.FileOptions.OptimizeMode do
3737
@moduledoc false
3838

39-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
39+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
4040

4141
field :SPEED, 1
4242
field :CODE_SIZE, 2
@@ -46,7 +46,7 @@ end
4646
defmodule Google.Protobuf.FieldOptions.CType do
4747
@moduledoc false
4848

49-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
49+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
5050

5151
field :STRING, 0
5252
field :CORD, 1
@@ -56,7 +56,7 @@ end
5656
defmodule Google.Protobuf.FieldOptions.JSType do
5757
@moduledoc false
5858

59-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
59+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
6060

6161
field :JS_NORMAL, 0
6262
field :JS_STRING, 1
@@ -66,7 +66,7 @@ end
6666
defmodule Google.Protobuf.MethodOptions.IdempotencyLevel do
6767
@moduledoc false
6868

69-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
69+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
7070

7171
field :IDEMPOTENCY_UNKNOWN, 0
7272
field :NO_SIDE_EFFECTS, 1
@@ -76,7 +76,7 @@ end
7676
defmodule Google.Protobuf.GeneratedCodeInfo.Annotation.Semantic do
7777
@moduledoc false
7878

79-
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
79+
use Protobuf, enum: true, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
8080

8181
field :NONE, 0
8282
field :SET, 1
@@ -86,15 +86,15 @@ end
8686
defmodule Google.Protobuf.FileDescriptorSet do
8787
@moduledoc false
8888

89-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
89+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
9090

9191
field :file, 1, repeated: true, type: Google.Protobuf.FileDescriptorProto
9292
end
9393

9494
defmodule Google.Protobuf.FileDescriptorProto do
9595
@moduledoc false
9696

97-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
97+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
9898

9999
field :name, 1, optional: true, type: :string
100100
field :package, 2, optional: true, type: :string
@@ -114,7 +114,7 @@ end
114114
defmodule Google.Protobuf.DescriptorProto.ExtensionRange do
115115
@moduledoc false
116116

117-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
117+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
118118

119119
field :start, 1, optional: true, type: :int32
120120
field :end, 2, optional: true, type: :int32
@@ -124,7 +124,7 @@ end
124124
defmodule Google.Protobuf.DescriptorProto.ReservedRange do
125125
@moduledoc false
126126

127-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
127+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
128128

129129
field :start, 1, optional: true, type: :int32
130130
field :end, 2, optional: true, type: :int32
@@ -133,7 +133,7 @@ end
133133
defmodule Google.Protobuf.DescriptorProto do
134134
@moduledoc false
135135

136-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
136+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
137137

138138
field :name, 1, optional: true, type: :string
139139
field :field, 2, repeated: true, type: Google.Protobuf.FieldDescriptorProto
@@ -150,7 +150,7 @@ end
150150
defmodule Google.Protobuf.ExtensionRangeOptions do
151151
@moduledoc false
152152

153-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
153+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
154154

155155
field :uninterpreted_option, 999, repeated: true, type: Google.Protobuf.UninterpretedOption
156156

@@ -160,7 +160,7 @@ end
160160
defmodule Google.Protobuf.FieldDescriptorProto do
161161
@moduledoc false
162162

163-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
163+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
164164

165165
field :name, 1, optional: true, type: :string
166166
field :number, 3, optional: true, type: :int32
@@ -178,7 +178,7 @@ end
178178
defmodule Google.Protobuf.OneofDescriptorProto do
179179
@moduledoc false
180180

181-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
181+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
182182

183183
field :name, 1, optional: true, type: :string
184184
field :options, 2, optional: true, type: Google.Protobuf.OneofOptions
@@ -187,7 +187,7 @@ end
187187
defmodule Google.Protobuf.EnumDescriptorProto.EnumReservedRange do
188188
@moduledoc false
189189

190-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
190+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
191191

192192
field :start, 1, optional: true, type: :int32
193193
field :end, 2, optional: true, type: :int32
@@ -196,7 +196,7 @@ end
196196
defmodule Google.Protobuf.EnumDescriptorProto do
197197
@moduledoc false
198198

199-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
199+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
200200

201201
field :name, 1, optional: true, type: :string
202202
field :value, 2, repeated: true, type: Google.Protobuf.EnumValueDescriptorProto
@@ -212,7 +212,7 @@ end
212212
defmodule Google.Protobuf.EnumValueDescriptorProto do
213213
@moduledoc false
214214

215-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
215+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
216216

217217
field :name, 1, optional: true, type: :string
218218
field :number, 2, optional: true, type: :int32
@@ -222,7 +222,7 @@ end
222222
defmodule Google.Protobuf.ServiceDescriptorProto do
223223
@moduledoc false
224224

225-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
225+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
226226

227227
field :name, 1, optional: true, type: :string
228228
field :method, 2, repeated: true, type: Google.Protobuf.MethodDescriptorProto
@@ -232,7 +232,7 @@ end
232232
defmodule Google.Protobuf.MethodDescriptorProto do
233233
@moduledoc false
234234

235-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
235+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
236236

237237
field :name, 1, optional: true, type: :string
238238
field :input_type, 2, optional: true, type: :string
@@ -245,7 +245,7 @@ end
245245
defmodule Google.Protobuf.FileOptions do
246246
@moduledoc false
247247

248-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
248+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
249249

250250
field :java_package, 1, optional: true, type: :string
251251
field :java_outer_classname, 8, optional: true, type: :string
@@ -281,7 +281,7 @@ end
281281
defmodule Google.Protobuf.MessageOptions do
282282
@moduledoc false
283283

284-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
284+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
285285

286286
field :message_set_wire_format, 1, optional: true, type: :bool, default: false
287287
field :no_standard_descriptor_accessor, 2, optional: true, type: :bool, default: false
@@ -296,7 +296,7 @@ end
296296
defmodule Google.Protobuf.FieldOptions do
297297
@moduledoc false
298298

299-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
299+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
300300

301301
field :ctype, 1,
302302
optional: true,
@@ -325,7 +325,7 @@ end
325325
defmodule Google.Protobuf.OneofOptions do
326326
@moduledoc false
327327

328-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
328+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
329329

330330
field :uninterpreted_option, 999, repeated: true, type: Google.Protobuf.UninterpretedOption
331331

@@ -335,7 +335,7 @@ end
335335
defmodule Google.Protobuf.EnumOptions do
336336
@moduledoc false
337337

338-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
338+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
339339

340340
field :allow_alias, 2, optional: true, type: :bool
341341
field :deprecated, 3, optional: true, type: :bool, default: false
@@ -348,7 +348,7 @@ end
348348
defmodule Google.Protobuf.EnumValueOptions do
349349
@moduledoc false
350350

351-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
351+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
352352

353353
field :deprecated, 1, optional: true, type: :bool, default: false
354354
field :uninterpreted_option, 999, repeated: true, type: Google.Protobuf.UninterpretedOption
@@ -359,7 +359,7 @@ end
359359
defmodule Google.Protobuf.ServiceOptions do
360360
@moduledoc false
361361

362-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
362+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
363363

364364
field :deprecated, 33, optional: true, type: :bool, default: false
365365
field :uninterpreted_option, 999, repeated: true, type: Google.Protobuf.UninterpretedOption
@@ -370,7 +370,7 @@ end
370370
defmodule Google.Protobuf.MethodOptions do
371371
@moduledoc false
372372

373-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
373+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
374374

375375
field :deprecated, 33, optional: true, type: :bool, default: false
376376

@@ -388,7 +388,7 @@ end
388388
defmodule Google.Protobuf.UninterpretedOption.NamePart do
389389
@moduledoc false
390390

391-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
391+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
392392

393393
field :name_part, 1, required: true, type: :string
394394
field :is_extension, 2, required: true, type: :bool
@@ -397,7 +397,7 @@ end
397397
defmodule Google.Protobuf.UninterpretedOption do
398398
@moduledoc false
399399

400-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
400+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
401401

402402
field :name, 2, repeated: true, type: Google.Protobuf.UninterpretedOption.NamePart
403403
field :identifier_value, 3, optional: true, type: :string
@@ -411,7 +411,7 @@ end
411411
defmodule Google.Protobuf.SourceCodeInfo.Location do
412412
@moduledoc false
413413

414-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
414+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
415415

416416
field :path, 1, repeated: true, type: :int32, packed: true, deprecated: false
417417
field :span, 2, repeated: true, type: :int32, packed: true, deprecated: false
@@ -423,15 +423,15 @@ end
423423
defmodule Google.Protobuf.SourceCodeInfo do
424424
@moduledoc false
425425

426-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
426+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
427427

428428
field :location, 1, repeated: true, type: Google.Protobuf.SourceCodeInfo.Location
429429
end
430430

431431
defmodule Google.Protobuf.GeneratedCodeInfo.Annotation do
432432
@moduledoc false
433433

434-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
434+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
435435

436436
field :path, 1, repeated: true, type: :int32, packed: true, deprecated: false
437437
field :source_file, 2, optional: true, type: :string
@@ -447,7 +447,7 @@ end
447447
defmodule Google.Protobuf.GeneratedCodeInfo do
448448
@moduledoc false
449449

450-
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.12.0"
450+
use Protobuf, syntax: :proto2, protoc_gen_elixir_version: "0.13.0"
451451

452452
field :annotation, 1, repeated: true, type: Google.Protobuf.GeneratedCodeInfo.Annotation
453453
end

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Protobuf.Mixfile do
22
use Mix.Project
33

44
@source_url "https://github.com/elixir-protobuf/protobuf"
5-
@version "0.12.0"
5+
@version "0.13.0"
66
@description "A pure Elixir implementation of Google Protobuf."
77

88
def project do

0 commit comments

Comments
 (0)