Skip to content

Commit 46a82a8

Browse files
authored
Merge pull request #11 from srav001/srav001-patch-1
Srav001 patch 1
2 parents 120f1b1 + f524704 commit 46a82a8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vue-subscription
22

3-
A type-safe 🔥, tiny ⭐️ & fast ⚡️ super-charged ref / eventBus replacement in Vue 💚. Compatible with Vue 2 ( 2.7.0 and above ) and Vue 3. Provides ESM and Common JS exports.
3+
A type-safe 🔥 and tiny ⭐️ super-charged ref ⚡️ or eventBus replacement in Vue 💚. Compatible with Vue 2 ( 2.7.0 and above ) and Vue 3. Provides ESM and Common JS exports.
44

55
Find it on `npm` - https://www.npmjs.com/package/vue-subscription.
66

@@ -15,9 +15,9 @@ Find it on `npm` - https://www.npmjs.com/package/vue-subscription.
1515

1616
## Introduction
1717

18-
Only 1.26 kB or gzip: 0.63 kB in size, the [useSubscription](#tldr) composable takes an initial value and returns an object with a reactive value that is by default shallow and only deep when explicitly enabled. The value property - `$value is not automatically unwrapped in template`. In addition to the value property, also provides `explicit getter and setter` if you like more control over the state.
18+
Only 1.26 kB or gzip: 0.63 kB in size, the [useSubscription](#tldr) composable takes an initial value and returns an object with a reactive value that is by default shallow and only deep when explicitly enabled. The value property, `$value is not automatically unwrapped in template`. Additionally, it also provides `explicit getter and setter` if you like more control over the state.
1919

20-
The package also provides a simple way to create reactive subscriptions that can be used to observe changes to a value and execute a list of subscribers when the value changes. It also includes methods to mutate the value for complex objects and trigger subscribers manually if and when needed rarely. Check out the [usage](#usage) examples to learn more.
20+
The package also provides a simple way to create reactive subscriptions that can be used to observe changes to a value and execute a list of subscribers when the value changes. It also includes methods to mutate the value for complex objects and trigger subscribers manually if and when needed rarely. Check out the [usage](#usage) examples.
2121

2222
## Installation
2323

@@ -38,13 +38,13 @@ const $mySubscription = useSubscription('hello'); // Type will be string
3838

3939
### Using in template
4040

41-
To display the state in template, you can either use the $value or $get.
41+
To display the state in template, you can either use the `$read` or `$get`. If you need 2-way data binding you can also use `$value`.
4242

4343
```vue
4444
<template>
4545
<div>{{ $mySubscription.$value }}</div>
46-
<div>{{ $mySubscription.$get() }}</div>
4746
<!-- Readonly version of the state -->
47+
<div>{{ $mySubscription.$get() }}</div>
4848
<div>{{ $mySubscription.$read.value }}</div>
4949
</template>
5050
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-subscription",
3-
"version": "0.0.8",
4-
"description": "A type-safe 🔥, tiny ⭐️ & fast ⚡️ replacement for EventBus / a super-charged ref in Vue 💚.",
3+
"version": "0.0.9",
4+
"description": "A type-safe 🔥 & tiny ⭐️ super-charged ref ⚡️ / eventBus replacement in Vue 💚.",
55
"keywords": [
66
"web",
77
"vue",

scripts/release/releaseData.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"onGoing": false,
3-
"version": "0.0.8"
3+
"version": "0.0.9"
44
}

0 commit comments

Comments
 (0)