New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scru128

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scru128 - npm Package Versions

234

3.0.6

Diff

Changelog

Source

v3.0.6 - 2024-10-12

Added

  • CommonJS entry point to support older environments

Maintenance

  • Updated dev dependencies
liosk
published 3.0.5 •

Changelog

Source

v3.0.5 - 2024-06-19

Maintenance

  • Changed naming convention of test files
  • Updated dev dependencies
liosk
published 3.0.4 •

Changelog

Source

v3.0.4 - 2023-09-18

Maintenance

  • Improved documentation about generator's clock rollback behavior
  • Updated dev dependencies
liosk
published 3.0.3 •

Changelog

Source

v3.0.3 - 2023-08-01

Maintenance

  • Refactored default random number generator to defer detection Web Crypto API until creation of Scru128Generator
  • Fixed wrong test case
liosk
published 3.0.2 •

Changelog

Source

v3.0.2 - 2023-07-17

Most notably, v3 switches the letter case of generated IDs from uppercase (e.g., "036Z951MHJIKZIK2GSL81GR7L") to lowercase (e.g., "036z951mhjikzik2gsl81gr7l"), though it is technically not supposed to break existing code because SCRU128 is a case-insensitive scheme. Other changes include the removal of deprecated APIs.

Removed

  • CommonJS entry point
  • Deprecated items:
    • Scru128Generator#generateCore()
    • Scru128Generator#getLastStatus()
    • Scru128Id.fromArrayBuffer()
    • Scru128Id#toArrayBuffer()
  • node:crypto-based CSPRNG implementation; now falls back on Math.random() in Node v14 or older where Web Crypto API is not yet available
  • Non-ESM browser test runner

Changed

  • Letter case of generated IDs from uppercase to lowercase
  • TypeScript transpilation target from ES2015 to ES2016
  • Edge case behavior of generator functions' rollback allowance handling

Maintenance

  • Updated dev dependencies
liosk
published 3.0.1 •

liosk
published 3.0.0-rc.1 •

liosk
published 2.5.0 •

Changelog

Source

v2.5.0 - 2023-06-21

Added

  • Scru128Id.fromBigInt() and Scru128Id#toBigInt()

Changed

  • Error messages thrown by Scru128Id to improve error reporting

Deprecated

  • Scru128Id.fromArrayBuffer() and Scru128Id#toArrayBuffer()

Maintenance

  • Updated dev dependencies
liosk
published 2.4.1 •

Changelog

Source

v2.4.1 - 2023-04-07

Maintenance

  • Updated dev dependencies
  • Tweaked docs and tests
liosk
published 2.4.0 •

Changelog

Source

v2.4.0 - 2023-03-22

Added

  • generateOrAbort() and generateOrAbortCore() to Scru128Generator (formerly named as generateNoRewind() and generateCoreNoRewind())
  • Scru128Generator#generateOrResetCore()

Deprecated

  • Scru128Generator#generateCore()
  • Scru128Generator#getLastStatus()

Maintenance

  • Updated TypeScript version to 5.0
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc