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.0.2] - 2021-01-25
Fixed
- Update to internal build configuration for UMD compile
rxjsandrxjs/operatorsnow correctly set asrxjsandrxjs.operatorsfor globals
[5.0.1] - 2021-01-21
Changed
- Documentation updates and some minor internal cleanup due to Typedoc upgrade
[5.0.0] - 2021-01-19
Breaking changes in public API, and a lot of internal refactoring.
Added
joinoperator for the string module, allows string creation from Array andSetwithout needing@rxjs-ninja/rxjs-array
Changed
- Operators
charAt,charCodeAt,codePointAtall now return an Array value, even if a single value property is used (which will return an array of length 1) from*Observables andconcatoperator no longer accept arguments list or Promise values- Fix
toLowerCaseandtoUpperCasereading the wrong variable - Improved
titleize, also uses newjoinoperator internally splitoperator now has default space separatornormalizeaccepts ObservableFormType- Internal cleanup and refactoring
[4.1.0] - 2021-01-17
Changed
- All operators now accept Observable input values
- All operators and Observables that accepted Array values now also support
Set - Internal refactor of all operators
[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.
Added
replaceAlloperator for replacing all instances of a passed string in a source string (note: This requires node 15 or latest browsers)
Changed
padStringhas been removed,padStart/padLeftandpadEnd/padRightare the only API for these methodstrimStringhas been removed,trim,trimStart/trimLeftandtrimEnd/trimRightare now only availabletitlizearguments have changed, now accepts a list of words to exclude first as an array of strings. Ignores this for the first word or capitalised wordsconcatnow usesconcatMapinstead ofswitchMapwhen passed an Observable valuefromCharCode,fromCodePoint,fromStringandfromUnicodenow accept Observable or Promise-like values
[3.1.2] - 2020-11-22
Changed
- Package is now published under
@rxjs-ninja/rxjs-string(this also includes previous version for migration from@tinynodes/rxjs-string) - 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
[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-23
Changed
concatoperator now supports passing of Observable value as parameter
[2.2.0] - 2020-05-18
Added
New Operators (now String feature complete)
fromUnicode- Creates a string of Unicode Normalization Form characters and uses String.prototype.normalize to convert it to a stringmatchandmatchAllfor matching strings or regular expressions.matchreturns a single Array-likeRegExpMatchArraymatchAllreturns an array of Array-likeRegExpMatchArray
repeat- This repeats a string by the passed count number. This implementation accepts an optional separator character that can be used to generate strings such as CSVsearch- Searches a string and return the index of the resultpadStartandpadEndalias methods now added for paddingtrimLefttrimRightandtrimalias methods now added for trimming
Changed
- Underlying typescript library for library changed from
es2018toes2020
[2.1.2] - 2020-05-16
Added
- Added
PadPositionandTrimPositionenums
Changed
- Improved documentation
[2.1.1] - 2020-05-14
Fixed
- Fix single character support in
mapCodePoint
Changed
- Improved documentation more
[2.1.0] - 2020-05-10
Changed
fromStringnow accepts both a single string value or array of string values. When passing an array it acts the same as the from operator and also accept a scheduler.concatoperator now accepts an argument list of strings or an array of stringsfromCharCodenow accepts both a single string value or array of string values, but will only return a single string valuefromCodePointnow accepts both a single string value or array of string values, but will only return a single string valuemapCharCodenow accepts an Observable single number or array of numbersmapCodePointnow accepts an Observable single number or array of numbers- Tests refactored and improved
- Improved documentation
[2.0.0] - 2020-05-10
Changed
- The current operators that begin with
from*are being changed tofilter*ormap*as usingfromhas a specific context in RxJS with creating Observable values.
The following operators are affected:
fromCharCodetomapCharCode. For the newfromCharCodemethod, see the Added section below.fromCodePointtomapCodePoint. For the newfromCodePointmethod, see the Added section below.fromEndsWithtofilterEndsWithfromIncludestofilterIncludesfromStartsWithtofilterStartsWith
Added
fromString- Creates an Observable string from the string passed as it's parameterfromCharCodemethod now takes an array of numbers that are char codes and returns an Observable string valuefromCodePointmethod now takes an array of numbers that are char codes and returns an Observable string value
[1.1.2] - 2020-05-07
Added
titleize- Operator for taking a string and capitalising first character of each word (title case)reverse- Operator for reversing a string
[1.1.1] - 2020-05-06
Changed
- Documentation improvements
[1.1.0] - 2020-05-06
Added
codePointAt- Returns the code point at a specified index position of anObservable<string>concat- Returns a string of the originalObservable<string>concatenated with additional string passed as parametersfromCharCode- Generates a string based on an array of character codesfilterCodePoint- Generates a string based on an array of code pointsfromStartsWith- Returns theStringvalue of aObservable<string>that starts with a specified characterlastIndexOf- Returns aNumberlast index of a specified string in aObservable<string>valueslice- Returns a substringStringof the originalObservable<string>from start index to optional end indexsplit- Returns astring[]of strings spit from the originalObservable<string>using a separator propertystartsWith- Returns aBoolanvalue if anObservable<string>starts with a specified character
[1.0.2] - 2020-05-06
Initial release of library
Added
charAt- Returns the character at a specified index position of anObservable<string>charCodeAt- Returns the character code at a specified index position of anObservable<string>endWith- Returns aBoolanvalue if anObservable<string>ends with a specified characterfromEndsWith- Returns theStringvalue of aObservable<string>that ends with a specified characterfromIncludes- Returns theStringvalue of aObservable<string>that includes a specified stringincludes- Returns theBooleanvalue of aObservable<string>that includes a specified stringindexOf- Returns aNumberindex of a specified string in aObservable<string>valuepadString- Returns a padded string, padded from'start'or'end'to a specified length and optional pad characterreplace- Returns aStringwhere the originalObservable<string>is modified with a regex or string search string, and replacement character or stringsubstring- Returns a substringStringof the originalObservable<string>to the specified start position and lengthtoLowerCase- Returns a localised lower-caseStringof the originalObservable<string>valuetoUpperCase- Returns a localised upper-caseStringof the originalObservable<string>valuetrimString- Returns aStringvalue that has white space trimmed from the originalObservable<string>- can be'start','end'or'all'
Generated using TypeDoc, the 18/11/2022 at 13:22:58