Skip to content

Commit e5f74fb

Browse files
authored
feat!: deprecate alias exports in favor of original function names (#5009)
1 parent 42bc90d commit e5f74fb

File tree

17 files changed

+37
-43
lines changed

17 files changed

+37
-43
lines changed

packages/core/computedAsync/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,5 @@ export function computedAsync<T>(
160160
}
161161
}
162162

163-
// alias
164-
export { computedAsync as asyncComputed }
163+
/** @deprecated use `computedAsync` instead */
164+
export const asyncComputed = computedAsync

packages/core/onClickOutside/directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ export const vOnClickOutside: ObjectDirective<
3535
},
3636
}
3737

38-
// alias
39-
export { vOnClickOutside as VOnClickOutside }
38+
/** @deprecated use `vOnClickOutside` instead */
39+
export const VOnClickOutside = vOnClickOutside

packages/core/onLongPress/directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ export const vOnLongPress: ObjectDirective<
2121
},
2222
}
2323

24-
// alias
25-
export { vOnLongPress as VOnLongPress }
24+
/** @deprecated use `vOnLongPress` instead */
25+
export const VOnLongPress = vOnLongPress

packages/math/logicAnd/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export function logicAnd(...args: MaybeRefOrGetter<any>[]): ComputedRef<boolean>
1212
return computed(() => args.every(i => toValue(i)))
1313
}
1414

15-
// alias
16-
export { logicAnd as and }
15+
/** @deprecated use `logicAnd` instead */
16+
export const and = logicAnd

packages/math/logicNot/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export function logicNot(v: MaybeRefOrGetter<any>): ComputedRef<boolean> {
1212
return computed(() => !toValue(v))
1313
}
1414

15-
// alias
16-
export { logicNot as not }
15+
/** @deprecated use `logicNot` instead */
16+
export const not = logicNot

packages/math/logicOr/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export function logicOr(...args: MaybeRefOrGetter<any>[]): ComputedRef<boolean>
1212
return computed(() => args.some(i => toValue(i)))
1313
}
1414

15-
// alias
16-
export { logicOr as or }
15+
/** @deprecated use `logicOr` instead */
16+
export const or = logicOr

packages/shared/computedEager/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ export function computedEager<T>(fn: () => T, options?: ComputedEagerOptions): C
3131
return readonly(result)
3232
}
3333

34-
// alias
35-
export { computedEager as eagerComputed }
34+
/** @deprecated use `computedEager` instead */
35+
export const eagerComputed = computedEager

packages/shared/computedWithControl/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ export function computedWithControl<T, S>(
7575
return result
7676
}
7777

78-
// alias
79-
export { computedWithControl as controlledComputed }
78+
/** @deprecated use `computedWithControl` instead */
79+
export const controlledComputed = computedWithControl

packages/shared/reactify/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,5 @@ export function reactify<T extends AnyFn, K extends boolean = true>(fn: T, optio
3636
} as any
3737
}
3838

39-
// alias
40-
export {
41-
reactify as createReactiveFn,
42-
}
39+
/** @deprecated use `reactify` instead */
40+
export const createReactiveFn = reactify

packages/shared/refAutoReset/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ export function refAutoReset<T>(defaultValue: MaybeRefOrGetter<T>, afterMs: Mayb
4343
})
4444
}
4545

46-
// alias
47-
export { refAutoReset as autoResetRef }
46+
/** @deprecated use `refAutoReset` instead */
47+
export const autoResetRef = refAutoReset

0 commit comments

Comments
 (0)