Socket
Socket
Sign inDemoInstall

denque

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

2.1.0

Diff

Changelog

Source

2.1.0

  • fix: issue where clear() is still keeping references to the elements (#47)
  • refactor: performance optimizations for growth and array copy (#43)
  • refactor: performance optimizations for toArray and fromArray (#46)
  • test: add additional benchmarks for queue growth and toArray (#45)
salakar
published 2.0.1 •

Changelog

Source

2.0.1

  • fix(types): incorrect return type on size()
salakar
published 2.0.0 •

Changelog

Source

2.0.0

  • fix!: push & unshift now accept undefined values to match behaviour of Array (fixes #25) (#35)
    • This is only a BREAKING change if you are currently expecting push(undefined) and unshift(undefined) to do nothing - the new behaviour now correctly adds undefined values to the queue.
    • Note: behaviour of push() & unshift() (no arguments) remains unchanged (nothing gets added to the queue).
    • Note: If you need to differentiate between undefined values in the queue and the return value of pop() then check the queue .length before popping.
  • fix: incorrect methods in types definition file
salakar
published 1.5.1 •

Changelog

Source

1.5.1

  • perf: minor performance tweak when growing queue size (#29)
salakar
published 1.5.0 •

Changelog

Source

1.5.0

  • feat: adds capacity option for circular buffers (#27)
salakar
published 1.4.1 •

salakar
published 1.4.0 •

salakar
published 1.3.0 •

salakar
published 1.2.6 •

salakar
published 1.2.5 •

23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc