Viewing version 0.7.2. Open the latest package page.

protobuf

0.7.2

Runtime library for protocol buffers support.

Download archive

Readme

Build Status pub package

Provides runtime support for a Dart implementation of protobufs.

Typically one do not need to import this library–only libraries generated by the protoc plugin import this library directly.

If your library or application uses generated protobuf libraries, add this library as a dependency.

References

Changelog

0.7.2

  • Fix hashing for PbList.

0.7.1

  • Fix type in PbList.fold() for Dart 2.
  • Small performance tweaks for DDC.

0.7.0

  • Added fast getters for common types.
  • Only pass index instead of both tag and index to accessors.
  • Delegate more methods to underlying list in PbList.
  • Small fixes for Dart 2.0.

0.6.0

  • Added enumValues to FieldInfo. Fixes #63.
  • Small performance optimization when deserializing repeated messages from JSON.
  • Type annotations for strong mode.

0.5.5

  • Use real generic syntax instead of comment-based.
  • Support v2 dev SDKs.

0.5.4

  • Unknown enum values are ignored when parsing JSON, instead of throwing an exception.

0.5.3+2

  • Resolved a strong-mode error.

0.5.3+1

  • Performance: Avoid excessive cloning in merge.
  • Performance: Use code patterns that dart2js handles better.

0.5.3

  • fix zigzag function so all coded buffer reader tests work on dart2js.

0.5.2

  • make PbMixin constructor public for use within protoc plugin.

0.5.1+5

  • Revert previous change because it causes strong mode type error in the generated code. We will revisit this in a new version of mixin support.

0.5.1+4

  • Use a more refined implementation of Map in PbMapMixin

0.5.1+3

  • Performance: eliminate some dynamic calls.

0.5.1+2

  • Bugfix: remove dependency on pkg/crypto for real.

0.5.1+1

  • Require at least Dart SDK 1.13.

  • Removed dependency on pkg/crypto.

0.5.1

  • Experimental support for strong mode.
  • Fixed an issue with GeneratedMessage operator== and Map mixins
  • Added declaration of GeneratedMessage clone method

0.5.0+1

  • Support the latest version of package fixnum.

0.5.0

  • Reorganized internals to improve performance. We now store field values in a list instead of a map. Private properties and methods are all moved to the _FieldSet class. There are new entry points for generated getters, hazzers, and setters. Improved JSON decoding performance.
  • Dropped compatibility with .pb.dart files before 0.4.2 by removing internal constants from GeneratedMessage. Also, protoc plugins before 0.5.0 won't work.

0.4.2

  • Renamed FieldType to PbFieldType.

0.4.1 - DO NOT USE

  • added FieldType class. It turned out that FieldType is a commonly used name, even in .proto files. This is renamed to PbFieldType in 0.4.2.
  • Added support for observing field changes. For now, this can only be enabled by using a mixin to override the eventPlugin getter.
  • Removed optional third parameter from setField(). It was only intended for internal use, and could be used to defeat type checks on fields.
  • clearExtension() removes the value and extension in all cases. (Before, the extension would be kept and the list cleared for repeated fields.)
  • Upcoming: clearField() will require its argument to be a known tag number (which could be an extension). For now, this is only enforced when a mixin provides an eventPlugin.

0.4.0

  • Add ReadonlyMessageMixin. The generated message classes use this to for the default values of message fields.

0.3.11

  • Add meta.dart which declares reserved names for the plugin.

0.3.10

  • Add GeneratedService and ProtobufClient interfaces.

0.3.9

  • Add experimental mixins_meta library
  • Add experimental PbMapMixin class (in a separate library).
  • Fix bug where ExtensionRegistry would not be used for nested messages.

0.3.7

  • More docs.

0.3.6

  • Added mergeFromMap() and writeToJsonMap()
  • Fixed an analyzer warning.

0.3.5+3

  • Bugfix for setRange(): Do not assume Iterable has a sublist() method.

0.3.5+2

  • Simplify some types used in is checks and correct PbList to match the
  • signature of the List setRange method.

0.3.5+1

  • Bugfix for incorrect decoding of protobuf messages: Uint8List views with non-zero offsets were handled incorrectly.

0.3.5

  • Allow constants as field initial values as well as creation thunks to reduce generated code size.

  • Improve the performance of reading a protobuf buffer.

  • Fixed truncation error in least significant bits with large Int64 constants.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'protobuf:0.7.2'
pubspec.yaml
name: protobuf
version: 0.7.2
author: Dart Team <misc@dartlang.org>
description: Runtime library for protocol buffers support.
homepage: https://github.com/dart-lang/protobuf
environment:
  sdk: '>=1.21.0 <2.0.0'
