You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+54-34Lines changed: 54 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,24 @@
1
-
## 0.8.0 (and 0.6.10 for Dart <2.12)
1
+
#Changelog
2
2
3
-
- Deprecated parsing extensions of `RequiredPick` to acknowledge that all parsers eventually causes errors.
3
+
## 0.9.0 (`02.08.21`)
4
+
5
+
- New: `pickFromJson(json, args...)` allows parsing of a json String, without manually calling `jsonDecode`[#41](https://github.com/passsy/deep_pick/pull/41)
6
+
- New: `pickDeep(json, 'some.key.inside.the.object'.split('.'))` allows picking with a dynamic depth [#40](https://github.com/passsy/deep_pick/pull/40)
7
+
- Add `Pick.index` to get the element index for list items [#38](https://github.com/passsy/deep_pick/pull/38)
-`Pick.asIntOrThrow()` now allows parsing of doubles when one of the new `roundDouble` or `truncateDouble` parameters is `true`[#37](https://github.com/passsy/deep_pick/pull/37). Thx @stevendz
17
+
- Add dartdoc to `asList*()` extensions
18
+
19
+
## 0.8.0 (and 0.6.10 for Dart <2.12) (`12.02.21`)
20
+
21
+
- Deprecated parsing extensions of `RequiredPick` to acknowledge that all parsers eventually causes errors.
4
22
From now on, always use `.asIntOrThrow()` instead of `.required().asInt()`. Only exception is `.required().toString()`.
5
23
Read more in [#34](https://github.com/passsy/deep_pick/pull/34)
6
24
- Replace `dynamic` with `Object` where possible
@@ -19,6 +37,7 @@ Backports 0.8.0 to pre-nullsafety
19
37
## 0.6.0
20
38
21
39
### API changes
40
+
22
41
- Remove long deprecated `parseJsonTo*` methods. Use the `pick(json, args*)` api
23
42
- New `asXyzOrThrow()` methods as shorthand for `.required().asXyz()` featuring better error messages
24
43
-`asBoolOrThrow()`
@@ -45,6 +64,7 @@ Backports 0.8.0 to pre-nullsafety
45
64
In rare cases, where your lists contain `null` values with meaning, use the second parameter `whenNull` to map those null values `.asList((pick) => Person.fromPick(pick), whenNull: (Pick it) => null)`. The function still receives a `Pick` which gives access to the `context` api or the `PickLocation`. But the `Pick` never holds any value.
46
65
47
66
### Parsing changes
67
+
48
68
- The String `"true"` and `"false"` are now parsed as boolean
49
69
-**Breaking** Don't parse doubles as int because the is no rounding method which satisfies all [#31](https://github.com/passsy/deep_pick/pull/31)
50
70
-**Breaking** Allow parsing of "german" doubles with `,` as decimal separator [#30](https://github.com/passsy/deep_pick/pull/30)
@@ -91,6 +111,7 @@ Backports 0.8.0 to pre-nullsafety
91
111
- Improve dartdoc
92
112
93
113
## 0.5.1
114
+
94
115
- Rename `Pick.addContext` to `Pick.withContext` using deprecation
95
116
-`Pick.fromContext` now accepts 10 arguments for nested structures
96
117
- Fix `Pick.fromContext` always returning `context` not the value for `key` in context `Map`
@@ -99,41 +120,41 @@ Backports 0.8.0 to pre-nullsafety
99
120
100
121
- New context API. You can now attach relevant additional information for parsing directly to the `Pick` object. This allows passing information into `fromPick` constructors without adding new parameters to all constructors in between.
0 commit comments