Updated to lints 3.0.0

This commit is contained in:
thomashii@dukefirehawk.com 2023-12-24 12:15:26 +08:00
parent e9fe8dfe26
commit 8f96e89b41
16 changed files with 57 additions and 41 deletions

View file

@ -29,7 +29,7 @@
* Updated: angel3_orm * Updated: angel3_orm
* Updated: angel3_orm_generator * Updated: angel3_orm_generator
* Updated: angel3_migration * Updated: angel3_migration
* Updated: angel3_migration_generator * Updated: angel3_migration_runner
* Updated: angel3_orm_postgresql * Updated: angel3_orm_postgresql
* Updated: angel3_orm_mysql * Updated: angel3_orm_mysql
* Updated: angel3_orm_service * Updated: angel3_orm_service

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.1.0
* Updated `lints` to 3.0.0
* Fixed linter warnings
## 8.0.0 ## 8.0.0
* Require Dart >= 3.0 * Require Dart >= 3.0

View file

@ -20,14 +20,10 @@ class MigrationColumn extends Column {
MigrationColumn(ColumnType type, MigrationColumn(ColumnType type,
{bool isNullable = true, {bool isNullable = true,
int length = 255, super.length,
IndexType indexType = IndexType.standardIndex, IndexType indexType = IndexType.standardIndex,
dynamic defaultValue}) dynamic defaultValue})
: super( : super(type: type, isNullable: isNullable, defaultValue: defaultValue) {
type: type,
length: length,
isNullable: isNullable,
defaultValue: defaultValue) {
_nullable = isNullable; _nullable = isNullable;
_index = indexType; _index = indexType;
_defaultValue = defaultValue; _defaultValue = defaultValue;

View file

@ -1,5 +1,5 @@
name: angel3_migration name: angel3_migration
version: 8.0.0 version: 8.1.0
description: Database migration runtime for Angel3 ORM. Use this package to define schemas. description: Database migration runtime for Angel3 ORM. Use this package to define schemas.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_migration repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_migration
@ -8,7 +8,7 @@ environment:
dependencies: dependencies:
angel3_orm: ^8.0.0 angel3_orm: ^8.0.0
dev_dependencies: dev_dependencies:
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# angel3_orm: # angel3_orm:
# path: ../angel_orm # path: ../angel_orm

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.1.0
* Updated `lints` to 3.0.0
* Fixed linter warnings
## 8.0.0 ## 8.0.0
* Require Dart >= 3.0 * Require Dart >= 3.0

View file

@ -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'; import 'package:angel3_migration/angel3_migration.dart';
class UserMigration implements Migration { class UserMigration implements Migration {

View file

@ -1,10 +1,11 @@
name: angel3_migration_runner name: angel3_migration_runner
version: 8.0.0 version: 8.1.0
description: Command-line based database migration runner for Angel3's ORM. description: Command-line based database migration runner for Angel3's ORM.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_migration_runner repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_migration_runner
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
publish_to: none
dependencies: dependencies:
angel3_migration: ^8.0.0 angel3_migration: ^8.0.0
angel3_orm: ^8.0.0 angel3_orm: ^8.0.0
@ -15,7 +16,7 @@ dependencies:
mysql1: ^0.20.0 mysql1: ^0.20.0
logging: ^1.2.0 logging: ^1.2.0
dev_dependencies: dev_dependencies:
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# angel3_orm: # angel3_orm:
# path: ../angel_orm # path: ../angel_orm

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.1.0
* Updated `lints` to 3.0.0
* Fixed linter warnings
## 8.0.0 ## 8.0.0
* Require Dart >= 3.0 * Require Dart >= 3.0

View file

@ -30,8 +30,7 @@ class NumericSqlExpressionBuilder<T extends num>
String? _raw; String? _raw;
T? _value; T? _value;
NumericSqlExpressionBuilder(Query query, String columnName) NumericSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
@override @override
bool get hasValue => _hasValue; bool get hasValue => _hasValue;
@ -123,8 +122,7 @@ class EnumSqlExpressionBuilder<T> extends SqlExpressionBuilder<T> {
String? _raw; String? _raw;
int? _value; int? _value;
EnumSqlExpressionBuilder(Query query, String columnName, this._getValue) EnumSqlExpressionBuilder(super.query, super.columnName, this._getValue);
: super(query, columnName);
@override @override
bool get hasValue => _hasValue; bool get hasValue => _hasValue;
@ -187,8 +185,7 @@ class StringSqlExpressionBuilder extends SqlExpressionBuilder<String> {
bool _hasValue = false; bool _hasValue = false;
String? _op = '=', _raw, _value; String? _op = '=', _raw, _value;
StringSqlExpressionBuilder(Query query, String columnName) StringSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
@override @override
bool get hasValue => _hasValue; bool get hasValue => _hasValue;
@ -291,8 +288,7 @@ class BooleanSqlExpressionBuilder extends SqlExpressionBuilder<bool> {
String? _op = '=', _raw; String? _op = '=', _raw;
bool? _value; bool? _value;
BooleanSqlExpressionBuilder(Query query, String columnName) BooleanSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
@override @override
bool get hasValue => _hasValue; bool get hasValue => _hasValue;
@ -346,8 +342,7 @@ class DateTimeSqlExpressionBuilder extends SqlExpressionBuilder<DateTime> {
String? _raw; String? _raw;
DateTimeSqlExpressionBuilder(Query query, String columnName) DateTimeSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
NumericSqlExpressionBuilder<int> get year => NumericSqlExpressionBuilder<int> get year =>
_year ??= NumericSqlExpressionBuilder(query, 'year'); _year ??= NumericSqlExpressionBuilder(query, 'year');
@ -468,8 +463,7 @@ abstract class JsonSqlExpressionBuilder<T, K> extends SqlExpressionBuilder<T> {
String? _op; String? _op;
String? _raw; String? _raw;
JsonSqlExpressionBuilder(Query query, String columnName) JsonSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
JsonSqlExpressionBuilderProperty operator [](K name) { JsonSqlExpressionBuilderProperty operator [](K name) {
var p = _property(name); var p = _property(name);
@ -550,8 +544,7 @@ abstract class JsonSqlExpressionBuilder<T, K> extends SqlExpressionBuilder<T> {
} }
class MapSqlExpressionBuilder extends JsonSqlExpressionBuilder<Map, String> { class MapSqlExpressionBuilder extends JsonSqlExpressionBuilder<Map, String> {
MapSqlExpressionBuilder(Query query, String columnName) MapSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
@override @override
JsonSqlExpressionBuilderProperty _property(String name) { JsonSqlExpressionBuilderProperty _property(String name) {
@ -568,8 +561,7 @@ class MapSqlExpressionBuilder extends JsonSqlExpressionBuilder<Map, String> {
} }
class ListSqlExpressionBuilder extends JsonSqlExpressionBuilder<List, int> { class ListSqlExpressionBuilder extends JsonSqlExpressionBuilder<List, int> {
ListSqlExpressionBuilder(Query query, String columnName) ListSqlExpressionBuilder(super.query, super.columnName);
: super(query, columnName);
@override @override
List<dynamic>? _encodeValue(List<dynamic>? v) => v; //[json.encode(v)]; List<dynamic>? _encodeValue(List<dynamic>? v) => v; //[json.encode(v)];

View file

@ -1,5 +1,5 @@
name: angel3_orm name: angel3_orm
version: 8.0.0 version: 8.1.0
description: Runtime support for Angel3 ORM. Includes base classes for queries. description: Runtime support for Angel3 ORM. Includes base classes for queries.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm
@ -7,7 +7,7 @@ environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
dependencies: dependencies:
charcode: ^1.3.0 charcode: ^1.3.0
intl: ^0.18.0 intl: ^0.19.0
meta: ^1.9.0 meta: ^1.9.0
string_scanner: ^1.2.0 string_scanner: ^1.2.0
optional: ^6.1.0 optional: ^6.1.0
@ -18,7 +18,7 @@ dev_dependencies:
angel3_serialize_generator: ^8.0.0 angel3_serialize_generator: ^8.0.0
build_runner: ^2.4.0 build_runner: ^2.4.0
test: ^1.24.0 test: ^1.24.0
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# angel3_serialize: # angel3_serialize:
# path: ../../serialize/angel_serialize # path: ../../serialize/angel_serialize

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.2.0
* Updated `lints` to 3.0.0
* Fixed linter warnings
## 8.1.0 ## 8.1.0
* Upgraded to `analyzer` 6.2.x * Upgraded to `analyzer` 6.2.x

View file

@ -1,5 +1,5 @@
name: angel3_orm_generator name: angel3_orm_generator
version: 8.1.0 version: 8.2.0
description: Code generators for Angel3 ORM. Generates query builder classes. description: Code generators for Angel3 ORM. Generates query builder classes.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_generator 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_framework: ^8.0.0
angel3_migration: ^8.0.0 angel3_migration: ^8.0.0
build_runner: ^2.4.0 build_runner: ^2.4.0
postgres: ^2.4.0
test: ^1.24.0 test: ^1.24.0
lints: ^2.1.0 lints: ^3.0.0
#dependency_overrides: #dependency_overrides:
# angel3_container: # angel3_container:
# path: ../../container/angel_container # path: ../../container/angel_container

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.1.0
* Updated `lints` to 3.0.0
* Fixed linter warnings
## 8.0.0 ## 8.0.0
* Require Dart >= 3.0 * Require Dart >= 3.0

View file

@ -1,5 +1,5 @@
name: angel3_orm_mysql name: angel3_orm_mysql
version: 8.0.0 version: 8.1.0
description: MySQL support for Angel3 ORM. Includes functionality for querying and transactions. description: MySQL support for Angel3 ORM. Includes functionality for querying and transactions.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_mysql 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 angel3_orm_test: ^8.0.0
build_runner: ^2.4.0 build_runner: ^2.4.0
test: ^1.24.0 test: ^1.24.0
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# angel3_serialize: # angel3_serialize:

View file

@ -1,5 +1,10 @@
# Change Log # Change Log
## 8.1.0
* Updated `lints` to 3.0.0
* Fixed linter warnings
## 8.0.0 ## 8.0.0
* Require Dart >= 3.0 * Require Dart >= 3.0

View file

@ -1,8 +1,9 @@
name: angel3_orm_postgres name: angel3_orm_postgres
version: 8.0.0 version: 8.1.0
description: PostgreSQL support for Angel3 ORM. Includes functionality for querying and transactions. description: PostgreSQL support for Angel3 ORM. Includes functionality for querying and transactions.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_postgres repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_postgres
publish_to: none
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
dependencies: dependencies:
@ -12,11 +13,11 @@ dependencies:
postgres: ^2.6.1 postgres: ^2.6.1
postgres_pool: ^2.1.6 postgres_pool: ^2.1.6
dev_dependencies: dev_dependencies:
belatuk_pretty_logging: ^6.0.0 belatuk_pretty_logging: ^6.1.0
angel3_orm_generator: ^8.0.0 angel3_orm_generator: ^8.0.0
angel3_orm_test: ^8.0.0 angel3_orm_test: ^8.0.0
test: ^1.24.0 test: ^1.24.0
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# angel3_serialize: # angel3_serialize:
# path: ../../serialize/angel_serialize # path: ../../serialize/angel_serialize