Skip to content

Releases: SMAKSS/uuid

Add crypto approach

Choose a tag to compare

@SMAKSS SMAKSS released this 31 Dec 22:33
c4e9187
v2.1.0-beta.0

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

Release Notes for @smakss/uuid - Version 2.1.0

Choose a tag to compare

@SMAKSS SMAKSS released this 31 Dec 22:45
13827fb

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

Choose a tag to compare

@SMAKSS SMAKSS released this 14 Nov 11:25
v2.0.1

Update package.json

Migrate to typescript

Choose a tag to compare

@SMAKSS SMAKSS released this 04 Nov 13:43
98b884b
v2.0.0-beta.0

feat(core): migrate to typescript

Migrate to typescript and enhanced DX tools

Choose a tag to compare

@SMAKSS SMAKSS released this 04 Nov 13:50
e9c0190

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

Choose a tag to compare

@SMAKSS SMAKSS released this 05 Jan 21:38
v1.2.6

chore: upgrade app version to 1.2.6

v1.2.5

Choose a tag to compare

@SMAKSS SMAKSS released this 19 Oct 09:58
c62eae3
chore: fix workflow

chore: add CodeSandbox to the readme

Choose a tag to compare

@SMAKSS SMAKSS released this 19 Oct 09:23
774608a
v.1.2.4

chore: add CodeSandbox to the readme

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

Choose a tag to compare

@SMAKSS SMAKSS released this 25 Jun 15:13
039a1a1
1.2.3

v1.2.2

Choose a tag to compare

@SMAKSS SMAKSS released this 31 Oct 13:59
35c4b3b
Update package.json