Skip to content

Commit 6fdef1f

Browse files
authored
Merge pull request #17 from srav001/1.0.4
1.0.4
2 parents 7d6309a + 7d4f78e commit 6fdef1f

File tree

3 files changed

+83
-83
lines changed

3 files changed

+83
-83
lines changed

package.json

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
11
{
2-
"name": "vue-subscription",
3-
"version": "1.0.2",
4-
"description": "A type-safe 🔥 & tiny ⭐️ super-charged ref ⚡️ / eventBus replacement in Vue 💚.",
5-
"keywords": [
6-
"web",
7-
"vue",
8-
"vuejs",
9-
"vue-js",
10-
"EventBus",
11-
"front-end",
12-
"subscriber",
13-
"observable",
14-
"subscription"
15-
],
16-
"scripts": {
17-
"dev": "vite",
18-
"preview": "vite preview",
19-
"build-only": "vite build",
20-
"type-check": "vue-tsc --noEmit",
21-
"lint": "node -e 'require(\"./scripts.cjs\").lint()'",
22-
"format": "node -e 'require(\"./scripts.cjs\").format()'",
23-
"build": "pnpm type-check && pnpm build-only",
24-
"pre-push": "pnpm format && pnpm lint && pnpm build",
25-
"release": "node -e 'require(\"./scripts.cjs\").release()'",
26-
"project-setup": "node -e 'require(\"./scripts.cjs\").projectSetup()'"
27-
},
28-
"type": "module",
29-
"main": "./dist/vue-subscription.umd.cjs",
30-
"module": "./dist/vue-subscription.js",
31-
"types": "./dist/index.d.ts",
32-
"exports": {
33-
".": {
34-
"import": "./dist/vue-subscription.js",
35-
"require": "./dist/vue-subscription.umd.cjs"
36-
}
37-
},
38-
"files": [
39-
"dist"
40-
],
41-
"repository": {
42-
"type": "git",
43-
"url": "git+https://github.com/srav001/vue-subscription.git"
44-
},
45-
"author": "",
46-
"license": "MIT",
47-
"bugs": {
48-
"url": "https://github.com/srav001/vue-subscription/issues"
49-
},
50-
"homepage": "https://github.com/srav001/vue-subscription#readme",
51-
"peerDependencies": {
52-
"vue": ">=^2.7.0 || ^3.0.0"
53-
},
54-
"devDependencies": {
55-
"@commitlint/cli": "^17.4.4",
56-
"@commitlint/config-conventional": "^17.4.4",
57-
"@total-typescript/ts-reset": "^0.3.7",
58-
"@types/node": "^18.14.2",
59-
"@typescript-eslint/eslint-plugin": "^5.54.0",
60-
"@typescript-eslint/parser": "^5.54.0",
61-
"@vitejs/plugin-vue": "^4.0.0",
62-
"@vue/eslint-config-prettier": "^7.1.0",
63-
"@vue/eslint-config-typescript": "^11.0.2",
64-
"@vue/tsconfig": "^0.1.3",
65-
"eslint": "^8.34.0",
66-
"eslint-plugin-sonarjs": "^0.18.0",
67-
"eslint-plugin-vue": "^9.9.0",
68-
"husky": "^8.0.3",
69-
"prettier": "^2.8.4",
70-
"typescript": "~4.9.4",
71-
"vite": "^4.1.4",
72-
"vite-plugin-dts": "^2.1.0",
73-
"vue": "^3.2.47",
74-
"vue-tsc": "^1.2.0"
75-
},
76-
"engines": {
77-
"node": ">=16.0.0",
78-
"pnpm": ">=6.0.0"
79-
}
80-
}
2+
"name": "vue-subscription",
3+
"version": "1.0.2",
4+
"description": "A type-safe 🔥 & tiny ⭐️ super-charged ref ⚡️ / eventBus replacement in Vue 💚.",
5+
"keywords": [
6+
"web",
7+
"vue",
8+
"vuejs",
9+
"vue-js",
10+
"EventBus",
11+
"front-end",
12+
"subscriber",
13+
"observable",
14+
"subscription"
15+
],
16+
"scripts": {
17+
"dev": "vite",
18+
"preview": "vite preview",
19+
"build-only": "vite build",
20+
"type-check": "vue-tsc --noEmit",
21+
"lint": "node -e 'require(\"./scripts.cjs\").lint()'",
22+
"format": "node -e 'require(\"./scripts.cjs\").format()'",
23+
"build": "pnpm type-check && pnpm build-only",
24+
"pre-push": "pnpm format && pnpm lint && pnpm build",
25+
"release": "node -e 'require(\"./scripts.cjs\").release()'",
26+
"project-setup": "node -e 'require(\"./scripts.cjs\").projectSetup()'"
27+
},
28+
"type": "module",
29+
"main": "./dist/vue-subscription.umd.cjs",
30+
"module": "./dist/vue-subscription.js",
31+
"types": "./dist/index.d.ts",
32+
"exports": {
33+
".": {
34+
"import": "./dist/vue-subscription.js",
35+
"require": "./dist/vue-subscription.umd.cjs"
36+
}
37+
},
38+
"files": [
39+
"dist"
40+
],
41+
"repository": {
42+
"type": "git",
43+
"url": "git+https://github.com/srav001/vue-subscription.git"
44+
},
45+
"author": "",
46+
"license": "MIT",
47+
"bugs": {
48+
"url": "https://github.com/srav001/vue-subscription/issues"
49+
},
50+
"homepage": "https://github.com/srav001/vue-subscription#readme",
51+
"peerDependencies": {
52+
"vue": ">=2.7"
53+
},
54+
"devDependencies": {
55+
"@commitlint/cli": "^17.4.4",
56+
"@commitlint/config-conventional": "^17.4.4",
57+
"@total-typescript/ts-reset": "^0.3.7",
58+
"@types/node": "^18.14.2",
59+
"@typescript-eslint/eslint-plugin": "^5.54.0",
60+
"@typescript-eslint/parser": "^5.54.0",
61+
"@vitejs/plugin-vue": "^4.0.0",
62+
"@vue/eslint-config-prettier": "^7.1.0",
63+
"@vue/eslint-config-typescript": "^11.0.2",
64+
"@vue/tsconfig": "^0.1.3",
65+
"eslint": "^8.34.0",
66+
"eslint-plugin-sonarjs": "^0.18.0",
67+
"eslint-plugin-vue": "^9.9.0",
68+
"husky": "^8.0.3",
69+
"prettier": "^2.8.4",
70+
"typescript": "~4.9.4",
71+
"vite": "^4.1.4",
72+
"vite-plugin-dts": "^2.1.0",
73+
"vue": "^3.2.47",
74+
"vue-tsc": "^1.2.0"
75+
},
76+
"engines": {
77+
"node": ">=16.0.0",
78+
"pnpm": ">=6.0.0"
79+
}
80+
}

scripts/release/releaseData.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"onGoing": false,
3-
"version": "1.0.2"
4-
}
2+
"onGoing": false,
3+
"version": "1.0.3"
4+
}

src/subscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function useSubscription<T, D extends boolean = false>(value: T, deep: D
5555
$read: readonly(_subRef),
5656

5757
/**
58-
* A Subscriber(function) is executed when the value is changed.
58+
* A Subscriber(function) is executed when the value has changed.
5959
* @param subscriber - type Subscriber = (val: T) => Promise<void> | void;
6060
*/
6161
$addSub(subscriber: Subscriber) {

0 commit comments

Comments
 (0)