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)
|
### 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
|
* Updated dependencies to the latest
|
||||||
* Resolved issues related to generated container
|
* Resolved issues related to generated container
|
||||||
|
|
||||||
|
|
2
TODO.md
2
TODO.md
|
@ -9,4 +9,4 @@
|
||||||
|
|
||||||
* Refactor Angel3 architecture for performance and security
|
* Refactor Angel3 architecture for performance and security
|
||||||
* Improve ORM features
|
* Improve ORM features
|
||||||
* Improve performances
|
* Improve HTTP performance
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_auth_oauth2
|
name: angel3_auth_oauth2
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Angel3 library for authenticating users with external identity providers via OAuth2.
|
description: Angel3 library for authenticating users with external identity providers via OAuth2.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2
|
||||||
|
@ -12,7 +12,7 @@ dependencies:
|
||||||
oauth2: ^2.0.0
|
oauth2: ^2.0.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../container/angel_container
|
# path: ../container/angel_container
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
* Updated `oauth1` to `belatuk_oauth1`
|
* Updated `oauth1` to `belatuk_oauth1`
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 7.0.0
|
## 7.0.0
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,8 @@ import 'package:angel3_auth/angel3_auth.dart';
|
||||||
import 'package:angel3_framework/angel3_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:path/path.dart' as p;
|
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';
|
import 'package:dart_twitter_api/twitter_api.dart';
|
||||||
|
|
||||||
/// Authenticates users by connecting to Twitter's API.
|
/// Authenticates users by connecting to Twitter's API.
|
||||||
|
|
|
@ -10,13 +10,14 @@ dependencies:
|
||||||
angel3_auth: ^8.0.0
|
angel3_auth: ^8.0.0
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
path: ^1.0.0
|
path: ^1.9.0
|
||||||
belatuk_oauth1: ^3.0.0
|
belatuk_oauth1: ^3.0.0
|
||||||
dart_twitter_api: ^0.5.6+1
|
dart_twitter_api: ^0.5.6+1
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
dependency_overrides:
|
||||||
|
http: ^1.0.0
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../container/angel_container
|
# path: ../container/angel_container
|
||||||
# angel3_framework:
|
# angel3_framework:
|
||||||
|
|
5
packages/cache/CHANGELOG.md
vendored
5
packages/cache/CHANGELOG.md
vendored
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
4
packages/cache/pubspec.yaml
vendored
4
packages/cache/pubspec.yaml
vendored
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_cache
|
name: angel3_cache
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: A service that provides HTTP caching to the response data for Angel3
|
description: A service that provides HTTP caching to the response data for Angel3
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/cache
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/cache
|
||||||
|
@ -16,7 +16,7 @@ dev_dependencies:
|
||||||
glob: ^2.0.1
|
glob: ^2.0.1
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../container/angel_container
|
# path: ../container/angel_container
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_cors
|
name: angel3_cors
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Angel3 CORS middleware. Ported from expressjs/cors to Angel3 framework.
|
description: Angel3 CORS middleware. Ported from expressjs/cors to Angel3 framework.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/cors
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/cors
|
||||||
|
@ -10,7 +10,7 @@ dependencies:
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.2.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.1.0
|
## 8.1.0
|
||||||
|
|
||||||
* Update `jinja` to 0.5.0
|
* Update `jinja` to 0.5.0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_jinja
|
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.
|
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
|
homepage: https://github.com/dukefirehawk/angel/tree/master/packages/jinja
|
||||||
environment:
|
environment:
|
||||||
|
@ -9,9 +9,9 @@ dependencies:
|
||||||
jinja: ^0.5.0
|
jinja: ^0.5.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
path: ^1.8.0
|
path: ^1.9.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../container/angel_container
|
# path: ../container/angel_container
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -15,8 +15,8 @@ In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_framework: ^6.0.0
|
angel3_framework: ^8.0.0
|
||||||
angel3_markdown: ^6.0.0
|
angel3_markdown: ^8.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -33,9 +33,7 @@ configureServer(Angel app) async {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You can then generate HTML on-the-fly in a request handler.
|
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:
|
||||||
Assuming your view directory contained a file named `hello.md`, the
|
|
||||||
following would render it as an HTML response:
|
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
configureServer(Angel app) async {
|
configureServer(Angel app) async {
|
||||||
|
@ -48,9 +46,7 @@ you can easily override this.
|
||||||
|
|
||||||
## Interpolation
|
## Interpolation
|
||||||
|
|
||||||
`angel3_markdown` can interpolate the values of data from `locals` before building the Markdown.
|
`angel3_markdown` can interpolate the values of data from `locals` before building the Markdown. For example, with the following template `species.md`:
|
||||||
|
|
||||||
For example, with the following template `species.md`:
|
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
# Species: {{species.name}}
|
# 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,
|
The `template` function will have access to whatever values were passed to the renderer, or an empty `Map`.
|
||||||
or an empty `Map`.
|
|
||||||
|
|
||||||
## Enhancing Markdown
|
## Enhancing Markdown
|
||||||
|
|
||||||
You can pass an `extensionSet` to add additional features to the Markdown renderer.
|
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.
|
||||||
By default, this plug-in configures it to enable Github-flavored Markdown.
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_markdown
|
name: angel3_markdown
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Angel3 Markdown view generator. Write static sites, with no build step.
|
description: Angel3 Markdown view generator. Write static sites, with no build step.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/markdown
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/markdown
|
||||||
|
@ -11,7 +11,7 @@ dependencies:
|
||||||
markdown: ^7.1.0
|
markdown: ^7.1.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -13,7 +13,7 @@ Add the following to your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_mongo: ^6.0.0
|
angel3_mongo: ^8.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -22,8 +22,7 @@ This library exposes one main class: `MongoService`.
|
||||||
|
|
||||||
## Model
|
## Model
|
||||||
|
|
||||||
`Model` is class with no real functionality; however, it represents a basic document, and your services should host inherited classes.
|
`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.
|
||||||
Other Angel service providers host `Model` as well, so you will easily be able to modify your application if you ever switch databases.
|
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
class User extends Model {
|
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:
|
You can query these services as follows:
|
||||||
|
|
||||||
```bash
|
```curl
|
||||||
/path/to/service?foo=bar
|
/path/to/service?foo=bar
|
||||||
```
|
```
|
||||||
|
|
||||||
The above will query the database to find records where 'foo' equals '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 former will sort result in ascending order of creation, and so will the latter.
|
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
List queried = await MyService.index({r"$query": where.id(new ObjectId.fromHexString("some hex string"})));
|
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.
|
/// Manipulates data from MongoDB as Maps.
|
||||||
class MongoService extends Service<String, Map<String, dynamic>> {
|
class MongoService extends Service<String, Map<String, dynamic>> {
|
||||||
|
@ -127,13 +127,13 @@ class MongoService extends Service<String, Map<String, dynamic>> {
|
||||||
@override
|
@override
|
||||||
Future<Map<String, dynamic>> read(String id,
|
Future<Map<String, dynamic>> read(String id,
|
||||||
[Map<String, dynamic>? params]) async {
|
[Map<String, dynamic>? params]) async {
|
||||||
var _id = _makeId(id);
|
var localId = _makeId(id);
|
||||||
var found =
|
var found =
|
||||||
await collection.findOne(where.id(_id).and(_makeQuery(params)!));
|
await collection.findOne(where.id(localId).and(_makeQuery(params)!));
|
||||||
|
|
||||||
if (found == null) {
|
if (found == null) {
|
||||||
throw AngelHttpException.notFound(
|
throw AngelHttpException.notFound(
|
||||||
message: 'No record found for ID ${_id.toHexString()}');
|
message: 'No record found for ID ${localId.toHexString()}');
|
||||||
}
|
}
|
||||||
|
|
||||||
return _jsonify(found, params);
|
return _jsonify(found, params);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_mongo
|
name: angel3_mongo
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: MongoDB-enabled services for the Angel3 framework. Well-tested.
|
description: MongoDB-enabled services for the Angel3 framework. Well-tested.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mongo
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mongo
|
||||||
|
@ -7,13 +7,13 @@ environment:
|
||||||
sdk: '>=3.0.0 <4.0.0'
|
sdk: '>=3.0.0 <4.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
belatuk_json_serializer: ^7.0.0
|
belatuk_json_serializer: ^7.1.0
|
||||||
belatuk_merge_map: ^5.0.0
|
belatuk_merge_map: ^5.1.0
|
||||||
mongo_dart: ^0.9.0
|
mongo_dart: ^0.9.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../container/angel_container
|
# path: ../container/angel_container
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -15,7 +15,7 @@ In `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_mustache: ^6.0.0
|
angel3_mustache: ^8.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_mustache
|
name: angel3_mustache
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: A service that renders Mustache template into HTML view for Angel3
|
description: A service that renders Mustache template into HTML view for Angel3
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mustache
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mustache
|
||||||
|
@ -13,7 +13,7 @@ dependencies:
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../container/angel_container
|
# path: ../container/angel_container
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.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)
|
[![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)
|
[![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
|
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.
|
||||||
OAuth 2.0 server, including PKCE support.
|
|
||||||
|
|
||||||
- [Angel3 OAuth2 Server](#angel3-oauth2-server)
|
- [Angel3 OAuth2 Server](#angel3-oauth2-server)
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
|
|
|
@ -5,12 +5,8 @@ class AuthorizationException extends AngelHttpException {
|
||||||
final ErrorResponse errorResponse;
|
final ErrorResponse errorResponse;
|
||||||
|
|
||||||
AuthorizationException(this.errorResponse,
|
AuthorizationException(this.errorResponse,
|
||||||
{StackTrace? stackTrace, int? statusCode, dynamic error})
|
{super.stackTrace, int? statusCode, super.error})
|
||||||
: super(
|
: super(message: '', statusCode: statusCode ?? 400);
|
||||||
stackTrace: stackTrace,
|
|
||||||
message: '',
|
|
||||||
error: error,
|
|
||||||
statusCode: statusCode ?? 400);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Map toJson() {
|
Map toJson() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_oauth2
|
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.
|
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/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2
|
||||||
|
@ -16,7 +16,7 @@ dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
angel3_container: ^8.0.0
|
angel3_container: ^8.0.0
|
||||||
oauth2: ^2.0.0
|
oauth2: ^2.0.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
uuid: ^4.0.0
|
uuid: ^4.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -13,7 +13,7 @@ In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_orm_service: ^6.0.0
|
angel3_orm_service: ^8.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_orm_service
|
name: angel3_orm_service
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Service implementation that wraps over Angel3 ORM Query classes.
|
description: Service implementation that wraps over Angel3 ORM Query classes.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_service
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_service
|
||||||
|
@ -19,7 +19,7 @@ dev_dependencies:
|
||||||
build_runner: ^2.4.0
|
build_runner: ^2.4.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../../container/angel_container
|
# path: ../../container/angel_container
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_orm_test
|
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.
|
description: Common tests for Angel3 ORM. Reference implmentation of the generated ORM files.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_test
|
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_orm_generator: ^8.0.0
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
build_runner: ^2.4.0
|
build_runner: ^2.4.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../../container/angel_container
|
# path: ../../container/angel_container
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.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'));
|
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.
|
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.
|
||||||
|
|
||||||
For a request body to be forwarded, the body must not have already been parsed.
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_proxy
|
name: angel3_proxy
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Angel middleware to forward requests to another server (i.e. pub serve).
|
description: Angel middleware to forward requests to another server (i.e. pub serve).
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/proxy
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/proxy
|
||||||
|
@ -9,12 +9,12 @@ dependencies:
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
http_parser: ^4.0.0
|
http_parser: ^4.0.0
|
||||||
path: ^1.8.0
|
path: ^1.9.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
angel3_mock_request: ^8.0.0
|
angel3_mock_request: ^8.0.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_framework:
|
# angel3_framework:
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -17,8 +17,8 @@ In your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_framework: ^6.0.0
|
angel3_framework: ^8.0.0
|
||||||
angel3_redis: ^6.0.0
|
angel3_redis: ^8.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_redis
|
name: angel3_redis
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: An Angel3 service provider for Redis. Works well for caching volatile data.
|
description: An Angel3 service provider for Redis. Works well for caching volatile data.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/redis
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/redis
|
||||||
|
@ -11,7 +11,7 @@ dependencies:
|
||||||
resp_client: ^1.2.0
|
resp_client: ^1.2.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_framework:
|
# angel3_framework:
|
||||||
# path: ../framework
|
# path: ../framework
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
|
|
||||||
Angel3 middleware designed to enhance application security by patching common Web security holes.
|
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>>{};
|
final _cache = <User, RateLimitingWindow<User>>{};
|
||||||
|
|
||||||
InMemoryRateLimiter(
|
InMemoryRateLimiter(
|
||||||
int maxPointsPerWindow, Duration windowDuration, this.getUser,
|
super.maxPointsPerWindow, super.windowDuration, this.getUser,
|
||||||
{String? errorMessage})
|
{super.errorMessage});
|
||||||
: super(maxPointsPerWindow, windowDuration, errorMessage: errorMessage);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
FutureOr<RateLimitingWindow<User>> getCurrentWindow(
|
FutureOr<RateLimitingWindow<User>> getCurrentWindow(
|
||||||
|
|
|
@ -13,9 +13,8 @@ class ServiceRateLimiter<Id> extends RateLimiter<Id> {
|
||||||
final FutureOr<Id> Function(RequestContext, ResponseContext) getId;
|
final FutureOr<Id> Function(RequestContext, ResponseContext) getId;
|
||||||
|
|
||||||
ServiceRateLimiter(
|
ServiceRateLimiter(
|
||||||
int maxPointsPerWindow, Duration windowDuration, this.service, this.getId,
|
super.maxPointsPerWindow, super.windowDuration, this.service, this.getId,
|
||||||
{String? errorMessage})
|
{super.errorMessage});
|
||||||
: super(maxPointsPerWindow, windowDuration, errorMessage: errorMessage);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
FutureOr<RateLimitingWindow<Id>> getCurrentWindow(
|
FutureOr<RateLimitingWindow<Id>> getCurrentWindow(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_security
|
name: angel3_security
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Angel3 infrastructure for improving security, rate limiting, and more
|
description: Angel3 infrastructure for improving security, rate limiting, and more
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/security
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/security
|
||||||
|
@ -14,11 +14,11 @@ dev_dependencies:
|
||||||
angel3_redis: ^8.0.0
|
angel3_redis: ^8.0.0
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
angel3_validate: ^8.0.0
|
angel3_validate: ^8.0.0
|
||||||
belatuk_pretty_logging: ^6.0.0
|
belatuk_pretty_logging: ^6.1.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
resp_client: ^1.2.0
|
resp_client: ^1.2.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_production:
|
# angel3_production:
|
||||||
# path: ../production
|
# path: ../production
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -13,7 +13,7 @@ Add the following to your `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_sembast: ^6.0.0
|
angel3_sembast: ^8.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -28,7 +28,7 @@ This class interacts with a `Database` and `Store` (from `package:sembast`) and
|
||||||
|
|
||||||
You can query these services as follows:
|
You can query these services as follows:
|
||||||
|
|
||||||
```dart
|
```curl
|
||||||
/path/to/service?foo=bar
|
/path/to/service?foo=bar
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_sembast
|
name: angel3_sembast
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: A plugin service that persist data to Sembast for Angel3 framework.
|
description: A plugin service that persist data to Sembast for Angel3 framework.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/sembast
|
repository: https://github.com/dukefirehawk/angel/tree/master/packages/sembast
|
||||||
|
@ -11,7 +11,7 @@ dependencies:
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_http_exception: ^8.0.0
|
angel3_http_exception: ^8.0.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_framework:
|
# angel3_framework:
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_seo
|
name: angel3_seo
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Helper infrastructure for building SEO-friendly Web backends in Angel3.
|
description: Helper infrastructure for building SEO-friendly Web backends in Angel3.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/seo
|
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/seo
|
||||||
|
@ -11,12 +11,12 @@ dependencies:
|
||||||
file: ^7.0.0
|
file: ^7.0.0
|
||||||
html: ^0.15.0
|
html: ^0.15.0
|
||||||
http_parser: ^4.0.0
|
http_parser: ^4.0.0
|
||||||
path: ^1.8.0
|
path: ^1.9.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_static:
|
# angel3_static:
|
||||||
# path: ../static
|
# path: ../static
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 7.0.0-beta.2
|
## 7.0.0-beta.2
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,7 @@
|
||||||
|
|
||||||
**Replacement of `package:angel_shelf` with breaking changes to support NNBD.**
|
**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.
|
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.
|
||||||
|
|
||||||
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)
|
- [Angel3 Shelf](#angel3-shelf)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
|
@ -61,7 +54,7 @@ void main() async {
|
||||||
|
|
||||||
### Communicating with Angel with embedShelf
|
### Communicating with Angel with embedShelf
|
||||||
|
|
||||||
You can communicate with Angel:
|
You can communicate with Angel3:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
handleRequest(shelf.Request request) {
|
handleRequest(shelf.Request request) {
|
||||||
|
@ -79,9 +72,7 @@ handleRequest(shelf.Request request) {
|
||||||
|
|
||||||
### AngelShelf
|
### 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.
|
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:
|
||||||
|
|
||||||
`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
|
```dart
|
||||||
// Create an AngelShelf driver.
|
// Create an AngelShelf driver.
|
||||||
|
|
|
@ -10,7 +10,7 @@ dependencies:
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
angel3_container: ^8.0.0
|
angel3_container: ^8.0.0
|
||||||
angel3_mock_request: ^8.0.0
|
angel3_mock_request: ^8.0.0
|
||||||
path: ^1.8.0
|
path: ^1.9.0
|
||||||
shelf: ^1.3.0
|
shelf: ^1.3.0
|
||||||
stream_channel: ^2.1.0
|
stream_channel: ^2.1.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
|
@ -18,10 +18,10 @@ dependencies:
|
||||||
http: ^1.0.0
|
http: ^1.0.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
belatuk_pretty_logging: ^6.0.0
|
belatuk_pretty_logging: ^6.1.0
|
||||||
shelf_static: ^1.1.0
|
shelf_static: ^1.1.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_test:
|
# angel3_test:
|
||||||
# path: ../test
|
# path: ../test
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -9,10 +9,7 @@ Easily synchronize and scale WebSockets using [belatuk_pub_sub](<https://pub.dev
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
This package exposes `PubSubSynchronizationChannel`, which can simply be dropped into any `AngelWebSocket` constructor.
|
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!
|
||||||
|
|
||||||
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
|
```dart
|
||||||
await app.configure(AngelWebSocket(
|
await app.configure(AngelWebSocket(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_sync
|
name: angel3_sync
|
||||||
version: 8.0.0
|
version: 8.1.0
|
||||||
description: Easily synchronize and scale WebSockets using belatuk_pub_sub in Angel3.
|
description: Easily synchronize and scale WebSockets using belatuk_pub_sub in Angel3.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/sync
|
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/sync
|
||||||
|
@ -8,12 +8,12 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
angel3_websocket: ^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
|
stream_channel: ^2.1.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
angel3_test: ^8.0.0
|
angel3_test: ^8.0.0
|
||||||
test: ^1.24.0
|
test: ^1.24.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_websocket:
|
# angel3_websocket:
|
||||||
# path: ../websocket
|
# path: ../websocket
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 8.1.0
|
||||||
|
|
||||||
|
* Updated `lints` to 3.0.0
|
||||||
|
* Fixed linter warnings
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Require Dart >= 3.0
|
* Require Dart >= 3.0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel3_user_agent
|
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.
|
description: Angel3 middleware to parse and inject a User Agent object into requests.
|
||||||
homepage: https://angel3-framework.web.app/
|
homepage: https://angel3-framework.web.app/
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/user_agent/angel_user_agent
|
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/user_agent/angel_user_agent
|
||||||
|
@ -8,7 +8,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
angel3_framework: ^8.0.0
|
angel3_framework: ^8.0.0
|
||||||
user_agent_analyzer: ^5.0.0
|
user_agent_analyzer: ^5.0.0
|
||||||
lints: ^2.1.0
|
lints: ^3.0.0
|
||||||
# dependency_overrides:
|
# dependency_overrides:
|
||||||
# angel3_container:
|
# angel3_container:
|
||||||
# path: ../../container/angel_container
|
# path: ../../container/angel_container
|
||||||
|
|
Loading…
Reference in a new issue