3.0.1 (2025-01-12)
3.0.0 (2025-01-11)
- drop Node.js < 18.19.0 support
part of eggjs/egg#3644
Based on the comprehensive changes, here are the updated release notes:
-
New Features
- Migrated package to TypeScript with improved type safety.
-
Enhanced internationalization (i18n) support with more flexible configuration.
- Added comprehensive GitHub Actions workflows for CI/CD.
-
Improvements
- Updated Node.js compatibility to version 18.19.0+.
- Modernized module system with ES module support.
- Refined configuration and localization mechanisms.
-
Breaking Changes
- Package renamed from
egg-i18n
to@eggjs/i18n
. - Switched from CommonJS to ES module syntax.
- Removed legacy configuration files and testing infrastructure.
- Package renamed from
-
Chores
- Cleaned up and simplified project structure.
- Updated dependencies and development tooling.
- Improved documentation and README.
fixes
- [
4d1c463
] - fix: use ctx.__setLocale to set cookie (#12) (Yiyu He <[email protected]>)
others
- [
cfd25db
] - test: assert locale cookie without domain (#11) (fengmk2 <[email protected]>) - [
99c56c4
] - test: node 12 (fengmk2 <[email protected]>)
features
- [
ce59330
] - feat: support ctx.locale setter (#10) (Yiyu He <[email protected]>)
others
- [
50322d6
] - chore: add cookieDomain options description (#9) (fengmk2 <[email protected]>)
others
- [
80e591d
] - refactor: use async function and support egg@2 (#8) (Yiyu He <[email protected]>)
features
- [
1117129
] - feat: use config/locale/*.js as default I18N folder (#7) (tudou527 <[email protected]>)
- fix: config.i18n.dir should be config.i18n.dirs (#6)
- feat: add ctx.locale getter (#5)
- deps: upgrade deps (#4)
- fix: don't use bind (#3)
- fix: use loader.getLoadUnits from egg-core (#2)
- init version