@cloudflare/workers-shared
Advanced tools
Comparing version 0.0.0-d80fccbb4 to 0.0.0-d81863419
{ | ||
"name": "@cloudflare/workers-shared", | ||
"version": "0.0.0-d80fccbb4", | ||
"version": "0.0.0-d81863419", | ||
"description": "Package that is used at Cloudflare to power some internal features of Cloudflare Workers.", | ||
@@ -21,13 +21,21 @@ "keywords": [ | ||
"author": "wrangler@cloudflare.com", | ||
"types": "./dist", | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"mime": "^3.0.0", | ||
"zod": "^3.22.3" | ||
}, | ||
"devDependencies": { | ||
"@cloudflare/workers-types": "^4.20240806.0", | ||
"@cloudflare/workers-types": "^4.20240909.0", | ||
"@types/mime": "^3.0.4", | ||
"concurrently": "^8.2.2", | ||
"esbuild": "0.17.19", | ||
"rimraf": "^6.0.1", | ||
"toucan-js": "^3.3.1", | ||
"typescript": "^5.5.4", | ||
"@cloudflare/workers-tsconfig": "0.0.0", | ||
"@cloudflare/eslint-config-worker": "1.1.0" | ||
"vitest": "~2.1.1", | ||
"@cloudflare/eslint-config-worker": "1.1.0", | ||
"@cloudflare/workers-tsconfig": "0.0.0" | ||
}, | ||
@@ -41,13 +49,23 @@ "engines": { | ||
"workers-sdk": { | ||
"prerelease": true | ||
"prerelease": true, | ||
"deploy": true | ||
}, | ||
"scripts": { | ||
"build": "pnpm run clean && pnpm run bundle:asset-server:prod", | ||
"bundle:asset-server": "esbuild asset-server-worker/src/index.ts --format=esm --bundle --outfile=dist/asset-server-worker.mjs --sourcemap=external", | ||
"bundle:asset-server:prod": "pnpm run bundle:asset-server --minify", | ||
"build": "pnpm run clean && pnpm run bundle:asset-worker:prod && pnpm run bundle:router-worker:prod && pnpm run types:emit", | ||
"bundle:asset-worker": "esbuild asset-worker/src/index.ts --format=esm --bundle --outfile=dist/asset-worker.mjs --sourcemap=external --external:cloudflare:*", | ||
"bundle:asset-worker:prod": "pnpm run bundle:asset-worker --minify && node -r esbuild-register scripts/copy-config-file.ts", | ||
"bundle:router-worker": "esbuild router-worker/src/index.ts --format=esm --bundle --outfile=dist/router-worker.mjs --sourcemap=external", | ||
"bundle:router-worker:prod": "pnpm run bundle:router-worker --minify", | ||
"check:lint": "eslint . --max-warnings=0", | ||
"check:type": "tsc", | ||
"check:type": "pnpm run check:type:tests && tsc", | ||
"check:type:tests": "tsc -p ./asset-worker/tests/tsconfig.json", | ||
"clean": "rimraf dist", | ||
"dev": "pnpm run clean && concurrently -n bundle:asset-server -c blue \"pnpm run bundle:asset-server --watch\"" | ||
"deploy": "pnpm run deploy:router-worker && pnpm run deploy:asset-worker", | ||
"deploy:asset-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN pnpx wrangler versions upload --experimental-versions -c asset-worker/wrangler.toml", | ||
"deploy:router-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN pnpx wrangler versions upload --experimental-versions -c router-worker/wrangler.toml", | ||
"dev": "pnpm run clean && concurrently -n bundle:asset-worker,bundle:router-worker -c blue,magenta \"pnpm run bundle:asset-worker --watch\" \"pnpm run bundle:router-worker --watch\"", | ||
"test": "vitest", | ||
"test:ci": "pnpm run test", | ||
"types:emit": "tsc index.ts --declaration --emitDeclarationOnly --declarationDir ./dist" | ||
} | ||
} |
@@ -5,10 +5,16 @@ # `@cloudflare/workers-shared` | ||
## `asset-server` | ||
## `asset-worker` | ||
The Asset Server Worker. | ||
The Asset Worker. | ||
For more details please refer to the dedicated README file. | ||
## `router-worker` | ||
The Router Worker. | ||
For more details please refer to the dedicated README file. | ||
> [!NOTE] | ||
> Since code in this package is used by the Workers infrastructure, it is important that PRs are given careful review with regards to how they could cause a failure in production. | ||
> Ideally, there should be comprehensive tests for changes being made to give extra confidence about the behavior. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1024082
11
615
20
2
10
3
+ Addedmime@^3.0.0
+ Addedzod@^3.22.3
+ Addedmime@3.0.0(transitive)
+ Addedzod@3.23.8(transitive)