Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- run: sudo apt-get install lcov -y
- run: mkdir -p ./build/coverage
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze
- run: dart test
- run: dart pub global activate coverage
- run: dart test test/main.dart --coverage=./build/coverage
- run: dart pub global run coverage:format_coverage --lcov --check-ignore --in=./build/coverage --out=./build/lcov.info --packages=./.dart_tool/package_config.json --report-on=lib
- run: "sudo genhtml ./build/lcov.info --output=.build/coverage/html | grep 'lines.*: 100.0%'"
17 changes: 11 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
## 1.0.5
# 2.0.0

- If a element of map of a list is not JSON serializable it'll be ignore but the subsequence elements will be added to the resulting `Json`
- `Json` and `JsonPayload` equal operator override to handle comparison by instance or by value

## 1.0.4
## Breaking changes
- `ofType`, `listOf` and `mapOf` will wrap the element in a `Json` when calling `builder` instead of the raw value
- When expecting a single type when raw value is heterogeneous list and maps, matching type element will remain and the rest will be discarded instead of returning empty list/map

# 1.0.4

- `Json` and `JsonPayload` are json encodable, meaning they can be use with `darat:convert jsonEncode`

## 1.0.3
# 1.0.3

- Fixed `JsonPayload` nested assignment

## 1.0.2
# 1.0.2

- Fixed `JsonPayload` nested assignment

## 1.0.1
# 1.0.1

- `.float` returns a value when actual value is an integer

## 1.0.0
# 1.0.0

- Initial version.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ test_with_coverage:
dart pub global activate coverage
dart test test/main.dart --coverage=./build/coverage
dart pub global run coverage:format_coverage --lcov --check-ignore --in=./build/coverage --out=./build/lcov.info --packages=./.dart_tool/package_config.json --report-on=lib
genhtml ./build/lcov.info --output=./build/coverage/html
genhtml ./build/lcov.info --output=./build/coverage/html
Binary file added amber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cmd_line
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
genhtml ./build/lcov.info
Binary file added emerald.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading