Published 8.0.0
This commit is contained in:
parent
b83adcd51a
commit
d6960acfbf
59 changed files with 669 additions and 631 deletions
|
@ -34,8 +34,8 @@
|
|||
* Updated: angel3_orm_mysql
|
||||
* Updated: angel3_orm_service
|
||||
* Updated: angel3_orm_test
|
||||
* Updated: angel3_orm_cache
|
||||
* Updated: angel3_orm_cors
|
||||
* Updated: angel3_cache
|
||||
* Updated: angel3_cors
|
||||
* Updated: angel3_mustache
|
||||
* Updated: angel3_proxy
|
||||
* Updated: angel3_redis
|
||||
|
|
26
README.md
26
README.md
|
@ -55,18 +55,14 @@ Branch: `master`
|
|||
|
||||
For more details, checkout [Project Status](https://github.com/dukefirehawk/angel/wiki/Project-Status)
|
||||
|
||||
### Next Release 8.0.0
|
||||
|
||||
* Branch: `feature/v8`
|
||||
* Update all `angel3_` packages to require dart >= 3.0.x
|
||||
* Resolve issues related to generated container
|
||||
* Improve HTTP and ORM performance
|
||||
* Improve ORM for MySQL
|
||||
* Add cache support in ORM (using Redis)
|
||||
|
||||
## Release Notes
|
||||
|
||||
### Release 7.0.0 (Current)
|
||||
### Release 8.0.0 (Current)
|
||||
|
||||
* Update all `angel3_` packages to require dart >= 3.0.x
|
||||
* Resolve issues related to generated container
|
||||
|
||||
### Release 7.0.0
|
||||
|
||||
* Updated all `angel3_` packages to 7.0.0
|
||||
* Updated all `angel3_` packages to require dart >= 2.17.x
|
||||
|
@ -86,6 +82,16 @@ For more details, checkout [Project Status](https://github.com/dukefirehawk/ange
|
|||
* Removed deprecated API
|
||||
* [**Breaking**] `error` for `AngelHttpException` is no longer mandatory
|
||||
|
||||
## TODO
|
||||
|
||||
* Improve HTTP and ORM performance
|
||||
* Improve ORM for MySQL
|
||||
* Add cache support in ORM (using Redis)
|
||||
* Upgrade and release angel3_oauth2 8.0.0 (5 failed test cases)
|
||||
* Upgrade and release angel3_auth_twitter 8.0.0 (issue: oauth1 don't support http 1.0.0)
|
||||
* Upgrade and release angel3_mongo 8.0.0 (issue: mongo_dart don't support http 1.0.0)
|
||||
* Upgrade and release angel3_shelf 8.0.0 (2 failed test cases)
|
||||
|
||||
## Installation and Setup
|
||||
|
||||
### Create a new project by cloning from boilerplate templates
|
||||
|
|
|
@ -20,16 +20,16 @@ dev_dependencies:
|
|||
io: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
|
@ -13,18 +13,18 @@ dependencies:
|
|||
dev_dependencies:
|
||||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
|
|
46
packages/cache/pubspec.yaml
vendored
46
packages/cache/pubspec.yaml
vendored
|
@ -17,26 +17,26 @@ dev_dependencies:
|
|||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -20,22 +20,23 @@ dev_dependencies:
|
|||
angel3_container: ^8.0.0
|
||||
angel3_auth: ^8.0.0
|
||||
async: ^2.11.0
|
||||
quiver: ^3.2.0
|
||||
build_runner: ^2.4.0
|
||||
build_web_compilers: ^4.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
BIN
packages/client/test/.DS_Store
vendored
BIN
packages/client/test/.DS_Store
vendored
Binary file not shown.
|
@ -9,76 +9,80 @@ void main() {
|
|||
test('sets method,body,headers,path', () async {
|
||||
await app.post(Uri.parse('/post'),
|
||||
headers: {'method': 'post'}, body: 'post');
|
||||
expect(app.client.spec!.method, 'POST');
|
||||
expect(app.client.spec!.path, '/post');
|
||||
expect(app.client.spec!.headers['method'], 'post');
|
||||
expect(await read(app.client.spec!.request.finalize()), 'post');
|
||||
expect((app.client as SpecClient).spec!.method, 'POST');
|
||||
expect((app.client as SpecClient).spec!.path, '/post');
|
||||
expect((app.client as SpecClient).spec!.headers['method'], 'post');
|
||||
expect(await read((app.client as SpecClient).spec!.request.finalize()),
|
||||
'post');
|
||||
});
|
||||
|
||||
group('service methods', () {
|
||||
test('index', () async {
|
||||
await todoService.index();
|
||||
expect(app.client.spec!.method, 'GET');
|
||||
expect(app.client.spec!.path, '/api/todos');
|
||||
expect((app.client as SpecClient).spec!.method, 'GET');
|
||||
expect((app.client as SpecClient).spec!.path, '/api/todos');
|
||||
});
|
||||
|
||||
test('read', () async {
|
||||
await todoService.read('sleep');
|
||||
expect(app.client.spec!.method, 'GET');
|
||||
expect(app.client.spec!.path, '/api/todos/sleep');
|
||||
expect((app.client as SpecClient).spec!.method, 'GET');
|
||||
expect((app.client as SpecClient).spec!.path, '/api/todos/sleep');
|
||||
});
|
||||
|
||||
test('create', () async {
|
||||
await todoService.create({});
|
||||
expect(app.client.spec!.method, 'POST');
|
||||
expect(app.client.spec!.headers['content-type'],
|
||||
expect((app.client as SpecClient).spec!.method, 'POST');
|
||||
expect((app.client as SpecClient).spec!.headers['content-type'],
|
||||
startsWith('application/json'));
|
||||
expect(app.client.spec!.path, '/api/todos');
|
||||
expect(await read(app.client.spec!.request.finalize()), '{}');
|
||||
expect((app.client as SpecClient).spec!.path, '/api/todos');
|
||||
expect(await read((app.client as SpecClient).spec!.request.finalize()),
|
||||
'{}');
|
||||
});
|
||||
|
||||
test('modify', () async {
|
||||
await todoService.modify('sleep', {});
|
||||
expect(app.client.spec!.method, 'PATCH');
|
||||
expect(app.client.spec!.headers['content-type'],
|
||||
expect((app.client as SpecClient).spec!.method, 'PATCH');
|
||||
expect((app.client as SpecClient).spec!.headers['content-type'],
|
||||
startsWith('application/json'));
|
||||
expect(app.client.spec!.path, '/api/todos/sleep');
|
||||
expect(await read(app.client.spec!.request.finalize()), '{}');
|
||||
expect((app.client as SpecClient).spec!.path, '/api/todos/sleep');
|
||||
expect(await read((app.client as SpecClient).spec!.request.finalize()),
|
||||
'{}');
|
||||
});
|
||||
|
||||
test('update', () async {
|
||||
await todoService.update('sleep', {});
|
||||
expect(app.client.spec!.method, 'POST');
|
||||
expect(app.client.spec!.headers['content-type'],
|
||||
expect((app.client as SpecClient).spec!.method, 'POST');
|
||||
expect((app.client as SpecClient).spec!.headers['content-type'],
|
||||
startsWith('application/json'));
|
||||
expect(app.client.spec!.path, '/api/todos/sleep');
|
||||
expect(await read(app.client.spec!.request.finalize()), '{}');
|
||||
expect((app.client as SpecClient).spec!.path, '/api/todos/sleep');
|
||||
expect(await read((app.client as SpecClient).spec!.request.finalize()),
|
||||
'{}');
|
||||
});
|
||||
|
||||
test('remove', () async {
|
||||
await todoService.remove('sleep');
|
||||
expect(app.client.spec!.method, 'DELETE');
|
||||
expect(app.client.spec!.path, '/api/todos/sleep');
|
||||
expect((app.client as SpecClient).spec!.method, 'DELETE');
|
||||
expect((app.client as SpecClient).spec!.path, '/api/todos/sleep');
|
||||
});
|
||||
});
|
||||
|
||||
group('authentication', () {
|
||||
test('no type defaults to token', () async {
|
||||
await app.authenticate(credentials: '<jwt>');
|
||||
expect(app.client.spec!.path, '/auth/token');
|
||||
expect((app.client as SpecClient).spec!.path, '/auth/token');
|
||||
});
|
||||
|
||||
test('sets type', () async {
|
||||
await app.authenticate(type: 'local');
|
||||
expect(app.client.spec!.path, '/auth/local');
|
||||
expect((app.client as SpecClient).spec!.path, '/auth/local');
|
||||
});
|
||||
|
||||
test('credentials send right body', () async {
|
||||
await app
|
||||
.authenticate(type: 'local', credentials: {'username': 'password'});
|
||||
print(app.client.spec?.headers);
|
||||
print((app.client as SpecClient).spec?.headers);
|
||||
expect(
|
||||
await read(app.client.spec!.request.finalize()),
|
||||
await read((app.client as SpecClient).spec!.request.finalize()),
|
||||
json.encode({'username': 'password'}),
|
||||
);
|
||||
});
|
||||
|
|
|
@ -9,8 +9,10 @@ Future<String> read(Stream<List<int>> stream) =>
|
|||
stream.transform(utf8.decoder).join();
|
||||
|
||||
class MockAngel extends BaseAngelClient {
|
||||
final SpecClient specClient = SpecClient();
|
||||
|
||||
@override
|
||||
final SpecClient client = SpecClient();
|
||||
get client => specClient;
|
||||
|
||||
MockAngel() : super(SpecClient(), 'http://localhost:3000');
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:angel3_model/angel3_model.dart';
|
||||
import 'package:quiver/core.dart';
|
||||
|
||||
class Postcard extends Model {
|
||||
String? location;
|
||||
|
@ -25,4 +26,7 @@ class Postcard extends Model {
|
|||
Map toJson() {
|
||||
return {'id': id, 'location': location, 'message': message};
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hash2(id, location);
|
||||
}
|
||||
|
|
|
@ -17,16 +17,16 @@ dev_dependencies:
|
|||
lints: ^2.1.0
|
||||
belatuk_pretty_logging: ^6.0.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
|
@ -13,6 +13,6 @@ dev_dependencies:
|
|||
build_test: ^2.1.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../angel_container
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../angel_container
|
||||
|
|
|
@ -12,26 +12,26 @@ dev_dependencies:
|
|||
http: ^1.0.0
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
angel3_test:
|
||||
path: ../test
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
* Updated `http` to 1.0.0
|
||||
|
||||
## 7.0.4
|
||||
|
||||
|
|
|
@ -31,19 +31,19 @@ dependencies:
|
|||
uuid: ^3.0.0
|
||||
collection: ^1.17.0
|
||||
dev_dependencies:
|
||||
http: ^0.13.1
|
||||
http: ^1.0.0
|
||||
io: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
|
||||
|
|
|
@ -19,23 +19,23 @@ dev_dependencies:
|
|||
http: ^1.0.0
|
||||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
|
|
@ -18,30 +18,30 @@ dev_dependencies:
|
|||
html: ^0.15.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../../framework
|
||||
angel3_http_exception:
|
||||
path: ../../http_exception
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_route:
|
||||
path: ../../route
|
||||
angel3_mock_request:
|
||||
path: ../../mock_request
|
||||
angel3_auth:
|
||||
path: ../../auth
|
||||
angel3_client:
|
||||
path: ../../client
|
||||
angel3_websocket:
|
||||
path: ../../websocket
|
||||
angel3_validate:
|
||||
path: ../../validate
|
||||
angel3_test:
|
||||
path: ../../test
|
||||
jael3:
|
||||
path: ../jael
|
||||
jael3_preprocessor:
|
||||
path: ../jael_preprocessor
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../../http_exception
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_route:
|
||||
# path: ../../route
|
||||
# angel3_mock_request:
|
||||
# path: ../../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../../auth
|
||||
# angel3_client:
|
||||
# path: ../../client
|
||||
# angel3_websocket:
|
||||
# path: ../../websocket
|
||||
# angel3_validate:
|
||||
# path: ../../validate
|
||||
# angel3_test:
|
||||
# path: ../../test
|
||||
# jael3:
|
||||
# path: ../jael
|
||||
# jael3_preprocessor:
|
||||
# path: ../jael_preprocessor
|
||||
|
|
|
@ -23,8 +23,8 @@ dependencies:
|
|||
async: ^2.11.0
|
||||
executables:
|
||||
jael3_language_server: jael3_language_server
|
||||
dependency_overrides:
|
||||
jael3:
|
||||
path: ../jael
|
||||
jael3_preprocessor:
|
||||
path: ../jael_preprocessor
|
||||
# dependency_overrides:
|
||||
# jael3:
|
||||
# path: ../jael
|
||||
# jael3_preprocessor:
|
||||
# path: ../jael_preprocessor
|
||||
|
|
|
@ -14,6 +14,6 @@ dev_dependencies:
|
|||
belatuk_code_buffer: ^5.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
jael3:
|
||||
path: ../jael
|
||||
# dependency_overrides:
|
||||
# jael3:
|
||||
# path: ../jael
|
||||
|
|
|
@ -18,8 +18,8 @@ dev_dependencies:
|
|||
build_runner: ^2.4.0
|
||||
build_web_compilers: ^4.0.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
jael3:
|
||||
path: ../jael
|
||||
jael3_preprocessor:
|
||||
path: ../jael_preprocessor
|
||||
# dependency_overrides:
|
||||
# jael3:
|
||||
# path: ../jael
|
||||
# jael3_preprocessor:
|
||||
# path: ../jael_preprocessor
|
||||
|
|
|
@ -12,26 +12,26 @@ dev_dependencies:
|
|||
path: ^1.8.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
||||
## 7.0.0
|
||||
|
||||
* Require Dart >= 2.17
|
||||
|
|
|
@ -13,26 +13,26 @@ dev_dependencies:
|
|||
angel3_test: ^8.0.0
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -3,6 +3,7 @@
|
|||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
* Updated `http` to 1.0.0
|
||||
|
||||
## 7.0.1
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ dependencies:
|
|||
charcode: ^1.3.0
|
||||
dev_dependencies:
|
||||
#angel3_framework: ^7.0.0
|
||||
http: ^0.13.0
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
# dependency_overrides:
|
||||
|
|
|
@ -22,11 +22,11 @@ Future Function(Angel app) mustache(Directory viewsDirectory,
|
|||
return (Angel app) async {
|
||||
app.viewGenerator = (String name, [Map? data]) async {
|
||||
//var partialsProvider;
|
||||
var partialsProvider = (String name) {
|
||||
partialsProvider(String name) {
|
||||
var template = cache.getPartialSync(name, app)!;
|
||||
//return render(template, data ?? {}, partial: partialsProvider);
|
||||
return viewer.Template(template, name: name);
|
||||
};
|
||||
}
|
||||
|
||||
var viewTemplate = await (cache.getView(name, app));
|
||||
//return await render(viewTemplate, data ?? {}, partial: partialsProvider);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_mustache
|
||||
version: 7.0.0
|
||||
version: 8.0.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
|
||||
|
@ -14,16 +14,16 @@ dev_dependencies:
|
|||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
|
@ -9,6 +9,6 @@ dependencies:
|
|||
angel3_orm: ^8.0.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_orm:
|
||||
path: ../angel_orm
|
||||
# dependency_overrides:
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
|
|
|
@ -16,8 +16,8 @@ dependencies:
|
|||
logging: ^1.2.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_orm:
|
||||
path: ../angel_orm
|
||||
angel3_migration:
|
||||
path: ../angel_migration
|
||||
# dependency_overrides:
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
# angel3_migration:
|
||||
# path: ../angel_migration
|
||||
|
|
|
@ -19,10 +19,10 @@ dev_dependencies:
|
|||
build_runner: ^2.4.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_serialize:
|
||||
path: ../../serialize/angel_serialize
|
||||
angel3_serialize_generator:
|
||||
path: ../../serialize/angel_serialize_generator
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
# dependency_overrides:
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
# angel3_serialize_generator:
|
||||
# path: ../../serialize/angel_serialize_generator
|
||||
# angel3_model:
|
||||
# path: ../../model
|
|
@ -30,25 +30,25 @@ dev_dependencies:
|
|||
postgres: ^2.4.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../../framework
|
||||
angel3_http_exception:
|
||||
path: ../../http_exception
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_route:
|
||||
path: ../../route
|
||||
angel3_mock_request:
|
||||
path: ../../mock_request
|
||||
angel3_serialize:
|
||||
path: ../../serialize/angel_serialize
|
||||
angel3_serialize_generator:
|
||||
path: ../../serialize/angel_serialize_generator
|
||||
angel3_orm:
|
||||
path: ../angel_orm
|
||||
angel3_migration:
|
||||
path: ../angel_migration
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../../http_exception
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_route:
|
||||
# path: ../../route
|
||||
# angel3_mock_request:
|
||||
# path: ../../mock_request
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
# angel3_serialize_generator:
|
||||
# path: ../../serialize/angel_serialize_generator
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
# angel3_migration:
|
||||
# path: ../angel_migration
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
||||
## 7.1.0-beta.1
|
||||
|
||||
* [Breaking] Require Dart >= 2.19
|
||||
|
|
|
@ -9,7 +9,7 @@ class MariaDbExecutor extends QueryExecutor {
|
|||
|
||||
final MySqlConnection _connection;
|
||||
|
||||
TransactionContext? _transactionContext;
|
||||
//TransactionContext? _transactionContext;
|
||||
|
||||
MariaDbExecutor(this._connection, {Logger? logger}) {
|
||||
this.logger = logger ?? Logger('MariaDbExecutor');
|
||||
|
@ -78,9 +78,10 @@ class MariaDbExecutor extends QueryExecutor {
|
|||
Future<T> transaction<T>(FutureOr<T> Function(QueryExecutor) f) async {
|
||||
T? returnValue = await _connection.transaction((ctx) async {
|
||||
try {
|
||||
// TODO: To be refactored
|
||||
//logger.fine('Entering transaction');
|
||||
//var tx = MariaDbExecutor(conn, logger: logger);
|
||||
_transactionContext = ctx;
|
||||
//TransactionContext transactionContext = ctx;
|
||||
return await f(this);
|
||||
} catch (e) {
|
||||
logger.severe('Failed to run transaction', e);
|
||||
|
|
|
@ -18,18 +18,18 @@ dev_dependencies:
|
|||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
|
||||
dependency_overrides:
|
||||
angel3_serialize:
|
||||
path: ../../serialize/angel_serialize
|
||||
angel3_serialize_generator:
|
||||
path: ../../serialize/angel_serialize_generator
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_orm_test:
|
||||
path: ../angel_orm_test
|
||||
angel3_orm:
|
||||
path: ../angel_orm
|
||||
angel3_orm_generator:
|
||||
path: ../angel_orm_generator
|
||||
angel3_migration:
|
||||
path: ../angel_migration
|
||||
# dependency_overrides:
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
# angel3_serialize_generator:
|
||||
# path: ../../serialize/angel_serialize_generator
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_orm_test:
|
||||
# path: ../angel_orm_test
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
# angel3_orm_generator:
|
||||
# path: ../angel_orm_generator
|
||||
# angel3_migration:
|
||||
# path: ../angel_migration
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'dart:io';
|
|||
import 'package:angel3_orm/angel3_orm.dart';
|
||||
import 'package:angel3_orm_mysql/angel3_orm_mysql.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:mysql1/mysql1.dart';
|
||||
//import 'package:mysql1/mysql1.dart';
|
||||
import 'package:mysql_client/mysql_client.dart';
|
||||
|
||||
List tmpTables = [];
|
||||
|
@ -49,7 +49,7 @@ String extractTableName(String createQuery) {
|
|||
}
|
||||
|
||||
// Executor for MariaDB
|
||||
Future<MariaDbExecutor> _connectToMariaDb(List<String> schemas) async {
|
||||
/* Future<MariaDbExecutor> _connectToMariaDb(List<String> schemas) async {
|
||||
var settings = ConnectionSettings(
|
||||
host: 'localhost',
|
||||
port: 3306,
|
||||
|
@ -81,7 +81,7 @@ Future<MariaDbExecutor> _connectToMariaDb(List<String> schemas) async {
|
|||
}
|
||||
|
||||
return MariaDbExecutor(connection, logger: logger);
|
||||
}
|
||||
} */
|
||||
|
||||
// Executor for MySQL
|
||||
// create user 'test'@'localhost' identified by 'test123';
|
||||
|
|
|
@ -17,18 +17,18 @@ dev_dependencies:
|
|||
angel3_orm_test: ^8.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_serialize:
|
||||
path: ../../serialize/angel_serialize
|
||||
angel3_serialize_generator:
|
||||
path: ../../serialize/angel_serialize_generator
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_orm_test:
|
||||
path: ../angel_orm_test
|
||||
angel3_orm_generator:
|
||||
path: ../angel_orm_generator
|
||||
angel3_orm:
|
||||
path: ../angel_orm
|
||||
angel3_migration:
|
||||
path: ../angel_migration
|
||||
# dependency_overrides:
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
# angel3_serialize_generator:
|
||||
# path: ../../serialize/angel_serialize_generator
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_orm_test:
|
||||
# path: ../angel_orm_test
|
||||
# angel3_orm_generator:
|
||||
# path: ../angel_orm_generator
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
# angel3_migration:
|
||||
# path: ../angel_migration
|
||||
|
|
|
@ -63,7 +63,7 @@ Future<PostgreSqlExecutorPool> connectToPostgresPool1(
|
|||
|
||||
Future<PostgreSqlPoolExecutor> connectToPostgresPool(
|
||||
Iterable<String> schemas) async {
|
||||
var _pool = PgPool(
|
||||
var dbPool = PgPool(
|
||||
PgEndpoint(
|
||||
host: 'localhost',
|
||||
port: 5432,
|
||||
|
@ -83,5 +83,5 @@ Future<PostgreSqlPoolExecutor> connectToPostgresPool(
|
|||
// }
|
||||
//});
|
||||
|
||||
return PostgreSqlPoolExecutor(_pool, logger: Logger.root);
|
||||
return PostgreSqlPoolExecutor(dbPool, logger: Logger.root);
|
||||
}
|
||||
|
|
|
@ -19,26 +19,26 @@ dev_dependencies:
|
|||
angel3_framework: ^8.0.0
|
||||
build_runner: ^2.4.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../../framework
|
||||
angel3_http_exception:
|
||||
path: ../../http_exception
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_route:
|
||||
path: ../../route
|
||||
angel3_mock_request:
|
||||
path: ../../mock_request
|
||||
angel3_serialize:
|
||||
path: ../../serialize/angel_serialize
|
||||
angel3_serialize_generator:
|
||||
path: ../../serialize/angel_serialize_generator
|
||||
angel3_orm:
|
||||
path: ../angel_orm
|
||||
angel3_migration:
|
||||
path: ../angel_migration
|
||||
angel3_orm_generator:
|
||||
path: ../angel_orm_generator
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../../http_exception
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_route:
|
||||
# path: ../../route
|
||||
# angel3_mock_request:
|
||||
# path: ../../mock_request
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
# angel3_serialize_generator:
|
||||
# path: ../../serialize/angel_serialize_generator
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
# angel3_migration:
|
||||
# path: ../angel_migration
|
||||
# angel3_orm_generator:
|
||||
# path: ../angel_orm_generator
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
||||
## 7.0.0
|
||||
|
||||
* Require Dart >= 2.17
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
name: angel3_paginate
|
||||
version: 7.0.0
|
||||
version: 8.0.0
|
||||
description: Platform-agnostic pagination library, with custom support for the Angel3 framework.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/paginate
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^7.0.0
|
||||
angel3_framework: ^8.0.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^7.0.0
|
||||
logging: ^1.0.1
|
||||
test: ^1.21.0
|
||||
lints: ^2.0.0
|
||||
angel3_test: ^8.0.0
|
||||
logging: ^1.2.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
# dependency_overrides:
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
|
|
|
@ -2,12 +2,12 @@ import 'package:angel3_paginate/angel3_paginate.dart';
|
|||
import 'package:test/test.dart';
|
||||
|
||||
// Count-down from 100, then 101 at the end...
|
||||
final List<int> DATA = List<int>.generate(100, (i) => 100 - i)..add(101);
|
||||
final List<int> data = List<int>.generate(100, (i) => 100 - i)..add(101);
|
||||
|
||||
void main() {
|
||||
group('cache', () {
|
||||
var cached = Paginator<int>(DATA),
|
||||
uncached = Paginator<int>(DATA, useCache: false);
|
||||
var cached = Paginator<int>(data),
|
||||
uncached = Paginator<int>(data, useCache: false);
|
||||
|
||||
test('always cache current', () {
|
||||
expect(cached.current, cached.current);
|
||||
|
@ -34,7 +34,7 @@ void main() {
|
|||
});
|
||||
|
||||
test('default state', () {
|
||||
var paginator = Paginator<int>(DATA);
|
||||
var paginator = Paginator<int>(data);
|
||||
expect(paginator.index, 0);
|
||||
expect(paginator.pageNumber, 1);
|
||||
expect(paginator.itemsPerPage, 5);
|
||||
|
@ -51,56 +51,56 @@ void main() {
|
|||
|
||||
group('paginate', () {
|
||||
test('first page', () {
|
||||
var paginator = Paginator<int>(DATA);
|
||||
var paginator = Paginator<int>(data);
|
||||
expect(paginator.pageNumber, 1);
|
||||
var r = paginator.current!;
|
||||
print(r.toJson());
|
||||
expect(r.total, DATA.length);
|
||||
expect(r.total, data.length);
|
||||
expect(r.itemsPerPage, 5);
|
||||
expect(r.previousPage, -1);
|
||||
expect(r.currentPage, 1);
|
||||
expect(r.nextPage, 2);
|
||||
expect(r.startIndex, 0);
|
||||
expect(r.endIndex, 4);
|
||||
expect(r.data, DATA.skip(r.startIndex!).take(r.itemsPerPage!).toList());
|
||||
expect(r.data, data.skip(r.startIndex!).take(r.itemsPerPage!).toList());
|
||||
});
|
||||
});
|
||||
|
||||
test('third page', () {
|
||||
var paginator = Paginator<int>(DATA)..goToPage(3);
|
||||
var paginator = Paginator<int>(data)..goToPage(3);
|
||||
expect(paginator.pageNumber, 3);
|
||||
var r = paginator.current!;
|
||||
print(r.toJson());
|
||||
expect(r.total, DATA.length);
|
||||
expect(r.total, data.length);
|
||||
expect(r.itemsPerPage, 5);
|
||||
expect(r.previousPage, 2);
|
||||
expect(r.currentPage, 3);
|
||||
expect(r.nextPage, 4);
|
||||
expect(r.startIndex, 10);
|
||||
expect(r.endIndex, 14);
|
||||
expect(r.data, DATA.skip(r.startIndex!).take(r.itemsPerPage!).toList());
|
||||
expect(r.data, data.skip(r.startIndex!).take(r.itemsPerPage!).toList());
|
||||
|
||||
paginator.back();
|
||||
expect(paginator.pageNumber, 2);
|
||||
});
|
||||
|
||||
test('last page', () {
|
||||
var paginator = Paginator<int>(DATA);
|
||||
var paginator = Paginator<int>(data);
|
||||
paginator.goToPage(paginator.lastPageNumber);
|
||||
var r = paginator.current!;
|
||||
expect(r.total, DATA.length);
|
||||
expect(r.total, data.length);
|
||||
expect(r.itemsPerPage, 5);
|
||||
expect(r.previousPage, paginator.lastPageNumber - 1);
|
||||
expect(r.currentPage, paginator.lastPageNumber);
|
||||
expect(r.nextPage, -1);
|
||||
expect(r.startIndex, (paginator.lastPageNumber - 1) * 5);
|
||||
expect(r.endIndex, r.startIndex);
|
||||
expect(r.data, [DATA.last]);
|
||||
expect(r.data, DATA.skip(r.startIndex!).take(r.itemsPerPage!).toList());
|
||||
expect(r.data, [data.last]);
|
||||
expect(r.data, data.skip(r.startIndex!).take(r.itemsPerPage!).toList());
|
||||
});
|
||||
|
||||
test('dump pages', () {
|
||||
var paginator = Paginator<int>(DATA);
|
||||
var paginator = Paginator<int>(data);
|
||||
print('${paginator.lastPageNumber} page(s) of data:');
|
||||
|
||||
do {
|
||||
|
|
|
@ -15,16 +15,16 @@ dependencies:
|
|||
intl: ^0.18.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_proxy
|
||||
version: 7.0.1
|
||||
version: 8.0.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
|
||||
|
@ -16,26 +16,26 @@ dev_dependencies:
|
|||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -12,16 +12,16 @@ dependencies:
|
|||
dev_dependencies:
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
|
@ -3,7 +3,8 @@
|
|||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
* Breaking: Updated `build_web_compilers` to 4.0.0
|
||||
* Updated `build_web_compilers` to 4.0.0
|
||||
* Updated `http` to 1.0.0
|
||||
|
||||
## 7.0.0
|
||||
|
||||
|
|
|
@ -12,6 +12,6 @@ dependencies:
|
|||
dev_dependencies:
|
||||
build_runner: ^2.4.0
|
||||
build_web_compilers: ^4.0.0
|
||||
http: ^0.13.0
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
|
|
|
@ -19,30 +19,30 @@ dev_dependencies:
|
|||
logging: ^1.2.0
|
||||
resp_client: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_production:
|
||||
path: ../production
|
||||
angel3_redis:
|
||||
path: ../redis
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_production:
|
||||
# path: ../production
|
||||
# angel3_redis:
|
||||
# path: ../redis
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -13,16 +13,16 @@ dev_dependencies:
|
|||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
|
|
|
@ -17,28 +17,28 @@ dev_dependencies:
|
|||
logging: ^1.2.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_static:
|
||||
path: ../static
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_static:
|
||||
# path: ../static
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -12,7 +12,7 @@ dependencies:
|
|||
quiver: ^3.2.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
# dependency_overrides:
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_serialize_generator
|
||||
version: 7.2.0-beta.1
|
||||
version: 8.0.0
|
||||
description: Angel3 model serialization generators, designed for use with Angel. Combine with angel_serialize for flexible modeling.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator
|
||||
|
@ -24,8 +24,8 @@ dev_dependencies:
|
|||
collection: ^1.17.0
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_serialize:
|
||||
path: ../angel_serialize
|
||||
# dependency_overrides:
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_serialize:
|
||||
# path: ../angel_serialize
|
||||
|
|
|
@ -20,27 +20,27 @@ dev_dependencies:
|
|||
matcher: ^0.12.10
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
angel3_test:
|
||||
path: ../test
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
|
||||
|
|
|
@ -14,26 +14,26 @@ dev_dependencies:
|
|||
angel3_test: ^8.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_test:
|
||||
path: ../test
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_test:
|
||||
# path: ../test
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -19,24 +19,24 @@ dependencies:
|
|||
dev_dependencies:
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
angel3_websocket:
|
||||
path: ../websocket
|
||||
angel3_validate:
|
||||
path: ../validate
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
||||
# angel3_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_validate:
|
||||
# path: ../validate
|
|
@ -9,16 +9,16 @@ dependencies:
|
|||
angel3_framework: ^8.0.0
|
||||
user_agent_analyzer: ^5.0.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../../container/angel_container
|
||||
angel3_http_exception:
|
||||
path: ../../http_exception
|
||||
angel3_model:
|
||||
path: ../../model
|
||||
angel3_route:
|
||||
path: ../../route
|
||||
angel3_mock_request:
|
||||
path: ../../mock_request
|
||||
angel3_framework:
|
||||
path: ../../framework
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
# angel3_http_exception:
|
||||
# path: ../../http_exception
|
||||
# angel3_model:
|
||||
# path: ../../model
|
||||
# angel3_route:
|
||||
# path: ../../route
|
||||
# angel3_mock_request:
|
||||
# path: ../../mock_request
|
||||
# angel3_framework:
|
||||
# path: ../../framework
|
|
@ -16,16 +16,16 @@ dev_dependencies:
|
|||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
test: ^1.24.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
|
@ -20,22 +20,23 @@ dependencies:
|
|||
dev_dependencies:
|
||||
angel3_container: ^8.0.0
|
||||
angel3_model: ^8.0.0
|
||||
quiver: ^3.2.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
path: ../container/angel_container
|
||||
angel3_framework:
|
||||
path: ../framework
|
||||
angel3_http_exception:
|
||||
path: ../http_exception
|
||||
angel3_model:
|
||||
path: ../model
|
||||
angel3_route:
|
||||
path: ../route
|
||||
angel3_mock_request:
|
||||
path: ../mock_request
|
||||
angel3_auth:
|
||||
path: ../auth
|
||||
angel3_client:
|
||||
path: ../client
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# path: ../auth
|
||||
# angel3_client:
|
||||
# path: ../client
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_websocket/server.dart';
|
||||
import 'package:quiver/core.dart';
|
||||
|
||||
class Game {
|
||||
final String? playerOne, playerTwo;
|
||||
|
@ -19,6 +20,9 @@ class Game {
|
|||
other is Game &&
|
||||
other.playerOne == playerOne &&
|
||||
other.playerTwo == playerTwo;
|
||||
|
||||
@override
|
||||
int get hashCode => hash2(playerOne, playerTwo);
|
||||
}
|
||||
|
||||
const Game johnVsBob = Game(playerOne: 'John', playerTwo: 'Bob');
|
||||
|
|
Loading…
Reference in a new issue