You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
--- -->
9
9
10
+
## 1.0.0-dev.28
11
+
12
+
_2020-04-13_
13
+
14
+
## Breaking change
15
+
16
+
-[vue-composable/web](https://www.npmjs.com/package/@vue-composable/web) and [vue-composable/core](https://www.npmjs.com/package/@vue-composable/core) are deprecated
17
+
18
+
## Vue3
19
+
20
+
- Developing for vue-next first, with the same code base
This version is `alpha` with support for the vue3 ([vue-next](https://github.com/vuejs/vue-next))
12
-
13
-
> Check webpack [vue3 example](https://github.com/pikax/vue-composable/tree/vue3/examples/vue-next-webpack-preview-master) or [CodeSandbox](https://codesandbox.io/s/vue-composable-next-6m5et)
14
-
15
9
## Introduction
16
10
17
11
Use Axios library with the [composition-api](https://github.com/vuejs/composition-api)
18
12
13
+
# Vue 3
14
+
15
+
[Vue3](https://github.com/vuejs/vue-next) aka [vue-next](https://github.com/vuejs/vue-next) is supported on the [@next](https://www.npmjs.com/package/vue-composable/v/next)
100% typescript based composable components and full type support out-of-box.
12
15
13
-
# Vue 3
16
+
Built for [vue-next](https://github.com/vuejs/vue-next) and [composition-api](https://github.com/vuejs/composition-api)
14
17
15
-
This version is `alpha` with support for the vue3 ([vue-next](https://github.com/vuejs/vue-next))
18
+
This library aim is to be one stop shop for many real-world composable functions, with aggressive tree-shaking to keep it light on your end code.
16
19
17
-
> Check webpack [vue3 example](https://github.com/pikax/vue-composable/tree/vue3/examples/vue-next-webpack-preview-master) or [CodeSandbox](https://codesandbox.io/s/vue-composable-next-6m5et)
20
+
# Vue 3
18
21
19
-
## Introduction
22
+
[Vue3](https://github.com/vuejs/vue-next) aka [vue-next](https://github.com/vuejs/vue-next) is supported on the [@next](https://www.npmjs.com/package/vue-composable/v/next)
20
23
21
-
`vue-composable` is out-of-box ready to use the brand new [Vue 3](https://github.com/vuejs/vue-next)[composition-api](https://vue-composition-api-rfc.netlify.com/) generic components.
24
+
## Installing
22
25
23
-
100% typescript based composable components and full type support out-of-box.
26
+
```bash
27
+
# @vue/composition-api
24
28
25
-
This library aim is to be one stop shop for many real-world composable functions, with aggressive tree-shaking to keep it light on your end code.
29
+
# install with yarn
30
+
yarn add @vue/composition-api vue-composable
26
31
27
-
[vue-composable](https://www.npmjs.com/package/vue-composable) is composed by two package [@vue-composable/core](./packages/core) and [@vue-composable/web](./packages/web).
32
+
# install with npm
33
+
npm install @vue/composition-api vue-composable
28
34
29
-
-[@vue-composable/core](./packages/core): contains helpers composables, such as Promise and Pagination.
-[Promise](https://pikax.me/vue-composable/composable/promise/promise) - `Promise` reactive resolve and reject
108
+
-[promiseLazy](https://pikax.me/vue-composable/composable/promise/promiseLazy) - Sugar for [usePromise](https://pikax.me/vue-composable/composable/promise/promise)`lazy:true`
105
109
-[Cancellable Promise](https://pikax.me/vue-composable/composable/promise/cancellablePromise) - Allow to cancel promises
106
110
-[Retry](https://pikax.me/vue-composable/composable/promise/retry) - Provides functionality to retry `promise`
Currently only works with [composition-api](https://github.com/vuejs/composition-api), when [Vue3](https://github.com/vuejs/vue-next) gets release I will update to use the new reactive system (using [@vue/reactivity](https://github.com/vuejs/vue-next/tree/master/packages/reactivity))
136
-
137
-
For [vue-next](https://github.com/vuejs/vue-next) support please check [@next](https://www.npmjs.com/package/vue-composable/v/next)
138
-
139
-
## Usage
140
-
141
-
```vue
142
-
<template>
143
-
<div>
144
-
<p>page {{ currentPage }} of {{ lastPage }}</p>
145
-
<p>
146
-
<button @click="prev">prev</button>
147
-
<button @click="next">next</button>
148
-
</p>
149
-
<ul>
150
-
<li v-for="n in result" :key="n">
151
-
{{ n }}
152
-
</li>
153
-
</ul>
154
-
</div>
155
-
</template>
156
-
157
-
<script>
158
-
import { useArrayPagination } from "vue-composable";
159
-
160
-
export default {
161
-
setup() {
162
-
const array = new Array(1000).fill(0).map((_, i) => i);
This is a monorepo project, please check [packages](packages/)
175
137
176
138
## Contributing
177
139
@@ -181,7 +143,24 @@ Tests and Documentation are the most important things for me, because good docum
181
143
182
144
I really appreciate some tweaks or changes on how the documentation is displayed and how to make it easier to read.
183
145
184
-
> I really need an logo for this project, if you have a good idea for a logo, please enter in contact with me, you can find me on the `Vue discord : @pikax`
146
+
> I really need an logo for this project, if you have a good idea for a logo, please enter in contact with me, you can find me on the `Vue discord : @pikax
0 commit comments