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
rxjs
andrxjs/operators
now correctly set asrxjs
andrxjs.operators
for 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
join
operator for the string module, allows string creation from Array andSet
without needing@rxjs-ninja/rxjs-array
Changed
- Operators
charAt
,charCodeAt
,codePointAt
all now return an Array value, even if a single value property is used (which will return an array of length 1) from*
Observables andconcat
operator no longer accept arguments list or Promise values- Fix
toLowerCase
andtoUpperCase
reading the wrong variable - Improved
titleize
, also uses newjoin
operator internally split
operator now has default space separatornormalize
accepts 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
replaceAll
operator for replacing all instances of a passed string in a source string (note: This requires node 15 or latest browsers)
Changed
padString
has been removed,padStart
/padLeft
andpadEnd
/padRight
are the only API for these methodstrimString
has been removed,trim
,trimStart
/trimLeft
andtrimEnd
/trimRight
are now only availabletitlize
arguments have changed, now accepts a list of words to exclude first as an array of strings. Ignores this for the first word or capitalised wordsconcat
now usesconcatMap
instead ofswitchMap
when passed an Observable valuefromCharCode
,fromCodePoint
,fromString
andfromUnicode
now 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
concat
operator 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 stringmatch
andmatchAll
for matching strings or regular expressions.match
returns a single Array-likeRegExpMatchArray
matchAll
returns 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 resultpadStart
andpadEnd
alias methods now added for paddingtrimLeft
trimRight
andtrim
alias methods now added for trimming
Changed
- Underlying typescript library for library changed from
es2018
toes2020
[2.1.2] - 2020-05-16
Added
- Added
PadPosition
andTrimPosition
enums
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
fromString
now 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.concat
operator now accepts an argument list of strings or an array of stringsfromCharCode
now accepts both a single string value or array of string values, but will only return a single string valuefromCodePoint
now accepts both a single string value or array of string values, but will only return a single string valuemapCharCode
now accepts an Observable single number or array of numbersmapCodePoint
now 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 usingfrom
has a specific context in RxJS with creating Observable values.
The following operators are affected:
fromCharCode
tomapCharCode
. For the newfromCharCode
method, see the Added section below.fromCodePoint
tomapCodePoint
. For the newfromCodePoint
method, see the Added section below.fromEndsWith
tofilterEndsWith
fromIncludes
tofilterIncludes
fromStartsWith
tofilterStartsWith
Added
fromString
- Creates an Observable string from the string passed as it's parameterfromCharCode
method now takes an array of numbers that are char codes and returns an Observable string valuefromCodePoint
method 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 theString
value of aObservable<string>
that starts with a specified characterlastIndexOf
- Returns aNumber
last index of a specified string in aObservable<string>
valueslice
- Returns a substringString
of the originalObservable<string>
from start index to optional end indexsplit
- Returns astring[]
of strings spit from the originalObservable<string>
using a separator propertystartsWith
- Returns aBoolan
value 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 aBoolan
value if anObservable<string>
ends with a specified characterfromEndsWith
- Returns theString
value of aObservable<string>
that ends with a specified characterfromIncludes
- Returns theString
value of aObservable<string>
that includes a specified stringincludes
- Returns theBoolean
value of aObservable<string>
that includes a specified stringindexOf
- Returns aNumber
index 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 aString
where the originalObservable<string>
is modified with a regex or string search string, and replacement character or stringsubstring
- Returns a substringString
of the originalObservable<string>
to the specified start position and lengthtoLowerCase
- Returns a localised lower-caseString
of the originalObservable<string>
valuetoUpperCase
- Returns a localised upper-caseString
of the originalObservable<string>
valuetrimString
- Returns aString
value 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