Releases: witchcraftjs/spellcraft
Releases · witchcraftjs/spellcraft
v0.2.3
v0.2.2
0.2.2 (2026-04-03)
🐛 Fixes
fixed module types not getting exported (981bbb6)
fixed type of context returned by createContext (b741fc7)
fixed accidental spread of text condition on creation (96f4938)
fixed context not being optional in createShortcuts (173ae76)
made options in getKeyCodesFromKeyIds properly optional (0b816b4)
📖 Documentation
clarified how to clear the manager's chain with Escape (603142a)
v0.2.1
v0.2.0
0.2.0 (2026-02-08)
⭐ New Features
added getKeyCodesFromKeyIds helper (a1949a9)
🐛 Fixes
fixed context types not getting merged correctly (cd2dc40)
fixed getKeyCodesFromKeys not taking into account zero length variant arrays (18917c0)
⚠️ BREAKING CHANGES
reworked shortcut equality (9849243)
Dropped the ignoreCommand option of equalsShortcut.
Shortcut equality is no determined by a new option on the manager,
shortcutEqualityStrategy. This allows more flexible equality testing for
special cases.
For example, before, two shortcuts bound to commands with different conditions
still conflicted, now with shortcutEqualityStrategy: "ignoreCommandWithDifferentCondition" this is no longer the case. This is not
the default still due to the issues outline in ConditionComparer.