Skip to content

Releases: SMAKSS/uuid

Add crypto approach

31 Dec 22:33
c4e9187
Compare
Choose a tag to compare
v2.1.0-beta.0

feat(index): add crypto functionality for those who support it

Release Notes for @smakss/uuid - Version 2.1.0

31 Dec 22:45
13827fb
Compare
Choose a tag to compare

We're excited to announce the release of version 2.1.0 of the @smakss/uuid package! This release introduces a significant enhancement to our UUID generation capabilities, offering an option to utilize cryptographic randomness. This update aligns with our ongoing commitment to providing robust and versatile tools for developers.

What's New?

Cryptographic Randomness Support

  • Enhanced Randomness: The UUID generator now includes an option to use cryptographic randomness, providing an additional layer of unpredictability and security. This is particularly beneficial in environments where cryptographic strength is crucial.
  • Optional Use: This feature is optional and can be activated by passing a boolean argument to the uuid function. The package retains its original functionality and performance, ensuring backward compatibility.
  • Environment Compatibility: The cryptographic randomness feature leverages the Web Crypto API, which is widely supported in modern browsers. For environments that do not support this API, the package gracefully falls back to the standard Math.random() method.

Improved Documentation

  • Updated README: The README file has been updated to include examples and explanations of the new cryptographic randomness feature.
  • JSDoc Comments: The source code now includes detailed JSDoc comments, providing better insights into the function usage and parameters.

Usage Examples

  • Generating a UUID using pseudo-random numbers: const uniqueID = uuid();
  • Generating a UUID using cryptographic randomness (if supported): const cryptoID = uuid(true);

Installation

To update to the latest version of @smakss/uuid, use the following commands:

  • npm i @smakss/uuid
  • yarn add @smakss/uuid

Stay Connected

As always, we welcome your feedback and contributions to the project. Check out our CONTRIBUTING.md for guidelines on how to contribute.

Thank you for supporting @smakss/uuid. We're excited to see how you use these new features in your projects!

Upgrade dependencies

14 Nov 11:25
Compare
Choose a tag to compare
v2.0.1

Update package.json

Migrate to typescript

04 Nov 13:43
98b884b
Compare
Choose a tag to compare
v2.0.0-beta.0

feat(core): migrate to typescript

Migrate to typescript and enhanced DX tools

04 Nov 13:50
e9c0190
Compare
Choose a tag to compare

Release Note - @smakss/uuid v2.0.0 🚀

We're thrilled to announce another update to the @smakss/uuid package. This release is all about empowering developers with better tools and smoother workflows. 🛠️

What's New:

  • 🛠️ DX Tools: We've introduced new developer experience (DX) tools, making it easier to work with the codebase, debug issues, and build features.
  • 📦 Bundler Integration: A bundler has been integrated into our build process, allowing for easier distribution and consumption of our package across various module systems and environments.

What's Improved:

  • 🌟 Streamlined Development: With DX tools, developers can enjoy features like live-reloading, pre-configured linting, and code formatting, leading to faster and more enjoyable development cycles.
  • 🚀 Optimized Distribution: The integrated bundler optimizes the package, resulting in smaller bundle sizes and better performance for the end-users.

Changes:

  • 💻 TypeScript Migration & Readability: Complete migration to TypeScript for type safety and added human-readable variables for easier comprehension of the UUID generation logic.
  • 🧩 Tooling: Added popular DX tools (like Prettier, ESLint, and Webpack/Rollup/Parcel) to streamline the development process.
  • 📦 Bundling: Configured a bundler (Webpack/Rollup/Parcel) for efficient package distribution, with UMD and ESM formats now available.

Keep coding and stay unique with @smakss/uuid! ✨

chore: change demo position in readme

05 Jan 21:38
Compare
Choose a tag to compare
v1.2.6

chore: upgrade app version to 1.2.6

v1.2.5

19 Oct 09:58
c62eae3
Compare
Choose a tag to compare
chore: fix workflow

chore: add CodeSandbox to the readme

19 Oct 09:23
774608a
Compare
Choose a tag to compare
v.1.2.4

chore: add CodeSandbox to the readme

v1.2.3: Merge pull request #2 from SMAKSS/version

25 Jun 15:13
039a1a1
Compare
Choose a tag to compare

v1.2.2

31 Oct 13:59
35c4b3b
Compare
Choose a tag to compare
Update package.json