p-hatan/ mirror

pub repository

mirror.p-hatan.com

protobuf

0.10.0

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.10.0

  • Breaking change: Add GeneratedMessage.freeze(). A frozen message and its sub-messages cannot be changed.

0.9.1

  • Fix problem with encoding negative enum values.
  • Fix problem with encoding byte arrays.

0.9.0+1

  • Dart SDK upper constraint raised to declare compatability with Dart 2.0 stable.

0.9.0

  • Breaking change: Changed signature of CodedBufferWriter.writeTo to require Uint8List for performance.
  • More Dart 2 fixes.

0.8.0

  • Breaking change: Added generics to RpcClient.invoke(). Proto files must be rebuilt using Dart protoc_plugin version 0.8.0 or newer to match.
  • Dart 2 fixes.

0.7.2+1

  • Updated SDK version to 2.0.0-dev.17.0

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.com
flutter pub add protobuf
pubspec.yaml
name: protobuf
version: 0.10.0
author: Dart Team <misc@dartlang.org>
description: Runtime library for protocol buffers support.
homepage: https://github.com/dart-lang/protobuf
environment:
  sdk: '>=2.0.0-dev.17.0 <3.0.0'
dependencies:
  fixnum: '>=0.9.0 <0.11.0'
dev_dependencies:
  test: '>=1.2.0'
  benchmark_harness: any
  js: any

Version history

