Releases: cyrilschumacher/json-property-filter
Releases · cyrilschumacher/json-property-filter
v2.0.0
v1.3.1
Changed
- Update package.json description.
Fixed
- Fix line separator: convert
CRLF
toLF
.
v1.3.0
Added
- Add
Date
andFunction
types support. - Add examples.
Changed
- Update:
README.md
. - Update NPM dependencies.
- Improve unit/integration tests.
- Improve TypeScript documentation.
Fixed
- Fix CLI version.
- Fix CLI.
- Fix Regular expression on including and excluding filters.
v1.2.0
Added
- Add getters/setters for
JsonPropertyFilter
class to obtain/set the exclude/include filters. - Add the posibility to define the symbols of include/exclude.
- Add CLI support.
Changed
- All constructor arguments of the
JsonPropertyFilter
class are optionals. - The
TypeError
object is used to assert separator and filters arguments.
v1.1.1
Fixed
- A array contained in a base array can be ignored when filtering.
v1.1.0
Added
- Add arrays support.
v1.0.2
Fixed
- Fix TypeScript definition path.
v1.0.1
Added
- Add TypeScript definition in "lib" directory.
v1.0.0
Added
- Add more validation on parameters.
- Add exclude filters.
Changed
- Update the "include" behavior: if no properties, then the original object is returned.
Fixed
- The
apply
method ofJsonPropertyFilter
class can return a wrong filtered object if it contains an array ofstring
/number
/boolean
. - The symbol "" causes an undesirable side effect: all properties are added without distinction.
v0.0.8
Changed
- Update the filter
**
: it can also be applied to a specific property.