@cloudflare/unenv-preset
Advanced tools
Comparing version
{ | ||
"name": "@cloudflare/unenv-preset", | ||
"version": "0.0.0-ca41ebf0e", | ||
"version": "0.0.0-ca6001066", | ||
"description": "cloudflare preset for unenv", | ||
@@ -28,11 +28,10 @@ "keywords": [ | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./runtime/*": { | ||
"types": "./dist/runtime/*.d.ts", | ||
"import": "./dist/runtime/*.mjs" | ||
} | ||
"./*": { | ||
"types": "./dist/runtime/*.d.mts", | ||
"default": "./dist/runtime/*.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts", | ||
@@ -43,11 +42,11 @@ "files": [ | ||
"devDependencies": { | ||
"@types/node-unenv": "npm:@types/node@^22.10.5", | ||
"@types/node-unenv": "npm:@types/node@^22.13.1", | ||
"typescript": "^5.7.2", | ||
"unbuild": "^3.2.0", | ||
"undici": "^5.28.4", | ||
"vitest": "~2.1.8", | ||
"wrangler": "0.0.0-ca41ebf0e" | ||
"undici": "^5.28.5", | ||
"vitest": "~3.0.5", | ||
"wrangler": "0.0.0-ca6001066" | ||
}, | ||
"peerDependencies": { | ||
"unenv": "2.0.0-rc.1", | ||
"unenv": "2.0.0-rc.8", | ||
"workerd": "^1.20250124.0" | ||
@@ -54,0 +53,0 @@ }, |
@@ -5,2 +5,4 @@ # @cloudflare/unenv-preset | ||
unenv provides polyfills to add [Node.js](https://nodejs.org/) compatibility for any JavaScript runtime, including browsers and edge workers. | ||
## Usage | ||
@@ -13,5 +15,8 @@ | ||
const { env } = defineEnv({ | ||
nodeCompat: true, | ||
presets: [cloudflare], | ||
}); | ||
const { alias, inject, external, polyfill } = env; | ||
``` | ||
See the unenv [README](https://github.com/unjs/unenv/blob/main/README.md) for more details. |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22
4.76%21
31.25%29631
-9.24%1030
-11.59%