Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update docs for vue 2.7 #432

Merged
merged 2 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.18.3
node-version: 16.15.1
- name: Intall
run: yarn install --frozen-lockfile
- name: Check format
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12.18.3
v16.15.1
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,29 @@ $ npm i vue-window-size@0.6.2

---

You can install v1 using the following command.
When using with vue-window-size v1 it depends on the [@vue/composition-api](https://github.com/vuejs/composition-api).
And requires Vue.js v2.6 or higher.
You can install v1 using the following command.

> note: v1.1.0 or later is for vue3 only

#### Vue.js v2.6.x

When using with vue-window-size v1.0.6 it depends on the [@vue/composition-api](https://github.com/vuejs/composition-api).
And requires Vue.js v2.6.

```bash
$ yarn add vue-window-size@1.0.6 @vue/composition-api
// or
$ npm i vue-window-size@1.0.6 @vue/composition-api
```

#### Vue.js v2.7.x

For Vue.js v2.7, please use vue-window-size v1.0.8 or higher.

```bash
$ yarn add vue-window-size@1.0.x @vue/composition-api
$ yarn add vue-window-size@1.0.x
// or
$ npm i vue-window-size@1.0.x @vue/composition-api
$ npm i vue-window-size@1.0.x
```

## Usage
Expand Down