generic_reader 0.5.1 copy "generic_reader: ^0.5.1" to clipboard
generic_reader: ^0.5.1 copied to clipboard

Methods for the systematic reading of compile-time constant expressions.

0.5.1 #

  • Added the following built-in types that are supported without the need to register a decoder:
    • bool, double, int, num,String, Type, Symbol,
    • List<bool>, List<double>, List<int>, List<num>, List<String>,List<Symbol>,List<Type>,
    • Set<bool>, Set<double>, Set<int>, Set<num>, Set<String>, Set<Symbol>, Set<Type>,
    • Iterable<bool>,Iterable<double>,Iterable<int>,Iterable<num>,Iterable<String>, Iterable<Symbol>,Iterable<Type>.
  • Added EnumDecoder.
  • Added RecoderDecoder.

0.5.0 #

  • Breaking changes:
    • The extension GenericReader was renamed Reader
    • Decoder<T> is now an abstract class and user defined decoders must extend it.
    • The extension methods get... were renamed read..., for example: obj.get<int> becomes obj.read<int>().
    • Enums are now read using the extension method .read<EnumType>() and it is required to add a decoder for EnumType:
      Reader.addDecoder(EnumDecoder<EnumType>(values: EnumType.values));
      
  • Package does no longer depend on source_gen and dart:mirrors.
  • Requires analyzer ^8.4.0.

0.4.1 #

  • Updated dependencies (analyser ^7.0.0).

0.4.0 #

  • Require Dart 3,
  • analyzer version ^6.0.0,
  • Removed dependency on ansicolor and meta.

0.3.1 #

  • Amended description.

0.3.0 #

  • Removed extension method enumValue<T>(), use get<T>() instead.
  • Updated dependencies.
  • This version requires Dart >=2.19.0.

0.2.2 #

  • Amended Dart docs.
  • Made the method isEnum<T>() static.

0.2.1 #

  • Amended docs.

0.2.0 #

  • Converted GenericReader into an extension on ConstantReader.
  • Added example example/bin/user_example.dart.

0.1.5 #

Fixed missing references in dartdocs.

0.1.4 #

Moved package generic_reader_example to its own folder to expose README.md. Otherwise, the tab example just shows the content of the library generic_reader_example.

0.1.3 #

Amended README.md.

0.1.2 #

Rearranged folder structure of lib.

0.1.1 #

Added methods getMap<T>() and getEnum<T>().

0.1.0 #

Added condition to handle null input in methods getList<T>() and getSet<T>().Restructured folder example.

0.0.9 #

Removed debug print statement. Updated dependencies.

0.0.8 #

Removed pre-registered decoder for type Type.

0.0.7 #

Added method holdsA<>(). Deprecated method isA<>().

0.0.6 #

The method addDecoder<T>() now returns an instance of the reader to allow method chaining.

0.0.5 #

Amended README.md

0.0.4 #

Fixed test get<T>().

0.0.3 #

Amended docs.

0.0.2 #

Changed Dart SDK version to >=2.8.1

0.0.1 #

Initial version of the library.

6
likes
160
points
569
downloads

Publisher

verified publishersimphotonics.com

Weekly Downloads

Methods for the systematic reading of compile-time constant expressions.

Repository (GitHub)
View/report issues

Topics

#analyzer #build #constant-expression #source-generation

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, exception_templates

More

Packages that depend on generic_reader