Updated to lints 3.0.0

This commit is contained in:
thomashii@dukefirehawk.com 2023-12-24 11:27:17 +08:00
parent 6fd8f56b52
commit e9fe8dfe26
24 changed files with 75 additions and 52 deletions

View file

@ -1,5 +1,11 @@
# Change Log # Change Log
## 8.2.0
* Updated `lints` to 3.0.0
* Updated `vm_service` to 14.0.0
* Fixed linter warnings
## 8.1.0 ## 8.1.0
* Updated `vm_service` to 13.0.0 * Updated `vm_service` to 13.0.0

View file

@ -1,5 +1,5 @@
name: angel3_hot name: angel3_hot
version: 8.1.0 version: 8.2.0
description: Supports hot reloading/hot code push of Angel3 servers on file changes. description: Supports hot reloading/hot code push of Angel3 servers on file changes.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/hot repository: https://github.com/dukefirehawk/angel/tree/master/packages/hot
@ -7,18 +7,18 @@ environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
dependencies: dependencies:
angel3_framework: ^8.2.0 angel3_framework: ^8.2.0
angel3_websocket: ^8.0.0 angel3_websocket: ^8.1.0
belatuk_html_builder: ^5.0.0 belatuk_html_builder: ^5.1.0
charcode: ^1.3.0 charcode: ^1.3.0
glob: ^2.1.0 glob: ^2.1.0
io: ^1.0.0 io: ^1.0.0
path: ^1.8.0 path: ^1.9.0
vm_service: ^13.0.0 vm_service: ^14.0.0
watcher: ^1.0.0 watcher: ^1.0.0
logging: ^1.2.0 logging: ^1.2.0
dev_dependencies: dev_dependencies:
http: ^1.0.0 http: ^1.0.0
lints: ^2.1.0 lints: ^3.0.0
#dependency_overrides: #dependency_overrides:
# angel3_container: # angel3_container:
# path: ../container/angel_container # path: ../container/angel_container

View file

@ -9,8 +9,8 @@ dependencies:
angel3_framework: ^8.0.0 angel3_framework: ^8.0.0
jael3: ^8.0.0 jael3: ^8.0.0
jael3_preprocessor: ^8.0.0 jael3_preprocessor: ^8.0.0
belatuk_code_buffer: ^5.0.0 belatuk_code_buffer: ^5.1.0
belatuk_symbol_table: ^5.0.0 belatuk_symbol_table: ^5.1.0
file: ^7.0.0 file: ^7.0.0
logging: ^1.2.0 logging: ^1.2.0
dev_dependencies: dev_dependencies:

View file

@ -8,8 +8,8 @@ environment:
dependencies: dependencies:
args: ^2.4.0 args: ^2.4.0
charcode: ^1.3.0 charcode: ^1.3.0
belatuk_code_buffer: ^5.0.0 belatuk_code_buffer: ^5.1.0
belatuk_symbol_table: ^5.0.0 belatuk_symbol_table: ^5.1.0
source_span: ^1.10.0 source_span: ^1.10.0
string_scanner: ^1.2.0 string_scanner: ^1.2.0
collection: ^1.17.0 collection: ^1.17.0

View file

@ -8,10 +8,10 @@ environment:
dependencies: dependencies:
file: ^7.0.0 file: ^7.0.0
jael3: ^8.0.0 jael3: ^8.0.0
belatuk_symbol_table: ^5.0.0 belatuk_symbol_table: ^5.1.0
collection: ^1.17.0 collection: ^1.17.0
dev_dependencies: dev_dependencies:
belatuk_code_buffer: ^5.0.0 belatuk_code_buffer: ^5.1.0
test: ^1.24.0 test: ^1.24.0
lints: ^3.0.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:

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: jael3_web name: jael3_web
version: 8.1.0 version: 8.2.0
description: Experimental virtual DOM/SPA engine built on Jael3. Supports SSR. description: Experimental virtual DOM/SPA engine built on Jael3. Supports SSR.
publish_to: none publish_to: none
environment: environment:
@ -17,7 +17,7 @@ dependencies:
dev_dependencies: dev_dependencies:
build_runner: ^2.4.0 build_runner: ^2.4.0
build_web_compilers: ^4.0.0 build_web_compilers: ^4.0.0
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# jael3: # jael3:
# path: ../jael # path: ../jael

View file

@ -1,5 +1,11 @@
# Change Log # Change Log
## 8.2.0
* Updated `lints` to 3.0.0
* Updated `intl` to 0.19.0
* Fixed linter warnings
## 8.1.0 ## 8.1.0
* Added optional `responseHeaders` and `removeResponseHeaders` to `Runner` * Added optional `responseHeaders` and `removeResponseHeaders` to `Runner`

