🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

enum-plus

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enum-plus - npm Package Versions

23

2.2.9

Diff
shijistars
published 2.2.9 •

Changelog

Source

2.2.9

2025-4-20

Features

  • 🛠 emit a warning while trying to modify an EnumItem

Bug Fixes

  • 🐞 The output 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.
shijistars
published 2.2.8 •

Changelog

Source

2.2.8

2025-3-30

Bug Fixes

  • 🐞 fix exports configuration for moduleResolution ESNext
shijistars
published 2.2.7 •

Changelog

Source

2.2.7

2025-3-30

Features

  • 🛠 Provide different versions of ESModule output for modern browsers and legacy browsers
shijistars
published 2.2.6 •

Changelog

Source

2.2.6

2025-3-29

Features

  • 🛠 Change compile transformer
  • 👀 Support 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.
  • 👀 For the Node.js environment, backward compatible down to ES2016.
  • 🛠 Generate better sourcemaps
  • 🛠 Package size reduces by 0.1k
shijistars
published 2.2.5 •

Changelog

Source

2.2.5

2025-3-7

Features

  • 🛠 Improve Enum typing, support boolean and Date as enum values
shijistars
published 2.2.4 •

Changelog

Source

2.2.4

2025-2-24

Features

  • 🛠 supports global type extension for enum localization keys, providing better editor intelligence awareness
shijistars
published 2.2.3 •

Changelog

Source

2.2.3

2025-2-19

Features

  • 🛠 Enum.localize supports delayed assignment, i.e. sets the function after the enum is created
shijistars
published 2.2.2 •

Changelog

Source

2.2.2

2025-2-10

Features

  • 🛠 Change the return type of Enum.options.getKey
  • 📖 update docs
shijistars
published 2.2.1 •

Changelog

Source

2.2.1

2025-2-10

  • 📖 update docs
shijistars
published 2.2.0 •

Changelog

Source

2.2.0

2025-2-9

Features

  • 🔥 support initializing Enum with native enums
  • 🔥 adds items array, deprecated the values array. Reduces package size.