Skip to content

Releases: witchcraftjs/spellcraft

v0.2.3

19 Apr 04:49

Choose a tag to compare

0.2.3 (2026-04-19)

v0.2.2

03 Apr 16:22

Choose a tag to compare

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

09 Feb 23:04

Choose a tag to compare

0.2.1 (2026-02-09)

🐛 Fixes

fixed the playground demo (e963d8e)

fixed some issues with the new shortcutEqualityStrategy option (c2f59c8)

v0.2.0

08 Feb 21:28

Choose a tag to compare

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.

v0.0.4

18 Oct 00:53

Choose a tag to compare

0.0.4 (2025-10-18)

v0.0.3

01 Oct 01:43

Choose a tag to compare

0.0.3 (2025-10-01)

🐛 Fixes

temporary workaround for types issue (7859b8a)

v0.0.2

27 Sep 13:53

Choose a tag to compare

0.0.2 (2025-09-27)

v0.0.1

18 Sep 10:23

Choose a tag to compare

0.0.1 (2025-09-18)

⭐ New Features

release (29b1ecc)