diff --git a/packages/client/README.md b/packages/client/README.md index 6800b328..86677f54 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -1,23 +1,20 @@ -# angel_client +# angel3_client +[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_client) +[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) -[![Pub](https://img.shields.io/pub/v/angel_client.svg)](https://pub.dartlang.org/packages/angel_client) -[![build status](https://travis-ci.org/angel-dart/client.svg)](https://travis-ci.org/angel-dart/client) - -Client library for the Angel framework. -This library provides virtually the same API as an Angel server. -The client can run in the browser, in Flutter, or on the command-line. -In addition, the client supports `angel_auth` authentication. +[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/client/LICENSE) # Usage ```dart // Choose one or the other, depending on platform -import 'package:angel_client/io.dart'; -import 'package:angel_client/browser.dart'; -import 'package:angel_client/flutter.dart'; +import 'package:angel3_client/io.dart'; +import 'package:angel3_client/browser.dart'; +import 'package:angel3_client/flutter.dart'; main() async { - Angel app = new Rest("http://localhost:3000"); + Angel app = Rest("http://localhost:3000"); } ``` @@ -33,7 +30,7 @@ foo() async { } ``` -The CLI client also supports reflection via `json_god`. There is no need to work with Maps; +The CLI client also supports reflection via `angel3_json_god`. There is no need to work with Maps; you can use the same class on the client and the server. ```dart @@ -96,9 +93,9 @@ Use `ServiceList` for this case: ```dart build(BuildContext context) async { - var list = new ServiceList(app.service('api/todos')); + var list = ServiceList(app.service('api/todos')); - return new StreamBuilder( + return StreamBuilder( stream: list.onChange, builder: _yourBuildFunction, ); diff --git a/packages/client/example/main.dart b/packages/client/example/main.dart index 2d058fa1..3768fd5f 100644 --- a/packages/client/example/main.dart +++ b/packages/client/example/main.dart @@ -1,5 +1,5 @@ import 'dart:async'; -import 'package:angel_client/angel_client.dart'; +import 'package:angel3_client/angel3_client.dart'; Future doSomething(Angel app) async { var userService = app diff --git a/packages/client/lib/angel_client.dart b/packages/client/lib/angel3_client.dart similarity index 99% rename from packages/client/lib/angel_client.dart rename to packages/client/lib/angel3_client.dart index c3ba6e73..08731ce9 100644 --- a/packages/client/lib/angel_client.dart +++ b/packages/client/lib/angel3_client.dart @@ -1,11 +1,11 @@ /// Client library for the Angel framework. -library angel_client; +library angel3_client; import 'dart:async'; import 'package:collection/collection.dart'; import 'dart:convert'; import 'package:http/http.dart' as http; -export 'package:angel_http_exception/angel_http_exception.dart'; +export 'package:angel3_http_exception/angel3_http_exception.dart'; /// A function that configures an [Angel] client in some way. typedef AngelConfigurer = FutureOr Function(Angel app); diff --git a/packages/client/pubspec.yaml b/packages/client/pubspec.yaml index 6a94443c..77c76298 100644 --- a/packages/client/pubspec.yaml +++ b/packages/client/pubspec.yaml @@ -1,44 +1,23 @@ -name: angel_client +name: angel3_client version: 4.0.0 description: Support for querying Angel servers in the browser, Flutter, and command-line. -homepage: https://github.com/dukefirehawk/angel -publish_to: none +homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/client environment: sdk: '>=2.12.0 <3.0.0' dependencies: - angel_http_exception: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/http_exception + angel3_http_exception: ^3.0.0 + angel3_json_god: ^4.0.0 collection: ^1.15.0 http: ^0.13.1 - json_god: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/json_god #dart_json_mapper: ^1.7.0 meta: ^1.3.0 path: ^1.8.0 dev_dependencies: - angel_framework: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/framework - angel_model: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/model - async: ^2.5.0 + angel3_framework: ^4.0.0 + angel3_model: ^3.0.0 + angel3_mock_request: ^2.0.0 + async: ^2.6.1 build_runner: ^1.12.2 build_web_compilers: ^2.16.5 - mock_request: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/mock_request pedantic: ^1.11.0 - test: ^1.17.3 + test: ^1.17.4 diff --git a/packages/configuration/README.md b/packages/configuration/README.md index 274267d1..bd174627 100644 --- a/packages/configuration/README.md +++ b/packages/configuration/README.md @@ -1,6 +1,7 @@ # angel3_configuration [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_configuration) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/configuration/LICENSE) diff --git a/packages/container/angel_container/README.md b/packages/container/angel_container/README.md index 80a5362e..06b77429 100644 --- a/packages/container/angel_container/README.md +++ b/packages/container/angel_container/README.md @@ -1,6 +1,7 @@ # angel3_container [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_container) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/container/angel_container/LICENSE) diff --git a/packages/json_god/README.md b/packages/json_god/README.md index 85545d38..7e2c9762 100644 --- a/packages/json_god/README.md +++ b/packages/json_god/README.md @@ -1,6 +1,7 @@ # angel3_json_god [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_json_god) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/json_god/LICENSE) @@ -34,7 +35,6 @@ print(json); You can easily serialize classes, too. JSON God also supports classes as members. ```dart -import 'package:angel3_json_god/angel3_json_god.dart' as god; class A { String foo; diff --git a/packages/merge_map/README.md b/packages/merge_map/README.md index 83e8798a..4b9de82a 100644 --- a/packages/merge_map/README.md +++ b/packages/merge_map/README.md @@ -1,6 +1,7 @@ # angel3_merge_map [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_merge_map) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/merge_map/LICENSE) diff --git a/packages/mock_request/README.md b/packages/mock_request/README.md index f8e2caf3..f9d3e58e 100644 --- a/packages/mock_request/README.md +++ b/packages/mock_request/README.md @@ -1,6 +1,7 @@ # angel3_mock_request [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_mock_request) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/mock_request/LICENSE) diff --git a/packages/route/CHANGELOG.md b/packages/route/CHANGELOG.md index 69edfef1..a28efad1 100644 --- a/packages/route/CHANGELOG.md +++ b/packages/route/CHANGELOG.md @@ -1,3 +1,6 @@ +# 5.0.1 +* Updated README + # 5.0.0 * Migrated to support Dart SDK 2.12.x NNBD diff --git a/packages/route/README.md b/packages/route/README.md index 933be61d..17a8031b 100644 --- a/packages/route/README.md +++ b/packages/route/README.md @@ -1,6 +1,7 @@ # angel3_route -[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_route) +[![version](https://img.shields.io/badge/pub-v5.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_route) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/route/LICENSE) diff --git a/packages/route/pubspec.yaml b/packages/route/pubspec.yaml index 0f55c7c5..da8f93f8 100644 --- a/packages/route/pubspec.yaml +++ b/packages/route/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_route -version: 5.0.0 +version: 5.0.1 description: A powerful, isomorphic routing library for Dart. It is mainly used in the Angel framework, but can be used in Flutter and on the Web. homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/route environment: