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.
[5.1.3] - 2021-02-02
Fixed
- Fixed export paths that were pointing to the export location from the repo root, not the library root
[5.1.2] - 2021-01-25
Fixed
- Update to internal build configuration for UMD compile
rxjsandrxjs/operatorsnow correctly set asrxjsandrxjs.operatorsfor globals
[5.1.0] - 2021-01-25
Added
roundTooperator that returns a fixed number value to the passed precision value- New
Distributioncategory for getting a number value from anIterablesource like Array or Setmaxandminoperators that returns the maximum or minimum number from anIterablesourcemeanandmedianoperators that calculate the mean/median value of anIterablesource, by default this will round to3places but can be passed as a property
[5.0.1] - 2021-01-21
Changed
- Documentation updates and some minor internal cleanup due to Typedoc upgrade
[5.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
isModoperator that returns a boolean value if the source number has no remainder from the passed modulus value
Changed
filterIsNotNaNis now justfilterNaNremoving them from number sourcefromNumberno longer accepts arguments list or Promise value, parameter is now optional - if not passed the Observable will emit increasing positive number values.parseFloat,parseIntandparseHexno longer have property to filter NaN values and will return them, usefilterNaNto remove these values.- Internal improvements and documentation updates
[4.3.0] - 2021-01-19
Changed
- More internal improvements to operators
- All operators with inputs now accept Observable inputs
[4.2.0] - 2021-01-17
Changed
- All operators improved in their flow of data, now correctly pass errors
- Internal improvements
fromNumbernow correctly acceptsSetand Array values for seed values
[4.1.0] - 2021-01-03
Added
toFixedoperator that returns a string from a number to fixed decimal placestoHex/parseHexoperators users to convert numbers to their hex value, and parse hex to numberaddoperator that returns the addition of a source and input numbersuboperator that returns the subtraction of a source and input numbermuloperator that returns the multiplication of a source and input numberdivoperator that returns the division of a source and input number, does not accept0and will throw an errorpowoperator that will raise a source Observable number by a passed valuemodoperator that returns the remainder of a number from a passed modulus
Changed
- Operators that accept a number parameter can now be passed an Observable value
[4.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.
Changed
fromNumbernow accepts Observable and Promise-based values.parseFloatandparseIntnow accepts an option to filter NaN values, by default this is set totrue
[3.1.2] - 2020-11-22
Changed
- Package is now published under
@rxjs-ninja/rxjs-number(this also includes previous version for migration from@tinynodes/rxjs-number) - Documentation updates
[3.1.1] - 2020-11-20
Changed
- Minor doc updates and new homepage URL
[3.1.0] - 2020-11-19
Fixed
- Correctly export all operators and fixed issues with Angular imports
Added
fromFiboanaccioperator, generates a sequence of Fibonacci numbers, optionally can be passed a delay property to use as a timer, otherwise it emits them immediately.
[3.0.0] - 2020-11-17
Changed
- Updated to Typescript 4
- Documentation, test and code improvements
[2.3.1] - 2020-05-24
Changed
- Minor improvement of test coverage
[2.3.0] - 2020-05-18
Changed
- Underlying typescript library for library changed from
es2018toes2020
[2.2.1] - 2020-05-16
Changed
- Minor test changes
[2.2.0] - 2020-05-12
Added
inRangeandfilterInRangeoperators for working with numbers within amin/maxrangeoutOfRangeandfilterOutOfRangeoperators for working with numbers outside amin/maxrange
Changed
- Some functions are now using function overloading for documentation
- Various other documentation improvements
[2.1.0] - 2020-05-11
Added
isNotNaNoperator to return if a value is not a NaN valuefilterIsNotNaN- Returns the value that is not a NaN
Changed
fromNumbernow accepts both a single number value, or an array of number values. When passing an array it acts the same as the from operator and also accept a scheduler.- Tests refactored and improved
- Improved documentation
[2.0.0] - 2020-05-10
Changed
- The current operators that begin with
from*are being changed tofilter*as usingfromhas a specific context in RxJS with creating Observable values.
The following operators are affected:
fromIsFinitetofilterIsFinitefromIsIntegertofilterIsIntegerfromIsSafeIntegertofilterIsSafeInteger
Added
fromNumber- Creates an Observable number from a passed number parameter
[1.0.3] - 2020-05-06
Changed
- Documentation improvements
[1.0.2] - 2020-05-06
Initial Release of the rxjs-number library
Added
filterIsFinite- Returns a number value from an Observable number if theNumber.isFiniteequality check it truefromIsInteger- Returns a number value from an Observable number if theNumber.isIntegerequality check it truefromIsSafeInteger- Returns a number value from an Observable number if theNumber.isSafeIntegerequality check it trueisFinite- Returns a boolean value from an Observable numberNumber.isFiniteequality checkisInteger- Returns a boolean value from an Observable numberNumber.isIntegerequality checkisNaN- Returns a boolean value from an Observable numberNumber.isNaNequality checkisSafeInteger- Returns a boolean value from an Observable numberNumber.isSafeIntegerequality checkparseFloat- Returns a number value from an Observable stringparseInt- Returns a number value from an Observable string, with optional radixtoExponential- Returns a string value from an Observable number raised to an exponential valuetoLocaleString- Returns a string value from an Observable number based on a locale formatting optiontoPrecision- Returns a string value from an Observable number based to the passed precision valuetoString- Returns a string value from an Observable number, with optional radix
Generated using TypeDoc, the 18/11/2022 at 13:22:58