Skip to content

Commit

Permalink
Merge pull request #88 from narumincho/dev
Browse files Browse the repository at this point in the history
allow fast_immutable_collections v11 in narumincho_json, narumincho_util
  • Loading branch information
narumincho authored Dec 14, 2024
2 parents a240480 + 56658eb commit 2d0df16
Show file tree
Hide file tree
Showing 10 changed files with 220 additions and 152 deletions.
4 changes: 4 additions & 0 deletions packages/narumincho_json/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.0

- allow fast_immutable_collections v11. ">=10.0.0 <11.0.0" → ">=10.0.0 <12.0.0"

## 0.2.0

- update fast_immutable_collections v9 → v10
Expand Down
17 changes: 17 additions & 0 deletions packages/narumincho_json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,20 @@
[![pub package](https://img.shields.io/pub/v/narumincho_json.svg)](https://pub.dev/packages/narumincho_json)

`dart:convert` の json が型がゆるいため, 作ったもの

```dart
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
import 'package:narumincho_json/narumincho_json.dart';
import 'package:test/test.dart';
void main() {
test('encode array', () {
expect(
const JsonArray(
IListConst([JsonString('a'), JsonString('b'), JsonString('c')]),
).encode(),
'''["a","b","c"]''',
);
});
}
```
Loading

0 comments on commit 2d0df16

Please sign in to comment.