View file

@ -1,5 +1,5 @@
name: angel3_production 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. description: Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel3.
homepage: https://angel3-framework.web.app homepage: https://angel3-framework.web.app
repository: https://github.com/dukefirehawk/angel/tree/master/packages/production repository: https://github.com/dukefirehawk/angel/tree/master/packages/production
@ -8,13 +8,13 @@ environment:
dependencies: dependencies:
angel3_container: ^8.0.0 angel3_container: ^8.0.0
angel3_framework: ^8.2.0 angel3_framework: ^8.2.0
belatuk_pub_sub: ^6.0.0 belatuk_pub_sub: ^6.1.0
args: ^2.4.0 args: ^2.4.0
io: ^1.0.0 io: ^1.0.0
logging: ^1.2.0 logging: ^1.2.0
intl: ^0.18.0 intl: ^0.19.0
dev_dependencies: dev_dependencies:
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

@ -6,11 +6,8 @@ export 'package:quiver/core.dart' show hashObjects;
/// Excludes a field from being excluded. /// Excludes a field from being excluded.
class Exclude extends SerializableField { class Exclude extends SerializableField {
const Exclude({bool canDeserialize = false, bool canSerialize = false}) const Exclude({super.canDeserialize, super.canSerialize})
: super( : super(exclude: true);
exclude: true,
canDeserialize: canDeserialize,
canSerialize: canSerialize);
} }
/// No longer necessary, as this is the default. /// No longer necessary, as this is the default.

View file

@ -1,5 +1,5 @@
name: angel3_serialize name: angel3_serialize
version: 8.0.0 version: 8.1.0
description: Static annotations powering Angel3 model serialization. Combine with angel3_serialize_generator for flexible modeling. description: Static annotations powering Angel3 model serialization. Combine with angel3_serialize_generator for flexible modeling.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize
@ -11,7 +11,7 @@ dependencies:
meta: ^1.9.0 meta: ^1.9.0
quiver: ^3.2.0 quiver: ^3.2.0
dev_dependencies: dev_dependencies:
lints: ^2.1.0 lints: ^3.0.0
# dependency_overrides: # dependency_overrides:
# angel3_model: # angel3_model:
# path: ../../model # path: ../../model

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

@ -2,6 +2,7 @@ import 'dart:async';
import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/constant/value.dart';
import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/dart/element/type.dart'; import 'package:analyzer/dart/element/type.dart';
// ignore: implementation_imports
import 'package:analyzer/src/dart/element/element.dart'; import 'package:analyzer/src/dart/element/element.dart';
import 'package:angel3_serialize/angel3_serialize.dart'; import 'package:angel3_serialize/angel3_serialize.dart';
import 'package:build/build.dart'; import 'package:build/build.dart';

View file

