Skip to content

Commit e1d300d

Browse files
authored
chore: release v0.6.0 (#349)
1 parent 39e99c2 commit e1d300d

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# 0.6.0
2+
3+
Great thanks to @pikax for #311, making most of the APIs better aligned with the latest vue-next.
4+
5+
## BREAKING CHANGE
6+
7+
- The `lazy` option of `watch` has been replaced by the opposite `immediate` option, which defaults to false. (It's ignored when using the effect signature). [more details](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md#breaking-changes-12) (#266)
8+
- Rename `nonReactive` to `markRaw`
9+
- `UnwrapRef` types from `vue-next` this can cause some incompatibilities.
10+
11+
## Bug Fixes
12+
13+
- Added missing reactivity API from vue-next, #311, @pikax
14+
- Fix return type of `toRefs`, #315
15+
- Fix incorrect ref typing, #344, @antfu
16+
- Binding context vm when using function without parentheses, #148, @pikax
17+
- **computed**: destroy helper vm of computed to prevent memleak, #277, @LinusBorg
18+
19+
## Features
20+
21+
- Added `unref`(#309), `isReactive` (#327), `toRef` (#313), `UnwrapRef` (#247)
22+
- Added `shallowReactive`, `shallowRef`
23+
- Added `toRaw`
24+
- `getCurrentInstance` available on the lifecycle hooks (`onMounted`, etc)
25+
- `getCurrentInstance` returns `undefined` when called outside setup instead of throwing exception
26+
27+
## Types
28+
- Align reactivity types with `vue-next`
29+
30+
131
# 0.5.0
232

333
- New: `watchEffect` function, lingin up with the latest version of the RFC ([RFC docs](https://vue-composition-api-rfc.netlify.com/api.html#watcheffect)) (#275)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/composition-api",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "Provide logic composition capabilities for Vue.",
55
"keywords": [
66
"vue",

0 commit comments

Comments
 (0)