VersionPublishedArchiveSHA-256
0.1.02013-09-05T12:27:51.447040ZDownloadc283ce57f006c170217ed5f568db582e68cfb6280280408fba0c8d252e81004c
0.2.02013-10-07T06:55:45.413180ZDownloadaaf3d99245e5d15df9bf8bd1fa040f1912e77cbac714fe774ad0c93f456aba70
0.2.0+12013-10-07T08:41:18.445890ZDownloadc6754121fd58b2ea8d1f932f66bc548163e883eeb54edd1e74cb8d3c604b7719
0.2.0+22013-10-10T13:58:55.892040ZDownloadfed5c31ecc5f28c36fc50f57fc4ea47b126e14e2fb0351288c50ded0b7846233
0.2.0+32013-10-11T12:32:03.599150ZDownload6c47ed1cf5ba501c20edf8f10fa835e093d9b0bee24dd97aa5dd7c7262b456b9
0.3.02013-11-02T21:08:37.410200ZDownload071ace685f97cad14c67c1f649458dfaf620e618c8537827a8cde7fef97bcdda
0.3.12013-11-08T08:11:55.185190ZDownload955d59c89e46d298801173ffec8856a6b20bf05c7861d0f4020a0630e7df9f52
0.3.22013-11-12T08:27:43.562880ZDownloadcf21a1641000b157bc9f09be5b6abc0d3c346d26f01a4a1ca99d4aff3d400911
0.3.32013-12-10T07:38:49.743820ZDownloadd8ffc11f8422bc013670239a406991894f45f12d206728105fc3b1a29a4088e8
0.3.3+12014-07-06T17:28:35.518010ZDownloadc64a08826b4a24d841975a9b5ea481a2f1a20f005fd838053045f99c854106e0
0.3.42014-08-27T21:56:59.146500ZDownload081ac8afa1ece70174b428fb3f918cf3c9196947dc20c14e54156dff78e795f5
0.3.52015-01-29T00:07:49.847990ZDownload79bdcbcbc0c930c59b64a7b8c65613e10716549ca6265b26f6b81459127d667d
0.3.5+12015-01-30T10:36:37.633960ZDownload3d0a825273261efa8d2abdbb72a97bb1e260e17ad359cf1f27446ddf70295fb7
0.3.5+22015-02-02T22:44:52.986440ZDownloadf6564a8ad963aeef0c89d4a540f4fb32ace7099e4ea6a8aa7fbd036d9a3f1f24
0.3.5+32015-03-23T12:05:55.273500ZDownloadf732f64d9b56b96d6fc6c15613f11aa0a65b080ca845ac8b9299357295681e14
0.3.62015-04-21T23:12:27.405500ZDownloadbe4556b2ad1c369f3637b0bb94c17912aed4e0c2d0db72c236741dca4332d44d
0.3.72015-06-10T23:20:13.712ZDownloadcc6b0ce92fef561f18e873e28d7e5bbb7a69ee47318d88cdf4ad386fb2e0ba23
0.3.92015-06-24T01:47:25.863ZDownload51cdce38a7577b95ce774f9d2e1f5aa7934bcf15d32b581eabadeb820270c894
0.3.102015-06-29T13:37:52.004ZDownload7e0643355d361d12e75fadaee8a43a060d5b0350a544b109a92a6143ff179513
0.3.112015-07-07T21:41:02.731ZDownload4cb638a6dff462b41aeb228bc751d1bb28a7a3e6834910786fb4b30e0b19fe8d
0.4.02015-07-15T23:28:08.572ZDownloaddf2df601a488e7a72e03864f3f392ee165ce7300e759dff9d7d0a961c7c45c96
0.4.12015-08-21T23:21:14.287ZDownload4fbf440814e08dd5d3b8ffb5b3b74778034605e81057b22471e983c6b223985e
0.4.22015-08-24T23:42:44.047ZDownload9a408ef59d04a68c3ca4fe9a1575aa6b72c0f641f4371b505bfedbf257e011da
0.5.02015-09-30T20:30:16.512ZDownload55488ec7b739c03342ad3860caa2b9d03f6f40093e5ccd8fdab0933192a4d5b5
0.5.0+12015-10-09T21:03:05.864ZDownloada85b4612c1885844c2e27135d9533b311c14acb79d930809af7050cb9e1f317c
0.5.12016-04-11T22:31:34.880ZDownload9e87a7ac3a4111068f363d85f78d364806b63d51d3967e1824e4d373638e9c0a
0.5.1+12016-04-15T18:25:25.684ZDownload9238932eb21a5e1ccfeabaf68958be2c75f5f7e85e8e3ec6ed69bad77c5080b8
0.5.1+22016-04-22T18:53:19.411ZDownload64971fedb15018140cc7f1960c92ddfe6f11c50e6c875cd357f7b711e5613ace
0.5.1+32016-05-25T23:36:40.849ZDownloadab372b11384af2e982bb329ad205182a8543d8debebc3765f1cc5d0654b814c1
0.5.1+42016-06-01T17:13:56.258ZDownload29b98a086f0a29f65f79d1e85649e66dbe0d71ab1983f9eb1b29dd830aab116a
0.5.22016-06-22T19:43:19.953ZDownloada20fa1843be2d15e24a64893bee28f86fd8b06abcf89dab838d5e6251a13c47a
0.5.32016-09-01T18:53:34.170ZDownload439d8ed6427c95dd3f1b41cf6f3c1e1ec660c65fbb2363da3664b5bb2e56b03f
0.5.3+12017-03-27T19:44:50.269534ZDownloadac42865cf4dc0436042e535546f26a4437b7c740dcce38f6f6f36ff9543c9f0d
0.5.3+22017-03-29T01:00:57.628869ZDownload665e4d4f07f594eeafb8d085eaebb8f9e0b6abe90669e308b08472283b527f01
0.5.42017-04-20T14:28:09.457145ZDownload03bc3e3d5666f7de212f8df54a2747896277f1dd5b8a7faee5fd0b23d0632d64
0.5.52017-08-14T12:02:25.109510ZDownloadd9381968e6da491dc1e9cf6ef9672e96edf7d201caa30450b6b2dc8e8d14718e
0.6.02017-10-25T10:39:45.253793ZDownload4d9e4654b12aee97683a99b58541553160bc33801ea598a960cefcb67e927705
0.7.02018-01-12T11:13:00.595398ZDownloade65fb6b1cbbc89420018a0e7bab810a95fc9596dcc6dfdf4cca46eef975df2c3
0.7.12018-02-22T12:19:35.178113ZDownload3f1068ad964bb9d93594335b55c520f4e09cd1851e65d7ec479162a4eb2cc487
0.7.22018-04-09T11:14:40.121119ZDownload90d1f3deb83a6930480445bb802d22dec7fb93ce9162462d199421ff7f7433dc
0.8.02018-05-17T10:38:03.201187ZDownload6931142545486d8ed13e84623afd2ca7a8a1aa409d40e1ec0886138b0cc13cd5
0.9.02018-05-25T22:24:03.087172ZDownloade5cf39a24d91ac31f2bf3644bb7a4046bfe2243e224fdb7dbc4616308840ae3c
0.9.0+12018-07-18T20:27:59.052026ZDownloadd01fa35ca92a59098cd432544e7d4bf19a8c190cef4b4700af6db0d154cc7c4b
0.9.12018-08-08T14:34:22.780298ZDownload7ad2116c692502994789e497bb2c26cce6a62950e103f655000a9fe18d9b46f6
0.10.02018-08-30T13:22:45.067791ZDownloaddf3a5cfb2a6732482eeaf3f46187c4ae6cf0e4793b99a18301e7a2368e0c9a56
0.10.12018-08-30T14:09:02.616183ZDownload7be526b5bff443c3750d099b4b2106f143408ffcb7323afe1708684881b77949
0.10.22018-09-06T12:41:48.204548ZDownloaddd279a47fb2690ae7cd7458d7b891ed5b5b3298f3a0494b79ff0fa7a54f9a99b
0.10.32018-09-21T15:34:16.530607ZDownloadef8f730d4ed14b13e5372e5157bf24617b279b1bea1a17277185e04acc34f44e
0.10.42018-10-02T22:23:19.258892ZDownloadbaaacb57c5835c5777575e36c7a57069834de62f318c3fb5a29fc51aa00872c6
0.10.52018-11-27T09:06:06.428325ZDownload5d3b71673704a40e4f548bb652f76dad6e3b717dcb18ae2a2ab503fc354d5dd5
0.10.62019-01-02T12:46:41.228840ZDownloada1a5d94c1a73b19a764a15d892f7847ada230f829f9eb7e0f1a0283e7a4fbd5f
0.10.72019-01-08T10:19:20.095649ZDownloadec5bd09522447fe90094442c6cfd210f4d6e3e7b62126d063cc28ccf7e219f35
0.10.82019-01-08T15:05:21.039261ZDownloadf4ae2cd19b1de1b58b1c13fce3ff38cbd4dcab325a3b9cb065f4e0167595e436
0.11.02019-01-08T15:29:27.442926ZDownload0ddcfc4bc3fe54987da1d82b53cb914e699fc099e4afc7c63f678eaf95e729c1
0.12.02019-01-15T14:19:57.580234ZDownload624d23f07674fc841ef5dc559a6e6c3b5e49baa33b5a7ced75081a11c28e8926
0.13.02019-01-22T14:29:07.784613ZDownloadaba4b4be939a876a974371996fd5969462d2020d6dfa7bfeeecc00c8bcfd9793
0.13.12019-02-04T14:10:27.343347ZDownload6f91ce044a4d27d6fc90b0d7b53868729dd739ab86302d0d829f37d88773c724
0.13.22019-02-05T14:52:43.622148ZDownload10de9c57341384ba30b2229d37bbc680fb69032e2b164743799b97dc76158f03
0.13.32019-02-12T12:54:22.481880ZDownload5db0a57b89607a50df01a1c7fcd07c167a526bec700e1f0a1417ba695625efb8
0.13.42019-02-25T13:50:14.272404ZDownload459602fff4352205b8e94440d51b365b59a9c6beac1b7080c2c7bb7d8b8ccd14
0.13.62019-04-01T23:54:44.551299ZDownloadc7f3a7c8f5b8e18bc571b1dbe92d457b3eed53f8bdc6ff92f21b51e171335188
0.13.82019-04-03T18:23:13.227761ZDownloada6395a5a9e46bf68f9d0170e634b3c8f1dbbb86842fae29c160f4bc9680cfd3d
0.13.92019-04-05T18:22:54.372041ZDownload588b4ac45227f281422759f78c4726f54c1cbf09442ab34c535a592858b051f0
0.13.112019-04-11T19:43:52.564997ZDownload4476231e0b3c240dacb899261fa33e57489974516e8dcec1624cfac13a485c2e
0.13.122019-06-04T21:12:27.733551ZDownloadbb9d4e8749ced2ede1472cfca873ef997af4eabefb7f0d326a8a1bdaf072a36e
0.13.142019-07-09T10:09:41.914920ZDownload832c099b7528ee5852a042f72162e8deb7db4f273900625d27cb2084ffdec3dd
0.13.152019-07-10T08:26:38.760729ZDownloadfcc2b43d477b347010597769ad738f072f2e1b1dad0618aa8fe84016c936f9c1
0.13.162019-09-12T06:27:44.895874ZDownload4390ca0d3799e1c01f6b098f519f8379001f41f1e2b9c02a881338d32bf3f27f
0.13.16+12019-09-12T16:56:10.683991ZDownload067ddf1a361d18f30a73c9f90eca1cb8e9f3b53f5936eb3e9ac5cb3b8482b099
0.14.02019-09-06T09:20:19.750013ZDownload4fc752686467193607227c115663ec417da0bdbdaf793c877c483666b1cb8217
0.14.12019-09-06T09:45:49.590095ZDownload7d0339d0b58b707804adba0fcb6c052cbb90c3175b09c9b30eb3fb3f31dd4c19
0.14.32019-09-17T07:43:52.955812ZDownload3ecebe80e296dbdbd66ed4d2e8b017c81b535b931a1419f79e1a71081a5b8ca4
0.14.42019-09-26T11:33:10.140740ZDownload06b62ed75c8c63cc6ba4332bd1864e3a8474b519bd2ccc6c7bef94740acfc978
1.0.02019-09-30T10:49:56.432374ZDownloada07c1bfc0945263aab3fc1568ec2594213dcf3e0a1250b770605550438279d0a
1.0.12019-11-11T11:40:27.661313ZDownload1e1b532aa5467cfcff00cfa6ff597eea78131515cb00991298fb8292ba1f6f12
1.1.02020-10-28T14:32:28.670923ZDownload7f8c5bfc9f29a0f02fa70f65e4561b45530eaaa613bb4f4c5ba39cf22f51c09d
1.1.12021-02-04T15:58:01.376741ZDownload99031bf58d564ab90c5da925be4bb6cc6cc4ba705f70c8b8041ea7c3e1036eb0
1.1.22021-02-23T08:14:37.240869ZDownload7f8a6f2f4af35f9533c9fc83850ebf0791b566fb700d07b75512f0cc228c5957
1.1.32021-02-26T08:16:43.760121ZDownload1196d3b1578a5c6290cbc46edd41985144dca81695d7ec5eb29a792aa3e3c31d
1.1.42021-06-21T18:02:27.394363ZDownload1f818f8f5de28e551cfc2a993c5a31a7f534618345654c904e203c0112abed55
2.0.0-nullsafety.02020-11-13T12:40:21.262513ZDownload1b077c83f83fa3f5cf58bdfd748b11d8e31efe4edf3acb2dc42ff9d81436eaee
2.0.0-nullsafety.12021-01-07T12:40:37.424354ZDownload412a3d2d41f532c3f9a0ea2ea14c93c0c1263be74c6e31ec3bca2ea1a144567f
2.0.02021-02-11T12:05:57.597538ZDownload467c7ccf3fee0272d5cb84bf20debc509f9a4f69ce06e5f7a8b749d7e6962085
2.0.12021-12-02T14:44:14.745611ZDownloadf9b7809db75bc95d411bc197d714613fb42f0b0c17553c95568a2a9179d2a7ea
2.1.02022-06-15T07:19:01.602042ZDownload01dd9bd0fa02548bf2ceee13545d4a0ec6046459d847b6b061d8a27237108a08
3.0.02023-06-15T08:36:56.731119ZDownload4034a02b7e231e7e60bff30a8ac13a7347abfdac0798595fae0b90a3f0afe759
3.1.02023-08-14T11:26:39.544599ZDownload68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d
4.0.02025-03-28T09:32:26.781055ZDownloadfbb0c37d435641d0b84813c1dad41e6fa61ddc880a320bce16b3063ecec35aa6
4.1.02025-05-19T18:44:26.242657ZDownload579fe5557eae58e3adca2e999e38f02441d8aa908703854a9e0a0f47fa857731
4.1.12025-07-16T22:54:57.573849ZDownload6153efcc92a06910918f3db8231fd2cf828ac81e50ebd87adc8f8a8cb3caff0e
4.2.02025-08-12T08:03:59.177181ZDownloadde9c9eb2c33f8e933a42932fe1dc504800ca45ebc3d673e6ed7f39754ee4053e
5.0.02025-09-30T08:25:17.931157ZDownload826d6a306be26f29e5cd9faeb0c97aad5897270341dab6dbd7b8acd675937006
5.1.02025-11-06T13:53:20.770543ZDownload2fcc8a202ca7ec17dab7c97d6b6d91cf03aa07fe6f65f8afbb6dfa52cc5bd902
6.0.02025-11-26T08:39:08.082637ZDownload75ec242d22e950bdcc79ee38dd520ce4ee0bc491d7fadc4ea47694604d22bf06
6.1.02026-09-11T11:58:15.235407ZDownload13b6717366aa7ec3792dd62c19c7d33a785708224365f2db23c5ca01f1c1a0f2

Dependencies

fixnum "\u003e=0.9.0 \u003c0.11.0"