Updated to lints 3.0.0
This commit is contained in:
parent
8f96e89b41
commit
124376e22c
57 changed files with 174 additions and 113 deletions
|
@ -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
|
||||
|
||||
|
|
2
TODO.md
2
TODO.md
|
@ -9,4 +9,4 @@
|
|||
|
||||
* Refactor Angel3 architecture for performance and security
|
||||
* Improve ORM features
|
||||
* Improve performances
|
||||
* Improve HTTP performance
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
5
packages/cache/CHANGELOG.md
vendored
5
packages/cache/CHANGELOG.md
vendored
|
@ -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
|
||||
|
|
4
packages/cache/pubspec.yaml
vendored
4
packages/cache/pubspec.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"})));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
part of angel3_mongo.services;
|
||||
part of 'services.dart';
|
||||
|
||||
/// Manipulates data from MongoDB as Maps.
|
||||
class MongoService extends Service<String, Map<String, dynamic>> {
|
||||
|
@ -127,13 +127,13 @@ class MongoService extends Service<String, Map<String, dynamic>> {
|
|||
@override
|
||||
Future<Map<String, dynamic>> read(String id,
|
||||
[Map<String, dynamic>? 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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -15,7 +15,7 @@ In `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_mustache: ^6.0.0
|
||||
angel3_mustache: ^8.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,7 +13,7 @@ In your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_orm_service: ^6.0.0
|
||||
angel3_orm_service: ^8.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.**
|
||||
|
|
|
@ -11,9 +11,8 @@ class InMemoryRateLimiter<User> extends RateLimiter<User> {
|
|||
final _cache = <User, RateLimitingWindow<User>>{};
|
||||
|
||||
InMemoryRateLimiter(
|
||||
int maxPointsPerWindow, Duration windowDuration, this.getUser,
|
||||
{String? errorMessage})
|
||||
: super(maxPointsPerWindow, windowDuration, errorMessage: errorMessage);
|
||||
super.maxPointsPerWindow, super.windowDuration, this.getUser,
|
||||
{super.errorMessage});
|
||||
|
||||
@override
|
||||
FutureOr<RateLimitingWindow<User>> getCurrentWindow(
|
||||
|
|
|
@ -13,9 +13,8 @@ class ServiceRateLimiter<Id> extends RateLimiter<Id> {
|
|||
final FutureOr<Id> 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<RateLimitingWindow<Id>> getCurrentWindow(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,10 +9,7 @@ Easily synchronize and scale WebSockets using [belatuk_pub_sub](<https://pub.dev
|
|||
|
||||
## Usage
|
||||
|
||||
This package exposes `PubSubSynchronizationChannel`, which can simply be dropped into any `AngelWebSocket` constructor.
|
||||
|
||||
Once you've set that up, instances of your application will automatically fire events in-sync. That's all you have to do
|
||||
to scale a real-time application with Angel3!
|
||||
This package exposes `PubSubSynchronizationChannel`, which can simply be dropped into any `AngelWebSocket` constructor. Once you've set that up, instances of your application will automatically fire events in-sync. That's all you have to do to scale a real-time application with Angel3!
|
||||
|
||||
```dart
|
||||
await app.configure(AngelWebSocket(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_sync
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Easily synchronize and scale WebSockets using belatuk_pub_sub in Angel3.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/sync
|
||||
|
@ -8,12 +8,12 @@ environment:
|
|||
dependencies:
|
||||
angel3_framework: ^8.0.0
|
||||
angel3_websocket: ^8.0.0
|
||||
belatuk_pub_sub: ^6.0.0
|
||||
belatuk_pub_sub: ^6.1.0
|
||||
stream_channel: ^2.1.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue