From 10d4f31205c8f2bd1f141321b51ab7637ef8da81 Mon Sep 17 00:00:00 2001 From: winixt Date: Tue, 23 Nov 2021 20:33:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20windi.config.js?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E5=88=B0=20npm=20=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-windicss/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/fes-plugin-windicss/package.json b/packages/fes-plugin-windicss/package.json index 47fa6aca..b430fdd5 100644 --- a/packages/fes-plugin-windicss/package.json +++ b/packages/fes-plugin-windicss/package.json @@ -4,7 +4,8 @@ "description": "@fesjs/plugin-windicss", "main": "lib/index.js", "files": [ - "lib" + "lib", + "windi.config.js" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -32,4 +33,4 @@ "dependencies": { "windicss-webpack-plugin": "^1.5.8" } -} +} \ No newline at end of file From 8d52805f4f8e68d59055a2c321bbba26de50807e Mon Sep 17 00:00:00 2001 From: winixt Date: Tue, 23 Nov 2021 20:34:10 +0800 Subject: [PATCH 2/3] chore(release): publish - @fesjs/create-fes-app@2.0.8 - @fesjs/plugin-layout@2.0.8 - @fesjs/plugin-windicss@2.0.2 --- packages/create-fes-app/package.json | 2 +- packages/fes-plugin-layout/package.json | 2 +- packages/fes-plugin-windicss/package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-fes-app/package.json b/packages/create-fes-app/package.json index 06f3036e..b7541a8f 100644 --- a/packages/create-fes-app/package.json +++ b/packages/create-fes-app/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/create-fes-app", - "version": "2.0.7", + "version": "2.0.8", "description": "create a app base on fes.js", "main": "lib/index.js", "files": [ diff --git a/packages/fes-plugin-layout/package.json b/packages/fes-plugin-layout/package.json index d97bf066..df283082 100644 --- a/packages/fes-plugin-layout/package.json +++ b/packages/fes-plugin-layout/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/plugin-layout", - "version": "2.0.7", + "version": "2.0.8", "description": "@fesjs/plugin-layout", "main": "lib/index.js", "files": [ diff --git a/packages/fes-plugin-windicss/package.json b/packages/fes-plugin-windicss/package.json index b430fdd5..03003384 100644 --- a/packages/fes-plugin-windicss/package.json +++ b/packages/fes-plugin-windicss/package.json @@ -1,6 +1,6 @@ { "name": "@fesjs/plugin-windicss", - "version": "2.0.1", + "version": "2.0.2", "description": "@fesjs/plugin-windicss", "main": "lib/index.js", "files": [ @@ -33,4 +33,4 @@ "dependencies": { "windicss-webpack-plugin": "^1.5.8" } -} \ No newline at end of file +} From b86e2a73a96d587b109279f02bed8a1cb3064903 Mon Sep 17 00:00:00 2001 From: winixt Date: Wed, 24 Nov 2021 11:37:28 +0800 Subject: [PATCH 3/3] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0request=20plugin?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/plugin/plugins/request.md | 23 +++++++------------- docs/zh/reference/plugin/plugins/request.md | 24 ++++++++------------- 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/docs/reference/plugin/plugins/request.md b/docs/reference/plugin/plugins/request.md index 92e3111c..9332ab33 100644 --- a/docs/reference/plugin/plugins/request.md +++ b/docs/reference/plugin/plugins/request.md @@ -41,7 +41,10 @@ export default { `base` 接口前缀。 -⚠️警告,这个字段将在下个版本废弃,推荐使用 [axios baseURL](https://github.com/axios/axios)。 +::: warning 即将废弃 +这个字段将在下个版本废弃,推荐使用 [axios baseURL](https://github.com/axios/axios)。 +::: + ### 运行时配置 在 `app.js` 中进行运行时配置。 @@ -139,22 +142,12 @@ request('/api/login', { }) ``` -### 请求节流 +### 请求节流(即将废弃) -```js -import {request} from '@fesjs/fes'; -request('/api/login', { - username: 'robby', - password: '123456' -}, { - throttle: 1000, // 1 秒内只能发起一次请求 -}).then((res) => { - // do something -}).catch((err) => { - // 处理异常 -}) -``` +::: warning 即将废弃 +因为 request 的请求总会有一个 promise 结果,要么成功,要么失败,和防抖、节流的语义不一致,防抖、节流只是函数的不执行 +::: ### 请求缓存 diff --git a/docs/zh/reference/plugin/plugins/request.md b/docs/zh/reference/plugin/plugins/request.md index 92e3111c..2bf13c29 100644 --- a/docs/zh/reference/plugin/plugins/request.md +++ b/docs/zh/reference/plugin/plugins/request.md @@ -41,7 +41,10 @@ export default { `base` 接口前缀。 -⚠️警告,这个字段将在下个版本废弃,推荐使用 [axios baseURL](https://github.com/axios/axios)。 +::: warning 即将废弃 +这个字段将在下个版本废弃,推荐使用 [axios baseURL](https://github.com/axios/axios)。 +::: + ### 运行时配置 在 `app.js` 中进行运行时配置。 @@ -139,22 +142,13 @@ request('/api/login', { }) ``` -### 请求节流 +### 请求节流(即将废弃) -```js -import {request} from '@fesjs/fes'; -request('/api/login', { - username: 'robby', - password: '123456' -}, { - throttle: 1000, // 1 秒内只能发起一次请求 -}).then((res) => { - // do something -}).catch((err) => { - // 处理异常 -}) -``` +::: warning 即将废弃 +因为 request 的请求总会有一个 promise 结果,要么成功,要么失败,和防抖、节流的语义不一致,防抖、节流只是函数的不执行 +::: + ### 请求缓存