Releases: softwareventures/object
Releases · softwareventures/object
v1.0.2
v1.0.1
v1.0.0
1.0.0 (2023-02-22)
⚠ BREAKING CHANGES
- forEach: The forEach and forEachFn functions have been deleted
- excludeNullProperties: The excludeNull function has been replaced by excludeNullProperties, which has a
different, incompatible type signature - mapObjectValues: The type signature of mapObjectValues has changed incompatibly
- mapObjectValues: The type signature of mapObjectValues has been changed incompatibly
- mapObjectKeys: The type parameters of mapObjectKeys have changed incompatibly
- mapObject: The type parameters of mapObject have changed incompatibly.
- filterObjectValues: The filter function is replaced by filterObject, filterObjectKeys, and
filterObjectValues, which have different, incompatible type signatures - mapObjectValues: The "map" function has been replaced by a new "mapObjectValues" function that has a
different, incompatible type signature. - mergeObjects: The "merge" function has been replaced by a new "mergeObjects" function, which has
a different, incompatible type signature. - empty: The "empty" function has a new, incompatible type signature. See the documentation.
- entries: The "entries" function has a new, incompatible type signature.
- values: The function "values" has a new, incompatible type signature.
- keys: The function "keys" has a new, incompatible type signature.
- copy: The "copy" function is replaced by a new function that has a different type
signature and different behaviour. See the documentation. - object: The "dictionary" function has been replaced by a new function named "object", which
has a different type signature. - node: node versions 12, 17 are no longer supported.
- node: node < 12 || ^13 || ^15 are no longer
supported. - This library now uses ES2017 syntax. This breaks compatibility with Node < 8.10 and
very old browsers that do not support ES2017 syntax. If you need to support older browsers, then you
should use Babel to compile ES6+ code down to ES5.
Features
- add keys, values and entries functions (0dcd586)
- compile to ES2017 (35fe5eb), closes #15
- constructor: add constructor function to create a new dictionary (2949249)
- constructor: default the key type to "string" (58efd4e)
- copy: add copy function (055a6b8)
- copy: improve type of "copy" to support a wider range of keys (6a7385c)
- copy: replace "copy" function (9876555)
- empty: accept dictionaries keyed by any type (e101974)
- empty: add documentation and improve type signature of "empty" function (1a90b61)
- empty: add empty function (7c34ec9)
- emptyObject: add emptyObject function (f328cbf)
- entries: improve type signature of "entries" function (333d19d)
- entries: loosen type of "entries" to not require the object to have an index signature (36e6387)
- Entry: add Entry type (0dfab26)
- excludenull: add excludeNull function (fcc1aff)
- excludeNullProperties: replace excludeNull function with excludeNullProperties (25943c8)
- excludeObjectEntries: add excludeObjectEntries function (6a6bb73)
- excludeObjectKeys: add excludeObjectKeys function (489360a)
- excludeObjectValues: add excludeObjectValues function (287d67a)
- filter: add curried variant of filter function (9571301)
- filter: add filter function (9808c5f)
- filterObject: add filterObject function (7923d5f)
- filterObjectKeys: add filterObjectKeys function (9cc27ee)
- filterObjectValues: add filterObjectValues function, replacing filter function (6e9bb5b)
- foreach: add curried variant of forEach function (7d1133c)
- foreach: add forEach function (9bf911a)
- forEach: delete forEach function (26b639e)
- Key: add an optional type parameter to the Key type (8328fd3)
- key: add Key type, replacing the one from obsolete dependency dictionary-types (d606dc4)
- keys: improve type signature of "keys" function (ec069ea)
- keys: loosen type of "keys" to not require the object to have an index signature (6c3cc18)
- map: add curried variant of map function (6cf25d8)
- map: add map function (5c7279f)
- mapObject: add mapObject function (39dc8b2)
- mapObjectKeys: add mapObjectKeys function (000faff)
- mapObjectKeys: rewrite type signature using StringKey and StringKeyedValue (92d25f5)
- mapObject: rewrite type signature using StringKey and StringKeyValue (ad7f1a2)
- mapObjectValues: replace "map" function with "mapObjectValues" (2f8d7a9)
- merge: add merge function (ab5e232)
- mergeObjects: replace merge function with new mergeObjects function (fbfffa0)
- node: drop support for node < 12 || ^13 || ^15 (1b76350)
- node: drop support for node 12, 17 (6417eab)
- objectFromEntries: add objectFromEntries function (d848583)
- object: replace "dictionary" function with "object" function (61696fc)
- PropertyValue: add PropertyValue type (935c14a)
- record: add record function (e44d755)
- values: improve type signature of "values" function (efe1c8e)
- values: loosen type of "values" to not require the object to have an index signature (436b970)
Bug Fixes
- copy: improve copy function so that it creates a new dictionary with no prototype (0180549)
- deps: remove dependency on obsolete dictionary-types...