build: bump new versions
Publish to NPM / Check version changes and publish (push) Failing after 10m34s
Publish to NPM / Check version changes and publish (push) Failing after 10m34s
This commit is contained in:
@@ -79,7 +79,7 @@ export type UseComputedAsyncReturn<T>
|
||||
* return res.json();
|
||||
* }, undefined, { lazy: true });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function computedAsync<T>(
|
||||
evaluationCallback: (onCancel: AsyncComputedOnCancel) => T | Promise<T>,
|
||||
@@ -178,6 +178,6 @@ export function computedAsync<T>(
|
||||
* @category Reactivity
|
||||
* @description Alias for {@link computedAsync}.
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export const asyncComputed = computedAsync;
|
||||
|
||||
@@ -27,7 +27,7 @@ export type ComputedEagerReturn<T>
|
||||
* // Defer recomputation until after the component update flush
|
||||
* const total = computedEager(() => a.value + b.value, { flush: 'post' });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function computedEager<T>(getter: () => T, options: ComputedEagerOptions = {}): ComputedEagerReturn<T> {
|
||||
const result = shallowRef<T>();
|
||||
@@ -47,6 +47,6 @@ export function computedEager<T>(getter: () => T, options: ComputedEagerOptions
|
||||
* @category Reactivity
|
||||
* @description Alias for {@link computedEager}.
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export const eagerComputed = computedEager;
|
||||
|
||||
@@ -78,7 +78,7 @@ export type ComputedWithControlRef<T>
|
||||
* set: (v) => { base.value = v / 2; },
|
||||
* });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function computedWithControl<T>(
|
||||
source: WatchSource | MultiWatchSources,
|
||||
@@ -157,6 +157,6 @@ function noopTrigger(): void {}
|
||||
* @category Reactivity
|
||||
* @description Alias of {@link computedWithControl}.
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export const controlledComputed = computedWithControl;
|
||||
|
||||
@@ -47,7 +47,7 @@ export type ExtendRefReturn<R extends Ref<unknown>, Extend extends object, Unwra
|
||||
* const extended = extendRef(ref(0), { inner: ref(1) }, { unwrap: false });
|
||||
* extended.inner.value; // 1
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function extendRef<R extends Ref<unknown>, Extend extends object, Options extends ExtendRefOptions<false>>(ref: R, extend: Extend, options: Options): R & ShallowUnwrapRef<Extend>;
|
||||
export function extendRef<R extends Ref<unknown>, Extend extends object, Options extends ExtendRefOptions>(ref: R, extend: Extend, options?: Options): R & Extend;
|
||||
|
||||
@@ -34,7 +34,7 @@ export type ReactiveComputedReturn<T extends object>
|
||||
* obj.name; // 'a'
|
||||
* obj.name = 'b'; // writes through to name.value
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function reactiveComputed<T extends object>(
|
||||
getter: ComputedGetter<T>,
|
||||
|
||||
@@ -60,7 +60,7 @@ export function reactiveOmit<T extends object>(
|
||||
* // predicate: drop every boolean field
|
||||
* const noFlags = reactiveOmit(state, (value) => typeof value === 'boolean');
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function reactiveOmit<T extends object, K extends keyof T>(
|
||||
obj: T,
|
||||
|
||||
@@ -40,7 +40,7 @@ export type ReactivePickPredicate<T extends object>
|
||||
* // predicate form — keep only numeric values
|
||||
* const filtered = reactivePick(state, (value) => typeof value === 'number');
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function reactivePick<T extends object, K extends keyof T>(
|
||||
obj: T,
|
||||
|
||||
@@ -24,7 +24,7 @@ export type RefAutoResetReturn<T> = Ref<T>;
|
||||
* const fallback = ref('idle');
|
||||
* const status = refAutoReset(fallback, delay);
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function refAutoReset<T>(
|
||||
defaultValue: MaybeRefOrGetter<T>,
|
||||
|
||||
@@ -30,7 +30,7 @@ export type RefDebouncedReturn<T> = Readonly<Ref<T>>;
|
||||
* // Guarantee the debounced value advances at least every 1000ms
|
||||
* const debounced = refDebounced(input, 300, { maxWait: 1000 });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function refDebounced<T>(
|
||||
source: MaybeRefOrGetter<T>,
|
||||
|
||||
@@ -33,7 +33,7 @@ export type RefDefaultReturn<T> = WritableComputedRef<T>;
|
||||
* fallback.value = 'visitor';
|
||||
* user.value; // 'visitor'
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function refDefault<T>(
|
||||
source: Ref<T | null | undefined>,
|
||||
|
||||
@@ -26,7 +26,7 @@ export type RefThrottledReturn<T = unknown> = Ref<T>;
|
||||
* const scrollY = ref(0);
|
||||
* const throttledY = refThrottled(scrollY, 100, true, false);
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function refThrottled<T = unknown>(
|
||||
source: MaybeRefOrGetter<T>,
|
||||
|
||||
@@ -87,7 +87,7 @@ export type RefWithControlReturn<T>
|
||||
* });
|
||||
* positive.value = -1; // rejected, stays 1
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function refWithControl<T>(
|
||||
initial: T,
|
||||
@@ -154,6 +154,6 @@ export function refWithControl<T>(
|
||||
* @category Reactivity
|
||||
* @description Alias of {@link refWithControl}.
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export const controlledRef = refWithControl;
|
||||
|
||||
@@ -89,7 +89,7 @@ const runDirect: IgnoredUpdater = updater => updater();
|
||||
* transform: { ltr: value => String(value) },
|
||||
* });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function syncRef<L, R = L>(
|
||||
left: Ref<L>,
|
||||
|
||||
@@ -33,7 +33,7 @@ const OWN_PROPERTY_DESCRIPTOR: PropertyDescriptor = {
|
||||
* obj.value = { name: 'b' };
|
||||
* r.name; // 'b'
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function toReactive<T extends object>(
|
||||
objectRef: MaybeRef<T>,
|
||||
|
||||
@@ -75,7 +75,7 @@ export function cloneFnDefault<T>(source: T): T {
|
||||
* const { cloned, sync } = useCloned(source, { manual: true });
|
||||
* // cloned only updates when sync() is called
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function useCloned<T>(
|
||||
source: MaybeRefOrGetter<T>,
|
||||
|
||||
@@ -72,7 +72,7 @@ export interface UseDebounceFnReturn<T extends AnyFunction> {
|
||||
* save.flush();
|
||||
* if (save.isPending.value) {}
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function useDebounceFn<T extends AnyFunction>(
|
||||
fn: T,
|
||||
|
||||
@@ -26,7 +26,7 @@ export type UsePreviousOptions = Pick<WatchOptions, 'deep' | 'flush'>;
|
||||
* const state = reactive({ n: 1 });
|
||||
* const prev = usePrevious(() => ({ ...state }), undefined, { deep: true });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function usePrevious<T>(value: MaybeRefOrGetter<T>, initialValue: T, options?: UsePreviousOptions): Readonly<ShallowRef<T>>;
|
||||
export function usePrevious<T>(value: MaybeRefOrGetter<T>, initialValue?: undefined, options?: UsePreviousOptions): Readonly<ShallowRef<T | undefined>>;
|
||||
|
||||
@@ -98,7 +98,7 @@ function normalizeOptions(
|
||||
* const save = useThrottleFn(persist, { delay: 1000, trailing: true });
|
||||
* save.cancel();
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function useThrottleFn<T extends AnyFunction>(
|
||||
fn: T,
|
||||
|
||||
@@ -52,7 +52,7 @@ export interface UseToNumberOptions {
|
||||
* // custom converter and clamping
|
||||
* const n = useToNumber(input, { method: v => Math.round(+v), min: 0, max: 100 });
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function useToNumber(
|
||||
value: MaybeRefOrGetter<number | string>,
|
||||
|
||||
@@ -17,7 +17,7 @@ import type { ComputedRef, MaybeRefOrGetter } from 'vue';
|
||||
* // works with getters
|
||||
* const label = useToString(() => `item-${id.value}`);
|
||||
*
|
||||
* @since 0.0.15
|
||||
* @since 0.0.14
|
||||
*/
|
||||
export function useToString(
|
||||
value: MaybeRefOrGetter<unknown>,
|
||||
|
||||
Reference in New Issue
Block a user