You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: enum-plus-v3.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,10 @@
52
52
-`enum.valuesEnum` method is removed, use `enum.toValueMap` instead.
53
53
- The behavior of `enum.values` is changed. Use `enum.items` for the old behavior.
54
54
55
+
## Misc
56
+
57
+
- The warning message for trying to modify enum items has been removed. First, in order to avoid circular references within enum items (which would affect serialization), we removed the internal `proxy` and used `getter/setter` instead. However, this brought about another problem: when printing enum items in the browser console or node.js, the `key`, `value`, and `label` cannot display their values, but show `[Getter/Setter]` instead. This somewhat affects the debugging experience. Sorry @yyz945947732, you introduced this feature, which is very good, but after weighing the pros and cons, we still had to remove this feature.
58
+
55
59
## Bug Fixes
56
60
57
61
- Fix the issue where sourcemap files under the `lib` directory could not be parsed.
0 commit comments