- Fix the type of the
valueparameter in a type handler to beTValue | null | undefinedgivennull/undefinedare valid values since 0.15.0
- Make
TypeHandler->TypeHandler<TValue = any, TReturn = any>so that the value part can be specified and the return value inferred in TypeScript codebases.
- Minimum supported version of Node is now 20
- Allow null/undefined as branch conditions in
select(#16)
- Fix "Default condition should be last one" webpack build error (#14)
- Fix types on the main exports too (tsc was being run over transpiled-for-browser code 🤦♂️)
- Update generated types for some of the utility exports
- On the road to making this pure ESM, the following internal changes have been
made:
- Added
"type": "module"so ESM is now the default - Package outputs defined using an
exportsmap w/importpointing to the main source andrequireto a transpiled version of the source
- Added
- Minimum supported version of Node is now 18
- Browser target in
.browserslistrcfile is nowdefaults, so the explicitie11target has been removed and thus IE11 support has been dropped - Type definitions are now included in this project
- Dropped support for Node 10
- Use
Intl.Pluralrulesto add support for all of the plural keywords when using thepluralTypeHandler(#13)