Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[6.0.3] - 2021-02-02
Fixed
- Fixed export paths that were pointing to the export location from the repo root, not the library root
[6.0.2] - 2021-01-25
Fixed
- Update to internal build configuration for UMD compile
rxjsandrxjs/operatorsnow correctly set asrxjsandrxjs.operatorsfor globals
[6.0.1] - 2021-01-21
Changed
- Documentation updates and some minor internal cleanup due to Typedoc upgrade
[6.0.0] - 2021-01-20
This released contains more breaking changes to the APIs in this module, detailed below. Internally the operators and functions have been cleaned up to be more maintainable. Releases after this should be more stable.
Added
differenceAlloperator which returns a tuple of two Array values, containing the unique differences in the source and comparison array.toObjectoperator that takes an Array of tuples containing the key/value pair for the object collection
Changed
binarySearchparameter order changed,SortFnis now the last property, also now accepts Observable arguments forsearchandproperty- Removed
ArrayOrSet<T>in favour ofIterable<T> fromSetandfromMapno longer accept arguments list or Promise valueindexOfandlastIndexOfnow return an Array value, even if a single value property is used (which will return an array of length 1)isSuperset,isSubset,isEqualandfill, now accept Observable input values
[5.0.0] - 2021-01-18
This update mainly fixes some naming inconsistencies and renames the current from* operators, listed below, instead
they are now *toArray as a Source conversion, these changes are breaking.
Added
- Static
fromSetfunction to generate an Observable Array from aSetor collection ofSetvalues - Static
fromMapfunction to generate an Observable Array from aMapor collection ofMapvalues toMapoperator that takes an Array of tuples containing the key/value pair for the map collection
Changed
- The previous operator
fromSetis nowsetToArray, newfromSetis static method for generating Observables - The previous operator
fromMapis nowmapToArray, newfromMapis static method for generating Observables - The previous operator
fromObjectKeysis nowobjectKeysToArray. No replacement operator, useof(object).pipe(objectKeysToArray()). - The previous operator
fromObjectEntriesis nowobjectEntriesToArray. No replacement operator, useof(object).pipe(objectEntriesToArray()).
[4.2.0] - 2021-01-17
Some internal refactoring, however there should be no breaking changes from 4.1.0
Added
- New
ArrayOrSet<T>type for all inputs and sources in this library
Changed
- All operators now accept the
ArrayOrSet<T>as a source, and some also allow as a static or Observable input value - Fixed some internals where source was not being piped first, and causing issues with error flow
[4.1.0] - 2021-01-15
Added
isEqualSetoperator that returns a boolean value if the source Array/Set contains the same content as the passed Array/Set
Fixed
- Improved internals of
isSupersetOfandisSubsetOf
[4.0.0] - 2021-01-15
This release contains a few breaking changes and renaming of operators, also all operators now accept a source that is
an Array or
Set but will always return an
Array (except for specific Set operators that will be provided later)
Added
isSubsetOfoperator that takes an Array orSetand checks if the source Array orSetis a subset of itisSupersetOfoperator that takes an Array orSetand checks if the source Array orSetis a superset of it
Changed
- All operators now accept Set where they also currently accept an Array, either as a source or as an input value
- The
differenceandintersectionno longer accept a mapping method and only accepts an Array orSetvalue to return the pure difference between the two differenceWithhas been renamedfilterDifferenceandintersectionWithis nowfilterIntersection- both no longer accepts a predicate method- Documentation updated and reorganised categories
[3.1.0] - 2021-01-14
Added
toSetconverts a source Array toSetsetToArrayconverts a Set to ArrayfromMapoperator converts a Map into an ArrayfromObjectEntriesoperator that converts an Object to an array of tuples containing the string key, and value of each propertyfromObjectKeysoperator that converts and Object into an array of string keys
[3.0.0] - 2020-12-21
Updated
This release contains a major update to documentation and examples on rxjs.ninja and improved test coverage that provided various bug fixes.
Added
filloperator that returns an Observable array of values where some or all the values have been replaced with the passed value.findAlloperator that returns an array of values that are all truthy based on a passed functionfindLastoperator that returns the last value from an array that is truthy for a passed predicate functionshuffleoperator that takes a source array and returns it shuffled randomly
Changed
difference,filterDifference,intersectionandintersectionWithnow useconcatMapinstead ofswitchMapbinarySearchimprovements, now returns the unsorted and sorted array- Functions that return only truthy values (e.g.
filter*,find,every, etc) with predicates treat0as truthy but''as falsy sortMapandsortcorrectly has a default sort method
[2.2.0] - 2020-11-23
Added
everyandfilterEveryoperators that take a predicate method and return if every item in the array is truthy.everyreturns a boolean value whilefilterEveryreturns the array.someandfilterSomeoperators that take a predicate method and return if one item in the array is truthy.somereturns a boolean value whilefilterSomereturns the array.findandfindIndexoperators that take a predicate method and return the first value or index of the value that matches the predicate.indexOfandlastIndexOfoperators that take a value and return the index of the first or last instance of the value.joinoperator returns a string from a passed array items, with the seperatorreverseoperator that returns a reversed array
[2.1.2] - 2020-11-22
Changed
- Package is now published under
@rxjs-ninja/rxjs-array(this also includes previous version for migration from@tinynodes/rxjs-array) - Documentation updates
[2.1.1] - 2020-11-20
Changed
- Minor doc updates and new homepage URL
[2.1.0] - 2020-11-19
Fixed
- Correctly export all operators and fixed issues with Angular imports
Added
flipArrayoperator that takes an array of boolean value and flips them and returns the arraysortoperator that takes an array and returns it sorted, by default it will use a basic equality check on the array, but a function can be passed for more complex objects and arrayssortMapoperator that sorts the array and then allows the contents to be mapped
[2.0.0] - 2020-11-17
Changed
- Updated to Typescript 4
- Documentation, test and code improvements
[1.0.2] - 2020-05-25
Changed
- Use
isObservablefromrxjsinstead ofinstanceof Observable
[1.0.1] - 2020-05-24
Changed
- Minor documentation improvements
[1.0.0] - 2020-05-23
Added
binarySearchoperator that provides a way to search for a value within an Observable arraydifferenceoperator that returns the difference between two arrays with optional modifier methodfilterDifferenceoperator that returns the difference between two arrays with optional predicate methodintersectsoperator that returns the intersection between two arrays with optional modifier methodfilterIntersectsoperator that returns the intersection between two arrays with optional predicate method
Generated using TypeDoc, the 18/11/2022 at 13:22:58