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
## 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

View file

@ -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

View file

@ -9,8 +9,8 @@ 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:

View file

@ -8,8 +8,8 @@ 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

View file

@ -8,10 +8,10 @@ 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: ^3.0.0
# dependency_overrides:

View file

@ -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

View file

@ -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

View file

@ -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`

View file

@ -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

View file

@ -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

View file

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

View file

@ -1,5 +1,5 @@
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.
homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize
@ -11,7 +11,7 @@ dependencies:
meta: ^1.9.0
quiver: ^3.2.0
dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
# dependency_overrides:
# angel3_model:
# path: ../../model

View file

@ -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

View file

@ -2,6 +2,7 @@ import 'dart:async';
import 'package:analyzer/dart/constant/value.dart';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/dart/element/type.dart';
// ignore: implementation_imports
import 'package:analyzer/src/dart/element/element.dart';
import 'package:angel3_serialize/angel3_serialize.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> {
const JsonModelGenerator();

View file

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

View file

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

View file

@ -1,5 +1,5 @@
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.
homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/master/packages/serialize/angel_serialize_generator
@ -9,12 +9,12 @@ dependencies:
analyzer: ^6.2.0
angel3_model: ^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_config: ^1.0.0
code_builder: ^4.0.0
meta: ^1.9.0
path: ^1.8.0
path: ^1.9.0
recase: ^4.0.0
source_gen: ^1.0.0
quiver: ^3.0.1
@ -22,7 +22,7 @@ dependencies:
dev_dependencies:
build_runner: ^2.0.1
collection: ^1.17.0
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.0
# dependency_overrides:
# angel3_model:

View file

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

View file

@ -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

View file

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

View file

@ -1,5 +1,5 @@
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.
homepage: https://angel3-framework.web.app/
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static
@ -7,18 +7,18 @@ environment:
sdk: '>=3.0.0 <4.0.0'
dependencies:
angel3_framework: ^8.0.0
belatuk_range_header: ^6.0.0
belatuk_range_header: ^6.1.0
convert: ^3.0.0
crypto: ^3.0.1
file: ^7.0.0
http_parser: ^4.0.0
path: ^1.8.0
path: ^1.9.0
logging: ^1.2.0
dev_dependencies:
angel3_test: ^8.0.0
http: ^1.0.0
matcher: ^0.12.10
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.0
# dependency_overrides:
# angel3_container:

View file

@ -10,7 +10,7 @@ dependencies:
angel3_framework: ^8.0.0
angel3_http_exception: ^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_container: ^8.0.0
http: ^1.0.0