diff --git a/README.md b/README.md index 7a81040..2fdd546 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![npm version](https://img.shields.io/npm/v/svelte-local-storage-store.svg)](https://www.npmjs.com/package/svelte-local-storage-store) [![license](https://img.shields.io/npm/l/svelte-local-storage-store.svg)](LICENSE.md) [![codecov](https://codecov.io/gh/joshnuss/svelte-local-storage-store/branch/master/graph/badge.svg?token=GU607D2YRQ)](https://codecov.io/gh/joshnuss/svelte-local-storage-store) +[![npm version](https://img.shields.io/npm/v/svelte-persisted-store.svg)](https://www.npmjs.com/package/svelte-persisted-store) [![license](https://img.shields.io/npm/l/svelte-persisted-store.svg)](LICENSE.md) [![codecov](https://codecov.io/gh/joshnuss/svelte-persisted-store/branch/master/graph/badge.svg?token=GU607D2YRQ)](https://codecov.io/gh/joshnuss/svelte-persisted-store) -# svelte-local-storage-store +# svelte-persisted-store **Package has been renamed to [svelte-presisted-store](https://www.npmjs.com/package/svelte-persisted-store)** diff --git a/index.ts b/index.ts index 4501944..e28f294 100644 --- a/index.ts +++ b/index.ts @@ -32,7 +32,7 @@ function getStorage(type: StorageType) { /** @deprecated `writable()` has been renamed to `persisted()` */ export function writable(key: string, initialValue: T, options?: Options): Writable { - console.warn("writable() has been deprecated. Please use persisted() instead.\n\nchange:\n\nimport { writable } from 'svelte-local-storage-store'\n\nto:\n\nimport { persisted } from 'svelte-local-storage-store'") + console.warn("writable() has been deprecated. Please use persisted() instead.\n\nchange:\n\nimport { writable } from 'svelte-persisted-store'\n\nto:\n\nimport { persisted } from 'svelte-persisted-store'") return persisted(key, initialValue, options) } export function persisted(key: string, initialValue: T, options?: Options): Writable { diff --git a/package.json b/package.json index 04e0357..39c2f18 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "svelte-local-storage-store", + "name": "svelte-persisted-store", "version": "0.6.4", "license": "MIT", "main": "dist/index.js", @@ -10,7 +10,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/joshnuss/svelte-local-storage-store.git" + "url": "https://github.com/joshnuss/svelte-persisted-store.git" }, "scripts": { "build": "tsup index.ts --format esm,cjs --sourcemap --dts",