dependencies:
  fixnum: '>=0.9.0 <0.11.0'
dev_dependencies:
  test: '>=0.12.0 <0.13.0'

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownloadc283ce57…81004c
0.2.0Cached · Upstream SHA-256 matchedDownloadaaf3d992…6aba70
0.2.0+1Cached · Upstream SHA-256 matchedDownloadc6754121…4b7719
0.2.0+2Cached · Upstream SHA-256 matchedDownloadfed5c31e…846233
0.2.0+3Cached · Upstream SHA-256 matchedDownload6c47ed1c…b456b9
0.3.0Cached · Upstream SHA-256 matchedDownload071ace68…7bcdda
0.3.1Cached · Upstream SHA-256 matchedDownload955d59c8…df9f52
0.3.2Cached · Upstream SHA-256 matchedDownloadcf21a164…400911
0.3.3Cached · Upstream SHA-256 matchedDownloadd8ffc11f…4088e8
0.3.3+1Cached · Upstream SHA-256 matchedDownloadc64a0882…4106e0
0.3.4Cached · Upstream SHA-256 matchedDownload081ac8af…e795f5
0.3.5Cached · Upstream SHA-256 matchedDownload79bdcbcb…7d667d
0.3.5+1Cached · Upstream SHA-256 matchedDownload3d0a8252…295fb7
0.3.5+2Cached · Upstream SHA-256 matchedDownloadf6564a8a…3f1f24
0.3.5+3Cached · Upstream SHA-256 matchedDownloadf732f64d…681e14
0.3.6Cached · Upstream SHA-256 matchedDownloadbe4556b2…32d44d
0.3.7Cached · Upstream SHA-256 matchedDownloadcc6b0ce9…e0ba23
0.3.9Cached · Upstream SHA-256 matchedDownload51cdce38…70c894
0.3.10Cached · Upstream SHA-256 matchedDownload7e064335…179513
0.3.11Cached · Upstream SHA-256 matchedDownload4cb638a6…19fe8d
0.4.0Cached · Upstream SHA-256 matchedDownloaddf2df601…c45c96
0.4.1Cached · Upstream SHA-256 matchedDownload4fbf4408…23985e
0.4.2Cached · Upstream SHA-256 matchedDownload9a408ef5…e011da
0.5.0Cached · Upstream SHA-256 matchedDownload55488ec7…a4d5b5
0.5.0+1Cached · Upstream SHA-256 matchedDownloada85b4612…1f317c
0.5.1Cached · Upstream SHA-256 matchedDownload9e87a7ac…8e9c0a
0.5.1+1Cached · Upstream SHA-256 matchedDownload9238932e…5080b8
0.5.1+2Cached · Upstream SHA-256 matchedDownload64971fed…613ace
0.5.1+3Cached · Upstream SHA-256 matchedDownloadab372b11…b814c1
0.5.1+4Cached · Upstream SHA-256 matchedDownload29b98a08…ab116a
0.5.2Cached · Upstream SHA-256 matchedDownloada20fa184…13c47a
0.5.3Cached · Upstream SHA-256 matchedDownload439d8ed6…56b03f
0.5.3+1Cached · Upstream SHA-256 matchedDownloadac42865c…3c9f0d
0.5.3+2Cached · Upstream SHA-256 matchedDownload665e4d4f…527f01
0.5.4Cached · Upstream SHA-256 matchedDownload03bc3e3d…632d64
0.5.5Cached · Upstream SHA-256 matchedDownloadd9381968…14718e
0.6.0Cached · Upstream SHA-256 matchedDownload4d9e4654…927705
0.7.0Cached · Upstream SHA-256 matchedDownloade65fb6b1…5df2c3
0.7.1Cached · Upstream SHA-256 matchedDownload3f1068ad…2cc487
0.7.2Cached · Upstream SHA-256 matchedDownload90d1f3de…7433dc
0.8.0Cached · Upstream SHA-256 matchedDownload69311425…c13cd5
0.9.0Cached · Upstream SHA-256 matchedDownloade5cf39a2…40ae3c
0.9.0+1Cached · Upstream SHA-256 matchedDownloadd01fa35c…cc7c4b
0.9.1Cached · Upstream SHA-256 matchedDownload7ad2116c…9b46f6
0.10.0Cached · Upstream SHA-256 matchedDownloaddf3a5cfb…0c9a56
0.10.1Cached · Upstream SHA-256 matchedDownload7be526b5…b77949
0.10.2Cached · Upstream SHA-256 matchedDownloaddd279a47…f9a99b
0.10.3Cached · Upstream SHA-256 matchedDownloadef8f730d…34f44e
0.10.4Cached · Upstream SHA-256 matchedDownloadbaaacb57…0872c6
0.10.5Cached · Upstream SHA-256 matchedDownload5d3b7167…4d5dd5
0.10.6Cached · Upstream SHA-256 matchedDownloada1a5d94c…4fbd5f
0.10.7Cached · Upstream SHA-256 matchedDownloadec5bd095…219f35
0.10.8Cached · Upstream SHA-256 matchedDownloadf4ae2cd1…95e436
0.11.0Cached · Upstream SHA-256 matchedDownload0ddcfc4b…e729c1
0.12.0Cached · Upstream SHA-256 matchedDownload624d23f0…8e8926
0.13.0Cached · Upstream SHA-256 matchedDownloadaba4b4be…fd9793
0.13.1Cached · Upstream SHA-256 matchedDownload6f91ce04…73c724
0.13.2Cached · Upstream SHA-256 matchedDownload10de9c57…158f03
0.13.3Cached · Upstream SHA-256 matchedDownload5db0a57b…25efb8
0.13.4Cached · Upstream SHA-256 matchedDownload459602ff…8ccd14
0.13.6Cached · Upstream SHA-256 matchedDownloadc7f3a7c8…335188
0.13.8Cached · Upstream SHA-256 matchedDownloada6395a5a…0cfd3d
0.13.9Cached · Upstream SHA-256 matchedDownload588b4ac4…b051f0
0.13.11Cached · Upstream SHA-256 matchedDownload4476231e…485c2e
0.13.12Cached · Upstream SHA-256 matchedDownloadbb9d4e87…72a36e
0.13.14Cached · Upstream SHA-256 matchedDownload832c099b…dec3dd
0.13.15Cached · Upstream SHA-256 matchedDownloadfcc2b43d…36f9c1
0.13.16Cached · Upstream SHA-256 matchedDownload4390ca0d…f3f27f
0.13.16+1Cached · Upstream SHA-256 matchedDownload067ddf1a…82b099
0.14.0Cached · Upstream SHA-256 matchedDownload4fc75268…cb8217
0.14.1Cached · Upstream SHA-256 matchedDownload7d0339d0…dd4c19
0.14.3Cached · Upstream SHA-256 matchedDownload3ecebe80…5b8ca4
0.14.4Cached · Upstream SHA-256 matchedDownload06b62ed7…cfc978
1.0.0Cached · Upstream SHA-256 matchedDownloada07c1bfc…279d0a
1.0.1Cached · Upstream SHA-256 matchedDownload1e1b532a…1f6f12
1.1.0Cached · Upstream SHA-256 matchedDownload7f8c5bfc…51c09d
1.1.1Cached · Upstream SHA-256 matchedDownload99031bf5…036eb0
1.1.2Cached · Upstream SHA-256 matchedDownload7f8a6f2f…8c5957
1.1.3Cached · Upstream SHA-256 matchedDownload1196d3b1…e3c31d
1.1.4Cached · Upstream SHA-256 matchedDownload1f818f8f…abed55
2.0.0-nullsafety.0Cached · Upstream SHA-256 matchedDownload1b077c83…36eaee
2.0.0-nullsafety.1Cached · Upstream SHA-256 matchedDownload412a3d2d…44567f
2.0.0Cached · Upstream SHA-256 matchedDownload467c7ccf…962085
2.0.1Cached · Upstream SHA-256 matchedDownloadf9b7809d…d2a7ea
2.1.0Cached · Upstream SHA-256 matchedDownload01dd9bd0…108a08
3.0.0Cached · Upstream SHA-256 matchedDownload4034a02b…afe759
3.1.0Cached · Upstream SHA-256 matchedDownload68645b24…00c84d
4.0.0Cached · Upstream SHA-256 matchedDownloadfbb0c37d…c35aa6
4.1.0Cached · Upstream SHA-256 matchedDownload579fe555…857731
4.1.1Cached · Upstream SHA-256 matchedDownload6153efcc…caff0e
4.2.0Cached · Upstream SHA-256 matchedDownloadde9c9eb2…e4053e
5.0.0Cached · Upstream SHA-256 matchedDownload826d6a30…937006
5.1.0Cached · Upstream SHA-256 matchedDownload2fcc8a20…5bd902
6.0.0Cached · Upstream SHA-256 matchedDownload75ec242d…22bf06
6.1.0Cached · Upstream SHA-256 matchedDownload13b67173…c1a0f2

Dependencies

fixnum "\u003e=0.9.0 \u003c0.11.0"