marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.02k stars 1.33k forks source link

Docs on plugin APIs. Pease Please Please #231

Open levblanc opened 7 years ago

levblanc commented 7 years ago

Test suites don't provide an intuitive usage on plugins.

I kept getting undefined when using the get method on a key that I set with expiration param. Looking at the get method, I just couldn't understand why such simple get/set could go wrong.

Then it took me almost an hour to figure out it was actually the problem of setting expirations: it should be an 'expireAt' rather than 'duration' when using expire plugin...

So please please please give docs on plugin APIs. Just to save the world and lives.

Mattwmaster58 commented 7 years ago

+1

theirnameissam commented 7 years ago

Anybody planning on doing this?

Could help if needed. It's just a matter of trial and error and then documenting it.

marcuswestin commented 7 years ago

I should lay the groundwork for this. Will be doing a slew of minor fixes and improvements this weekend, and will start this alongside that.

marcuswestin commented 7 years ago

Bump - this is still coming.