Skip to content

Commit

Permalink
v0.6.0 Released
Browse files Browse the repository at this point in the history
Removed:

- `V7Generator.create()`; use `new V7Generator()` instead
- `UUID#getType()`; use `UUID#getVariant()` instead

Changed:

- Published `new V7Generator()` constructor
- Marked `UUID.parse()` as stable
- Expanded `UUID.parse()` functionality to accept popular UUID formats

Maintenance:

- Reintroduced deprecated CommonJS entry point
- Updated reference to draft RFC: rfc4122bis/08 -> rfc4122bis/09
  • Loading branch information
LiosK committed Aug 10, 2023
2 parents 490d9e0 + daa77db commit 737a1bb
Show file tree
Hide file tree
Showing 21 changed files with 987 additions and 188 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Command-line interface:
npx uuidv7
```

See [draft-ietf-uuidrev-rfc4122bis-08](https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-08.html).
See [draft-ietf-uuidrev-rfc4122bis-09](https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-09.html).

## Field and bit layout

Expand Down Expand Up @@ -105,7 +105,7 @@ a significant rollback of the system timestamp source.
```javascript
import { V7Generator } from "uuidv7";

const g = V7Generator.create();
const g = new V7Generator();
const x = g.generate();
const y = g.generateOrAbort();
if (y === undefined) {
Expand All @@ -116,6 +116,12 @@ console.assert(x.compareTo(y) < 0);

See the [API documentation](https://liosk.github.io/uuidv7/) for details.

## CommonJS support

The CommonJS entry point is deprecated and provided for backward compatibility
purposes only. The entry point is no longer tested and will be removed once this
library hits the stable version number of v1.

## License

Licensed under the Apache License, Version 2.0.
Loading

0 comments on commit 737a1bb

Please sign in to comment.