From d4faf1defa5e9882676922dda4086f38a766b794 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Mar 2021 09:58:52 +0000 Subject: [PATCH] feat: upgrade @vue/composition-api to rc3 * `createRef` utility and more reactivity types now exposed to align with vue3 --- package.json | 2 +- src/entrypoint.ts | 5 +++++ yarn.lock | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ea5ab9f8..63a3e058 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "watch": "yarn compile -w" }, "dependencies": { - "@vue/composition-api": "1.0.0-rc.2", + "@vue/composition-api": "1.0.0-rc.3", "defu": "^3.2.2", "ufo": "^0.6.7", "upath": "^2.0.1" diff --git a/src/entrypoint.ts b/src/entrypoint.ts index b97ab3cb..85be7b03 100644 --- a/src/entrypoint.ts +++ b/src/entrypoint.ts @@ -19,7 +19,9 @@ export type { App, ComponentInstance, ComponentRenderProxy, + ComputedGetter, ComputedRef, + ComputedSetter, Data, DeepReadonly, ExtractDefaultPropTypes, @@ -32,6 +34,7 @@ export type { SetupContext, SetupFunction, ShallowUnwrapRef, + ToRefs, UnwrapRef, VueWatcher, WatchCallback, @@ -40,12 +43,14 @@ export type { WatchOptionsBase, WatchSource, WatchStopHandle, + WritableComputedOptions, WritableComputedRef, } from '@vue/composition-api' export { computed, createApp, + createRef, customRef, defineAsyncComponent, del, diff --git a/yarn.lock b/yarn.lock index 9f0e780c..01d89123 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2523,10 +2523,10 @@ optionalDependencies: prettier "^1.18.2" -"@vue/composition-api@1.0.0-rc.2": - version "1.0.0-rc.2" - resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.0.0-rc.2.tgz#9d90e507cf71634aad51ab878b141c2a4739d523" - integrity sha512-R4XEvT+qXiT/lnsLzqhjkR/L/ALuNeeQPZqredpLduGKwZtmt2l5I3kT1W+c/157hrY732eFlsPUGz/q9vFaYg== +"@vue/composition-api@1.0.0-rc.3": + version "1.0.0-rc.3" + resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.0.0-rc.3.tgz#5174632fdda888f4f04bbaa5263cf01e34ba3fc2" + integrity sha512-/N/yCgIeFwAdsChML1RAke7YT5v/LYnPOyrz2zU+fE6xx2MpZfWn+DD2wCf3Vre659AvuXA8zzKLlRaFzW75XQ== dependencies: tslib "^2.1.0"