Skip to content

Commit

Permalink
build: update dependencies (#19)
Browse files Browse the repository at this point in the history
* build: change minimum riverpod version to 2.0.0

* build: remove DCM

* docs: update readme

* docs: update changelog

* build: update Dart SDK range to <4.0.0

* build: update mocktail to ^1.0.0
  • Loading branch information
egonm12 committed Aug 12, 2023
1 parent 8327ba3 commit 73210b1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 84 deletions.
30 changes: 18 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
# Changelog

## 0.1.6 - 2023-04-24
## 0.2.0

* build: lower riverpod version to ^2.0.0
* docs: update readme
* build: update mocktail to ^1.0.0

## 0.1.6

* refactor: change providerTest return type to void

## 0.1.5 - 2023-04-24
## 0.1.5

* fix: update and move dependencies

## 0.1.4 - 2023-04-23
## 0.1.4

* doc: fix code coverage badge link
* docs: fix code coverage badge link

## 0.1.3 - 2023-04-23
## 0.1.3

* doc: update readme
* docs: update readme

## 0.1.2 - 2023-04-23
## 0.1.2

* doc: update readme
* docs: update readme

## 0.1.1 - 2023-04-23
## 0.1.1

* feat: update minimum Dart version to 2.17
* doc: update code doc
* doc: update readme
* docs: update code doc
* docs: update readme

## 0.1.0 - 2023-04-23
## 0.1.0

* feat: add providerTest test utility
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add `riverpod_testing_library` to your `pubspec.yaml`:

```yaml
dev_dependencies:
riverpod_testing_library: 0.1.6
riverpod_testing_library: 0.2.0
```

Install it:
Expand All @@ -25,9 +25,19 @@ dart pub get

---

## API
## Supported providers

|Type |Type |
|-----|--------|
|Provider||
|(Async)NotifierProvider||
|StateNotifierProvider||
|FutureProvider||
|StreamProvider||
|StateProvider||
|ChangeNotifierProvider||

### `providerTest`
## API

|Argument |Type |Default|Description|
|-----|--------|-------|-----------|
Expand Down
63 changes: 1 addition & 62 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,71 +5,10 @@ analyzer:
strict-casts: true
strict-inference: true
strict-raw-types: true

exclude:
- /**/*.g.dart

plugins:
- dart_code_metrics

linter:
rules:
directives_ordering: false

dart_code_metrics:
extends:
- package:dart_code_metrics/presets/all.yaml

anti-patterns:
- long-method:
exclude:
- test/**

metrics-exclude:
- test/**

metrics:
cyclomatic-complexity: 15
halstead-volume: 180
lines-of-code: 100
maximum-nesting-level: 5
number-of-methods: 10
number-of-parameters: 10
source-lines-of-code: 50
weight-of-class: 0.33
rules:
- prefer-moving-to-variable:
allowed-duplicated-chains: 2
- avoid-passing-async-when-sync-expected:
exclude:
- test/**
- avoid-redundant-async:
exclude:
- test/**
- avoid-ignoring-return-values:
exclude:
- test/**
- no-equal-arguments:
exclude:
- test/**
ignored-parameters:
- height
- width
- avoid-top-level-members-in-tests:
exclude:
- test/**
- prefer-match-file-name:
exclude:
- test/**
- prefer-static-class: false
- prefer-commenting-analyzer-ignores: false
- no-magic-number: false
- member-ordering:
order:
- constructors
- public-fields
- private-fields
- prefer-match-file-name: false
- avoid-late-keyword:
exclude:
- test/**
13 changes: 6 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: riverpod_testing_library
description: A testing library which makes it easy to test providers. Built to be used with the riverpod package.
version: 0.1.6
version: 0.2.0
repository: https://github.com/egonm12/riverpod_testing_library
issue_tracker: https://github.com/egonm12/riverpod_testing_library/issues

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=2.17.0 <4.0.0"

dev_dependencies:
build_runner: ^2.3.3
dart_code_metrics: ^5.7.0
import_sorter: ^4.6.0
riverpod_annotation: ^2.0.2
riverpod_generator: ^2.1.4
riverpod_annotation: ^2.0.0
riverpod_generator: ^2.0.0
very_good_analysis: ^4.0.0+1

dependencies:
diff_match_patch: ^0.4.1
meta: ^1.3.0
mocktail: ^0.3.0
riverpod: ^2.3.2
mocktail: ^1.0.0
riverpod: ^2.0.0
test: ^1.16.0

import_sorter:
Expand Down

0 comments on commit 73210b1

Please sign in to comment.