jaguar_serializer_cli 2.2.8

Pub Build Status Build Status Gitter

jaguar_serializer_cli #

See Jaguar Serializer

Changelog #

2.2.8 #

  • Fixed serializer generated constructor bug

2.2.1 #

  • Fixes when FieldProcessor's FromType is dynamic

2.2.0 #

  • Dart 2 stable

2.1.24 #

  • FieldProcessor

2.1.18 #

  • Immutable fix

2.1.17 #

  • Fix for dart-dev64.1

2.1.16 #

  • dynamic field

2.1.15 #

2.1.14 #

  • Fixed bug when source is Map<dynamic, dynamic>

2.1.10 #

  • Minor bug fixes

2.1.9 #

  • Minor bug fixes

2.1.8 #

  • Support enums

2.1.5 #

  • Bug fix for Field annotation directly on model class

2.0.3 #

  • Set is not serializable

2.0.2 #

  • Fixed for recursive models

2.0.0 #

  • fix flutter --release build
  • support generics
  • fix issues on static and private field
  • update source_gen and build
  • Dart2 compliance
    • better typing
    • force cast in generated code
  • we now support final field deserialization
  • createModel() in Serializer class is now deprecated, it will be remove in the final release of 1.0.0
  • simplify and optimize generated code
  • fix processor inside List/Map
  • support build.yaml and build_runner

*** Breaking Changes ***

  • All Serializers are now nullable by default
  • Drop Map key processor
  • Only Map<String, dynamic> can be encode
  • toMap(null) return null
  • fromMap(null) return null
  • fromMap({}) return object

0.5.2 #

  • update build
  • remove deprecated processors field support

0.5.1 #

  • version and help commands for CLI

0.5.0 #

  • Angular-like annotation to specify GenSerializer

Use this package as a library

1. Depend on it

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


dependencies:
  jaguar_serializer_cli: ^2.2.8

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:jaguar_serializer_cli/jaguar_serializer_cli.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
74
Health:
Code health derived from static analysis. [more]
91
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
81
Learn more about scoring.

We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: other

Primary library: package:jaguar_serializer_cli/jaguar_serializer_cli.dart with components: io, build, mirrors.

Health suggestions

Fix lib/src/instantiater/instantiater.dart. (-4.89 points)

Analysis of lib/src/instantiater/instantiater.dart reported 10 hints, including:

line 39 col 15: Avoid empty catch blocks.

line 46 col 15: Avoid empty catch blocks.

line 144 col 11: DO use curly braces for all flow control structures.

line 159 col 11: DO use curly braces for all flow control structures.

line 161 col 11: DO use curly braces for all flow control structures.

Fix lib/src/writer/to.dart. (-1.99 points)

Analysis of lib/src/writer/to.dart reported 4 hints:

line 10 col 67: Use = to separate a named parameter from its default value.

line 30 col 64: Use = to separate a named parameter from its default value.

line 52 col 65: Use = to separate a named parameter from its default value.

line 72 col 64: Use = to separate a named parameter from its default value.

Fix lib/src/writer/from.dart. (-1.49 points)

Analysis of lib/src/writer/from.dart reported 3 hints:

line 53 col 7: DO use curly braces for all flow control structures.

line 82 col 64: Use = to separate a named parameter from its default value.

line 121 col 7: DO use curly braces for all flow control structures.

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

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

line 74 col 19: Use = to separate a named parameter from its default value.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (analyzer).

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 jaguar_serializer_cli.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
analyzer ^0.36.0 0.36.4 0.37.0
build ^1.1.4 1.1.5
jaguar_serializer ^2.2.2 2.2.12
logging ^0.11.3 0.11.3+2
meta ^1.1.5 1.1.7
source_gen ^0.9.0 0.9.4+2
Transitive dependencies
args 1.5.2
async 2.3.0
charcode 1.1.2
convert 2.1.1
crypto 2.0.6
csslib 0.16.1
dart_style 1.2.9
front_end 0.1.19 0.1.20
glob 1.1.7
html 0.14.0+2
kernel 0.3.19 0.3.20
package_config 1.0.5
path 1.6.2
pedantic 1.8.0+1
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.1.16
Dev dependencies
build_runner ^1.5.0
build_test ^0.10.3
build_web_compilers ^2.1.0
collection ^1.14.11 1.14.11
test ^1.3.0

Admin