Changelog
2.2.9
2025-4-20
EnumItem
lib
directory structure is incorrect. This will break legacy Node.js applications using the CommonJS
module spec, while modern Node.js applications using the NodeNext
module spec remain unaffected. This issue was introduced in v2.2.7
. For node.js applications, it's strongly recommended to upgrade.Changelog
2.2.8
2025-3-30
exports
configuration for moduleResolution ESNext
Changelog
2.2.7
2025-3-30
Changelog
2.2.6
2025-3-29
ES2020
and Chrome>=80
, if you need to support legacy browsers, please use use a modern bundler like webpack
or vite
and use babel
to include proper polyfills on-demand.Changelog
2.2.5
2025-3-7
boolean
and Date
as enum valuesChangelog
2.2.4
2025-2-24
Changelog
2.2.3
2025-2-19
Enum.localize
supports delayed assignment, i.e. sets the function after the enum is createdChangelog
2.2.2
2025-2-10
Enum.options.getKey
Changelog
2.2.0
2025-2-9
items
array, deprecated the values
array. Reduces package size.