filter-obj

Filter object keys and values into a new object

MIT License

Downloads
32.8M
Stars
92
Committers
8

Bot releases are visible (Hide)

filter-obj - Latest Release

Published by sindresorhus 7 months ago

Breaking

  • Require Node.js 18 27962ff

Fixes

  • TypeScript: Fix excludeKeys return type when passing in a union of objects (#34) 3cb924c

https://github.com/sindresorhus/filter-obj/compare/v5.1.0...v6.0.0

filter-obj -

Published by sindresorhus about 2 years ago

filter-obj -

Published by sindresorhus about 2 years ago

Breaking

  • Do not ignore symbol properties (#23) 1c166d3
    • This is a breaking change since the function predicate passed as argument needs to handle the potential case that the key might be a symbol instead of a string.

Fixes

  • Fix preserving object descriptors (#22) de9a937

https://github.com/sindresorhus/filter-obj/compare/v4.0.0...v5.0.0

filter-obj -

Published by sindresorhus about 2 years ago

Breaking

  • Require Node.js 14 25fdfe6
  • Change from a default export to a named export (#18) 1064082
    • import filterObject from 'filter-obj'import {includeKeys} from 'filter-obj'

Improvements

  • Add excludeKeys() method (#18) 1064082
  • Improve performance 897518a 6098d8d

https://github.com/sindresorhus/filter-obj/compare/v3.0.0...v4.0.0

filter-obj -

Published by sindresorhus about 3 years ago

Breaking

  • Require Node.js 12.20 00b7fb1
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/filter-obj/compare/v2.0.2...v3.0.0

filter-obj -

Published by sindresorhus over 3 years ago

  • Handle own '__proto__' keys consistently (#12) 9c97d89

https://github.com/sindresorhus/filter-obj/compare/v2.0.1...v2.0.2

filter-obj -

Published by sindresorhus about 5 years ago

  • Fix TypeScript definition for TypeScript 3.5 05a1fbd

https://github.com/sindresorhus/filter-obj/compare/v2.0.0...v2.0.1

filter-obj -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#5) adfe40f

Enhancements:

  • Add TypeScript definition (#5) adfe40f

https://github.com/sindresorhus/filter-obj/compare/v1.1.0...v2.0.0