diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6d6baea..0dc05a4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## [2.0.0] TBA
+
+* 🎉🎉🎉 added `Filesystem API` support for best data persistence - Data will resist even if user decide to clear browser history
+
## [1.3.0] 2023-01-31
* added `addAntiCacheParam` parameter to `getUrl` to add a random string to generated urls to prevent browser memory-caching
diff --git a/README.md b/README.md
index 70d19d0..2896151 100644
--- a/README.md
+++ b/README.md
@@ -2,30 +2,34 @@
# BrowstorJS :rocket: :floppy_disk: :lock: [![Tests](https://github.com/NullixAT/browstorjs/actions/workflows/playwright.yml/badge.svg)](https://github.com/NullixAT/browstorjs/actions/workflows/playwright.yml)
+> [!NOTE]
+> Currently working on v2 that will include Filesystem API storage as well. For production uses use the stable v1 releases for now.
+
Persistent key/value data storage for your Browser and/or PWA, promisified, including file support and service worker
-support, all with IndexedDB. Perfectly suitable for your next (PWA) app.
+support, all with IndexedDB or Filesystem API. Perfectly suitable for your next (PWA) app.
## Features :mega:
-* Simple Key/Value Data Storage in IndexedDB
+* Simple Key/Value Data Storage
* Serve any storage value as a real URL (No Data URI) for Images, Files, etc...
* Promisified for async/await support
+* Storage in IndexedDB (Traditional) or Filesystem API (New, best persistence)
* Cross-Browser
- * Chrome (Mobile/Desktop incl. incognito mode)
- * Firefox (Mobile/Desktop but not in private mode)
- * Safari (Mobile/Desktop incl. partially in InPrivate Mode)
- * Edge New (Chromium incl. private mode)
- * Edge Old v17+
+ * Chrome (IDB and/or Filesystem, Mobile/Desktop incl. incognito mode)
+ * Firefox (IDB and/or Filesystem, Mobile/Desktop but not in private mode)
+ * Safari (IDB and/or Filesystem, Mobile/Desktop incl. partially in InPrivate Mode)
+ * Edge New (IDB and/or Filesystem, Chromium incl. private mode)
+ * Edge Old v17+ (IDB only)
* WebKit
* and every other from the last years
* No Internet Explorer :trollface:
-* Super Lightweight (~400 byte when gzipped, ~4kb uncompressed)
+* Super Lightweight (~800 byte when gzipped, ~8kb uncompressed)
* Notice: [A word about `persistence` in current browsers...](#persistence---how-browsers-handle-it-shipit)
## Usage :zap:
```javascript
-const db = await BrowstorJS.open() // get instance
+const db = await BrowstorJS.open('browstorjs', true) // get instance that is using filesystem api and IDB as fallback
await db.set('mykey', 'myvalue') // set a value
await db.get('mykey') // get a value
await db.getUrl('mykey') // get a URL that serves the value from this key (eg.: for images)
@@ -34,8 +38,8 @@ await db.search((key, value) => { return key.startsWith('mykey') }) // search en
await db.remove('mykey') // remove a single key
await db.reset() // clear the database, delete all entries
await db.getKeys() // ['mykey', ...]
-const db = await BrowstorJS.open('myotherdb') // get instance to a separate db
-const isPersistent = await BrowstorJS.requestPersistentStorage() // request persistent storage
+const db = await BrowstorJS.open('myotherdb') // get instance to a separate db with only IDB support
+const isPersistent = await BrowstorJS.requestPersistentStorage() // request persistent storage (for IDB usage)
const info = await BrowstorJS.getStorageSpaceInfo() // {available:number, used:number, free:number}
```
@@ -71,6 +75,9 @@ Load it into your website `