Skip to content

Commit 19b7b86

Browse files
author
cristopher1
committed
Merge branch 'development'
2 parents 040f7d5 + b9add76 commit 19b7b86

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 align="center">Welcome to vue3-reactive-storage 👋</h1>
22
<p>
3-
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
3+
<img alt="Version" src="https://img.shields.io/badge/version-1.0.1-blue.svg?cacheSeconds=2592000" />
44
<a href="https://github.com/cristopher1/vue3-reactive-storage#readme" target="_blank">
55
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
66
</a>
@@ -24,7 +24,7 @@ A Vue3 plugin to use reactivity with object that implements the Storage interfac
2424
- [How to use?](#how-to-use?)
2525
- [Install the plugin](#install)
2626
- [Install options](#install-options)
27-
- [About the ReactiveLocalStorage methods](#about-reactive-local-storage-methods)
27+
- [About the ReactiveWebStorage methods](#about-reactive-web-storage-methods)
2828
- [Use the composition API](#composition-api)
2929
- [Author](#author)
3030
- [Contributing](#contributing)
@@ -121,7 +121,7 @@ npm install vue3-reactive-storage
121121

122122
- webStorage: Required value. localStorage, sessionStorage or other object that implements the Storage interface.
123123
- reactiveStorage: Required value. ref or reactive object.
124-
- prefix: Optional value. Used to segment the Storage object, the prefix is added to key (using '-') in Storage object. For example:
124+
- prefix: Optional value. Used to segment the Storage object, the prefix is added to key (using '-') in Storage object. Generally used when using multiple app instances. For example:
125125

126126
```js
127127
import { createApp, reactive, ref } from 'vue'
@@ -159,20 +159,20 @@ npm install vue3-reactive-storage
159159
- loadDataFromWebStorage: Optional value. By default is true. Loads the keys/values in Storage object to reactive object when the load event is fired by window object. Useful when closing and opening the
160160
browser window.
161161

162-
- ### <a id="about-reactive-local-storage-methods"></a> About the ReactiveLocalStorage methods
162+
- ### <a id="about-reactive-web-storage-methods"></a> About the ReactiveWebStorage methods
163163

164-
The `ReactiveLocalStorage` object provides an interface similar to the Storage interface, this methods are:
164+
The `ReactiveWebStorage` object provides an interface similar to the Storage interface, this methods are:
165165

166-
- `(getter) length`: Obtains the number of elements saved in reactiveLocalStorage.
167-
- `(method) key(index)`: Returns the key in nth position into reactiveLocalStorage.
168-
- `(method) getItem(key, parseOptions = {})`: Returns the parsed key's value saved into reactiveLocalStorage.
169-
- `(method) setItem(key, item, serializeOptions = {})`: Saves the pair key/value into reactiveLocalStorage.
170-
- `(method) removeItem(key)`: Removes the pair key/value from reactiveLocalStorage.
171-
- `(method) clear()`: Removes all pairs key/value into reactiveLocalStorage.
166+
- `(getter) length`: Obtains the number of elements saved in reactiveWebStorage.
167+
- `(method) key(index)`: Returns the key in nth position into reactiveWebStorage.
168+
- `(method) getItem(key)`: Returns the parsed key's value saved into reactiveWebStorage.
169+
- `(method) setItem(key, item)`: Saves the pair key/value into reactiveWebStorage.
170+
- `(method) removeItem(key)`: Removes the pair key/value from reactiveWebStorage.
171+
- `(method) clear()`: Removes all pairs key/value into reactiveWebStorage.
172172
173173
And include others methods:
174174
175-
- `(getter) reactiveStorageAdapter`: Returns the reactiveStorageAdapter (object that wraps the reactiveStorage using an insterface similar to Storage) object used by reactiveLocalStorage instance.
175+
- `(getter) reactiveStorageAdapter`: Returns the reactiveStorageAdapter (object that wraps the reactiveStorage using an insterface similar to Storage) object used by reactiveWebStorage instance.
176176
- `(getter) reactiveStorage`: Returns the reactiveStorage object used by reactiveWebStorage instance.
177177
178178
- ### <a id="composition-api"></a> Use the composition API:

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Vue3 plugin to use localStorage, sessionStorage or other object that implements the Storage interface with reactivity.
44

5+
**Features added in version 1.0.1**
6+
7+
- Documentation fixed.
8+
59
**Features added in version 1.0.0:**
610

711
- Adds class ReactiveWebStorage and ReactiveStorageAdapter to implement the reactivity with Storage.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-reactive-storage",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Vue3 plugin to use reactivity with object that implements the Storage interface",
55
"main": "./dist/esm/index.mjs",
66
"type": "module",

0 commit comments

Comments
 (0)