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
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
14
14
## [TO BE DEPRECATED]
15
15
- Last argument of Selectors will stop being assigned as "defaultValue". To define default value, it will be mandatory to pass an options object as last argument, containing a "defaultValue" property.
16
16
17
+
## [1.4.0] - 2019-10-14
18
+
### Added
19
+
- Selectors can now return an array of sources.
20
+
- Selectors can now return sources defined as objects containing `query` and/or `catch` property.
21
+
22
+
### Fixed
23
+
- Fix Sonar code smell.
24
+
17
25
## [1.3.0] - 2019-10-14
18
26
### Added
19
27
- defaultValue argument in Origin Constructor now can be a function. It will be called to obtain the defaultValue, passing to it the current query as argument.
Copy file name to clipboardExpand all lines: docs/selector/selectors-returning-sources.md
+72-2Lines changed: 72 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
## Selectors returning another source
2
2
3
-
Selectors can return another source. Then, the returned source will be called with same method and parameters than the Selector was.
3
+
Selectors can return another source or array of sources. Then, the returned sources will be called with same method and parameters than the Selector was.
4
4
5
-
Cache listeners will be added too to this returned Selector, so, if returned source cache is cleaned, the Selector cache will be cleaned too.
5
+
Cache listeners will be added too to this returned Selector, so, if any of the returned sources cache is cleaned, the Selector cache will be cleaned too.
Copy file name to clipboardExpand all lines: docs/selector/sources-error-handling.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Sources error handling
2
2
3
-
Dependant sources of a Selector can return an error. Then, the full Selector will not be resolved. You can catch those source errors and transform them into a data of your convenience, or even delegate or "retry" that source into another source.
3
+
Dependant sources of a Selector can return an error. Then, the full Selector will not be resolved. You can catch those source errors and transform them into a data of your convenience, or even delegate or "retry" that source into another source or array of sources.
4
4
5
5
Use the `catch` property of a custom source to catch his errors:
0 commit comments