Skip to content

Releases: cyrilschumacher/json-property-filter

v2.0.0

14 Oct 15:48
Compare
Choose a tag to compare

Changed

  • Update export: the class JsonPropertyFilter is replaced by a function apply(object, string[]);
  • Update filtering mechanism;

v1.3.1

30 Sep 08:29
Compare
Choose a tag to compare

Changed

  • Update package.json description.

Fixed

  • Fix line separator: convert CRLF to LF.

v1.3.0

28 Sep 14:35
Compare
Choose a tag to compare

Added

  • Add Date and Function 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

20 Jun 18:55
Compare
Choose a tag to compare

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

12 Jun 12:57
Compare
Choose a tag to compare

Fixed

  • A array contained in a base array can be ignored when filtering.

v1.1.0

12 Jun 00:00
Compare
Choose a tag to compare

Added

  • Add arrays support.

v1.0.2

29 May 18:59
Compare
Choose a tag to compare

Fixed

  • Fix TypeScript definition path.

v1.0.1

29 May 15:45
Compare
Choose a tag to compare

Added

  • Add TypeScript definition in "lib" directory.

v1.0.0

29 May 09:45
Compare
Choose a tag to compare

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 of JsonPropertyFilter class can return a wrong filtered object if it contains an array of string/number/boolean.
  • The symbol "" causes an undesirable side effect: all properties are added without distinction.

v0.0.8

28 May 09:22
Compare
Choose a tag to compare
v0.0.8 Pre-release
Pre-release

Changed

  • Update the filter **: it can also be applied to a specific property.