akamai-edgegrid 3.5.4 → 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.
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- node: [18, 20, 21, 22, 23, 24]
12
+ node: [20, 22, 24]
13
13
  name: Test Node ${{ matrix.node }}
14
14
  steps:
15
15
  - uses: actions/checkout@v2
package/CHANGELOG.md CHANGED
@@ -1,10 +1,24 @@
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
+
9
+ ## 3.5.5 (Oct 8, 2025)
10
+
11
+ ### Features/Enhancements
12
+
13
+ * Updated various dependencies.
14
+ * Removed support for Node.js versions 18, 21 and 23.
15
+
3
16
  ## 3.5.4 (Jul 24, 2025)
4
17
 
5
18
  ### Features/Enhancements
6
19
 
7
20
  * Updated various dependencies.
21
+ * Removed support for Node.js versions 14 and 16.
8
22
 
9
23
  ## 3.5.3 (Apr 09, 2025)
10
24
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Build Status](https://github.com/akamai/AkamaiOPEN-edgegrid-node/actions/workflows/test.yml/badge.svg)
4
4
 
5
- This library implements an Authentication handler for the Akamai EdgeGrid Authentication scheme in Node.js for Node v14 and above.
5
+ This library implements an Authentication handler for the Akamai EdgeGrid Authentication scheme in Node.js for Node v20 and higher LTS versions.
6
6
 
7
7
  You can find the most up-to-date package in [NPM](https://www.npmjs.com/package/akamai-edgegrid) under `akamai-edgegrid`.
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akamai-edgegrid",
3
- "version": "3.5.4",
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,14 +20,13 @@
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
22
  "axios": "^1.1.2",
23
- "log4js": "^6.4.0",
24
- "uuid": "^11.1.0"
23
+ "log4js": "^6.4.0"
25
24
  },
26
25
  "devDependencies": {
27
26
  "mocha": "^11.0.1",
28
27
  "mocha-junit-reporter": "^2.1.0",
29
28
  "nock": "^14.0.6",
30
29
  "nyc": "^17.0.0",
31
- "tsd": "^0.32.0"
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')) {