diff --git a/README.md b/README.md index f6d329af..8816346d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ For more details, checkout [Project Status](https://github.com/dukefirehawk/ange ### Release 8.0.0 (Current) -* Updated `angel3_` packages to require dart >= 3.0.x +* Updated `angel3_` packages to require dart >= 3.0.0 * Updated dependencies to the latest * Resolved issues related to generated container diff --git a/TODO.md b/TODO.md index 78d502d9..b4359393 100644 --- a/TODO.md +++ b/TODO.md @@ -9,4 +9,4 @@ * Refactor Angel3 architecture for performance and security * Improve ORM features - * Improve performances + * Improve HTTP performance diff --git a/packages/auth_oauth2/CHANGELOG.md b/packages/auth_oauth2/CHANGELOG.md index ba854ed7..e43cb675 100644 --- a/packages/auth_oauth2/CHANGELOG.md +++ b/packages/auth_oauth2/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/auth_oauth2/pubspec.yaml b/packages/auth_oauth2/pubspec.yaml index d8c8851b..0fa6522c 100644 --- a/packages/auth_oauth2/pubspec.yaml +++ b/packages/auth_oauth2/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_auth_oauth2 -version: 8.0.0 +version: 8.1.0 description: Angel3 library for authenticating users with external identity providers via OAuth2. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2 @@ -12,7 +12,7 @@ dependencies: oauth2: ^2.0.0 dev_dependencies: logging: ^1.2.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../container/angel_container diff --git a/packages/auth_twitter/CHANGELOG.md b/packages/auth_twitter/CHANGELOG.md index 80e655a6..81dbbd7b 100644 --- a/packages/auth_twitter/CHANGELOG.md +++ b/packages/auth_twitter/CHANGELOG.md @@ -4,6 +4,8 @@ * Require Dart >= 3.0 * Updated `oauth1` to `belatuk_oauth1` +* Updated `lints` to 3.0.0 +* Fixed linter warnings ## 7.0.0 diff --git a/packages/auth_twitter/lib/angel3_auth_twitter.dart b/packages/auth_twitter/lib/angel3_auth_twitter.dart index bae7a713..c40ca9d9 100644 --- a/packages/auth_twitter/lib/angel3_auth_twitter.dart +++ b/packages/auth_twitter/lib/angel3_auth_twitter.dart @@ -5,7 +5,8 @@ import 'package:angel3_auth/angel3_auth.dart'; import 'package:angel3_framework/angel3_framework.dart'; import 'package:http/http.dart' as http; import 'package:path/path.dart' as p; -import 'package:oauth1/oauth1.dart' as oauth; +//import 'package:oauth1/oauth1.dart' as oauth; +import 'package:belatuk_oauth1/belatuk_oauth1.dart' as oauth; import 'package:dart_twitter_api/twitter_api.dart'; /// Authenticates users by connecting to Twitter's API. diff --git a/packages/auth_twitter/pubspec.yaml b/packages/auth_twitter/pubspec.yaml index 6032b8a4..4495fc76 100644 --- a/packages/auth_twitter/pubspec.yaml +++ b/packages/auth_twitter/pubspec.yaml @@ -10,13 +10,14 @@ dependencies: angel3_auth: ^8.0.0 angel3_framework: ^8.0.0 http: ^1.0.0 - path: ^1.0.0 + path: ^1.9.0 belatuk_oauth1: ^3.0.0 dart_twitter_api: ^0.5.6+1 dev_dependencies: logging: ^1.2.0 - lints: ^2.1.0 -# dependency_overrides: + lints: ^3.0.0 +dependency_overrides: + http: ^1.0.0 # angel3_container: # path: ../container/angel_container # angel3_framework: diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index ea6458af..ddd3dede 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/cache/pubspec.yaml b/packages/cache/pubspec.yaml index d8b16c70..f1a401de 100644 --- a/packages/cache/pubspec.yaml +++ b/packages/cache/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_cache -version: 8.0.0 +version: 8.1.0 description: A service that provides HTTP caching to the response data for Angel3 homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/cache @@ -16,7 +16,7 @@ dev_dependencies: glob: ^2.0.1 http: ^1.0.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../container/angel_container diff --git a/packages/cors/CHANGELOG.md b/packages/cors/CHANGELOG.md index 2c587af3..417dd3d3 100644 --- a/packages/cors/CHANGELOG.md +++ b/packages/cors/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/cors/pubspec.yaml b/packages/cors/pubspec.yaml index 08ca2348..db9f510e 100644 --- a/packages/cors/pubspec.yaml +++ b/packages/cors/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_cors -version: 8.0.0 +version: 8.1.0 description: Angel3 CORS middleware. Ported from expressjs/cors to Angel3 framework. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/cors @@ -10,7 +10,7 @@ dependencies: dev_dependencies: angel3_test: ^8.0.0 http: ^1.0.0 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # dependency_overrides: # angel3_container: diff --git a/packages/jinja/CHANGELOG.md b/packages/jinja/CHANGELOG.md index 4f0c9763..a72275fc 100644 --- a/packages/jinja/CHANGELOG.md +++ b/packages/jinja/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.2.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.1.0 * Update `jinja` to 0.5.0 diff --git a/packages/jinja/pubspec.yaml b/packages/jinja/pubspec.yaml index 39870eeb..d1a47627 100644 --- a/packages/jinja/pubspec.yaml +++ b/packages/jinja/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_jinja -version: 8.1.0 +version: 8.2.0 description: A service that renders Jinja2 template into HTML view for Angel3. Ported from Python to Dart. homepage: https://github.com/dukefirehawk/angel/tree/master/packages/jinja environment: @@ -9,9 +9,9 @@ dependencies: jinja: ^0.5.0 dev_dependencies: angel3_test: ^8.0.0 - path: ^1.8.0 + path: ^1.9.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../container/angel_container diff --git a/packages/markdown/CHANGELOG.md b/packages/markdown/CHANGELOG.md index 2d74ae5b..3c12173c 100644 --- a/packages/markdown/CHANGELOG.md +++ b/packages/markdown/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/markdown/README.md b/packages/markdown/README.md index 54a9bb1d..e5cbe59f 100644 --- a/packages/markdown/README.md +++ b/packages/markdown/README.md @@ -15,8 +15,8 @@ In your `pubspec.yaml`: ```yaml dependencies: - angel3_framework: ^6.0.0 - angel3_markdown: ^6.0.0 + angel3_framework: ^8.0.0 + angel3_markdown: ^8.0.0 ``` ## Usage @@ -33,9 +33,7 @@ configureServer(Angel app) async { } ``` -You can then generate HTML on-the-fly in a request handler. -Assuming your view directory contained a file named `hello.md`, the -following would render it as an HTML response: +You can then generate HTML on-the-fly in a request handler. Assuming your view directory contained a file named `hello.md`, the following would render it as an HTML response: ```dart configureServer(Angel app) async { @@ -48,9 +46,7 @@ you can easily override this. ## Interpolation -`angel3_markdown` can interpolate the values of data from `locals` before building the Markdown. - -For example, with the following template `species.md`: +`angel3_markdown` can interpolate the values of data from `locals` before building the Markdown. For example, with the following template `species.md`: ```markdown # Species: {{species.name}} @@ -96,10 +92,8 @@ configureServer(Angel app) async { } ``` -The `template` function will have access to whatever values were passed to the renderer, -or an empty `Map`. +The `template` function will have access to whatever values were passed to the renderer, or an empty `Map`. ## Enhancing Markdown -You can pass an `extensionSet` to add additional features to the Markdown renderer. -By default, this plug-in configures it to enable Github-flavored Markdown. +You can pass an `extensionSet` to add additional features to the Markdown renderer. By default, this plug-in configures it to enable Github-flavored Markdown. diff --git a/packages/markdown/pubspec.yaml b/packages/markdown/pubspec.yaml index de3df97f..9623b6e0 100644 --- a/packages/markdown/pubspec.yaml +++ b/packages/markdown/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_markdown -version: 8.0.0 +version: 8.1.0 description: Angel3 Markdown view generator. Write static sites, with no build step. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/markdown @@ -11,7 +11,7 @@ dependencies: markdown: ^7.1.0 dev_dependencies: angel3_test: ^8.0.0 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # dependency_overrides: # angel3_container: diff --git a/packages/mongo/CHANGELOG.md b/packages/mongo/CHANGELOG.md index bb26b0f9..1c738a12 100644 --- a/packages/mongo/CHANGELOG.md +++ b/packages/mongo/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/mongo/README.md b/packages/mongo/README.md index 90f10de9..100fd535 100644 --- a/packages/mongo/README.md +++ b/packages/mongo/README.md @@ -13,7 +13,7 @@ Add the following to your `pubspec.yaml`: ```yaml dependencies: - angel3_mongo: ^6.0.0 + angel3_mongo: ^8.0.0 ``` ## Usage @@ -22,8 +22,7 @@ This library exposes one main class: `MongoService`. ## Model -`Model` is class with no real functionality; however, it represents a basic document, and your services should host inherited classes. -Other Angel service providers host `Model` as well, so you will easily be able to modify your application if you ever switch databases. +`Model` is class with no real functionality; however, it represents a basic document, and your services should host inherited classes. Other Angel service providers host `Model` as well, so you will easily be able to modify your application if you ever switch databases. ```dart class User extends Model { @@ -51,13 +50,11 @@ This class interacts with a `DbCollection` (from mongo_dart) and serializing dat You can query these services as follows: -```bash +```curl /path/to/service?foo=bar ``` -The above will query the database to find records where 'foo' equals 'bar'. - -The former will sort result in ascending order of creation, and so will the latter. +The above will query the database to find records where 'foo' equals 'bar'. The former will sort result in ascending order of creation, and so will the latter. ```dart List queried = await MyService.index({r"$query": where.id(new ObjectId.fromHexString("some hex string"}))); diff --git a/packages/mongo/lib/mongo_service.dart b/packages/mongo/lib/mongo_service.dart index acb1a469..846e2cc2 100644 --- a/packages/mongo/lib/mongo_service.dart +++ b/packages/mongo/lib/mongo_service.dart @@ -1,4 +1,4 @@ -part of angel3_mongo.services; +part of 'services.dart'; /// Manipulates data from MongoDB as Maps. class MongoService extends Service> { @@ -127,13 +127,13 @@ class MongoService extends Service> { @override Future> read(String id, [Map? params]) async { - var _id = _makeId(id); + var localId = _makeId(id); var found = - await collection.findOne(where.id(_id).and(_makeQuery(params)!)); + await collection.findOne(where.id(localId).and(_makeQuery(params)!)); if (found == null) { throw AngelHttpException.notFound( - message: 'No record found for ID ${_id.toHexString()}'); + message: 'No record found for ID ${localId.toHexString()}'); } return _jsonify(found, params); diff --git a/packages/mongo/pubspec.yaml b/packages/mongo/pubspec.yaml index da46e89e..aed37e8a 100644 --- a/packages/mongo/pubspec.yaml +++ b/packages/mongo/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_mongo -version: 8.0.0 +version: 8.1.0 description: MongoDB-enabled services for the Angel3 framework. Well-tested. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/mongo @@ -7,13 +7,13 @@ environment: sdk: '>=3.0.0 <4.0.0' dependencies: angel3_framework: ^8.0.0 - belatuk_json_serializer: ^7.0.0 - belatuk_merge_map: ^5.0.0 + belatuk_json_serializer: ^7.1.0 + belatuk_merge_map: ^5.1.0 mongo_dart: ^0.9.0 dev_dependencies: http: ^1.0.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../container/angel_container diff --git a/packages/mustache/CHANGELOG.md b/packages/mustache/CHANGELOG.md index e12ad86a..bccb09b2 100644 --- a/packages/mustache/CHANGELOG.md +++ b/packages/mustache/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/mustache/README.md b/packages/mustache/README.md index 6110c2c7..b4d29bd0 100644 --- a/packages/mustache/README.md +++ b/packages/mustache/README.md @@ -15,7 +15,7 @@ In `pubspec.yaml`: ```yaml dependencies: - angel3_mustache: ^6.0.0 + angel3_mustache: ^8.0.0 ``` ## Usage diff --git a/packages/mustache/pubspec.yaml b/packages/mustache/pubspec.yaml index 103ce2cf..cac41e7a 100644 --- a/packages/mustache/pubspec.yaml +++ b/packages/mustache/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_mustache -version: 8.0.0 +version: 8.1.0 description: A service that renders Mustache template into HTML view for Angel3 homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/mustache @@ -13,7 +13,7 @@ dependencies: dev_dependencies: http: ^1.0.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../container/angel_container diff --git a/packages/oauth2/CHANGELOG.md b/packages/oauth2/CHANGELOG.md index 09a013d3..58f4c5d3 100644 --- a/packages/oauth2/CHANGELOG.md +++ b/packages/oauth2/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/oauth2/README.md b/packages/oauth2/README.md index 4e16a747..04f42ea4 100644 --- a/packages/oauth2/README.md +++ b/packages/oauth2/README.md @@ -5,8 +5,7 @@ [![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/master/packages/oauth2/LICENSE) -A class containing handlers that can be used within [Angel](https://angel3-framework.web.app/) to build a spec-compliant -OAuth 2.0 server, including PKCE support. +A class containing handlers that can be used within [Angel](https://angel3-framework.web.app/) to build a spec-compliant OAuth 2.0 server, including PKCE support. - [Angel3 OAuth2 Server](#angel3-oauth2-server) - [Installation](#installation) diff --git a/packages/oauth2/lib/src/exception.dart b/packages/oauth2/lib/src/exception.dart index b92536fe..278601d0 100644 --- a/packages/oauth2/lib/src/exception.dart +++ b/packages/oauth2/lib/src/exception.dart @@ -5,12 +5,8 @@ class AuthorizationException extends AngelHttpException { final ErrorResponse errorResponse; AuthorizationException(this.errorResponse, - {StackTrace? stackTrace, int? statusCode, dynamic error}) - : super( - stackTrace: stackTrace, - message: '', - error: error, - statusCode: statusCode ?? 400); + {super.stackTrace, int? statusCode, super.error}) + : super(message: '', statusCode: statusCode ?? 400); @override Map toJson() { diff --git a/packages/oauth2/pubspec.yaml b/packages/oauth2/pubspec.yaml index c889af19..277c2c42 100644 --- a/packages/oauth2/pubspec.yaml +++ b/packages/oauth2/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_oauth2 -version: 8.0.0 +version: 8.1.0 description: A class containing handlers that can be used within Angel to build a spec-compliant OAuth 2.0 server. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2 @@ -16,7 +16,7 @@ dev_dependencies: angel3_test: ^8.0.0 angel3_container: ^8.0.0 oauth2: ^2.0.0 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 uuid: ^4.0.0 # dependency_overrides: diff --git a/packages/orm/angel_orm_service/CHANGELOG.md b/packages/orm/angel_orm_service/CHANGELOG.md index 14562707..dd40f2b3 100644 --- a/packages/orm/angel_orm_service/CHANGELOG.md +++ b/packages/orm/angel_orm_service/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/orm/angel_orm_service/README.md b/packages/orm/angel_orm_service/README.md index bbd3926c..bf19e81e 100644 --- a/packages/orm/angel_orm_service/README.md +++ b/packages/orm/angel_orm_service/README.md @@ -13,7 +13,7 @@ In your `pubspec.yaml`: ```yaml dependencies: - angel3_orm_service: ^6.0.0 + angel3_orm_service: ^8.0.0 ``` ## Usage diff --git a/packages/orm/angel_orm_service/mono_pkg.yaml b/packages/orm/angel_orm_service/mono_pkg.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/orm/angel_orm_service/pubspec.yaml b/packages/orm/angel_orm_service/pubspec.yaml index b9b225df..87abb0ae 100644 --- a/packages/orm/angel_orm_service/pubspec.yaml +++ b/packages/orm/angel_orm_service/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_orm_service -version: 8.0.0 +version: 8.1.0 description: Service implementation that wraps over Angel3 ORM Query classes. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_service @@ -19,7 +19,7 @@ dev_dependencies: build_runner: ^2.4.0 logging: ^1.2.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../../container/angel_container diff --git a/packages/orm/angel_orm_test/CHANGELOG.md b/packages/orm/angel_orm_test/CHANGELOG.md index bdbb50d6..63a7f643 100644 --- a/packages/orm/angel_orm_test/CHANGELOG.md +++ b/packages/orm/angel_orm_test/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/orm/angel_orm_test/pubspec.yaml b/packages/orm/angel_orm_test/pubspec.yaml index 6134d689..b4815b05 100644 --- a/packages/orm/angel_orm_test/pubspec.yaml +++ b/packages/orm/angel_orm_test/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_orm_test -version: 8.0.0 +version: 8.1.0 description: Common tests for Angel3 ORM. Reference implmentation of the generated ORM files. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_test @@ -18,7 +18,7 @@ dev_dependencies: angel3_orm_generator: ^8.0.0 angel3_framework: ^8.0.0 build_runner: ^2.4.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../../container/angel_container diff --git a/packages/proxy/CHANGELOG.md b/packages/proxy/CHANGELOG.md index 8c7a6ec0..b8518567 100644 --- a/packages/proxy/CHANGELOG.md +++ b/packages/proxy/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/proxy/README.md b/packages/proxy/README.md index 1c3ac7a2..6cf87944 100644 --- a/packages/proxy/README.md +++ b/packages/proxy/README.md @@ -33,6 +33,4 @@ Also, you can map requests to a root path on the remote server: Proxy(baseUrl.replace(path: '/path')); ``` -Request bodies will be forwarded as well, if they are not empty. This allows things like POST requests to function. - -For a request body to be forwarded, the body must not have already been parsed. +Request bodies will be forwarded as well, if they are not empty. This allows things like POST requests to function. For a request body to be forwarded, the body must not have already been parsed. diff --git a/packages/proxy/pubspec.yaml b/packages/proxy/pubspec.yaml index 4bb0a946..fb56e3ce 100644 --- a/packages/proxy/pubspec.yaml +++ b/packages/proxy/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_proxy -version: 8.0.0 +version: 8.1.0 description: Angel middleware to forward requests to another server (i.e. pub serve). homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/proxy @@ -9,12 +9,12 @@ dependencies: angel3_framework: ^8.0.0 http: ^1.0.0 http_parser: ^4.0.0 - path: ^1.8.0 + path: ^1.9.0 dev_dependencies: angel3_test: ^8.0.0 angel3_mock_request: ^8.0.0 logging: ^1.2.0 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # dependency_overrides: # angel3_framework: diff --git a/packages/redis/CHANGELOG.md b/packages/redis/CHANGELOG.md index 56a9f066..8c6296b7 100644 --- a/packages/redis/CHANGELOG.md +++ b/packages/redis/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/redis/README.md b/packages/redis/README.md index 384603c3..09500c9c 100644 --- a/packages/redis/README.md +++ b/packages/redis/README.md @@ -17,8 +17,8 @@ In your `pubspec.yaml`: ```yaml dependencies: - angel3_framework: ^6.0.0 - angel3_redis: ^6.0.0 + angel3_framework: ^8.0.0 + angel3_redis: ^8.0.0 ``` ## Usage diff --git a/packages/redis/pubspec.yaml b/packages/redis/pubspec.yaml index 9c5e3151..1151c104 100644 --- a/packages/redis/pubspec.yaml +++ b/packages/redis/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_redis -version: 8.0.0 +version: 8.1.0 description: An Angel3 service provider for Redis. Works well for caching volatile data. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/redis @@ -11,7 +11,7 @@ dependencies: resp_client: ^1.2.0 dev_dependencies: test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_framework: # path: ../framework diff --git a/packages/security/CHANGELOG.md b/packages/security/CHANGELOG.md index d1845040..0f0c3e73 100644 --- a/packages/security/CHANGELOG.md +++ b/packages/security/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/security/README.md b/packages/security/README.md index d01b2d27..28c3832b 100644 --- a/packages/security/README.md +++ b/packages/security/README.md @@ -7,4 +7,4 @@ Angel3 middleware designed to enhance application security by patching common Web security holes. -**This package is currently going through a major overhaul, for version 2.** +**This package will undergo a major refactoring.** diff --git a/packages/security/lib/src/in_memory_rate_limiter.dart b/packages/security/lib/src/in_memory_rate_limiter.dart index c3da41fc..8ef91d22 100644 --- a/packages/security/lib/src/in_memory_rate_limiter.dart +++ b/packages/security/lib/src/in_memory_rate_limiter.dart @@ -11,9 +11,8 @@ class InMemoryRateLimiter extends RateLimiter { final _cache = >{}; InMemoryRateLimiter( - int maxPointsPerWindow, Duration windowDuration, this.getUser, - {String? errorMessage}) - : super(maxPointsPerWindow, windowDuration, errorMessage: errorMessage); + super.maxPointsPerWindow, super.windowDuration, this.getUser, + {super.errorMessage}); @override FutureOr> getCurrentWindow( diff --git a/packages/security/lib/src/service_rate_limiter.dart b/packages/security/lib/src/service_rate_limiter.dart index 85ea0e01..ee259059 100644 --- a/packages/security/lib/src/service_rate_limiter.dart +++ b/packages/security/lib/src/service_rate_limiter.dart @@ -13,9 +13,8 @@ class ServiceRateLimiter extends RateLimiter { final FutureOr Function(RequestContext, ResponseContext) getId; ServiceRateLimiter( - int maxPointsPerWindow, Duration windowDuration, this.service, this.getId, - {String? errorMessage}) - : super(maxPointsPerWindow, windowDuration, errorMessage: errorMessage); + super.maxPointsPerWindow, super.windowDuration, this.service, this.getId, + {super.errorMessage}); @override FutureOr> getCurrentWindow( diff --git a/packages/security/pubspec.yaml b/packages/security/pubspec.yaml index fe70bd72..fdb2dc75 100644 --- a/packages/security/pubspec.yaml +++ b/packages/security/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_security -version: 8.0.0 +version: 8.1.0 description: Angel3 infrastructure for improving security, rate limiting, and more homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/security @@ -14,11 +14,11 @@ dev_dependencies: angel3_redis: ^8.0.0 angel3_test: ^8.0.0 angel3_validate: ^8.0.0 - belatuk_pretty_logging: ^6.0.0 + belatuk_pretty_logging: ^6.1.0 test: ^1.24.0 logging: ^1.2.0 resp_client: ^1.2.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_production: # path: ../production diff --git a/packages/sembast/CHANGELOG.md b/packages/sembast/CHANGELOG.md index fca95e3f..d1b3d9fb 100644 --- a/packages/sembast/CHANGELOG.md +++ b/packages/sembast/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/sembast/README.md b/packages/sembast/README.md index 34ccffd1..1dbed5cd 100644 --- a/packages/sembast/README.md +++ b/packages/sembast/README.md @@ -13,7 +13,7 @@ Add the following to your `pubspec.yaml`: ```yaml dependencies: - angel3_sembast: ^6.0.0 + angel3_sembast: ^8.0.0 ``` ## Usage @@ -28,7 +28,7 @@ This class interacts with a `Database` and `Store` (from `package:sembast`) and You can query these services as follows: -```dart +```curl /path/to/service?foo=bar ``` diff --git a/packages/sembast/pubspec.yaml b/packages/sembast/pubspec.yaml index 4954e75b..1595852f 100644 --- a/packages/sembast/pubspec.yaml +++ b/packages/sembast/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_sembast -version: 8.0.0 +version: 8.1.0 description: A plugin service that persist data to Sembast for Angel3 framework. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/sembast @@ -11,7 +11,7 @@ dependencies: dev_dependencies: angel3_http_exception: ^8.0.0 logging: ^1.2.0 - lints: ^2.1.0 + lints: ^3.0.0 test: ^1.24.0 # dependency_overrides: # angel3_framework: diff --git a/packages/seo/CHANGELOG.md b/packages/seo/CHANGELOG.md index 7d3ae997..b35457ef 100644 --- a/packages/seo/CHANGELOG.md +++ b/packages/seo/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/seo/pubspec.yaml b/packages/seo/pubspec.yaml index d139cfd5..7e771e51 100644 --- a/packages/seo/pubspec.yaml +++ b/packages/seo/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_seo -version: 8.0.0 +version: 8.1.0 description: Helper infrastructure for building SEO-friendly Web backends in Angel3. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/seo @@ -11,12 +11,12 @@ dependencies: file: ^7.0.0 html: ^0.15.0 http_parser: ^4.0.0 - path: ^1.8.0 + path: ^1.9.0 dev_dependencies: angel3_test: ^8.0.0 logging: ^1.2.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_static: # path: ../static diff --git a/packages/shelf/CHANGELOG.md b/packages/shelf/CHANGELOG.md index 5dc3e1bb..c79a21bb 100644 --- a/packages/shelf/CHANGELOG.md +++ b/packages/shelf/CHANGELOG.md @@ -3,6 +3,8 @@ ## 8.0.0 * Require Dart >= 3.0 +* Updated `lints` to 3.0.0 +* Fixed linter warnings ## 7.0.0-beta.2 diff --git a/packages/shelf/README.md b/packages/shelf/README.md index e4b7995d..93e31878 100644 --- a/packages/shelf/README.md +++ b/packages/shelf/README.md @@ -7,14 +7,7 @@ **Replacement of `package:angel_shelf` with breaking changes to support NNBD.** -Shelf interop with Angel3. This package lets you run `package:shelf` handlers via a custom adapter. - -Use the code in this repo to embed existing Angel/shelf apps into -other Angel/shelf applications. This way, you can migrate legacy applications without -having to rewrite your business logic. - -This will make it easy to layer your API over a production application, -rather than having to port code. +Shelf interop with Angel3. This package lets you run `package:shelf` handlers via a custom adapter. Use the code in this repo to embed existing Angel/shelf apps into other Angel/shelf applications. This way, you can migrate legacy applications without having to rewrite your business logic. This will make it easy to layer your API over a production application, rather than having to port code. - [Angel3 Shelf](#angel3-shelf) - [Usage](#usage) @@ -61,7 +54,7 @@ void main() async { ### Communicating with Angel with embedShelf -You can communicate with Angel: +You can communicate with Angel3: ```dart handleRequest(shelf.Request request) { @@ -79,9 +72,7 @@ handleRequest(shelf.Request request) { ### AngelShelf -Angel 2 brought about the generic `Driver` class, which is implemented by `AngelHttp`, `AngelHttp2`, `AngelGopher`, etc., and provides the core infrastructure for request handling in Angel. - -`AngelShelf` is an implementation that wraps shelf requests and responses in their Angel equivalents. Using it is as simple using as using `AngelHttp`, or any other driver: +Angel3 brought about the generic `Driver` class, which is implemented by `AngelHttp`, `AngelHttp2`, `AngelGopher`, etc., and provides the core infrastructure for request handling in Angel. `AngelShelf` is an implementation that wraps shelf requests and responses in their Angel equivalents. Using it is as simple using as using `AngelHttp`, or any other driver: ```dart // Create an AngelShelf driver. diff --git a/packages/shelf/pubspec.yaml b/packages/shelf/pubspec.yaml index 5dc30da2..df8bbbb2 100644 --- a/packages/shelf/pubspec.yaml +++ b/packages/shelf/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: angel3_framework: ^8.0.0 angel3_container: ^8.0.0 angel3_mock_request: ^8.0.0 - path: ^1.8.0 + path: ^1.9.0 shelf: ^1.3.0 stream_channel: ^2.1.0 logging: ^1.2.0 @@ -18,10 +18,10 @@ dependencies: http: ^1.0.0 dev_dependencies: angel3_test: ^8.0.0 - belatuk_pretty_logging: ^6.0.0 + belatuk_pretty_logging: ^6.1.0 shelf_static: ^1.1.0 test: ^1.24.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_test: # path: ../test diff --git a/packages/sync/CHANGELOG.md b/packages/sync/CHANGELOG.md index 04864f14..a2a0fcd2 100644 --- a/packages/sync/CHANGELOG.md +++ b/packages/sync/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 8.1.0 + +* Updated `lints` to 3.0.0 +* Fixed linter warnings + ## 8.0.0 * Require Dart >= 3.0 diff --git a/packages/sync/README.md b/packages/sync/README.md index 6f988d9b..304e7b64 100644 --- a/packages/sync/README.md +++ b/packages/sync/README.md @@ -9,10 +9,7 @@ Easily synchronize and scale WebSockets using [belatuk_pub_sub](= 3.0 diff --git a/packages/user_agent/angel_user_agent/pubspec.yaml b/packages/user_agent/angel_user_agent/pubspec.yaml index e5d04d37..803150a3 100644 --- a/packages/user_agent/angel_user_agent/pubspec.yaml +++ b/packages/user_agent/angel_user_agent/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_user_agent -version: 8.0.0 +version: 8.1.0 description: Angel3 middleware to parse and inject a User Agent object into requests. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/user_agent/angel_user_agent @@ -8,7 +8,7 @@ environment: dependencies: angel3_framework: ^8.0.0 user_agent_analyzer: ^5.0.0 - lints: ^2.1.0 + lints: ^3.0.0 # dependency_overrides: # angel3_container: # path: ../../container/angel_container