@ -1,4 +1,4 @@
part of angel3_serialize_generator; part of 'angel3_serialize_generator.dart';
class JsonModelGenerator extends GeneratorForAnnotation<Serializable> { class JsonModelGenerator extends GeneratorForAnnotation<Serializable> {
const JsonModelGenerator(); const JsonModelGenerator();

View file

@ -1,4 +1,4 @@
part of angel3_serialize_generator; part of 'angel3_serialize_generator.dart';
class SerializerGenerator extends GeneratorForAnnotation<Serializable> { class SerializerGenerator extends GeneratorForAnnotation<Serializable> {
final bool autoSnakeCaseNames; final bool autoSnakeCaseNames;

View file

@ -1,4 +1,4 @@
part of angel3_serialize_generator; part of 'angel3_serialize_generator.dart';
class TypeScriptDefinitionBuilder implements Builder { class TypeScriptDefinitionBuilder implements Builder {
final bool autoSnakeCaseNames; final bool autoSnakeCaseNames;

View file

@ -1,5 +1,5 @@
name: angel3_serialize_generator name: angel3_serialize_generator
version: 8.1.0 version: 8.2.0
description: Angel3 model serialization generators, designed for use with Angel. Combine with angel_serialize for flexible modeling. description: Angel3 model serialization generators, designed for use with Angel. Combine with angel_serialize for flexible modeling.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator
@ -9,12 +9,12 @@ dependencies:
analyzer: ^6.2.0 analyzer: ^6.2.0
angel3_model: ^8.0.0 angel3_model: ^8.0.0
angel3_serialize: ^8.0.0 angel3_serialize: ^8.0.0
belatuk_code_buffer: ^5.0.0 belatuk_code_buffer: ^5.1.0
build: ^2.0.1 build: ^2.0.1
build_config: ^1.0.0 build_config: ^1.0.0
code_builder: ^4.0.0 code_builder: ^4.0.0
meta: ^1.9.0 meta: ^1.9.0
path: ^1.8.0 path: ^1.9.0
recase: ^4.0.0 recase: ^4.0.0
source_gen: ^1.0.0 source_gen: ^1.0.0
quiver: ^3.0.1 quiver: ^3.0.1
@ -22,7 +22,7 @@ dependencies:
dev_dependencies: dev_dependencies:
build_runner: ^2.0.1 build_runner: ^2.0.1
collection: ^1.17.0 collection: ^1.17.0
lints: ^2.1.0 lints: ^3.0.0
test: ^1.24.0 test: ^1.24.0
# dependency_overrides: # dependency_overrides:
# angel3_model: # angel3_model:

View file

@ -5,7 +5,7 @@ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/shelf repository: https://github.com/dukefirehawk/angel/tree/master/packages/shelf
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
published_to: none publish_to: none
dependencies: dependencies:
angel3_framework: ^8.0.0 angel3_framework: ^8.0.0
angel3_container: ^8.0.0 angel3_container: ^8.0.0

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

@ -28,26 +28,19 @@ class CachingVirtualDirectory extends VirtualDirectory {
/// Set this to `null` to leave no `Expires` header on responses. /// Set this to `null` to leave no `Expires` header on responses.
final int maxAge; final int maxAge;
CachingVirtualDirectory(Angel app, FileSystem fileSystem, CachingVirtualDirectory(super.app, super.fileSystem,
{this.accessLevel = CacheAccessLevel.public, {this.accessLevel = CacheAccessLevel.public,
Directory? source, super.source,
bool debug = false, bool debug = false,
Iterable<String> indexFileNames = const ['index.html'], super.indexFileNames,
this.maxAge = 0, this.maxAge = 0,
this.noCache = false, this.noCache = false,
this.onlyInProduction = false, this.onlyInProduction = false,
this.useEtags = true, this.useEtags = true,
bool allowDirectoryListing = false, super.allowDirectoryListing,
bool useBuffer = false, super.useBuffer,
String publicPath = '/', super.publicPath,
Function(File file, RequestContext req, ResponseContext res)? callback}) super.callback});
: super(app, fileSystem,
source: source,
indexFileNames: indexFileNames,
publicPath: publicPath,
callback: callback,
allowDirectoryListing: allowDirectoryListing,
useBuffer: useBuffer);
@override @override
Future<bool> serveFile( Future<bool> serveFile(

View file

@ -1,5 +1,5 @@
name: angel3_static name: angel3_static
version: 8.0.0 version: 8.1.0
description: This library provides a virtual directory to serve static files for Angel3 framework. description: This library provides a virtual directory to serve static files for Angel3 framework.
homepage: https://angel3-framework.web.app/ homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static
@ -7,18 +7,18 @@ environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'
dependencies: dependencies:
angel3_framework: ^8.0.0 angel3_framework: ^8.0.0
belatuk_range_header: ^6.0.0 belatuk_range_header: ^6.1.0
convert: ^3.0.0 convert: ^3.0.0
crypto: ^3.0.1 crypto: ^3.0.1
file: ^7.0.0 file: ^7.0.0
http_parser: ^4.0.0 http_parser: ^4.0.0
path: ^1.8.0 path: ^1.9.0
logging: ^1.2.0 logging: ^1.2.0
dev_dependencies: dev_dependencies:
angel3_test: ^8.0.0 angel3_test: ^8.0.0
http: ^1.0.0 http: ^1.0.0
matcher: ^0.12.10 matcher: ^0.12.10
lints: ^2.1.0 lints: ^3.0.0
test: ^1.24.0 test: ^1.24.0
# dependency_overrides: # dependency_overrides:
# angel3_container: # angel3_container:

View file

@ -10,7 +10,7 @@ dependencies:
angel3_framework: ^8.0.0 angel3_framework: ^8.0.0
angel3_http_exception: ^8.0.0 angel3_http_exception: ^8.0.0
angel3_validate: ^8.0.0 angel3_validate: ^8.0.0
angel3_websocket: ^8.0.0 angel3_websocket: ^8.1.0
angel3_mock_request: ^8.0.0 angel3_mock_request: ^8.0.0
angel3_container: ^8.0.0 angel3_container: ^8.0.0
http: ^1.0.0 http: ^1.0.0