Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Parchment delta * Add CI * Update README with badges
- Loading branch information
Showing
9 changed files
with
114 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.16.6" | ||
cache: true | ||
# Manually Update this `key` | ||
cache-key: "202401114" | ||
- run: dart pub global activate coverage | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Verify formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
|
||
- name: Analyze project source | ||
run: flutter analyze --fatal-infos | ||
|
||
- name: Run tests | ||
run: flutter test --coverage | ||
|
||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage/lcov.info | ||
fail_ci_if_error: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +0,0 @@ | ||
## 3.0.0-nullsafety.2 | ||
|
||
* Added an option to cleanup semantics in `Delta.diff`. See dartdoc for more details. | ||
|
||
## 3.0.0-nullsafety.1 | ||
|
||
* Added `Delta.diff` implementation (#24) | ||
|
||
## 3.0.0-nullsafety.0 | ||
|
||
* Migrated to null safety. | ||
* Fixed an issue with usage of double.infinity in DeltaIterator. | ||
Replaced with special value of DeltaIterator.maxLength. | ||
|
||
## 2.0.1 | ||
|
||
* Updated dependency on quiver_hashcode to main quiver package. | ||
|
||
## 2.0.0 | ||
|
||
* **Breaking change**: changed `Operation.value` type from `dynamic` to `Object` to allow better | ||
static analysis and prevent bugs where operation value is always assumed to be a String object. | ||
If you get analyzer errors after this change you must add an explicit type cast on the | ||
operation value to the desired type (String or the type of an embed). | ||
* Added: `dataDecoder` parameter to `Delta.fromJson` and `Operation.fromJson`. Can be used to convert | ||
raw JSON values to concrete data types. Mainly useful with embedded data. Text data should always | ||
be `String`. | ||
* Fixed: changed `Delta.fromJson` type of the `data` parameter to `List` so that this factory method | ||
can actually be used with the output of `jsonDecode`. | ||
|
||
## 1.1.3 | ||
|
||
* Reverted last change to operation value type and will publish it as a major version update | ||
since it's breaking existing users. | ||
|
||
## 1.1.2 | ||
|
||
* Changed operation value type from `dynamic` to `Object` to allow better static analysis. | ||
If you get analyzer errors after this change you must add an explicit type cast on the operation | ||
value to the desired class. | ||
|
||
## 1.1.1 | ||
|
||
* Fix iterator for custom embed objects (#14) | ||
|
||
## 1.1.0 | ||
|
||
* Changed insert operations to allow inserting dynamic object values. (#13) | ||
Object values must be JSON-serializable. | ||
|
||
## 1.0.2 | ||
|
||
* Fix attributes comparison for operations when attributes have complex values (maps, lists). | ||
|
||
## 1.0.1 | ||
|
||
* Fixed assertion error for sequences of insert-delete-insert operations. | ||
|
||
## 1.0.0 | ||
|
||
* Added `Delta.invert()`, `Delta.slice()` and `Delta.invertAttributes()`. | ||
|
||
## 1.0.0-dev.4.0 | ||
|
||
* Internal clean-up replacing hardcoded strings with constants. | ||
|
||
## 1.0.0-dev.3.0 | ||
|
||
* Updated dependency on quiver_hashcode. | ||
|
||
## 1.0.0-dev.2.0 | ||
|
||
* Prepare for Dart 2 stable. | ||
|
||
## 1.0.0-dev.1.0 | ||
|
||
* Initial release. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.