diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 6e13b0af64..506a5e4aeb 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,7 @@ diff --git a/.github/PULL_REQUEST_TEMPLATE/pr_cn.md b/.github/PULL_REQUEST_TEMPLATE/pr_cn.md index 06e1bf11dc..d12e2a99c4 100644 --- a/.github/PULL_REQUEST_TEMPLATE/pr_cn.md +++ b/.github/PULL_REQUEST_TEMPLATE/pr_cn.md @@ -1,7 +1,7 @@ diff --git a/README.md b/README.md index 4a7bddd296..11ed527384 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ A high-quality & reliable React Hooks library. -[![NPM version next][image-1]][1] +[![NPM version][image-1]][1] [![NPM downloads][image-2]][2] -![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks@next/dist/ahooks.js?label=gzip%20size&compression=gzip) +![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks/dist/ahooks.js?label=gzip%20size&compression=gzip) ![GitHub](https://img.shields.io/github/license/alibaba/hooks) English | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh-CN.md) @@ -21,8 +21,8 @@ English | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh- ## 📚 Documentation -- [English](https://ahooks-next.surge.sh/) -- [中文](https://ahooks-next.surge.sh/zh-CN/) +- [English](https://ahooks.js.org/) +- [中文](https://ahooks.js.org/zh-CN/) ## ✨ Features @@ -36,9 +36,9 @@ English | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh- ## 📦 Install ```bash -$ npm install --save ahooks@next +$ npm install --save ahooks # or -$ yarn add ahooks@next +$ yarn add ahooks ``` ## 🔨 Usage diff --git a/README.zh-CN.md b/README.zh-CN.md index 40b6d73de1..8beda0bc93 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -8,9 +8,9 @@ 一套高质量可靠的 React Hooks 库 -[![NPM version next][image-1]][1] +[![NPM version][image-1]][1] [![NPM downloads][image-2]][2] -![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks@next/dist/ahooks.js?label=gzip%20size&compression=gzip) +![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks/dist/ahooks.js?label=gzip%20size&compression=gzip) ![GitHub](https://img.shields.io/github/license/alibaba/hooks) [English](https://github.com/alibaba/hooks/blob/master/README.md) | 简体中文 @@ -21,8 +21,8 @@ ## 📚 文档 -- [English](https://ahooks-next.surge.sh/) -- [中文](https://ahooks-next.surge.sh/zh-CN/) +- [English](https://ahooks.js.org/) +- [中文](https://ahooks.js.org/zh-CN/) ## ✨ 特性 @@ -36,9 +36,9 @@ ## 📦 安装 ```bash -$ npm install --save ahooks@next +$ npm install --save ahooks # or -$ yarn add ahooks@next +$ yarn add ahooks ``` ## 🔨 使用 diff --git a/config/config.ts b/config/config.ts index 2ec4591125..335359b441 100644 --- a/config/config.ts +++ b/config/config.ts @@ -63,7 +63,7 @@ export default { ], }, { title: '更新日志', path: 'https://github.com/alibaba/hooks/releases' }, - { title: '国内镜像', path: 'https://ahooks-next.gitee.io/zh-CN' }, + { title: '国内镜像', path: 'https://ahooks.gitee.io/zh-CN' }, { title: 'GitHub', path: 'https://github.com/alibaba/hooks' }, ], 'en-US': [ @@ -83,7 +83,7 @@ export default { ], }, { title: 'Releases', path: 'https://github.com/alibaba/hooks/releases' }, - { title: '国内镜像', path: 'https://ahooks-next.gitee.io/zh-CN' }, + { title: '国内镜像', path: 'https://ahooks.gitee.io/zh-CN' }, { title: 'GitHub', path: 'https://github.com/alibaba/hooks' }, ], }, diff --git a/docs/guide/index.en-US.md b/docs/guide/index.en-US.md index ffcb934b05..7dd9910ece 100644 --- a/docs/guide/index.en-US.md +++ b/docs/guide/index.en-US.md @@ -14,9 +14,9 @@ ahooks, pronounced [eɪ hʊks], is a high-quality and reliable React Hooks libra ## Install ```bash -$ npm install --save ahooks@next +$ npm install --save ahooks # or -$ yarn add ahooks@next +$ yarn add ahooks ``` ## Usage diff --git a/docs/guide/index.zh-CN.md b/docs/guide/index.zh-CN.md index a175d33111..76ba512075 100644 --- a/docs/guide/index.zh-CN.md +++ b/docs/guide/index.zh-CN.md @@ -14,9 +14,9 @@ ahooks,发音 [eɪ hʊks],是一套高质量可靠的 React Hooks 库。在 ## 安装 ```bash -$ npm install --save ahooks@next +$ npm install --save ahooks # or -$ yarn add ahooks@next +$ yarn add ahooks ``` ## 使用 diff --git a/docs/guide/upgrade.en-US.md b/docs/guide/upgrade.en-US.md index 12b20296e3..1a4c1a03a9 100644 --- a/docs/guide/upgrade.en-US.md +++ b/docs/guide/upgrade.en-US.md @@ -17,7 +17,7 @@ We have released the `ahooks-v2` package, you can install v2 and v3 dependencies ```bash npm install ahooks-v2 --save -npm install ahooks@next --save +npm install ahooks --save ``` ## New useRequest diff --git a/docs/guide/upgrade.zh-CN.md b/docs/guide/upgrade.zh-CN.md index 6471f8d95f..32fd36df76 100644 --- a/docs/guide/upgrade.zh-CN.md +++ b/docs/guide/upgrade.zh-CN.md @@ -17,7 +17,7 @@ ```bash npm install ahooks-v2 --save -npm install ahooks@next --save +npm install ahooks --save ``` ## 全新的 useRequest diff --git a/docs/index.en-US.md b/docs/index.en-US.md index 6566914816..ea1e65a901 100644 --- a/docs/index.en-US.md +++ b/docs/index.en-US.md @@ -11,11 +11,11 @@ hero: footer: Open-source MIT Licensed | Copyright © 2019-present
Powered by [dumi](https://d.umijs.org) --- -[![NPM version next][image-1]][1] +[![NPM version][image-1]][1]   [![NPM downloads][image-2]][2]   -![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks@next/dist/ahooks.js?label=gzip%20size&compression=gzip) +![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks/dist/ahooks.js?label=gzip%20size&compression=gzip)   ![GitHub](https://img.shields.io/github/license/alibaba/hooks) @@ -31,9 +31,9 @@ footer: Open-source MIT Licensed | Copyright © 2019-present
Powered by [du ## 📦 Install ```bash -$ npm install --save ahooks@next +$ npm install --save ahooks # or -$ yarn add ahooks@next +$ yarn add ahooks ``` ## 🔨 Usage diff --git a/docs/index.zh-CN.md b/docs/index.zh-CN.md index 60b1aaeeb0..0fc1882f21 100644 --- a/docs/index.zh-CN.md +++ b/docs/index.zh-CN.md @@ -11,11 +11,11 @@ hero: footer: Open-source MIT Licensed | Copyright © 2019-present
Powered by [dumi](https://d.umijs.org) --- -[![NPM version next][image-1]][1] +[![NPM version][image-1]][1]   [![NPM downloads][image-2]][2]   -![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks@next/dist/ahooks.js?label=gzip%20size&compression=gzip) +![gzip size](https://img.badgesize.io/https:/unpkg.com/ahooks/dist/ahooks.js?label=gzip%20size&compression=gzip)   ![GitHub](https://img.shields.io/github/license/alibaba/hooks) @@ -31,9 +31,9 @@ footer: Open-source MIT Licensed | Copyright © 2019-present
Powered by [du ## 📦 安装 ```bash -$ npm install --save ahooks@next +$ npm install --save ahooks # or -$ yarn add ahooks@next +$ yarn add ahooks ``` ## 🔨 使用 diff --git a/package.json b/package.json index 85553c3056..f5fb986f35 100755 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "test": "jest", "lint": "eslint --ignore-pattern **/__tests__/* --ignore-pattern **/demo/* \"packages/*/src/**/*.{ts,tsx}\"", "build:doc": "dumi build", - "pub:doc-surge": "surge ./dist --domain ahooks-next.surge.sh", - "pub:doc-gitee": "cd ./dist && rm -rf .git && touch .spa && touch .nojekyll && git init && git remote add origin git@gitee.com:ahooks/ahooks-next.git && git add -A && git commit -m \"publish docs\" && git push origin master -f && echo https://gitee.com/ahooks/ahooks-next/pages", + "pub:doc-surge": "surge ./dist --domain ahooks.surge.sh", + "pub:doc-gitee": "cd ./dist && rm -rf .git && touch .spa && touch .nojekyll && git init && git remote add origin git@gitee.com:ahooks/ahooks.git && git add -A && git commit -m \"publish docs\" && git push origin master -f && echo https://gitee.com/ahooks/ahooks/pages", "pub:doc": "yarn run build:doc && yarn run pub:doc-surge && yarn run pub:doc-gitee", "pub": "yarn run build && lerna publish", "pub:beta": "yarn run build && lerna publish --dist-tag beta" diff --git a/packages/use-url-state/use-url-state.en-US.md b/packages/use-url-state/use-url-state.en-US.md index ca86da2772..168baf0295 100644 --- a/packages/use-url-state/use-url-state.en-US.md +++ b/packages/use-url-state/use-url-state.en-US.md @@ -12,7 +12,7 @@ A hook that store the state into url query. ## Install ```bash -npm i @ahooksjs/use-url-state@next -S +npm i @ahooksjs/use-url-state -S ``` > This hook relies on useLocation & useHistory & useNavigate from `react-router`, to use this hook, you need to ensure diff --git a/packages/use-url-state/use-url-state.zh-CN.md b/packages/use-url-state/use-url-state.zh-CN.md index 255531e47f..947d4536d4 100644 --- a/packages/use-url-state/use-url-state.zh-CN.md +++ b/packages/use-url-state/use-url-state.zh-CN.md @@ -12,7 +12,7 @@ group: ## 安装 ```bash -npm i @ahooksjs/use-url-state@next -S +npm i @ahooksjs/use-url-state -S ``` > 该 Hooks 基于 `react-router` 的 useLocation & useHistory & useNavigate 进行 query 管理,所以使用该 Hooks 之前,你需要保证