-
Notifications
You must be signed in to change notification settings - Fork 8
Migration Guide
Oleksandr Tolochko edited this page Mar 11, 2023
·
2 revisions
This section describes the breaking changes required to migrate to v3.
All declension functions are now asynchronous and return the inflected form as a Promise
.
shevchenko.inVocative(input); // { gender: "male", firstName: "Тарасе", middleName: "Григоровичу", lastName: "Шевченку" }
shevchenko.inVocative(input); // Promise<{ givenName: "Тарасе", patronymicName: "Григоровичу", familyName: "Шевченку" }>
Grammatical gender values have been renamed according to grammatical categories.
shevchenko.Gender.Male; // 'male'
shevchenko.Gender.Female; // 'female'
shevchenko.GrammaticalGender.MASCULINE; // 'masculine'
shevchenko.GrammaticalGender.FEMININE; // 'feminine'
Name fields have been renamed for better alignment with their Ukrainian counterparts.
const anthroponym = {
firstName: 'Тарас',
middleName: 'Григорович',
lastName: 'Шевченко',
};
const anthroponym = {
givenName: 'Тарас',
patronymicName: 'Григорович',
familyName: 'Шевченко'
};