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
rxjs
andrxjs/operators
now correctly set asrxjs
andrxjs.operators
for 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
differenceAll
operator which returns a tuple of two Array values, containing the unique differences in the source and comparison array.toObject
operator that takes an Array of tuples containing the key/value pair for the object collection
Changed
binarySearch
parameter order changed,SortFn
is now the last property, also now accepts Observable arguments forsearch
andproperty
- Removed
ArrayOrSet<T>
in favour ofIterable<T>
fromSet
andfromMap
no longer accept arguments list or Promise valueindexOf
andlastIndexOf
now return an Array value, even if a single value property is used (which will return an array of length 1)isSuperset
,isSubset
,isEqual
andfill
, 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
fromSet
function to generate an Observable Array from aSet
or collection ofSet
values - Static
fromMap
function to generate an Observable Array from aMap
or collection ofMap
values toMap
operator that takes an Array of tuples containing the key/value pair for the map collection
Changed
- The previous operator
fromSet
is nowsetToArray
, newfromSet
is static method for generating Observables - The previous operator
fromMap
is nowmapToArray
, newfromMap
is static method for generating Observables - The previous operator
fromObjectKeys
is nowobjectKeysToArray
. No replacement operator, useof(object).pipe(objectKeysToArray())
. - The previous operator
fromObjectEntries
is 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
isEqualSet
operator that returns a boolean value if the source Array/Set contains the same content as the passed Array/Set
Fixed
- Improved internals of
isSupersetOf
andisSubsetOf
[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
isSubsetOf
operator that takes an Array orSet
and checks if the source Array orSet
is a subset of itisSupersetOf
operator that takes an Array orSet
and checks if the source Array orSet
is 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
difference
andintersection
no longer accept a mapping method and only accepts an Array orSet
value to return the pure difference between the two differenceWith
has been renamedfilterDifference
andintersectionWith
is nowfilterIntersection
- both no longer accepts a predicate method- Documentation updated and reorganised categories
[3.1.0] - 2021-01-14
Added
toSet
converts a source Array toSet
setToArray
converts a Set to ArrayfromMap
operator converts a Map into an ArrayfromObjectEntries
operator that converts an Object to an array of tuples containing the string key, and value of each propertyfromObjectKeys
operator 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
fill
operator that returns an Observable array of values where some or all the values have been replaced with the passed value.findAll
operator that returns an array of values that are all truthy based on a passed functionfindLast
operator that returns the last value from an array that is truthy for a passed predicate functionshuffle
operator that takes a source array and returns it shuffled randomly
Changed
difference
,filterDifference
,intersection
andintersectionWith
now useconcatMap
instead ofswitchMap
binarySearch
improvements, now returns the unsorted and sorted array- Functions that return only truthy values (e.g.
filter*
,find
,every
, etc) with predicates treat0
as truthy but''
as falsy sortMap
andsort
correctly has a default sort method
[2.2.0] - 2020-11-23
Added
every
andfilterEvery
operators that take a predicate method and return if every item in the array is truthy.every
returns a boolean value whilefilterEvery
returns the array.some
andfilterSome
operators that take a predicate method and return if one item in the array is truthy.some
returns a boolean value whilefilterSome
returns the array.find
andfindIndex
operators that take a predicate method and return the first value or index of the value that matches the predicate.indexOf
andlastIndexOf
operators that take a value and return the index of the first or last instance of the value.join
operator returns a string from a passed array items, with the seperatorreverse
operator 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
flipArray
operator that takes an array of boolean value and flips them and returns the arraysort
operator 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 arrayssortMap
operator 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
isObservable
fromrxjs
instead ofinstanceof Observable
[1.0.1] - 2020-05-24
Changed
- Minor documentation improvements
[1.0.0] - 2020-05-23
Added
binarySearch
operator that provides a way to search for a value within an Observable arraydifference
operator that returns the difference between two arrays with optional modifier methodfilterDifference
operator that returns the difference between two arrays with optional predicate methodintersects
operator that returns the intersection between two arrays with optional modifier methodfilterIntersects
operator that returns the intersection between two arrays with optional predicate method
Generated using TypeDoc, the 18/11/2022 at 13:22:58