akamai-edgegrid 3.5.5 → 3.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release notes
2
2
 
3
+ ## 3.5.6 (Oct 15, 2025)
4
+
5
+ ### Bug fixes
6
+
7
+ * Replaced `uuid` package with `crypto` after uuid v13 dropped CommonJS support, to fix the compatibility issues.
8
+
3
9
  ## 3.5.5 (Oct 8, 2025)
4
10
 
5
11
  ### Features/Enhancements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akamai-edgegrid",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "description": "Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme in Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,8 +20,7 @@
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
22
  "axios": "^1.1.2",
23
- "log4js": "^6.4.0",
24
- "uuid": "^13.0.0"
23
+ "log4js": "^6.4.0"
25
24
  },
26
25
  "devDependencies": {
27
26
  "mocha": "^11.0.1",
@@ -30,4 +29,4 @@
30
29
  "nyc": "^17.0.0",
31
30
  "tsd": "^0.33.0"
32
31
  }
33
- }
32
+ }
package/src/auth.js CHANGED
@@ -1,4 +1,4 @@
1
- const uuid = require('uuid'),
1
+ const { randomUUID } = require('crypto'),
2
2
  helpers = require('./helpers'),
3
3
  logger = require('./logger'),
4
4
  url = require('url');
@@ -76,7 +76,7 @@ module.exports = {
76
76
  * @deprecated maxBody
77
77
  */
78
78
  generateAuth: function (request, clientToken, clientSecret, accessToken, host, maxBody, guid, timestamp) {
79
- guid = guid || uuid.v4();
79
+ guid = guid || randomUUID();
80
80
  timestamp = timestamp || helpers.createTimestamp();
81
81
 
82
82
  if (!request.hasOwnProperty('headers')) {