Skip to content

Commit dc6de8b

Browse files
committed
chore: releasing version 0.0.4
1 parent 9da0f0f commit dc6de8b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-subscription",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "A simple ⭐️ & type-safe 🔥 replacement for EventBus in Vue 💚.",
55
"scripts": {
66
"dev": "vite",

scripts/release/index.cjs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ async function gitUpdate() {
66
const releaseData = JSON.parse(fs.readFileSync(releaseFile, { encoding: 'utf8' }));
77
const version = releaseData.version;
88

9+
releaseData.onGoing = false;
10+
fs.writeFileSync(releaseFile, JSON.stringify(releaseData, null, 2));
11+
912
execWithSync(`git add .`);
1013
execWithSync(`git commit -m "chore: releasing version ${version}"`);
1114
execWithSync(`git tag ${version}`);
12-
// execWithSync(`git push origin ${version}`);
15+
execWithSync(`git push origin ${version}`);
1316

1417
return true;
1518
} catch (e) {
@@ -19,14 +22,10 @@ async function gitUpdate() {
1922

2023
async function npmRelease() {
2124
try {
22-
const releaseFile = path.resolve('scripts/release/releaseData.json');
23-
const releaseData = JSON.parse(fs.readFileSync(releaseFile, { encoding: 'utf8' }));
24-
2525
execWithSync(`npm version`);
2626
execWithSync(`npm publish`);
2727

28-
releaseData.onGoing = false;
29-
return fs.writeFileSync(releaseFile, JSON.stringify(releaseData, null, 2));
28+
return true;
3029
} catch (e) {
3130
console.error(e);
3231
}

scripts/release/releaseData.json

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

src/subscription.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { dynamicallyExecuteFunction } from './functions/helpers';
22
import { ref, shallowRef, readonly } from 'vue';
33

44
/**
5-
* It takes a value and returns an object with a value property that is a shallowRef of the value.
5+
* It takes a value and returns an object with a value property that is a shallowRef/ref of the value.
66
* passed in, and Subscribers(function) are added to a list to be executed when the value is changed.
77
* @param {T} value - T - The initial value of the subscription.
8-
* @returns A function that returns an object with a shallow reactive value, a subscriber and a
8+
* @param {boolean} deep - T - If it should be deep reactivity. By default it is Shallow.
9+
* @returns A function that returns an object with a shallow/deep reactive value, a subscriber and a
910
* few extra methods.
1011
*/
1112
export function useSubscription<T>(value: T, deep = false) {

0 commit comments

Comments
 (0)