Merge pull request #116 from dukefirehawk/feature/upgrade_deps
Feature/upgrade deps
This commit is contained in:
commit
c1dbc6ed8a
152 changed files with 489 additions and 333 deletions
|
@ -29,7 +29,7 @@
|
|||
* Updated: angel3_orm
|
||||
* Updated: angel3_orm_generator
|
||||
* Updated: angel3_migration
|
||||
* Updated: angel3_migration_generator
|
||||
* Updated: angel3_migration_runner
|
||||
* Updated: angel3_orm_postgresql
|
||||
* Updated: angel3_orm_mysql
|
||||
* Updated: angel3_orm_service
|
||||
|
|
|
@ -59,7 +59,7 @@ For more details, checkout [Project Status](https://github.com/dukefirehawk/ange
|
|||
|
||||
### Release 8.0.0 (Current)
|
||||
|
||||
* Updated `angel3_` packages to require dart >= 3.0.x
|
||||
* Updated `angel3_` packages to require dart >= 3.0.0
|
||||
* Updated dependencies to the latest
|
||||
* Resolved issues related to generated container
|
||||
|
||||
|
|
2
TODO.md
2
TODO.md
|
@ -9,4 +9,4 @@
|
|||
|
||||
* Refactor Angel3 architecture for performance and security
|
||||
* Improve ORM features
|
||||
* Improve performances
|
||||
* Improve HTTP performance
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel3_auth
|
||||
description: A complete authentication plugin for Angel3. Includes support for stateless JWT tokens, Basic Auth, and more.
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth
|
||||
environment:
|
||||
|
@ -19,7 +19,7 @@ dev_dependencies:
|
|||
http: ^1.0.0
|
||||
io: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_auth_oauth2
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel3 library for authenticating users with external identity providers via OAuth2.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/auth_oauth2
|
||||
|
@ -12,7 +12,7 @@ dependencies:
|
|||
oauth2: ^2.0.0
|
||||
dev_dependencies:
|
||||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
* Require Dart >= 3.0
|
||||
* Updated `oauth1` to `belatuk_oauth1`
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 7.0.0
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ import 'package:angel3_auth/angel3_auth.dart';
|
|||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:oauth1/oauth1.dart' as oauth;
|
||||
//import 'package:oauth1/oauth1.dart' as oauth;
|
||||
import 'package:belatuk_oauth1/belatuk_oauth1.dart' as oauth;
|
||||
import 'package:dart_twitter_api/twitter_api.dart';
|
||||
|
||||
/// Authenticates users by connecting to Twitter's API.
|
||||
|
|
|
@ -10,13 +10,14 @@ dependencies:
|
|||
angel3_auth: ^8.0.0
|
||||
angel3_framework: ^8.0.0
|
||||
http: ^1.0.0
|
||||
path: ^1.0.0
|
||||
path: ^1.9.0
|
||||
belatuk_oauth1: ^3.0.0
|
||||
dart_twitter_api: ^0.5.6+1
|
||||
dev_dependencies:
|
||||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
# dependency_overrides:
|
||||
lints: ^3.0.0
|
||||
dependency_overrides:
|
||||
http: ^1.0.0
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
|
|
5
packages/cache/CHANGELOG.md
vendored
5
packages/cache/CHANGELOG.md
vendored
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
4
packages/cache/pubspec.yaml
vendored
4
packages/cache/pubspec.yaml
vendored
|
@ -1,5 +1,5 @@
|
|||
name: angel3_cache
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: A service that provides HTTP caching to the response data for Angel3
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/cache
|
||||
|
@ -16,7 +16,7 @@ dev_dependencies:
|
|||
glob: ^2.0.1
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -48,8 +48,7 @@ class RestService<Id, Data> extends BaseAngelService<Id, Data> {
|
|||
|
||||
final Type? type;
|
||||
|
||||
RestService(http.BaseClient client, BaseAngelClient app, url, this.type)
|
||||
: super(client, app, url);
|
||||
RestService(super.client, super.app, super.url, this.type);
|
||||
|
||||
@override
|
||||
Data? deserialize(x) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_client
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: A browser, mobile and command line based client that supports querying Angel3 servers
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/client
|
||||
|
@ -24,7 +24,7 @@ dev_dependencies:
|
|||
build_runner: ^2.4.0
|
||||
build_web_compilers: ^4.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_configuration
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Automatic YAML application configuration loader for Angel 3, with .env support.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/configuration
|
||||
|
@ -14,7 +14,7 @@ dependencies:
|
|||
dev_dependencies:
|
||||
io: ^1.0.0
|
||||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
belatuk_pretty_logging: ^6.0.0
|
||||
test: ^1.24.0
|
||||
# dependency_overrides:
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed analyser warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_container
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel3 hierarchical DI container, and pluggable backends for reflection.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/container/angel_container
|
||||
|
@ -10,4 +10,4 @@ dependencies:
|
|||
quiver: ^3.2.0
|
||||
dev_dependencies:
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
|
@ -116,7 +116,7 @@ class Pokemon {
|
|||
}
|
||||
|
||||
class KantoPokemon extends Pokemon {
|
||||
KantoPokemon(String name, PokemonType type) : super(name, type);
|
||||
KantoPokemon(super.name, super.type);
|
||||
}
|
||||
|
||||
enum PokemonType { water, fire, grass, ice, poison, flying }
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed analyser warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/container/angel3_container_generator/LICENSE)
|
||||
|
||||
An alternative container for Angel3 that uses `reflectable` package instead of `dart:mirrors` for reflection. However, `reflectable` has much limited relfection capabilities when compared to `dart:mirrors`.
|
||||
An alternative container for Angel3 that uses `reflectable` package instead of `dart:mirrors` for reflection. However, `reflectable` has more limited relfection capabilities when compared to `dart:mirrors`.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -26,6 +26,7 @@ An alternative container for Angel3 that uses `reflectable` package instead of `
|
|||
|
||||
## Known limitation
|
||||
|
||||
* `analyser` 6.x is not supported due to `reflectable`
|
||||
* Reflection on functions/closures is not supported
|
||||
* Reflection on private declarations is not supported
|
||||
* Reflection on generic type is not supported
|
||||
|
|
|
@ -426,7 +426,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
},
|
||||
4,
|
||||
10,
|
||||
const <int>[],
|
||||
const <int>[15],
|
||||
const [],
|
||||
null,
|
||||
(o) => false,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_container_generator
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Codegen support for using pkg:reflectable with pkg:angel3_container.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/container/angel_container_generator
|
||||
|
@ -12,7 +12,7 @@ dev_dependencies:
|
|||
build_runner: ^2.4.0
|
||||
build_test: ^2.1.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../angel_container
|
||||
|
|
|
@ -142,7 +142,7 @@ class Pokemon {
|
|||
|
||||
@contained
|
||||
class KantoPokemon extends Pokemon {
|
||||
KantoPokemon(String name, PokemonType type) : super(name, type);
|
||||
KantoPokemon(super.name, super.type);
|
||||
}
|
||||
|
||||
@contained
|
||||
|
|
|
@ -641,7 +641,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
},
|
||||
2,
|
||||
18,
|
||||
const <int>[],
|
||||
const <int>[23],
|
||||
const [],
|
||||
null,
|
||||
(o) => false,
|
||||
|
@ -3598,7 +3598,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
null),
|
||||
r.ParameterMirrorImpl(
|
||||
r'name',
|
||||
134348806,
|
||||
134349830,
|
||||
70,
|
||||
const prefix0.ContainedReflectable(),
|
||||
15,
|
||||
|
@ -3610,7 +3610,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
null),
|
||||
r.ParameterMirrorImpl(
|
||||
r'type',
|
||||
134348806,
|
||||
134349830,
|
||||
70,
|
||||
const prefix0.ContainedReflectable(),
|
||||
6,
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_cors
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel3 CORS middleware. Ported from expressjs/cors to Angel3 framework.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/cors
|
||||
|
@ -10,7 +10,7 @@ dependencies:
|
|||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
http: ^1.0.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
test: ^1.24.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.3.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.2.0
|
||||
|
||||
* Add `addResponseHeader` to `AngelHttp` to add headers to HTTP default response
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
import 'dart:async';
|
||||
import 'request_context.dart';
|
||||
import 'response_context.dart';
|
||||
import 'service.dart';
|
||||
|
||||
/// An easy helper class to create one-off services without having to create an entire class.
|
||||
|
@ -22,8 +20,7 @@ class AnonymousService<Id, Data> extends Service<Id, Data> {
|
|||
FutureOr<Data> Function(Id id, Data data, [Map<String, dynamic>? params])?
|
||||
update,
|
||||
FutureOr<Data> Function(Id id, [Map<String, dynamic>? params])? remove,
|
||||
FutureOr<Data> Function(RequestContext, ResponseContext)? readData})
|
||||
: super(readData: readData) {
|
||||
super.readData}) {
|
||||
_index = index;
|
||||
_read = read;
|
||||
_create = create;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
part of angel_framework.http.request_context;
|
||||
part of 'request_context.dart';
|
||||
|
||||
const List<Type> _primitiveTypes = [String, int, num, double, Null];
|
||||
|
||||
|
|
|
@ -141,40 +141,26 @@ class Parameter {
|
|||
|
||||
/// Shortcut for declaring a request header [Parameter].
|
||||
class Header extends Parameter {
|
||||
const Header(String header, {match, defaultValue, bool required = true})
|
||||
: super(
|
||||
header: header,
|
||||
match: match,
|
||||
defaultValue: defaultValue,
|
||||
required: required);
|
||||
const Header(String header, {super.match, super.defaultValue, super.required})
|
||||
: super(header: header);
|
||||
}
|
||||
|
||||
/// Shortcut for declaring a request session [Parameter].
|
||||
class Session extends Parameter {
|
||||
const Session(String session, {match, defaultValue, bool required = true})
|
||||
: super(
|
||||
session: session,
|
||||
match: match,
|
||||
defaultValue: defaultValue,
|
||||
required: required);
|
||||
const Session(String session,
|
||||
{super.match, super.defaultValue, super.required})
|
||||
: super(session: session);
|
||||
}
|
||||
|
||||
/// Shortcut for declaring a request query [Parameter].
|
||||
class Query extends Parameter {
|
||||
const Query(String query, {match, defaultValue, bool required = true})
|
||||
: super(
|
||||
query: query,
|
||||
match: match,
|
||||
defaultValue: defaultValue,
|
||||
required: required);
|
||||
const Query(String query, {super.match, super.defaultValue, super.required})
|
||||
: super(query: query);
|
||||
}
|
||||
|
||||
/// Shortcut for declaring a request cookie [Parameter].
|
||||
class CookieValue extends Parameter {
|
||||
const CookieValue(String cookie, {match, defaultValue, bool required = true})
|
||||
: super(
|
||||
cookie: cookie,
|
||||
match: match,
|
||||
defaultValue: defaultValue,
|
||||
required: required);
|
||||
const CookieValue(String cookie,
|
||||
{super.match, super.defaultValue, super.required})
|
||||
: super(cookie: cookie);
|
||||
}
|
||||
|
|
|
@ -26,8 +26,8 @@ class AngelHttp extends Driver<HttpRequest, HttpResponse, HttpServer,
|
|||
scheme: 'http', host: server?.address.address, port: server?.port);
|
||||
}
|
||||
|
||||
AngelHttp._(Angel app, ServerGeneratorType serverGenerator, bool useZone)
|
||||
: super(app, serverGenerator, useZone: useZone);
|
||||
AngelHttp._(super.app, super.serverGenerator, bool useZone)
|
||||
: super(useZone: useZone);
|
||||
|
||||
factory AngelHttp(Angel app, {bool useZone = true}) {
|
||||
return AngelHttp._(app, HttpServer.bind, useZone);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_framework
|
||||
version: 8.2.0
|
||||
version: 8.3.0
|
||||
description: A high-powered HTTP server extensible framework with dependency injection, routing and much more.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/framework
|
||||
|
@ -11,9 +11,9 @@ dependencies:
|
|||
angel3_model: ^8.0.0
|
||||
angel3_route: ^8.0.0
|
||||
angel3_mock_request: ^8.0.0
|
||||
belatuk_merge_map: ^5.0.0
|
||||
belatuk_combinator: ^5.0.0
|
||||
belatuk_http_server: ^4.0.0
|
||||
belatuk_merge_map: ^5.1.0
|
||||
belatuk_combinator: ^5.1.0
|
||||
belatuk_http_server: ^4.1.0
|
||||
charcode: ^1.3.0
|
||||
file: ^7.0.0
|
||||
http_parser: ^4.0.0
|
||||
|
@ -34,7 +34,7 @@ dev_dependencies:
|
|||
http: ^1.0.0
|
||||
io: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# Change Log
|
||||
|
||||
## 8.2.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Updated `vm_service` to 14.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `vm_service` to 13.0.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_hot
|
||||
version: 8.1.0
|
||||
version: 8.2.0
|
||||
description: Supports hot reloading/hot code push of Angel3 servers on file changes.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/hot
|
||||
|
@ -7,18 +7,18 @@ environment:
|
|||
sdk: '>=3.0.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^8.2.0
|
||||
angel3_websocket: ^8.0.0
|
||||
belatuk_html_builder: ^5.0.0
|
||||
angel3_websocket: ^8.1.0
|
||||
belatuk_html_builder: ^5.1.0
|
||||
charcode: ^1.3.0
|
||||
glob: ^2.1.0
|
||||
io: ^1.0.0
|
||||
path: ^1.8.0
|
||||
vm_service: ^13.0.0
|
||||
path: ^1.9.0
|
||||
vm_service: ^14.0.0
|
||||
watcher: ^1.0.0
|
||||
logging: ^1.2.0
|
||||
dev_dependencies:
|
||||
http: ^1.0.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
#dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
|
||||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
name: angel3_http_exception
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Exception class that can be serialized to JSON and serialized to clients.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/http_exception
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_jael
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel support for the Jael templating engine, similar to Blade or Liquid.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/jael/angel_jael
|
||||
|
@ -9,15 +9,15 @@ dependencies:
|
|||
angel3_framework: ^8.0.0
|
||||
jael3: ^8.0.0
|
||||
jael3_preprocessor: ^8.0.0
|
||||
belatuk_code_buffer: ^5.0.0
|
||||
belatuk_symbol_table: ^5.0.0
|
||||
belatuk_code_buffer: ^5.1.0
|
||||
belatuk_symbol_table: ^5.1.0
|
||||
file: ^7.0.0
|
||||
logging: ^1.2.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
html: ^0.15.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
part of jael.src.text.parselet;
|
||||
part of 'parselet.dart';
|
||||
|
||||
const Map<TokenType, InfixParselet> infixParselets = {
|
||||
TokenType.lParen: CallParselet(),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
part of jael.src.text.parselet;
|
||||
part of 'parselet.dart';
|
||||
|
||||
const Map<TokenType, PrefixParselet> prefixParselets = {
|
||||
TokenType.exclamation: NotParselet(),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: jael3
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: A simple server-side HTML templating engine for Dart. Comparable to Blade or Liquid.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/jael/jael
|
||||
|
@ -8,14 +8,14 @@ environment:
|
|||
dependencies:
|
||||
args: ^2.4.0
|
||||
charcode: ^1.3.0
|
||||
belatuk_code_buffer: ^5.0.0
|
||||
belatuk_symbol_table: ^5.0.0
|
||||
belatuk_code_buffer: ^5.1.0
|
||||
belatuk_symbol_table: ^5.1.0
|
||||
source_span: ^1.10.0
|
||||
string_scanner: ^1.2.0
|
||||
collection: ^1.17.0
|
||||
matcher: ^0.12.10
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
test: ^1.24.0
|
||||
executables:
|
||||
jaelfmt: jaelfmt
|
|
@ -5,7 +5,7 @@ import 'object.dart';
|
|||
|
||||
class Analyzer extends Parser {
|
||||
final Logger logger;
|
||||
Analyzer(Scanner scanner, this.logger) : super(scanner);
|
||||
Analyzer(super.scanner, this.logger);
|
||||
|
||||
//@override
|
||||
//final errors = <JaelError>[];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: jael3_language_server
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Language Server Protocol implementation for the Jael templating engine.
|
||||
homepage: https://github.com/angel-dart/vscode
|
||||
publish_to: none
|
||||
|
@ -18,7 +18,7 @@ dependencies:
|
|||
path: ^1.8.0
|
||||
source_span: ^1.10.0
|
||||
string_scanner: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
stream_channel: ^2.1.0
|
||||
async: ^2.11.0
|
||||
executables:
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: jael3_preprocessor
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: A pre-processor for resolving blocks and includes within Jael templates.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/jael/jael_preprocessor
|
||||
|
@ -8,12 +8,12 @@ environment:
|
|||
dependencies:
|
||||
file: ^7.0.0
|
||||
jael3: ^8.0.0
|
||||
belatuk_symbol_table: ^5.0.0
|
||||
belatuk_symbol_table: ^5.1.0
|
||||
collection: ^1.17.0
|
||||
dev_dependencies:
|
||||
belatuk_code_buffer: ^5.0.0
|
||||
belatuk_code_buffer: ^5.1.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# jael3:
|
||||
# path: ../jael
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.2.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Upgraded to `analyzer` 6.2.x
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: jael3_web
|
||||
version: 8.1.0
|
||||
version: 8.2.0
|
||||
description: Experimental virtual DOM/SPA engine built on Jael3. Supports SSR.
|
||||
publish_to: none
|
||||
environment:
|
||||
|
@ -17,7 +17,7 @@ dependencies:
|
|||
dev_dependencies:
|
||||
build_runner: ^2.4.0
|
||||
build_web_compilers: ^4.0.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# jael3:
|
||||
# path: ../jael
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.2.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Update `jinja` to 0.5.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_jinja
|
||||
version: 8.1.0
|
||||
version: 8.2.0
|
||||
description: A service that renders Jinja2 template into HTML view for Angel3. Ported from Python to Dart.
|
||||
homepage: https://github.com/dukefirehawk/angel/tree/master/packages/jinja
|
||||
environment:
|
||||
|
@ -9,9 +9,9 @@ dependencies:
|
|||
jinja: ^0.5.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
path: ^1.8.0
|
||||
path: ^1.9.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -15,8 +15,8 @@ In your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_framework: ^6.0.0
|
||||
angel3_markdown: ^6.0.0
|
||||
angel3_framework: ^8.0.0
|
||||
angel3_markdown: ^8.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -33,9 +33,7 @@ configureServer(Angel app) async {
|
|||
}
|
||||
```
|
||||
|
||||
You can then generate HTML on-the-fly in a request handler.
|
||||
Assuming your view directory contained a file named `hello.md`, the
|
||||
following would render it as an HTML response:
|
||||
You can then generate HTML on-the-fly in a request handler. Assuming your view directory contained a file named `hello.md`, the following would render it as an HTML response:
|
||||
|
||||
```dart
|
||||
configureServer(Angel app) async {
|
||||
|
@ -48,9 +46,7 @@ you can easily override this.
|
|||
|
||||
## Interpolation
|
||||
|
||||
`angel3_markdown` can interpolate the values of data from `locals` before building the Markdown.
|
||||
|
||||
For example, with the following template `species.md`:
|
||||
`angel3_markdown` can interpolate the values of data from `locals` before building the Markdown. For example, with the following template `species.md`:
|
||||
|
||||
```markdown
|
||||
# Species: {{species.name}}
|
||||
|
@ -96,10 +92,8 @@ configureServer(Angel app) async {
|
|||
}
|
||||
```
|
||||
|
||||
The `template` function will have access to whatever values were passed to the renderer,
|
||||
or an empty `Map`.
|
||||
The `template` function will have access to whatever values were passed to the renderer, or an empty `Map`.
|
||||
|
||||
## Enhancing Markdown
|
||||
|
||||
You can pass an `extensionSet` to add additional features to the Markdown renderer.
|
||||
By default, this plug-in configures it to enable Github-flavored Markdown.
|
||||
You can pass an `extensionSet` to add additional features to the Markdown renderer. By default, this plug-in configures it to enable Github-flavored Markdown.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_markdown
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel3 Markdown view generator. Write static sites, with no build step.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/markdown
|
||||
|
@ -11,7 +11,7 @@ dependencies:
|
|||
markdown: ^7.1.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
test: ^1.24.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_mock_request
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Manufacture dart:io HttpRequests, HttpResponses, HttpHeaders, etc.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mock_request
|
||||
|
@ -11,7 +11,7 @@ dev_dependencies:
|
|||
#angel3_framework: ^7.0.0
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_framework:
|
||||
# path: ../framework
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed analyser warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -11,10 +11,9 @@ class Todo extends Model {
|
|||
bool isComplete;
|
||||
|
||||
Todo(
|
||||
{required String id,
|
||||
{required String super.id,
|
||||
this.text,
|
||||
this.isComplete = false,
|
||||
DateTime? createdAt,
|
||||
DateTime? updatedAt})
|
||||
: super(id: id, createdAt: createdAt, updatedAt: updatedAt);
|
||||
super.createdAt,
|
||||
super.updatedAt});
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
name: angel3_model
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel3 basic data model class, no longer with the added weight of the whole framework.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/model
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -13,7 +13,7 @@ Add the following to your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_mongo: ^6.0.0
|
||||
angel3_mongo: ^8.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -22,8 +22,7 @@ This library exposes one main class: `MongoService`.
|
|||
|
||||
## Model
|
||||
|
||||
`Model` is class with no real functionality; however, it represents a basic document, and your services should host inherited classes.
|
||||
Other Angel service providers host `Model` as well, so you will easily be able to modify your application if you ever switch databases.
|
||||
`Model` is class with no real functionality; however, it represents a basic document, and your services should host inherited classes. Other Angel service providers host `Model` as well, so you will easily be able to modify your application if you ever switch databases.
|
||||
|
||||
```dart
|
||||
class User extends Model {
|
||||
|
@ -51,13 +50,11 @@ This class interacts with a `DbCollection` (from mongo_dart) and serializing dat
|
|||
|
||||
You can query these services as follows:
|
||||
|
||||
```bash
|
||||
```curl
|
||||
/path/to/service?foo=bar
|
||||
```
|
||||
|
||||
The above will query the database to find records where 'foo' equals 'bar'.
|
||||
|
||||
The former will sort result in ascending order of creation, and so will the latter.
|
||||
The above will query the database to find records where 'foo' equals 'bar'. The former will sort result in ascending order of creation, and so will the latter.
|
||||
|
||||
```dart
|
||||
List queried = await MyService.index({r"$query": where.id(new ObjectId.fromHexString("some hex string"})));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
part of angel3_mongo.services;
|
||||
part of 'services.dart';
|
||||
|
||||
/// Manipulates data from MongoDB as Maps.
|
||||
class MongoService extends Service<String, Map<String, dynamic>> {
|
||||
|
@ -127,13 +127,13 @@ class MongoService extends Service<String, Map<String, dynamic>> {
|
|||
@override
|
||||
Future<Map<String, dynamic>> read(String id,
|
||||
[Map<String, dynamic>? params]) async {
|
||||
var _id = _makeId(id);
|
||||
var localId = _makeId(id);
|
||||
var found =
|
||||
await collection.findOne(where.id(_id).and(_makeQuery(params)!));
|
||||
await collection.findOne(where.id(localId).and(_makeQuery(params)!));
|
||||
|
||||
if (found == null) {
|
||||
throw AngelHttpException.notFound(
|
||||
message: 'No record found for ID ${_id.toHexString()}');
|
||||
message: 'No record found for ID ${localId.toHexString()}');
|
||||
}
|
||||
|
||||
return _jsonify(found, params);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_mongo
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: MongoDB-enabled services for the Angel3 framework. Well-tested.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mongo
|
||||
|
@ -7,13 +7,13 @@ environment:
|
|||
sdk: '>=3.0.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^8.0.0
|
||||
belatuk_json_serializer: ^7.0.0
|
||||
belatuk_merge_map: ^5.0.0
|
||||
belatuk_json_serializer: ^7.1.0
|
||||
belatuk_merge_map: ^5.1.0
|
||||
mongo_dart: ^0.9.0
|
||||
dev_dependencies:
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -15,7 +15,7 @@ In `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_mustache: ^6.0.0
|
||||
angel3_mustache: ^8.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_mustache
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: A service that renders Mustache template into HTML view for Angel3
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mustache
|
||||
|
@ -13,7 +13,7 @@ dependencies:
|
|||
dev_dependencies:
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/oauth2/LICENSE)
|
||||
|
||||
A class containing handlers that can be used within [Angel](https://angel3-framework.web.app/) to build a spec-compliant
|
||||
OAuth 2.0 server, including PKCE support.
|
||||
A class containing handlers that can be used within [Angel](https://angel3-framework.web.app/) to build a spec-compliant OAuth 2.0 server, including PKCE support.
|
||||
|
||||
- [Angel3 OAuth2 Server](#angel3-oauth2-server)
|
||||
- [Installation](#installation)
|
||||
|
|
|
@ -5,12 +5,8 @@ class AuthorizationException extends AngelHttpException {
|
|||
final ErrorResponse errorResponse;
|
||||
|
||||
AuthorizationException(this.errorResponse,
|
||||
{StackTrace? stackTrace, int? statusCode, dynamic error})
|
||||
: super(
|
||||
stackTrace: stackTrace,
|
||||
message: '',
|
||||
error: error,
|
||||
statusCode: statusCode ?? 400);
|
||||
{super.stackTrace, int? statusCode, super.error})
|
||||
: super(message: '', statusCode: statusCode ?? 400);
|
||||
|
||||
@override
|
||||
Map toJson() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_oauth2
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: A class containing handlers that can be used within Angel to build a spec-compliant OAuth 2.0 server.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2
|
||||
|
@ -16,7 +16,7 @@ dev_dependencies:
|
|||
angel3_test: ^8.0.0
|
||||
angel3_container: ^8.0.0
|
||||
oauth2: ^2.0.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
test: ^1.24.0
|
||||
uuid: ^4.0.0
|
||||
# dependency_overrides:
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -20,14 +20,10 @@ class MigrationColumn extends Column {
|
|||
|
||||
MigrationColumn(ColumnType type,
|
||||
{bool isNullable = true,
|
||||
int length = 255,
|
||||
super.length,
|
||||
IndexType indexType = IndexType.standardIndex,
|
||||
dynamic defaultValue})
|
||||
: super(
|
||||
type: type,
|
||||
length: length,
|
||||
isNullable: isNullable,
|
||||
defaultValue: defaultValue) {
|
||||
: super(type: type, isNullable: isNullable, defaultValue: defaultValue) {
|
||||
_nullable = isNullable;
|
||||
_index = indexType;
|
||||
_defaultValue = defaultValue;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_migration
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Database migration runtime for Angel3 ORM. Use this package to define schemas.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_migration
|
||||
|
@ -8,7 +8,7 @@ environment:
|
|||
dependencies:
|
||||
angel3_orm: ^8.0.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
/// These are straightforward migrations.
|
||||
///
|
||||
/// You will likely never have to actually write these yourself.
|
||||
import 'package:angel3_migration/angel3_migration.dart';
|
||||
|
||||
class UserMigration implements Migration {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
name: angel3_migration_runner
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Command-line based database migration runner for Angel3's ORM.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_migration_runner
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
publish_to: none
|
||||
dependencies:
|
||||
angel3_migration: ^8.0.0
|
||||
angel3_orm: ^8.0.0
|
||||
|
@ -15,7 +16,7 @@ dependencies:
|
|||
mysql1: ^0.20.0
|
||||
logging: ^1.2.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_orm:
|
||||
# path: ../angel_orm
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -30,8 +30,7 @@ class NumericSqlExpressionBuilder<T extends num>
|
|||
String? _raw;
|
||||
T? _value;
|
||||
|
||||
NumericSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
NumericSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
@override
|
||||
bool get hasValue => _hasValue;
|
||||
|
@ -123,8 +122,7 @@ class EnumSqlExpressionBuilder<T> extends SqlExpressionBuilder<T> {
|
|||
String? _raw;
|
||||
int? _value;
|
||||
|
||||
EnumSqlExpressionBuilder(Query query, String columnName, this._getValue)
|
||||
: super(query, columnName);
|
||||
EnumSqlExpressionBuilder(super.query, super.columnName, this._getValue);
|
||||
|
||||
@override
|
||||
bool get hasValue => _hasValue;
|
||||
|
@ -187,8 +185,7 @@ class StringSqlExpressionBuilder extends SqlExpressionBuilder<String> {
|
|||
bool _hasValue = false;
|
||||
String? _op = '=', _raw, _value;
|
||||
|
||||
StringSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
StringSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
@override
|
||||
bool get hasValue => _hasValue;
|
||||
|
@ -291,8 +288,7 @@ class BooleanSqlExpressionBuilder extends SqlExpressionBuilder<bool> {
|
|||
String? _op = '=', _raw;
|
||||
bool? _value;
|
||||
|
||||
BooleanSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
BooleanSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
@override
|
||||
bool get hasValue => _hasValue;
|
||||
|
@ -346,8 +342,7 @@ class DateTimeSqlExpressionBuilder extends SqlExpressionBuilder<DateTime> {
|
|||
|
||||
String? _raw;
|
||||
|
||||
DateTimeSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
DateTimeSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
NumericSqlExpressionBuilder<int> get year =>
|
||||
_year ??= NumericSqlExpressionBuilder(query, 'year');
|
||||
|
@ -468,8 +463,7 @@ abstract class JsonSqlExpressionBuilder<T, K> extends SqlExpressionBuilder<T> {
|
|||
String? _op;
|
||||
String? _raw;
|
||||
|
||||
JsonSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
JsonSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
JsonSqlExpressionBuilderProperty operator [](K name) {
|
||||
var p = _property(name);
|
||||
|
@ -550,8 +544,7 @@ abstract class JsonSqlExpressionBuilder<T, K> extends SqlExpressionBuilder<T> {
|
|||
}
|
||||
|
||||
class MapSqlExpressionBuilder extends JsonSqlExpressionBuilder<Map, String> {
|
||||
MapSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
MapSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
@override
|
||||
JsonSqlExpressionBuilderProperty _property(String name) {
|
||||
|
@ -568,8 +561,7 @@ class MapSqlExpressionBuilder extends JsonSqlExpressionBuilder<Map, String> {
|
|||
}
|
||||
|
||||
class ListSqlExpressionBuilder extends JsonSqlExpressionBuilder<List, int> {
|
||||
ListSqlExpressionBuilder(Query query, String columnName)
|
||||
: super(query, columnName);
|
||||
ListSqlExpressionBuilder(super.query, super.columnName);
|
||||
|
||||
@override
|
||||
List<dynamic>? _encodeValue(List<dynamic>? v) => v; //[json.encode(v)];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_orm
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Runtime support for Angel3 ORM. Includes base classes for queries.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm
|
||||
|
@ -7,7 +7,7 @@ environment:
|
|||
sdk: '>=3.0.0 <4.0.0'
|
||||
dependencies:
|
||||
charcode: ^1.3.0
|
||||
intl: ^0.18.0
|
||||
intl: ^0.19.0
|
||||
meta: ^1.9.0
|
||||
string_scanner: ^1.2.0
|
||||
optional: ^6.1.0
|
||||
|
@ -18,7 +18,7 @@ dev_dependencies:
|
|||
angel3_serialize_generator: ^8.0.0
|
||||
build_runner: ^2.4.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.2.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Upgraded to `analyzer` 6.2.x
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_orm_generator
|
||||
version: 8.1.0
|
||||
version: 8.2.0
|
||||
description: Code generators for Angel3 ORM. Generates query builder classes.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_generator
|
||||
|
@ -27,9 +27,8 @@ dev_dependencies:
|
|||
angel3_framework: ^8.0.0
|
||||
angel3_migration: ^8.0.0
|
||||
build_runner: ^2.4.0
|
||||
postgres: ^2.4.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
#dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_mysql/LICENSE)
|
||||
|
||||
This package contains the SQL executor required by Angel3 ORM to work with MySQL and MariaDB respectively. In order to better support both MySQL and MariaDB, two different flavors of drives have been included; `mysql_client` and `mysql1`. They are implmented as `MySqlExecutor` and `MariaDbExecutor` respectively.
|
||||
This package contains the SQL executor required by Angel3 ORM to work with MySQL or MariaDB. In order to better support both MySQL and MariaDB, two different flavors of drives have been included; `mysql_client` and `mysql1`. They are implmented as `MySqlExecutor` and `MariaDbExecutor` respectively.
|
||||
|
||||
## Supported databases
|
||||
|
||||
|
@ -73,23 +73,23 @@ This SQL executor is implemented using [`mysql1`](https://pub.dev/packages?q=mys
|
|||
|
||||
1. Login to MariaDB/MySQL database console with the following command.
|
||||
|
||||
```bash
|
||||
mysql -u root -p
|
||||
```
|
||||
```bash
|
||||
mysql -u root -p
|
||||
```
|
||||
|
||||
1. Run the following commands to create a new database, `orm_test` and grant both local and remote access to user, `test`. Replace `orm_test`, `test` and `test123` with your own database name, username and password respectively.
|
||||
2. Run the following commands to create a new database, `orm_test`, and grant both local and remote access to user, `test`. Replace `orm_test`, `test` and `test123` with your own database name, username and password.
|
||||
|
||||
```mysql
|
||||
create database orm_test;
|
||||
|
||||
-- Granting localhost access only
|
||||
create user 'test'@'localhost' identified by 'test123';
|
||||
grant all privileges on orm_test.* to 'test'@'localhost';
|
||||
```mysql
|
||||
create database orm_test;
|
||||
|
||||
-- Granting localhost access only
|
||||
create user 'test'@'localhost' identified by 'test123';
|
||||
grant all privileges on orm_test.* to 'test'@'localhost';
|
||||
|
||||
-- Granting localhost and remote access
|
||||
create user 'test'@'%' identified by 'test123';
|
||||
grant all privileges on orm_test.* to 'test'@'%';
|
||||
```
|
||||
-- Granting localhost and remote access
|
||||
create user 'test'@'%' identified by 'test123';
|
||||
grant all privileges on orm_test.* to 'test'@'%';
|
||||
```
|
||||
|
||||
## Compatibility Matrix
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_orm_mysql
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: MySQL support for Angel3 ORM. Includes functionality for querying and transactions.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_mysql
|
||||
|
@ -16,7 +16,7 @@ dev_dependencies:
|
|||
angel3_orm_test: ^8.0.0
|
||||
build_runner: ^2.4.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
|
||||
# dependency_overrides:
|
||||
# angel3_serialize:
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
name: angel3_orm_postgres
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: PostgreSQL support for Angel3 ORM. Includes functionality for querying and transactions.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_postgres
|
||||
publish_to: none
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
dependencies:
|
||||
|
@ -12,11 +13,11 @@ dependencies:
|
|||
postgres: ^2.6.1
|
||||
postgres_pool: ^2.1.6
|
||||
dev_dependencies:
|
||||
belatuk_pretty_logging: ^6.0.0
|
||||
belatuk_pretty_logging: ^6.1.0
|
||||
angel3_orm_generator: ^8.0.0
|
||||
angel3_orm_test: ^8.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_serialize:
|
||||
# path: ../../serialize/angel_serialize
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -13,7 +13,7 @@ In your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_orm_service: ^6.0.0
|
||||
angel3_orm_service: ^8.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_orm_service
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Service implementation that wraps over Angel3 ORM Query classes.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_service
|
||||
|
@ -19,7 +19,7 @@ dev_dependencies:
|
|||
build_runner: ^2.4.0
|
||||
logging: ^1.2.0
|
||||
test: ^1.24.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_orm_test
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Common tests for Angel3 ORM. Reference implmentation of the generated ORM files.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_test
|
||||
|
@ -18,7 +18,7 @@ dev_dependencies:
|
|||
angel3_orm_generator: ^8.0.0
|
||||
angel3_framework: ^8.0.0
|
||||
build_runner: ^2.4.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../../container/angel_container
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# Change Log
|
||||
|
||||
## 8.2.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Updated `intl` to 0.19.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Added optional `responseHeaders` and `removeResponseHeaders` to `Runner`
|
||||
|
|
|
@ -114,7 +114,6 @@ class Runner {
|
|||
onError: onError.sendPort,
|
||||
errorsAreFatal: true && false)
|
||||
.then((isolate) {})
|
||||
//.catchError(c.completeError);
|
||||
.catchError((e) {
|
||||
c.completeError(e as Object);
|
||||
return null;
|
||||
|
@ -192,7 +191,8 @@ class Runner {
|
|||
server = Server([adapter]);
|
||||
|
||||
// Register clients
|
||||
for (var i = 0; i < Platform.numberOfProcessors; i++) {
|
||||
// for (var i = 0; i < Platform.numberOfProcessors; i++) {
|
||||
for (var i = 0; i < options.concurrency; i++) {
|
||||
server.registerClient(ClientInfo('client$i'));
|
||||
}
|
||||
|
||||
|
@ -248,13 +248,15 @@ class Runner {
|
|||
|
||||
if (args.options.ssl || args.options.http2) {
|
||||
securityContext = SecurityContext();
|
||||
if (args.options.certificateFile != null) {
|
||||
securityContext.useCertificateChain(args.options.certificateFile!,
|
||||
var certificateFile = args.options.certificateFile;
|
||||
if (certificateFile != null) {
|
||||
securityContext.useCertificateChain(certificateFile,
|
||||
password: args.options.certificatePassword);
|
||||
}
|
||||
|
||||
if (args.options.keyFile != null) {
|
||||
securityContext.usePrivateKey(args.options.keyFile!,
|
||||
var keyFile = args.options.keyFile;
|
||||
if (keyFile != null) {
|
||||
securityContext.usePrivateKey(keyFile,
|
||||
password: args.options.keyPassword);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_production
|
||||
version: 8.1.0
|
||||
version: 8.2.0
|
||||
description: Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel3.
|
||||
homepage: https://angel3-framework.web.app
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/production
|
||||
|
@ -8,13 +8,13 @@ environment:
|
|||
dependencies:
|
||||
angel3_container: ^8.0.0
|
||||
angel3_framework: ^8.2.0
|
||||
belatuk_pub_sub: ^6.0.0
|
||||
belatuk_pub_sub: ^6.1.0
|
||||
args: ^2.4.0
|
||||
io: ^1.0.0
|
||||
logging: ^1.2.0
|
||||
intl: ^0.18.0
|
||||
intl: ^0.19.0
|
||||
dev_dependencies:
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
#dependency_overrides:
|
||||
# angel3_container:
|
||||
# path: ../container/angel_container
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Updated `lints` to 3.0.0
|
||||
* Fixed linter warnings
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* Require Dart >= 3.0
|
||||
|
|
|
@ -33,6 +33,4 @@ Also, you can map requests to a root path on the remote server:
|
|||
Proxy(baseUrl.replace(path: '/path'));
|
||||
```
|
||||
|
||||
Request bodies will be forwarded as well, if they are not empty. This allows things like POST requests to function.
|
||||
|
||||
For a request body to be forwarded, the body must not have already been parsed.
|
||||
Request bodies will be forwarded as well, if they are not empty. This allows things like POST requests to function. For a request body to be forwarded, the body must not have already been parsed.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_proxy
|
||||
version: 8.0.0
|
||||
version: 8.1.0
|
||||
description: Angel middleware to forward requests to another server (i.e. pub serve).
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/proxy
|
||||
|
@ -9,12 +9,12 @@ dependencies:
|
|||
angel3_framework: ^8.0.0
|
||||
http: ^1.0.0
|
||||
http_parser: ^4.0.0
|
||||
path: ^1.8.0
|
||||
path: ^1.9.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
angel3_mock_request: ^8.0.0
|
||||
logging: ^1.2.0
|
||||
lints: ^2.1.0
|
||||
lints: ^3.0.0
|
||||
test: ^1.24.0
|
||||
# dependency_overrides:
|
||||
# angel3_framework:
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue