Dart 2 constraint fixing (#114)
diff --git a/.gitignore b/.gitignore
index edeff5f..3c62455 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
.dart_tool/
+.idea/
.packages
.pub
out
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e0b7821..e639385 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,63 +1,67 @@
-## 0.8.0+1 - 2018-07-13
+## 0.8.1
-* Dart SDK upper constraint raised to declare compatability with Dart 2.0 stable.
+* Adjust dependencies to actually be compatible with Dart 2.0 stable.
-## 0.8.0 - 2018-05-17
+## 0.8.0+1
+
+* Dart SDK upper constraint raised to declare compatibility with Dart 2.0 stable.
+
+## 0.8.0
* Breaking change: Generated RpcClient stubs use the generic invoke method.
Requires package:protobuf version 0.8.0 or newer.
* Dart 2 fixes.
-## 0.7.11 - 2018-04-09
+## 0.7.11
* Dart 2 fix.
-## 0.7.10 - 2018-02-22
+## 0.7.10
* Small performance tweak for DDC.
-## 0.7.9 - 2018-01-12
+## 0.7.9
* Add fast getters for common types.
* Only pass index instead of tag and index in generated code.
* Fix uses-dynamic-as-bottom error in generated gRPC code.
-## 0.7.8 - 2017-10-25
+## 0.7.8
* Added enumValues to FieldInfo.
-## 0.7.7 - 2017-09-25
+## 0.7.7
* Avoid name clashes between import prefix and field names.
* Avoid name clashes between generated enum and extension class names.
* Updated gRPC client stub generation to match latest changes to dart-lang/grpc-dart.
-## 0.7.6 - 2017-08-22
+## 0.7.6
* Updated gRPC client stub generation to produce code matching latest changes to
dart-lang/grpc-dart.
-## 0.7.5 - 2017-08-04
+## 0.7.5
* Use real generic syntax instead of comment-based.
* Support 2.0.0 dev SDKs.
-## 0.7.4 - 2017-07-07
+## 0.7.4
* Added call options to gRPC client stubs.
-## 0.7.3 - 2017-07-05
+## 0.7.3
### gRPC support
* Added gRPC stub generation.
* Updated descriptor.proto from google/protobuf v3.3.0.
-## 0.7.2 - 2017-06-12
+## 0.7.2
* Added CHANGELOG.md
-## 0.7.1 - 2017-06-12
+## 0.7.1
* Enable executable for `pub global` usage. Protoc plugin can now be installed by running `pub global activate protoc_plugin`.
* Ensure generated extension class names don't conflict with message class names.
@@ -82,14 +86,14 @@
* Generate separate .pbjson.dart files for constants.
-## 0.5.1 - 2016-04-12
+## 0.5.1
### Strong mode and Bazel
* Fixed all analyzer diagnostics in strong mode.
* Added experimental support for Bazel.
-## 0.5.0 - 2015-10-02
+## 0.5.0
### Performance improvements
@@ -98,7 +102,7 @@
* significantly improved performance for getters, setters, and hazzers
* Each enum type now has a $json constant that contains its metadata.
-## 0.4.1 - 2015-08-22
+## 0.4.1
### Fixed imports, $checkItem, $json
@@ -107,7 +111,7 @@
* Fixed service stubs to work when a message is in a different package
* Started generating JSON constants to get the original descriptor data for services
-## 0.4.0 - 2015-07-16
+## 0.4.0
### Getters for message fields changed
@@ -131,15 +135,15 @@
Starting in 0.4.0, the default value of "msg.foo" is an immutable instance of Foo. You can read
the default value of a field the same as before, but writes will throw UnsupportedError.
-## 0.3.11 - 2015-07-08
+## 0.3.11
* Fixes issues with reserved names
-## 0.3.10 - 2015-07-06
+## 0.3.10
* Adds support for generating stubs from service definitions.
-## 0.3.9 - 2015-06-24
+## 0.3.9
* Modify dart_options support so that it supports alternate mixins.
* Move the experimental map implementation to PbMapMixin
@@ -149,7 +153,7 @@
* add the new class to the protobuf library
* add the class to the list in mixin.dart.
-## 0.3.8 - 2015-06-16
+## 0.3.8
### Added option for experimental map API
@@ -163,13 +167,13 @@
* Added an option to have GeneratedMessage subclasses implement Map.
-## 0.3.6 - 2016-04-22
+## 0.3.6
### Added writeToJsonMap and mergeFromJsonMap to reservedNames
The 0.3.6 version of the dart-protobuf library added two new functions, so this release changes the protobuf compiler to avoid using them.
-## 0.3.5 - 2015-03-31
+## 0.3.5
Protobuf changes for smaller dart2js code, Int64 fixes
@@ -181,13 +185,13 @@
2. Generate and use static M.create() and M.createRepeated() methods on message classes M to ensure there is a shared copy of these closures rather than one copy per use.
3. Parse Int64 values rather than generate from 'int' to ensure no truncation errors in JavaScript.
-## 0.3.4 - 2015-03-31
+## 0.3.4
Parameterize uri resolution and parsing of options, use package:path.
This helps make the compiler more configurable
to embed it in other systems (like pub transformers)
-## 0.3.3 - 2015-03-31
+## 0.3.3
Update the version number
diff --git a/pubspec.yaml b/pubspec.yaml
index f39540a..8924e85 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,14 +1,14 @@
name: protoc_plugin
-version: 0.8.0+1
+version: 0.8.1
author: Dart Team <misc@dartlang.org>
description: Protoc compiler plugin to generate Dart code
homepage: https://github.com/dart-lang/dart-protoc-plugin
environment:
- sdk: '>=1.21.0 <3.0.0'
+ sdk: '>=2.0.0 <3.0.0'
dependencies:
fixnum: ^0.10.5
path: ^1.0.0
- protobuf: ^0.9.0
+ protobuf: ^0.9.1
dart_style: ^1.0.6
dev_dependencies:
test: ^1.3.0