Release 3.0.0
[skip ci]
3.0.0 (2025-01-11)
⚠ BREAKING CHANGES
- drop Node.js < 18.19.0 support
part of https://github.com/eggjs/egg/issues/3644
https://github.com/eggjs/egg/issues/5257
Summary by CodeRabbit
Release Notes
New Features
- Added TypeScript support for the JSONP plugin
- Modernized project structure with ES module syntax
- Enhanced type definitions and configuration
- Introduced new GitHub Actions workflows for CI/CD
- Added a new class for JSONP error handling
Breaking Changes
- Renamed package from
egg-jsonpto@eggjs/jsonp- Dropped support for Node.js versions below 18.19.0
- Refactored configuration and middleware approach
Improvements
- Updated GitHub Actions workflows for CI/CD
- Improved security checks for JSONP requests
- Added more robust error handling
- Enhanced logging configuration
Dependency Updates
- Updated core dependencies
- Migrated to modern TypeScript tooling
Features
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
@eggjs/jsonp
An egg plugin for jsonp support.
Requirements
Install
Usage
Configuration
[ '_callback', 'callback' ]50if whiteList’s type is
RegExp, referrer must matchwhiteList, pay attention to the first^and last/.if whiteList’s type is
Stringand starts with.:if whiteList’s type is
Stringand not starts with.:whiteList also can be an array:
see config/config.default.ts for more detail.
API
Example
In
app/router.tsQuestions & Suggestions
Please open an issue here.
License
MIT
Contributors
Made with contributors-img.