npm genshin-db 5.0.8
genshin-db v5.0.8

latest releases: 5.1.9, 5.1.8, 5.1.7...
10 months ago

Transition from db v4 to db v5.

All the property names have been changed. For example, characters.weapontype has been changed to characters.weaponText.

A lot of new data has been added. For example, characters.weaponType which is the enum version of characters.weaponText.

For 99% backwards compatibility, set the option v4Props or v4PropsOnly to true.
genshindb.setOptions({ v4PropsOnly: true });

Search results with v4Props will return data with both v4 and v5 props. With v4 props overwriting v5 props if there are any clashes.
Search results with v4PropsOnly will return data with only v4 props. You'll be missing out on any new data properties that have been added.

Also a lot of categories got removed from the index I guess. Let me know if you need them back.

Don't miss a new genshin-db release

NewReleases is sending notifications on new releases.