Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "ulidx", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "ULID generator for NodeJS and the browser", | ||
@@ -16,2 +16,6 @@ "type": "module", | ||
"require": "./dist/browser/index.cjs" | ||
}, | ||
"worker": { | ||
"import": "./dist/browser/index.js", | ||
"require": "./dist/browser/index.cjs" | ||
} | ||
@@ -26,2 +30,3 @@ } | ||
}, | ||
"react-native": "./dist/browser/index.cjs", | ||
"types": "dist/index.d.ts", | ||
@@ -81,11 +86,11 @@ "scripts": { | ||
"@rollup/plugin-alias": "^5.0.0", | ||
"@rollup/plugin-commonjs": "^25.0.0", | ||
"@rollup/plugin-commonjs": "^25.0.3", | ||
"@rollup/plugin-node-resolve": "^15.1.0", | ||
"@rollup/plugin-typescript": "^11.1.1", | ||
"@types/node": "^20.2.5", | ||
"@rollup/plugin-typescript": "^11.1.2", | ||
"@types/node": "^20.4.4", | ||
"benchmark": "^2.1.4", | ||
"c8": "^7.14.0", | ||
"c8": "^8.0.0", | ||
"chai": "^4.3.7", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^13.2.2", | ||
"lint-staged": "^13.2.3", | ||
"mocha": "^10.2.0", | ||
@@ -96,10 +101,10 @@ "mochify": "^9.2.0", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.23.1", | ||
"sinon": "^15.1.0", | ||
"tslib": "^2.5.3", | ||
"typescript": "^5.1.3" | ||
"rollup": "^3.26.3", | ||
"sinon": "^15.2.0", | ||
"tslib": "^2.6.0", | ||
"typescript": "^5.1.6" | ||
}, | ||
"dependencies": { | ||
"layerr": "^2.0.0" | ||
"layerr": "^2.0.1" | ||
} | ||
} |
@@ -104,8 +104,9 @@ # ulidx | ||
* Edge compute | ||
* Cloudflare Workers ² | ||
* Vercel Edge | ||
`ulidx` is _not_ compatible with Cloudflare Workers due to their [problematic stance on getting the current time](https://developers.cloudflare.com/workers/learning/security-model#step-1-disallow-timers-and-multi-threading). | ||
¹ React-Native is supported if `crypto.getRandomValues()` is polyfilled. [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values) is one such library that should work well with `ulidx`. It should be imported before `ulidx` is used. | ||
² `ulidx` is not _fully_ compatible with Cloudflare Workers due to their [problematic stance on getting the current time](https://developers.cloudflare.com/workers/learning/security-model#step-1-disallow-timers-and-multi-threading). It is recommended to only use monotonic factories in this runtime. | ||
### Browser | ||
@@ -112,0 +113,0 @@ |
43895
135
Updatedlayerr@^2.0.1