immutable_proto_generator 0.0.5+1

  • Readme
  • Changelog
  • Installing
  • 52

See the immutable_proto' README for how to use this package.

License #

Copyright 2019 Jonas Wanke

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased #

0.0.5+1 - 2019-10-06 #

Fixed #

  • generator: reduce false positives when detecting nested messages/enums

0.0.5 - 2019-10-06

Changed #

  • generator: make enum values required

Fixed #

  • generator: reduce false positives when detecting nested enums

0.0.4 - 2019-10-04

Changed #

  • generator: prefer null to empty values in fromProto

Fixed #

  • generator: reduce false positives when detecting nested messages
  • generator: generate correct mappers for fields of type message

0.0.3 - 2019-10-03

Fixed #

  • update dependencies

0.0.2 - 2019-10-02

Added #

  • generator: support references to non-nested messages

0.0.1 - 2019-10-02 #

Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  immutable_proto_generator: ^0.0.5+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:immutable_proto_generator/immutable_proto_generator.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
17
Health:
Code health derived from static analysis. [more]
94
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
77
Overall:
Weighted score of the above. [more]
52
Learn more about scoring.

We analyzed this package on Jan 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health suggestions

Fix lib/src/proto_message.dart. (-2.48 points)

Analysis of lib/src/proto_message.dart reported 5 hints:

line 33 col 35: 'type' is deprecated and shouldn't be used.

line 56 col 42: 'type' is deprecated and shouldn't be used.

line 64 col 23: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 82 col 67: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 87 col 31: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Fix lib/src/proto_enum.dart. (-1.99 points)

Analysis of lib/src/proto_enum.dart reported 4 hints:

line 18 col 32: 'type' is deprecated and shouldn't be used.

line 32 col 37: 'type' is deprecated and shouldn't be used.

line 38 col 23: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 49 col 43: 'type' is deprecated and shouldn't be used.

Fix lib/src/proto_field.dart. (-1.49 points)

Analysis of lib/src/proto_field.dart reported 3 hints:

line 33 col 27: 'typeSystem' is deprecated and shouldn't be used. Use LibraryElement.typeSystem.

line 80 col 58: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

line 81 col 27: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Fix lib/src/utils.dart. (-0.50 points)

Analysis of lib/src/utils.dart reported 1 hint:

line 27 col 41: 'name' is deprecated and shouldn't be used. Check element, or use getDisplayString().

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and immutable_proto_generator.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

The package description is too short. (-3 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
analyzer >=0.27.1 <1.0.0 0.39.4
build >=0.12.0 <2.0.0 1.2.2
immutable_proto ^0.0.5+1 0.0.5+1
kt_dart ^0.6.2 0.6.2 0.7.0-dev.4
meta ^1.1.7 1.1.8
protobuf ^1.0.0 1.0.1
source_gen ^0.9.0 0.9.4+7
Transitive dependencies
_fe_analyzer_shared 1.0.3
args 1.5.2
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
dart_style 1.3.3
fixnum 0.10.11
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
logging 0.11.4
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
path 1.6.4
pub_semver 1.4.2
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+13
yaml 2.2.0
Dev dependencies
build_runner >=0.9.0 <1.6.7
pedantic ^1.0.0 1.9.0