Releases: arthurkowalsky/ts-array-filter
Releases · arthurkowalsky/ts-array-filter
1.1.0
New Features
In version 1.1.0, we've added 10 new filters to the existing set of filters:
- startswith - filters items where the specified field starts with a given string.
- endswith - filters items where the specified field ends with a given string.
- contains - filters items where the specified field contains a given string.
- regex - filters items where the specified field matches a given regular expression.
- null - filters items where the specified field is null.
- not-null - filters items where the specified field is not null.
- true - filters items where the specified field is true.
- false - filters items where the specified field is false.
- exists - filters items where the specified field exists (is not undefined).
- not-exists - filters items where the specified field does not exist (is undefined).
- These new filters will allow you to create more complex and specific queries on your data arrays.
Improvements
- Updated README to reflect new features and filters introduced in version 1.1.0.
- Improved test cases to cover the new filters and safeguard edge cases.
1.0.0
We are excited to announce the first stable release of our array-where-filter library. This version 1.0.0 includes a set of powerful filtering capabilities for arrays in TypeScript projects.
Features
- Easy to use and intuitive API for filtering arrays.
- Supports the following filter operators:
- < (less than)
- <= (less than or equal to)
- == (equal to)
- /> (greater than)
- />= (greater than or equal to)
- != (not equal to)
- array-contains
- array-contains-any
- in
- not-in
- Extensible filter interface for custom filtering logic.
- Safeguards against unexpected errors.
- Thoroughly tested with a comprehensive suite of test cases.
- Compatible with Node.js v14 and later.