All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
5.7.0 (2024-11-05)
- Replace lodash with es-toolkit. Also moving to new project structure and tooling, vitest, and CI (66c1b43)
5.6.3 (2024-09-25)
- remove 'type module'. It broke the usage of this library as commonJS (94a5965)
5.6.2 (2024-09-18)
5.6.1 (2024-09-16)
5.6.0 (2023-08-30)
- added toString() and, only for node environments, also custom inspect for console.log() (d8719b3)
5.5.0 (2023-06-29)
- add better types to
representsXXX()
functions (6087634)
5.4.0 (2023-05-16)
- composedKeySet to avoid duplicate key set (using ks.isEqual()) (c03dd00)
5.3.0 (2023-05-16)
- composedKeySet new methods addList and withoutList (b4b2993)
5.2.0 (2023-05-16)
- adding isComposedKeySet() function. Also upgrade dependencies (b543221)
5.1.0 (2022-11-30)
- add alias to build functions someKeySet() allExceptSomeKeySet() noneKeySet() and someKeySet() (264fc34)
- adds better types for the
isKeySet
isKeySetXXX
functions (1903e82) - deps: bump ansi-regex from 3.0.0 to 3.0.1 (#437) (1dbe7b8)
- deps: bump async from 2.6.3 to 2.6.4 (#449) (f921d47)
5.0.0 (2022-03-18)
.keys
is removed..elements
is now the frozen Set. And the old utilsuniqueArray
,uniqueKeyLabelArray
andarraysEqual
are dropped.
- elements as a public readonly frozen Set instead of internal array (c5d492b)
- deps: bump tmpl from 1.0.4 to 1.0.5 (#315) (1210cdf)
- deps: bump trim-off-newlines from 1.0.1 to 1.0.3 (#390) (46d00ca)
4.8.0 (2021-05-10)
- composedKeySet.map() support (4635e43)
4.7.0 (2021-04-29)
ComposedKeySet.compactUnion
andComposedKeySet.compactIntersect
(85f6c4b)
4.6.0 (2021-04-29)
4.5.1 (2021-04-29)
- upgrading dependencies and fixing types for them (5ce2be0)
4.5.0 (2021-02-04)
- added
ks.union(other)
(cde30b5)
4.4.2 (2021-02-04)
4.4.1 (2021-01-26)
- deps: [security] bump highlight.js from 10.3.1 to 10.4.1 (#176) (a889746)
- deps: [security] bump ini from 1.3.5 to 1.3.8 (#182) (e1dabfd)
4.4.0 (2020-10-23)
- exposing KeySetTypesEnumValues + deps upgrade (4affd1d)
4.3.1 (2020-06-27)
4.3.0 (2020-06-17)
- add
.includes(element)
and alias.contains(element)
(+ updated dependencies) (233117d)
4.2.2 (2020-05-12)
- target ES2017 instead of esnext for module, and ES2015 for main (8660d10)
4.2.1 (2020-04-14)
4.2.0 (2020-03-11)
- exporting types for KeyLabelSetSerialized and all individual types (861e071)
4.1.1 (2020-02-29)
- fixing overloads on remove() and intersect() (TypeScript) (7ea0ff1)
4.1.0 (2020-02-29)
- toJSON() to be used in JSON.stringify(), stringify using the same as serialized() (0183f4a)
4.0.0 (2020-02-29)
- While KeySetAll and KeySetNone were before non typed, now they are. Most of the time no adaptation is needed but in some cases when using TypeScript it may be needed to specify the type of the universe when creating a desired All or None key sets.
- keySetAll and KeySetNone with key type (bb5b1c9)
3.1.0 (2020-02-29)
- keyLabelSet type (c1e5a4d)
3.0.0 (2020-02-29)
- KeySetAll and KeySetNone will have now
keys
andelements
methods (both the same) which return an EmptyArray of the type (Key by default). This is a different behaviour more than an addition, since before keyset type could be relied upon having or not those getters.
- methods keys and elements in all KeySet, typings, and allow for typed KeySetAll and KeySetNone (53265b9)
2.4.0 (2020-02-28)
- type predicates based on the element type (2f5c7e3)
2.3.0 (2020-02-28)
- complex KeyLabel allowed as elemnets + extra types, utils and tests (a3fdec3)
2.2.0 (2020-02-28)
- better types serializeKeySet (28ee65f)
2.1.0 (2020-02-27)
- type predicates + serialize and parsing functions (03f769d)
2.0.0 (2020-02-25)
type
enum values change from camelCase to SCREAMING_SNAKE_CASE (ALL
,ALL_EXCEPT_SOME
,NONE
andSOME
)
1.5.1 (2020-02-13)
- narrower types in the intersect and remove returns to avoid typing issues in clients (d590fe2)
1.5.0 (2020-02-13)
- add someForced() and allExceptSomeForced() (f344f59)
1.4.0 (2020-02-13)
- exposing KeySetTypes enum (e1642dc)
1.3.0 (2020-02-13)
- add
type
property (753e1a7)
1.2.0 (2019-12-03)
- supports ReadonlyArray as keys type (d878ac8)
1.1.0 (2019-09-09)
- exporting Key type, which was previously hidden (7a3c511)