get-random-values 4.0.0 → 4.1.0

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,3 +1,9 @@
1
+ ## [4.1.0](https://github.com/kenany/get-random-values/compare/4.0.0...4.1.0) (2025-10-15)
2
+
3
+ ### Features
4
+
5
+ * replace global with window-or-global ([47cb6eb](https://github.com/kenany/get-random-values/commit/47cb6eb517d725248791867661865416e177eec7))
6
+
1
7
  ## [4.0.0](https://github.com/kenany/get-random-values/compare/3.0.0...4.0.0) (2025-08-13)
2
8
 
3
9
  ### ⚠ BREAKING CHANGES
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
- const window = require('global/window');
2
1
  const nodeCrypto = require('node:crypto');
3
2
 
3
+ const window = require('window-or-global');
4
+
4
5
  /**
5
6
  * @template {ArrayBufferView<ArrayBufferLike>} T
6
7
  * @param {T} buf
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-random-values",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "`window.crypto.getRandomValues` with fallback to Node.js crypto",
5
5
  "keywords": [
6
6
  "crypto"
@@ -35,10 +35,11 @@
35
35
  "prepack": "npm run build"
36
36
  },
37
37
  "dependencies": {
38
- "global": "^4.4.0"
38
+ "window-or-global": "^1.0.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@biomejs/biome": "2.1.4",
41
+ "@biomejs/biome": "2.2.5",
42
+ "@kenan/biome-config": "1.0.4",
42
43
  "@semantic-release/changelog": "^6.0.3",
43
44
  "@semantic-release/git": "^10.0.1",
44
45
  "@tsconfig/node20": "20.1.6",
@@ -48,11 +49,10 @@
48
49
  "is-browser": "^2.1.0",
49
50
  "lodash.isfunction": "^3.0.9",
50
51
  "rimraf": "^6.0.1",
51
- "semantic-release": "^24.2.7",
52
+ "semantic-release": "^24.2.9",
52
53
  "tape": "^5.9.0",
53
54
  "type-coverage": "^2.29.7",
54
- "typescript": "^5.8.3",
55
- "ultracite": "5.1.2"
55
+ "typescript": "5.9.3"
56
56
  },
57
57
  "browser": {
58
58
  "crypto": false