Comparing version 1.0.0 to 2.0.0
@@ -18,8 +18,10 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EventId = void 0; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const d64 = require('d64'); | ||
const uuid = require('uuid/v4'); | ||
const uuid = require("uuid"); | ||
class EventId { | ||
constructor() { | ||
this.b = new Uint8Array(24); | ||
uuid(null, this.b, 8); | ||
uuid.v4(null, this.b, 8); | ||
} | ||
@@ -26,0 +28,0 @@ new() { |
# Changelog | ||
## [2.0.0](https://www.github.com/google/eventid-js/compare/v1.0.0...v2.0.0) (2021-08-31) | ||
### ⚠ BREAKING CHANGES | ||
* require node.js 10 and up (#88) | ||
### Bug Fixes | ||
* **deps:** update dependency uuid to v7 ([#79](https://www.github.com/google/eventid-js/issues/79)) ([1e8c47f](https://www.github.com/google/eventid-js/commit/1e8c47f982ecadad583952847bcc3919d8ca498e)) | ||
* **deps:** update dependency uuid to v8 ([#92](https://www.github.com/google/eventid-js/issues/92)) ([0a5ecea](https://www.github.com/google/eventid-js/commit/0a5eceae8dca5ae751fbee7dc0c3822e707af826)) | ||
### Build System | ||
* require node.js 10 and up ([#88](https://www.github.com/google/eventid-js/issues/88)) ([c0cea90](https://www.github.com/google/eventid-js/commit/c0cea904922fc8e34a13ace7777cca54e6cff30a)) | ||
## [1.0.0](https://www.github.com/google/eventid-js/compare/v0.1.2...v1.0.0) (2019-11-05) | ||
@@ -4,0 +21,0 @@ |
{ | ||
"name": "eventid", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A utility for generating monotonically increasing unique event ids across a network of services.", | ||
@@ -15,3 +15,2 @@ "main": "build/src/index.js", | ||
"clean": "gts clean", | ||
"codecov": "c8 report --reporter=json && codecov -f coverage/*.json", | ||
"compile": "tsc -p .", | ||
@@ -37,17 +36,17 @@ "fix": "gts fix", | ||
"d64": "^1.0.0", | ||
"uuid": "^3.0.1" | ||
"uuid": "^8.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.6", | ||
"@types/uuid": "^3.4.4", | ||
"c8": "^6.0.0", | ||
"codecov": "^3.6.1", | ||
"gts": "^1.0.0", | ||
"js-green-licenses": "^1.0.0", | ||
"mocha": "^6.0.0", | ||
"typescript": "~3.7.0" | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^14.0.0", | ||
"@types/uuid": "^8.0.0", | ||
"c8": "^7.3.0", | ||
"gts": "^3.0.0", | ||
"js-green-licenses": "^3.0.0", | ||
"mocha": "^9.0.0", | ||
"typescript": "^4.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # eventid | ||
[![npm version](https://img.shields.io/npm/v/eventid.svg)](https://www.npmjs.org/package/eventid) | ||
[![Build Status](https://circleci.com/gh/google/eventid-js.svg?style=shield)](https://circleci.com/gh/google/eventid-js) | ||
[![Build Status](https://github.com/google/eventid-js/workflows/ci/badge.svg)](https://github.com/google/eventid-js/actions) | ||
[![Dependencies](https://david-dm.org/google/eventid-js.svg)](https://david-dm.org/google/eventid-js) | ||
@@ -8,0 +8,0 @@ [![Known Vulnerabilities](https://snyk.io/test/github/google/eventid-js/badge.svg)](https://snyk.io/test/github/google/eventid-js) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18865
62
0
+ Addeduuid@8.3.2(transitive)
- Removeduuid@3.4.0(transitive)
Updateduuid@^8.0.0