localForage/localForage

Deprecate key() function

Open

#281 opened on Oct 19, 2014

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (24,184 stars) (1,260 forks)batch import
help wantedquestion

Description

(Discussion started in #280 and all the way back in #3.)

The key() function is certainly weird and I don't think 1:1 mapping of localStorage's API is the exact selling feature of localForage (even if it once was). In future versions deprecating this functionality might be smart to reduce the size of the library and the effort to write and test drivers.

I'm not sure what the actual gains to removing it would be, as it might not take up much actual code, but if no one seems to be using it we should drop support for it in future versions.

Thoughts?

Contributor guide