Skip to content

Tags: google/protobuf.dart

Tags

protoc_plugin-v25.1.0

Toggle protoc_plugin-v25.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Remove legacy interop use (conditional import on dart.library.html) (#…

…1102)

protobuf-v6.1.0

Toggle protobuf-v6.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Remove legacy interop use (conditional import on dart.library.html) (#…

…1102)

protoc_plugin-v25.0.0

Toggle protoc_plugin-v25.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Check key and value validity in PbMap (#1076)

Currently `PbMap` does not check ranges of values added as keys or values.

This allows serializing and deserializing a message with a map and getting a
different map back, because `PbMap` allows adding values that are out of range
(e.g. an integer larger than 32-bit range as a `sfixed32` value) but when
serializing it truncates the value.

Update `PbMap` to use the same validation functions as `PbList` when adding
elements. Both keys and values are checked.

Fixes #1065.

protobuf-v6.0.0

Toggle protobuf-v6.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Check key and value validity in PbMap (#1076)

Currently `PbMap` does not check ranges of values added as keys or values.

This allows serializing and deserializing a message with a map and getting a
different map back, because `PbMap` allows adding values that are out of range
(e.g. an integer larger than 32-bit range as a `sfixed32` value) but when
serializing it truncates the value.

Update `PbMap` to use the same validation functions as `PbList` when adding
elements. Both keys and values are checked.

Fixes #1065.

protobuf-v5.1.0

Toggle protobuf-v5.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Release protobuf-5.1.0 (#1078)

protoc_plugin-v24.0.0

Toggle protoc_plugin-v24.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Don't iterate iterable arguments twice in PbList (#1070)

Update `PbList` methods that update the list with an `Iterable` argument to
avoid iterating the iterable twice: once for checking the element validity and
once again for actually adding the values.

Methods updated:

- addAll
- insertAll
- replaceRange
- setAll
- setRange

Exception handling behavior before this PR was undefined (same as the standard
library `List`), and it's slightly changed with this PR:

- addAll: previously if the iterator throws the list was left unchanged, now
  the elements until the exception will be added.

- Other methods: exception behaviors are now the same as the standard library
  `List` methods.

  It's hard to tell whether the previous behavior was the same or different
  with the standard library `List` methods, as the exception behavior of those
  are undefined.

To avoid allocating new iterators when a check function is not available, we
have conditionals in each of these methods and call the standard library `List`
methods directly when there isn't a check function.

To avoid increasing number of cases needed to be tested, we don't special case
iterable types like `PbList` and `List` in these methods. When the check
function is available we simply `map` them with the check function. Otherwise
call the same method on `wrappedList` directly.

Fixes #730.

protoc_plugin-v23.0.0

Toggle protoc_plugin-v23.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update CHANGELOGs for release (#1059)

protobuf-v5.0.0

Toggle protobuf-v5.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update CHANGELOGs for release (#1059)

protobuf-v4.2.0

Toggle protobuf-v4.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Release protobuf 4.2.0 (#1038)

protoc_plugin-v22.5.0

Toggle protoc_plugin-v22.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
prep for publishing protobuf 4.1.1, protoc_plugin 22.5.0 (#1025)