From 469c8b4802abe00caff00e37d571d93fd988d61a Mon Sep 17 00:00:00 2001 From: Diego Perez Date: Thu, 16 Dec 2021 09:33:56 +0100 Subject: [PATCH 1/5] dart migrate for null-safety - upgraded deps to their latest with sound null safety: - grinder 0.9.0 - test 1.19.5 - ran `dart migrate` - there were 15 changes to mark data as nullable in http_exception.dart - ran `dart format --fix .` to fix formatting - ran `pub run grinder travis` to verify formatting and test - updated version to 0.2.2 - added my name in authors --- lib/http_exception.dart | 31 +++---- pubspec.lock | 189 ++++++++++++++++++---------------------- pubspec.yaml | 9 +- tool/travis.sh | 0 4 files changed, 105 insertions(+), 124 deletions(-) mode change 100755 => 100644 tool/travis.sh diff --git a/lib/http_exception.dart b/lib/http_exception.dart index 0f8fd31..5f1144b 100644 --- a/lib/http_exception.dart +++ b/lib/http_exception.dart @@ -8,7 +8,7 @@ import 'http_status.dart'; class HttpException implements Exception { final int status; final String message; - final Map data; + final Map? data; const HttpException( [this.status = HttpStatus.INTERNAL_SERVER_ERROR, @@ -26,14 +26,14 @@ class HttpException implements Exception { /// 400 Bad Request class BadRequestException extends HttpException { - const BadRequestException([Map data, String detail = '']) + const BadRequestException([Map? data, String detail = '']) : super(HttpStatus.BAD_REQUEST, 'Bad Request${detail != '' ? ': ' : ''}$detail', data); } /// 401 Unauthorized class UnauthorizedException extends HttpException { - const UnauthorizedException([Map data, String detail = '']) + const UnauthorizedException([Map? data, String detail = '']) : super(HttpStatus.UNAUTHORIZED, 'Unauthorized${detail != '' ? ': ' : ''}$detail', data); } @@ -41,56 +41,56 @@ class UnauthorizedException extends HttpException { /// 402 Payment Required class PaymentRequiredException extends HttpException { const PaymentRequiredException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.PAYMENT_REQUIRED, 'Payment Required${detail != '' ? ': ' : ''}$detail', data); } /// 403 Forbidden class ForbiddenException extends HttpException { - const ForbiddenException([Map data, String detail = '']) + const ForbiddenException([Map? data, String detail = '']) : super(HttpStatus.FORBIDDEN, 'Forbidden${detail != '' ? ': ' : ''}$detail', data); } /// 404 Not Found class NotFoundException extends HttpException { - const NotFoundException([Map data, String detail = '']) + const NotFoundException([Map? data, String detail = '']) : super(HttpStatus.NOT_FOUND, 'Not Found${detail != '' ? ': ' : ''}$detail', data); } /// 405 Method Not Allowed class MethodNotAllowed extends HttpException { - const MethodNotAllowed([Map data, String detail = '']) + const MethodNotAllowed([Map? data, String detail = '']) : super(HttpStatus.METHOD_NOT_ALLOWED, 'Method Not Allowed${detail != '' ? ': ' : ''}$detail', data); } /// 406 Not Acceptable class NotAcceptableException extends HttpException { - const NotAcceptableException([Map data, String detail = '']) + const NotAcceptableException([Map? data, String detail = '']) : super(HttpStatus.NOT_ACCEPTABLE, 'Not Acceptable${detail != '' ? ': ' : ''}$detail', data); } /// 409 Conflict class ConflictException extends HttpException { - const ConflictException([Map data, String detail = '']) + const ConflictException([Map? data, String detail = '']) : super(HttpStatus.CONFLICT, 'Conflict${detail != '' ? ': ' : ''}$detail', data); } /// 410 Gone class GoneException extends HttpException { - const GoneException([Map data, String detail = '']) + const GoneException([Map? data, String detail = '']) : super(HttpStatus.GONE, 'Gone${detail != '' ? ': ' : ''}$detail', data); } /// 412 Precondition Failed class PreconditionFailedException extends HttpException { const PreconditionFailedException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.PRECONDITION_FAILED, 'Precondition Failed${detail != '' ? ': ' : ''}$detail', data); } @@ -98,7 +98,7 @@ class PreconditionFailedException extends HttpException { /// 415 Unsupported Media Type class UnsupportedMediaTypeException extends HttpException { const UnsupportedMediaTypeException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.UNSUPPORTED_MEDIA_TYPE, 'Unsupported Media Type${detail != '' ? ': ' : ''}$detail', data); } @@ -106,13 +106,14 @@ class UnsupportedMediaTypeException extends HttpException { /// 429 Too Many Requests class TooManyRequestsException extends HttpException { const TooManyRequestsException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(429, 'Too Many Requests${detail != '' ? ': ' : ''}$detail', data); } /// 501 Not Implemented class NotImplementedException extends HttpException { - const NotImplementedException([Map data, String detail = '']) + const NotImplementedException( + [Map? data, String detail = '']) : super(HttpStatus.NOT_IMPLEMENTED, 'Not Implemented${detail != '' ? ': ' : ''}$detail', data); } @@ -120,7 +121,7 @@ class NotImplementedException extends HttpException { /// 503 Service Unavailable class ServiceUnavailableException extends HttpException { const ServiceUnavailableException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.SERVICE_UNAVAILABLE, 'Service Unavailable${detail != '' ? ': ' : ''}$detail', data); } diff --git a/pubspec.lock b/pubspec.lock index 3fd7f99..8cad4d8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,362 +1,341 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + url: "https://pub.dartlang.org" + source: hosted + version: "31.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "0.33.0" + version: "2.8.0" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "2.3.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.8.2" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "2.1.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.1.2" + version: "1.3.1" cli_util: dependency: transitive description: name: cli_util url: "https://pub.dartlang.org" source: hosted - version: "0.1.3+2" + version: "0.3.5" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.11" + version: "1.15.0" convert: dependency: transitive description: name: convert url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "3.0.1" + coverage: + dependency: transitive + description: + name: coverage + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.3" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.0.6" - csslib: + version: "3.0.1" + file: dependency: transitive description: - name: csslib + name: file url: "https://pub.dartlang.org" source: hosted - version: "0.14.6" - front_end: + version: "6.1.2" + frontend_server_client: dependency: transitive description: - name: front_end + name: frontend_server_client url: "https://pub.dartlang.org" source: hosted - version: "0.1.6" + version: "2.1.2" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted - version: "1.1.7" + version: "2.0.2" grinder: dependency: "direct dev" description: name: grinder url: "https://pub.dartlang.org" source: hosted - version: "0.8.3" - html: - dependency: transitive - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.3+3" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.0" + version: "0.9.0" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted - version: "2.0.5" + version: "3.0.1" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted - version: "3.1.3" + version: "4.0.0" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted - version: "0.3.3" + version: "1.0.3" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.1+1" - json_rpc_2: - dependency: transitive - description: - name: json_rpc_2 - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.9" - kernel: - dependency: transitive - description: - name: kernel - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.6" + version: "0.6.3" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted - version: "0.11.3+2" + version: "1.0.2" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.3+1" + version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.7.0" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted - version: "0.9.6+2" - multi_server_socket: - dependency: transitive - description: - name: multi_server_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" + version: "1.0.1" node_preamble: dependency: transitive description: name: node_preamble url: "https://pub.dartlang.org" source: hosted - version: "1.4.4" + version: "2.0.1" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" - package_resolver: - dependency: transitive - description: - name: package_resolver - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.6" + version: "2.0.2" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.6.2" - plugin: - dependency: transitive - description: - name: plugin - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.0+3" + version: "1.8.0" pool: dependency: transitive description: name: pool url: "https://pub.dartlang.org" source: hosted - version: "1.3.6" + version: "1.5.0" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted - version: "1.4.2" + version: "2.1.0" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "0.7.3+3" + version: "1.2.0" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "3.0.0" shelf_static: dependency: transitive description: name: shelf_static url: "https://pub.dartlang.org" source: hosted - version: "0.2.8" + version: "1.1.0" shelf_web_socket: dependency: transitive description: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted - version: "0.2.2+4" + version: "1.0.1" source_map_stack_trace: dependency: transitive description: name: source_map_stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.1.5" + version: "2.1.0" source_maps: dependency: transitive description: name: source_maps url: "https://pub.dartlang.org" source: hosted - version: "0.10.8" + version: "0.10.10" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.4.1" + version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.9.3" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "1.6.8" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.0.1" + version: "1.2.0" test: dependency: "direct dev" description: name: test url: "https://pub.dartlang.org" source: hosted - version: "1.3.4" - typed_data: + version: "1.19.5" + test_api: dependency: transitive description: - name: typed_data + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.8" + test_core: + dependency: transitive + description: + name: test_core url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" - utf: + version: "0.4.9" + typed_data: dependency: transitive description: - name: utf + name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "0.9.0+5" - vm_service_client: + version: "1.3.0" + vm_service: dependency: transitive description: - name: vm_service_client + name: vm_service url: "https://pub.dartlang.org" source: hosted - version: "0.2.6" + version: "6.2.0" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted - version: "0.9.7+10" + version: "1.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted - version: "1.0.9" + version: "2.1.0" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted - version: "2.1.15" + version: "3.1.0" sdks: - dart: ">=2.0.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index ac07668..dfaed47 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,15 +1,16 @@ name: http_exception -version: 0.2.1 +version: 0.2.2 description: A set of HTTP exceptions. homepage: https://github.com/bwu-dart/http_exception authors: - Günter Zöchbauer - Thomas Profelt + - Diego Perez environment: - sdk: '>=2.0.0 <3.0.0' + sdk: '>=2.12.0 <3.0.0' dependencies: dev_dependencies: - grinder: ^0.8.3 - test: ^1.3.0 + grinder: ^0.9.0 + test: ^1.19.5 diff --git a/tool/travis.sh b/tool/travis.sh old mode 100755 new mode 100644 From 03fe3b7cb705b36aa583856b7e315ac2275cd7cf Mon Sep 17 00:00:00 2001 From: Andres Garcia Date: Sat, 10 Feb 2024 16:45:17 -0500 Subject: [PATCH 2/5] chore(gitignore): Update .gitignore file - Added patterns to ignore build/, .pub/, doc/api/ directories - Removed pattern for pubspec.lock file - Added patterns to ignore coverage/ directory and lcov.info file - Added pattern to ignore .env* files - Added patterns to ignore generated Javascript files and related artifacts - Added patterns to ignore .flutter-plugins and .flutter-plugins-dependencies files --- .gitignore | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a340ca4..cdece35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,36 @@ +# See https://www.dartlang.org/guides/libraries/private-files +# Files and directories created by pub build/ -.idea/ packages .packages .dart_tool/ +.pub/ + +# Remove the following pattern if you wish to check in your lock file +pubspec.lock + +# Directory created by dartdoc +doc/api/ + +# JetBrains IDEs +.idea/ +/.codecov-token + +# Coverage reports +coverage/ +lcov.info + +# dotenv environment variables file +.env* + +# Avoid committing generated Javascript files: +*.dart.js +*.info.json # Produced by the --dump-info flag. +*.js # When generated by dart2js. Don't specify *.js if your + # project includes source files written in JavaScript. +*.js_ +*.js.deps +*.js.map + +.flutter-plugins +.flutter-plugins-dependencies \ No newline at end of file From 4d88df08b4dd5eca0033e13edeb7b3566e5cddde Mon Sep 17 00:00:00 2001 From: Andres Garcia Date: Sat, 10 Feb 2024 16:47:21 -0500 Subject: [PATCH 3/5] chore: Update dependencies and remove unused files - Updated dependencies to their latest versions. - Removed unused files: `.travis.yml`, `tool/grind.dart`, and `tool/travis.sh`. --- .github/workflows/http_exception.yml | 59 ++++++ .travis.yml | 23 --- pubspec.lock | 264 +++++++++++++++------------ pubspec.yaml | 5 +- tool/grind.dart | 22 --- tool/travis.sh | 1 - 6 files changed, 212 insertions(+), 162 deletions(-) create mode 100644 .github/workflows/http_exception.yml delete mode 100644 .travis.yml delete mode 100644 tool/grind.dart delete mode 100644 tool/travis.sh diff --git a/.github/workflows/http_exception.yml b/.github/workflows/http_exception.yml new file mode 100644 index 0000000..08c1199 --- /dev/null +++ b/.github/workflows/http_exception.yml @@ -0,0 +1,59 @@ +name: "build" + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] # or: macos-latest, windows-latest + channel: ['2.12.0', stable, beta, dev, main] # or: 'beta', 'dev' or 'main' + + steps: + - uses: actions/checkout@v4 + + - uses: dart-lang/setup-dart@v1.6.1 + with: + sdk: ${{ matrix.channel }} + + - id: disabled_analytics_dart + name: Disabled Analytics Dart + run: dart --disable-analytics + + - name: Install dependencies + run: dart pub get + + # Verifies if the dart code is formatted well + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + # --set-exit-if-changed stops execution if the any code is not well formatted + # --output=none prints files which needs to be formatted + + # Checks for Symantic errors. Can be configured using analysis_options.yaml + - name: Analyze project source + run: dart analyze --fatal-infos + # optionally use --fatal-warnings to stop execution if any warnings are found + + - name: Run Tests + run: | + dart pub global activate coverage + dart pub global run coverage:test_with_coverage + + - name: Check Code Coverage + uses: VeryGoodOpenSource/very_good_coverage@v2 + with: + path: "./coverage/lcov.info" + min_coverage: 100 + + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@v2.2.3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage/lcov.info \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e2942a1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: dart - -dart: - - stable - - dev - -#env: -# - PUB=DOWNGRADE -# - PUB=UPGRADE - -script: tool/travis.sh - -# Speed up builds by using containerization. Disable this if you need to use -# sudo in your scripts. -sudo: false - -#branches: -# only: -# - master - -cache: - directories: - - $HOME/.pub-cache diff --git a/pubspec.lock b/pubspec.lock index 8cad4d8..fc97921 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,337 +5,377 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - url: "https://pub.dartlang.org" + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" + url: "https://pub.dev" source: hosted - version: "31.0.0" + version: "67.0.0" analyzer: dependency: transitive description: name: analyzer - url: "https://pub.dartlang.org" + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" + url: "https://pub.dev" source: hosted - version: "2.8.0" + version: "6.4.1" args: dependency: transitive description: name: args - url: "https://pub.dartlang.org" + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.2" async: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" source: hosted - version: "2.8.2" + version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - cli_util: - dependency: transitive - description: - name: cli_util - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.5" + version: "2.1.1" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.18.0" convert: dependency: transitive description: name: convert - url: "https://pub.dartlang.org" + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.1.1" coverage: dependency: transitive description: name: coverage - url: "https://pub.dartlang.org" + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.7.2" crypto: dependency: transitive description: name: crypto - url: "https://pub.dartlang.org" + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.3" file: dependency: transitive description: name: file - url: "https://pub.dartlang.org" + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" source: hosted - version: "6.1.2" + version: "7.0.0" frontend_server_client: dependency: transitive description: name: frontend_server_client - url: "https://pub.dartlang.org" + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "3.2.0" glob: dependency: transitive description: name: glob - url: "https://pub.dartlang.org" + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" source: hosted - version: "2.0.2" - grinder: - dependency: "direct dev" - description: - name: grinder - url: "https://pub.dartlang.org" - source: hosted - version: "0.9.0" + version: "2.1.2" http_multi_server: dependency: transitive description: name: http_multi_server - url: "https://pub.dartlang.org" + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.2.1" http_parser: dependency: transitive description: name: http_parser - url: "https://pub.dartlang.org" + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.2" io: dependency: transitive description: name: io - url: "https://pub.dartlang.org" + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" js: dependency: transitive description: name: js - url: "https://pub.dartlang.org" + sha256: "4186c61b32f99e60f011f7160e32c89a758ae9b1d0c6d28e2c02ef0382300e2b" + url: "https://pub.dev" source: hosted - version: "0.6.3" + version: "0.7.0" + lints: + dependency: "direct dev" + description: + name: lints + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + url: "https://pub.dev" + source: hosted + version: "3.0.0" logging: dependency: transitive description: name: logging - url: "https://pub.dartlang.org" + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.2.0" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" source: hosted - version: "0.12.11" + version: "0.12.16+1" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + url: "https://pub.dev" source: hosted - version: "1.7.0" + version: "1.12.0" mime: dependency: transitive description: name: mime - url: "https://pub.dartlang.org" + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.5" node_preamble: dependency: transitive description: name: node_preamble - url: "https://pub.dartlang.org" + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.2" package_config: dependency: transitive description: name: package_config - url: "https://pub.dartlang.org" + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "2.1.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.0" pool: dependency: transitive description: name: pool - url: "https://pub.dartlang.org" + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" source: hosted - version: "1.5.0" + version: "1.5.1" pub_semver: dependency: transitive description: name: pub_semver - url: "https://pub.dartlang.org" + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.4" shelf: dependency: transitive description: name: shelf - url: "https://pub.dartlang.org" + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.4.1" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler - url: "https://pub.dartlang.org" + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "3.0.2" shelf_static: dependency: transitive description: name: shelf_static - url: "https://pub.dartlang.org" + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - url: "https://pub.dartlang.org" + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.4" source_map_stack_trace: dependency: transitive description: name: source_map_stack_trace - url: "https://pub.dartlang.org" + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" source_maps: dependency: transitive description: name: source_maps - url: "https://pub.dartlang.org" + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" source: hosted - version: "0.10.10" + version: "0.10.12" source_span: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" source: hosted - version: "1.8.1" + version: "1.10.0" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" test: dependency: "direct dev" description: name: test - url: "https://pub.dartlang.org" + sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073" + url: "https://pub.dev" source: hosted - version: "1.19.5" + version: "1.25.2" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + url: "https://pub.dev" source: hosted - version: "0.4.8" + version: "0.7.0" test_core: dependency: transitive description: name: test_core - url: "https://pub.dartlang.org" + sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4" + url: "https://pub.dev" source: hosted - version: "0.4.9" + version: "0.6.0" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.dartlang.org" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.3.2" vm_service: dependency: transitive description: name: vm_service - url: "https://pub.dartlang.org" + sha256: a2662fb1f114f4296cf3f5a50786a2d888268d7776cf681aa17d660ffa23b246 + url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "14.0.0" watcher: dependency: transitive description: name: watcher - url: "https://pub.dartlang.org" + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.0" + web: + dependency: transitive + description: + name: web + sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05" + url: "https://pub.dev" + source: hosted + version: "0.4.2" web_socket_channel: dependency: transitive description: name: web_socket_channel - url: "https://pub.dartlang.org" + sha256: "939ab60734a4f8fa95feacb55804fa278de28bdeef38e616dc08e44a84adea23" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.4.3" webkit_inspection_protocol: dependency: transitive description: name: webkit_inspection_protocol - url: "https://pub.dartlang.org" + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.2.1" yaml: dependency: transitive description: name: yaml - url: "https://pub.dartlang.org" + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.2" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=3.2.0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index dfaed47..3810b4a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,8 +9,5 @@ authors: environment: sdk: '>=2.12.0 <3.0.0' -dependencies: - dev_dependencies: - grinder: ^0.9.0 - test: ^1.19.5 + test: ^1.25.2 diff --git a/tool/grind.dart b/tool/grind.dart deleted file mode 100644 index 18c337d..0000000 --- a/tool/grind.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'dart:io'; - -import 'package:grinder/grinder.dart'; - -void main(List args) => grind(args); - -final Set sourceDirs = [ - 'lib', - 'test', - 'tool', -].map((path) => Directory(path)).toSet(); - -@Task('Travis checks') -void travis() { - if (DartFmt.dryRun(sourceDirs)) { - throw Exception('Source code not formatted'); - } - - Analyzer.analyze(sourceDirs); - - TestRunner().test(); -} diff --git a/tool/travis.sh b/tool/travis.sh deleted file mode 100644 index 8bfc992..0000000 --- a/tool/travis.sh +++ /dev/null @@ -1 +0,0 @@ -pub run grinder travis From 9123abe727be015b781115a0dbeeebe7a3673824 Mon Sep 17 00:00:00 2001 From: Diego Perez Date: Thu, 16 Dec 2021 09:33:56 +0100 Subject: [PATCH 4/5] dart migrate for null-safety - upgraded deps to their latest with sound null safety: - grinder 0.9.0 - test 1.19.5 - ran `dart migrate` - there were 15 changes to mark data as nullable in http_exception.dart - ran `dart format --fix .` to fix formatting - ran `pub run grinder travis` to verify formatting and test - updated version to 0.2.2 - added my name in authors --- lib/http_exception.dart | 31 +++---- pubspec.lock | 189 ++++++++++++++++++---------------------- pubspec.yaml | 9 +- tool/travis.sh | 0 4 files changed, 105 insertions(+), 124 deletions(-) mode change 100755 => 100644 tool/travis.sh diff --git a/lib/http_exception.dart b/lib/http_exception.dart index 0f8fd31..5f1144b 100644 --- a/lib/http_exception.dart +++ b/lib/http_exception.dart @@ -8,7 +8,7 @@ import 'http_status.dart'; class HttpException implements Exception { final int status; final String message; - final Map data; + final Map? data; const HttpException( [this.status = HttpStatus.INTERNAL_SERVER_ERROR, @@ -26,14 +26,14 @@ class HttpException implements Exception { /// 400 Bad Request class BadRequestException extends HttpException { - const BadRequestException([Map data, String detail = '']) + const BadRequestException([Map? data, String detail = '']) : super(HttpStatus.BAD_REQUEST, 'Bad Request${detail != '' ? ': ' : ''}$detail', data); } /// 401 Unauthorized class UnauthorizedException extends HttpException { - const UnauthorizedException([Map data, String detail = '']) + const UnauthorizedException([Map? data, String detail = '']) : super(HttpStatus.UNAUTHORIZED, 'Unauthorized${detail != '' ? ': ' : ''}$detail', data); } @@ -41,56 +41,56 @@ class UnauthorizedException extends HttpException { /// 402 Payment Required class PaymentRequiredException extends HttpException { const PaymentRequiredException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.PAYMENT_REQUIRED, 'Payment Required${detail != '' ? ': ' : ''}$detail', data); } /// 403 Forbidden class ForbiddenException extends HttpException { - const ForbiddenException([Map data, String detail = '']) + const ForbiddenException([Map? data, String detail = '']) : super(HttpStatus.FORBIDDEN, 'Forbidden${detail != '' ? ': ' : ''}$detail', data); } /// 404 Not Found class NotFoundException extends HttpException { - const NotFoundException([Map data, String detail = '']) + const NotFoundException([Map? data, String detail = '']) : super(HttpStatus.NOT_FOUND, 'Not Found${detail != '' ? ': ' : ''}$detail', data); } /// 405 Method Not Allowed class MethodNotAllowed extends HttpException { - const MethodNotAllowed([Map data, String detail = '']) + const MethodNotAllowed([Map? data, String detail = '']) : super(HttpStatus.METHOD_NOT_ALLOWED, 'Method Not Allowed${detail != '' ? ': ' : ''}$detail', data); } /// 406 Not Acceptable class NotAcceptableException extends HttpException { - const NotAcceptableException([Map data, String detail = '']) + const NotAcceptableException([Map? data, String detail = '']) : super(HttpStatus.NOT_ACCEPTABLE, 'Not Acceptable${detail != '' ? ': ' : ''}$detail', data); } /// 409 Conflict class ConflictException extends HttpException { - const ConflictException([Map data, String detail = '']) + const ConflictException([Map? data, String detail = '']) : super(HttpStatus.CONFLICT, 'Conflict${detail != '' ? ': ' : ''}$detail', data); } /// 410 Gone class GoneException extends HttpException { - const GoneException([Map data, String detail = '']) + const GoneException([Map? data, String detail = '']) : super(HttpStatus.GONE, 'Gone${detail != '' ? ': ' : ''}$detail', data); } /// 412 Precondition Failed class PreconditionFailedException extends HttpException { const PreconditionFailedException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.PRECONDITION_FAILED, 'Precondition Failed${detail != '' ? ': ' : ''}$detail', data); } @@ -98,7 +98,7 @@ class PreconditionFailedException extends HttpException { /// 415 Unsupported Media Type class UnsupportedMediaTypeException extends HttpException { const UnsupportedMediaTypeException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.UNSUPPORTED_MEDIA_TYPE, 'Unsupported Media Type${detail != '' ? ': ' : ''}$detail', data); } @@ -106,13 +106,14 @@ class UnsupportedMediaTypeException extends HttpException { /// 429 Too Many Requests class TooManyRequestsException extends HttpException { const TooManyRequestsException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(429, 'Too Many Requests${detail != '' ? ': ' : ''}$detail', data); } /// 501 Not Implemented class NotImplementedException extends HttpException { - const NotImplementedException([Map data, String detail = '']) + const NotImplementedException( + [Map? data, String detail = '']) : super(HttpStatus.NOT_IMPLEMENTED, 'Not Implemented${detail != '' ? ': ' : ''}$detail', data); } @@ -120,7 +121,7 @@ class NotImplementedException extends HttpException { /// 503 Service Unavailable class ServiceUnavailableException extends HttpException { const ServiceUnavailableException( - [Map data, String detail = '']) + [Map? data, String detail = '']) : super(HttpStatus.SERVICE_UNAVAILABLE, 'Service Unavailable${detail != '' ? ': ' : ''}$detail', data); } diff --git a/pubspec.lock b/pubspec.lock index 3fd7f99..8cad4d8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,362 +1,341 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + url: "https://pub.dartlang.org" + source: hosted + version: "31.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "0.33.0" + version: "2.8.0" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "2.3.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.8.2" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "2.1.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.1.2" + version: "1.3.1" cli_util: dependency: transitive description: name: cli_util url: "https://pub.dartlang.org" source: hosted - version: "0.1.3+2" + version: "0.3.5" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.11" + version: "1.15.0" convert: dependency: transitive description: name: convert url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "3.0.1" + coverage: + dependency: transitive + description: + name: coverage + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.3" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.0.6" - csslib: + version: "3.0.1" + file: dependency: transitive description: - name: csslib + name: file url: "https://pub.dartlang.org" source: hosted - version: "0.14.6" - front_end: + version: "6.1.2" + frontend_server_client: dependency: transitive description: - name: front_end + name: frontend_server_client url: "https://pub.dartlang.org" source: hosted - version: "0.1.6" + version: "2.1.2" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted - version: "1.1.7" + version: "2.0.2" grinder: dependency: "direct dev" description: name: grinder url: "https://pub.dartlang.org" source: hosted - version: "0.8.3" - html: - dependency: transitive - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.3+3" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.0" + version: "0.9.0" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted - version: "2.0.5" + version: "3.0.1" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted - version: "3.1.3" + version: "4.0.0" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted - version: "0.3.3" + version: "1.0.3" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.1+1" - json_rpc_2: - dependency: transitive - description: - name: json_rpc_2 - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.9" - kernel: - dependency: transitive - description: - name: kernel - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.6" + version: "0.6.3" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted - version: "0.11.3+2" + version: "1.0.2" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.3+1" + version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.7.0" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted - version: "0.9.6+2" - multi_server_socket: - dependency: transitive - description: - name: multi_server_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" + version: "1.0.1" node_preamble: dependency: transitive description: name: node_preamble url: "https://pub.dartlang.org" source: hosted - version: "1.4.4" + version: "2.0.1" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" - package_resolver: - dependency: transitive - description: - name: package_resolver - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.6" + version: "2.0.2" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.6.2" - plugin: - dependency: transitive - description: - name: plugin - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.0+3" + version: "1.8.0" pool: dependency: transitive description: name: pool url: "https://pub.dartlang.org" source: hosted - version: "1.3.6" + version: "1.5.0" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted - version: "1.4.2" + version: "2.1.0" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "0.7.3+3" + version: "1.2.0" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "3.0.0" shelf_static: dependency: transitive description: name: shelf_static url: "https://pub.dartlang.org" source: hosted - version: "0.2.8" + version: "1.1.0" shelf_web_socket: dependency: transitive description: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted - version: "0.2.2+4" + version: "1.0.1" source_map_stack_trace: dependency: transitive description: name: source_map_stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.1.5" + version: "2.1.0" source_maps: dependency: transitive description: name: source_maps url: "https://pub.dartlang.org" source: hosted - version: "0.10.8" + version: "0.10.10" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.4.1" + version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.9.3" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "1.6.8" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.0.1" + version: "1.2.0" test: dependency: "direct dev" description: name: test url: "https://pub.dartlang.org" source: hosted - version: "1.3.4" - typed_data: + version: "1.19.5" + test_api: dependency: transitive description: - name: typed_data + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.8" + test_core: + dependency: transitive + description: + name: test_core url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" - utf: + version: "0.4.9" + typed_data: dependency: transitive description: - name: utf + name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "0.9.0+5" - vm_service_client: + version: "1.3.0" + vm_service: dependency: transitive description: - name: vm_service_client + name: vm_service url: "https://pub.dartlang.org" source: hosted - version: "0.2.6" + version: "6.2.0" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted - version: "0.9.7+10" + version: "1.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted - version: "1.0.9" + version: "2.1.0" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted - version: "2.1.15" + version: "3.1.0" sdks: - dart: ">=2.0.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index ac07668..dfaed47 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,15 +1,16 @@ name: http_exception -version: 0.2.1 +version: 0.2.2 description: A set of HTTP exceptions. homepage: https://github.com/bwu-dart/http_exception authors: - Günter Zöchbauer - Thomas Profelt + - Diego Perez environment: - sdk: '>=2.0.0 <3.0.0' + sdk: '>=2.12.0 <3.0.0' dependencies: dev_dependencies: - grinder: ^0.8.3 - test: ^1.3.0 + grinder: ^0.9.0 + test: ^1.19.5 diff --git a/tool/travis.sh b/tool/travis.sh old mode 100755 new mode 100644 From b1bba7975fcb4432b243f6e86c1c82354bab9589 Mon Sep 17 00:00:00 2001 From: Andres Garcia Date: Sat, 10 Feb 2024 17:06:28 -0500 Subject: [PATCH 5/5] chore(pubspec): updated dependencies --- pubspec.lock | 381 --------------------------------------------------- 1 file changed, 381 deletions(-) delete mode 100644 pubspec.lock diff --git a/pubspec.lock b/pubspec.lock deleted file mode 100644 index fc97921..0000000 --- a/pubspec.lock +++ /dev/null @@ -1,381 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" - url: "https://pub.dev" - source: hosted - version: "67.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - args: - dependency: transitive - description: - name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 - url: "https://pub.dev" - source: hosted - version: "2.4.2" - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - convert: - dependency: transitive - description: - name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" - url: "https://pub.dev" - source: hosted - version: "3.1.1" - coverage: - dependency: transitive - description: - name: coverage - sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" - url: "https://pub.dev" - source: hosted - version: "1.7.2" - crypto: - dependency: transitive - description: - name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab - url: "https://pub.dev" - source: hosted - version: "3.0.3" - file: - dependency: transitive - description: - name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" - url: "https://pub.dev" - source: hosted - version: "7.0.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" - url: "https://pub.dev" - source: hosted - version: "3.2.0" - glob: - dependency: transitive - description: - name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" - url: "https://pub.dev" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - io: - dependency: transitive - description: - name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - sha256: "4186c61b32f99e60f011f7160e32c89a758ae9b1d0c6d28e2c02ef0382300e2b" - url: "https://pub.dev" - source: hosted - version: "0.7.0" - lints: - dependency: "direct dev" - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - logging: - dependency: transitive - description: - name: logging - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - meta: - dependency: transitive - description: - name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" - url: "https://pub.dev" - source: hosted - version: "1.12.0" - mime: - dependency: transitive - description: - name: mime - sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" - url: "https://pub.dev" - source: hosted - version: "1.0.5" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - pool: - dependency: transitive - description: - name: pool - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" - url: "https://pub.dev" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - shelf: - dependency: transitive - description: - name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 - url: "https://pub.dev" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e - url: "https://pub.dev" - source: hosted - version: "1.1.2" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test: - dependency: "direct dev" - description: - name: test - sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073" - url: "https://pub.dev" - source: hosted - version: "1.25.2" - test_api: - dependency: transitive - description: - name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" - url: "https://pub.dev" - source: hosted - version: "0.7.0" - test_core: - dependency: transitive - description: - name: test_core - sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4" - url: "https://pub.dev" - source: hosted - version: "0.6.0" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c - url: "https://pub.dev" - source: hosted - version: "1.3.2" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: a2662fb1f114f4296cf3f5a50786a2d888268d7776cf681aa17d660ffa23b246 - url: "https://pub.dev" - source: hosted - version: "14.0.0" - watcher: - dependency: transitive - description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web: - dependency: transitive - description: - name: web - sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05" - url: "https://pub.dev" - source: hosted - version: "0.4.2" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: "939ab60734a4f8fa95feacb55804fa278de28bdeef38e616dc08e44a84adea23" - url: "https://pub.dev" - source: hosted - version: "2.4.3" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" -sdks: - dart: ">=3.2.0 <4.0.0"