@cloudflare/unenv-preset
Advanced tools
Comparing version
{ | ||
"name": "@cloudflare/unenv-preset", | ||
"version": "0.0.0-a2f695b96", | ||
"version": "0.0.0-a3527988e", | ||
"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,12 +42,12 @@ "files": [ | ||
"devDependencies": { | ||
"@types/node-unenv": "npm:@types/node@^22.10.5", | ||
"typescript": "~5.6.3", | ||
"@types/node-unenv": "npm:@types/node@^22.13.9", | ||
"typescript": "^5.7.2", | ||
"unbuild": "^3.2.0", | ||
"undici": "^5.28.4", | ||
"vitest": "~2.1.8", | ||
"wrangler": "0.0.0-a2f695b96" | ||
"undici": "^5.28.5", | ||
"vitest": "~3.0.5", | ||
"wrangler": "0.0.0-a3527988e" | ||
}, | ||
"peerDependencies": { | ||
"unenv": "2.0.0-rc.0", | ||
"workerd": "^1.20241230.0" | ||
"unenv": "2.0.0-rc.14", | ||
"workerd": "^1.20250124.0" | ||
}, | ||
@@ -55,0 +54,0 @@ "peerDependenciesMeta": { |
@@ -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
21
31.25%26871
-21.69%20
-13.04%941
-23.18%1
Infinity%