The fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries.
This PR adds the ability to pass an optional configuration object to the Denque constructor to allow a max capacity to be specified, essentially allowing it to operate as a circular buffer.
Coverage increased (+0.03%) to 99.419% when pulling d3e5d4f5d378ed0ece1500fa334698319953b373 on gillesdemey:feat/capacity into ebe332be31c04754e820c0118fdc5bdb8dd2d4e0 on invertase:master.
Coverage increased (+0.02%) to 99.412% when pulling 823dfc216040e5f3379fec6743e59e974c5cfa15 on gillesdemey:feat/capacity into ebe332be31c04754e820c0118fdc5bdb8dd2d4e0 on invertase:master.
Coverage increased (+0.02%) to 99.412% when pulling 823dfc216040e5f3379fec6743e59e974c5cfa15 on gillesdemey:feat/capacity into ebe332be31c04754e820c0118fdc5bdb8dd2d4e0 on invertase:master.
This PR adds the ability to pass an optional configuration object to the Denque constructor to allow a max capacity to be specified, essentially allowing it to operate as a circular buffer.
fixes #24