Updated to lints 3.0.0
This commit is contained in:
parent
e9fe8dfe26
commit
8f96e89b41
16 changed files with 57 additions and 41 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue