Skip to content

Commit c90b0bf

Browse files
authored
feat: ✨ vue restore to replace vue-demi
feat: vue restore to replace vue-demi
2 parents 62e8f20 + c1da16d commit c90b0bf

File tree

56 files changed

+60
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+60
-73
lines changed

packages/hooks/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
"marked": "^4.0.17",
5454
"qs": "^6.11.0",
5555
"query-string": "^7.1.1",
56-
"screenfull": "^5.0.0",
57-
"vue-demi": "^0.13.11"
56+
"screenfull": "^5.0.0"
57+
},
58+
"peerDependencies": {
59+
"vue": "^3.2.25"
5860
},
5961
"repository": "https://github.com/InhiblabCore/vue-hooks-plus",
6062
"homepage": "https://github.com/InhiblabCore/vue-hooks-plus",

packages/hooks/src/createUseStorageState/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-empty */
2-
import { unref, ref, Ref, UnwrapRef, watchEffect } from 'vue-demi'
2+
import { unref, ref, Ref, UnwrapRef, watchEffect } from 'vue'
33

44
export interface IFuncUpdater<T> {
55
(previousState?: T): T

packages/hooks/src/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module '*.vue' {
2-
import { DefineComponent } from 'vue-demi'
2+
import { DefineComponent } from 'vue'
33
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
44
const component: DefineComponent<{}, {}, any>
55
export default component

packages/hooks/src/useCookieState/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Cookies from 'js-cookie'
2-
import { ref } from 'vue-demi'
2+
import { ref } from 'vue'
33
import { isFunction } from '../utils/isFunction'
44

55
export type UseCookieStateType = string | undefined

packages/hooks/src/useCounter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ref, ref } from 'vue-demi'
1+
import { Ref, ref } from 'vue'
22
import { isNumber } from '../utils'
33

44
export interface UseCounterOptions {

packages/hooks/src/useDarkMode/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { watchEffect, computed, ComputedRef } from 'vue-demi'
1+
import { watchEffect, computed, ComputedRef } from 'vue'
22
import useLocalStorageState from '../useLocalStorageState'
33

44
import useMedia from '../useMedia'

packages/hooks/src/useDrag/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ref } from 'vue-demi'
1+
import { ref } from 'vue'
22
import type { BasicTarget } from '../utils/domTarget'
33
import { getTargetElement } from '../utils/domTarget'
44
import useEffectWithTarget from '../utils/useEffectWithTarget'

packages/hooks/src/useDrop/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BasicTarget } from '../utils/domTarget'
22
import { getTargetElement } from '../utils/domTarget'
33
import useEffectWithTarget from '../utils/useEffectWithTarget'
4-
import { ref } from 'vue-demi'
4+
import { ref } from 'vue'
55

66
export interface UseDropOptions {
77
/**

packages/hooks/src/useEventEmitter/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import _ from 'lodash'
2-
import { ref, watchEffect } from 'vue-demi'
2+
import { ref, watchEffect } from 'vue'
33

44
type SubscriptionParams<T = any> = {
55
params: T

packages/hooks/src/useEventEmitter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { watchEffect, computed, ref } from 'vue-demi'
1+
import { watchEffect, computed, ref } from 'vue'
22
import { EventEmitter, eventEmitterOverall } from './event'
33

44
export type UseEventEmitterType<T = void> = EventEmitter<T> | typeof eventEmitterOverall

0 commit comments

Comments
 (0)