![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
用于处理后端接口的适配器。内置了过滤,拼接查询字符和添加时间戳的插件, 并提供了自定义插件的功能。
npm i @ntbl/api --save
import Api from '@ntbl/api'
// 插件
const {QUERY, TIMESTAMP, FILTER} = Api
// 把 maps 接口映射对象,
// app 依赖的 ajax 库(目前,只测试了 axios)
// 和插件传入,
// 并实例化,调用 export() 方法
const api = Api(maps, app, QUERY, TIMESTAMP, FILTER)
// 调用接口
api('login', data)
.then(res => {})
.catch(err =>{})
const maps = {
// 标准写法,请求方法默认为 get
userDetail: '/user/detail',
// 同上
userDetail: {
method: 'get', // 可省略,默认为 get
url: '/user/detail'
},
// post 的简写
'login@': '/user/login',
// 或者显式指定
'login@post': '/user/login'
// 其他请求方法
'userUpdate@put': '/user/update'
// 当启用 FILTER 插件后,支持过滤数据
'register@': {
url: '/user/register',
only: ['username', 'password'],
// 或者
only: 'username password'
}
}
FAQs
用于处理后端接口的适配器。内置了过滤,拼接查询字符和添加时间戳的插件, 并提供了自定义插件的功能。
The npm package @ntbl/api receives a total of 1 weekly downloads. As such, @ntbl/api popularity was classified as not popular.
We found that @ntbl/api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.