4.0.0 (2025-01-17)
⚠ BREAKING CHANGES
- drop Node.js < 18.19.0 support
part of eggjs/egg#3644
Summary by CodeRabbit
Based on the comprehensive changes, here are the updated release notes:
-
New Features
- Migrated security plugin to TypeScript.
- Enhanced type safety for security configurations.
- Improved middleware and helper utilities.
-
Introduced new middleware for handling
Strict-Transport-Security
,
X-Frame-Options
, andX-XSS-Protection
headers.- Added support for new security configurations and helper functions.
-
Breaking Changes
- Renamed package from
egg-security
to@eggjs/security
. - Dropped support for Node.js versions below 18.19.0.
- Restructured module exports and configurations.
- Removed several deprecated middleware and utility functions.
- Renamed package from
-
Security Improvements
- Updated CSRF, XSS, and SSRF protection mechanisms.
- Enhanced middleware for handling security headers.
- Refined configuration options for various security features.
-
Performance
- Modernized codebase with ES module syntax.
- Improved type definitions and module structure.
-
Enhanced test suite with TypeScript support and better resource
management.
Features
This release is also available on: