Version 1.2 is now available! Itās a small update accommodating a big change (well, I think itās kinda big anyway) to WaniKaniās subjects.
Kana Vocabulary Types
Weāve added type definitions for Kana Vocabulary, a new subject type that is like vocabulary, but is only made up of hiragana and/or katakana, and thus has no kanji readings attached.
- WKKanaVocabulary for an entire single kana-only vocabulary resource (top-level)
- WKKanaVocabularyCollection for a collection of kana-only vocabulary
- WKKanaVocabularyData for the actual data found within the resource (characters, parts of speech, the mnemonic, etc.)
- WKSubject was also updated to include
WKKanaVocabularyin its union, in case youāre working with mixed or unknown subject types
Other Changes
The documentation now has a nice sidebar with dropdowns of all the categories of things this library exports.
The supported TypeScript version range in our peerDependencies has also been updated to better illustrate the correct supported versions. Previously, it was ^4.5.0 || ^5.0.0, which did not correctly specify our support of only TypeScript 4.5 to 5.0, not including 5.1, 5.2, etc. until they are released and tested against (since TS doesnāt use Semantic Versioning). The range now reads 4.5.x - 5.0.x which should be more clear on which TS versions are supported.
Last, we now provide package provenance on package versions. This will give you a quick glimpse on where the version was built, what git commit was referenced, what build steps were taken, etc. Most users wonāt need this info, but it can help for those with a knack for version integrity in their dependency tree.
Unless WaniKani surprises us with another new feature in the next couple weeks, see yāall in early June for 1.3 and TypeScript 5.1 support!