jaguar_reflect 1.3.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 74

jaguar_reflect

Uses reflection instead of source generation to serve Jaguar Api classes.

Usage

A simple usage example:

final book = new Book.make('0', 'Book1', ['Author1', 'Author2']);

@Api(path: '/api/book')
class BooksApi {
  @Get()
  Response<String> addBook(Context ctx) => Response.json(book.toMap());
}

Future<Null> main(List<String> args) async {
  final jaguar = new Jaguar(port: 8005);
  jaguar.addApi(reflect(new BooksApi()));
  await jaguar.serve();
}

Changelog

1.3.1

  • Faster processing of simple routes

1.2.6

  • Allow Symbols in Wrap and WrapOne

1.2.1

  • Wrap and WrapOne now take InterceptorCreator creator instead of Symbol

1.1.5

  • Bump to version 1.x.x

0.7.0

  • Jaguar 0.7.x

0.3.3

  • Collect inherited wrappers

0.3.2

  • Detect interceptor wrappers on RouteGroups and Apis

0.3.1

  • Fixed bug involving multiple groups

0.0.1

  • Initial version, created by Stagehand

1. Depend on it

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


dependencies:
  jaguar_reflect: "^1.3.2"

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_reflect/jaguar_reflect.dart';
        
Version Uploaded Documentation Archive
1.3.2 Feb 2, 2018 Go to the documentation of jaguar_reflect 1.3.2 Download jaguar_reflect 1.3.2 archive
1.3.1 Feb 2, 2018 Go to the documentation of jaguar_reflect 1.3.1 Download jaguar_reflect 1.3.1 archive
1.2.7 Jan 13, 2018 Go to the documentation of jaguar_reflect 1.2.7 Download jaguar_reflect 1.2.7 archive
1.2.6 Jan 13, 2018 Go to the documentation of jaguar_reflect 1.2.6 Download jaguar_reflect 1.2.6 archive
1.2.1 Jan 12, 2018 Go to the documentation of jaguar_reflect 1.2.1 Download jaguar_reflect 1.2.1 archive
1.1.5 Jan 11, 2018 Go to the documentation of jaguar_reflect 1.1.5 Download jaguar_reflect 1.1.5 archive
0.7.1 Jan 11, 2018 Go to the documentation of jaguar_reflect 0.7.1 Download jaguar_reflect 0.7.1 archive
0.5.2 Jul 12, 2017 Go to the documentation of jaguar_reflect 0.5.2 Download jaguar_reflect 0.5.2 archive
0.5.1 Jun 6, 2017 Go to the documentation of jaguar_reflect 0.5.1 Download jaguar_reflect 0.5.1 archive
0.5.0 Jun 6, 2017 Go to the documentation of jaguar_reflect 0.5.0 Download jaguar_reflect 0.5.0 archive

All 32 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
48 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
74

Platforms

Detected platforms: other

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

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use jaguar_reflect.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
dice ^1.7.0 1.7.0
jaguar ^1.3.3 1.3.4
Transitive dependencies
args 1.2.0 1.3.0
charcode 1.1.1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
http_server 0.9.7
intl 0.15.2
logging 0.11.3+1
meta 1.1.2
mime 0.9.6
path 1.5.1
quiver_hashcode 1.0.0
source_span 1.4.0
stack_trace 1.9.1
string_scanner 1.0.2
typed_data 1.1.5
yaml 2.1.13
Dev dependencies
test >=0.12.0 <0.13.0