this wrangler types + jsonc instead of toml, i see cloudflare going in wrong directions everywhere
this wrangler types + jsonc instead of toml, i see cloudflare going in wrong directions everywhere
wrangler types is now wrangler types --include-runtime=false
--metafile flag to the wrangler CLI. This outputs esbuild's metafile, which can then be used to easily analyze your Cloudflare Worker's bundle size!npx wrangler deploy --dry-run --metafile=./meta.json && npx banal -M ./meta.json (or add to your package.json file as analyze).
@cloudflare/workers-types.tsconfig.json it doesn't work because only the tsconfig.cloudflare.json file has the includes."./worker-configuration.d.ts" it no longer throws the error, but then TS complains that it doesn't know the types.nodejs_compat_populate_process_env flag has any security downsides.env instead of process.env for the sake of increased security and the serverless architecture specifics.process.env as usual, I'm wondering—what's the catch? Why did CF change its mind or haven't implemented it since v1?vitest-pool-workers when you are also using Better Auth? When I go to run my tests, I get the following:

node_modules/wrangler/config-schema.json in the $schema field, and it should start workingsse to send some data to a page and im getting the hanging Promise was cancelled.. errorEventSource on client end, so that i can ~hopefully broadcast the data when i get a req to a different endpointwrangler typeswrangler types --include-runtime=false--metafilenpx wrangler deploy --dry-run --metafile=./meta.json && npx banal -M ./meta.jsonanalyze@cloudflare/workers-typeserror TS2688: Cannot find type definition file for 'worker-configuration.d.ts'.
The file is in the program because:
Entry point of type library 'worker-configuration.d.ts' specified in compilerOptions
tsconfig.cloudflare.json:17:15
17 "types": ["worker-configuration.d.ts", "vite/client"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~
File is entry point of type library specified here."./worker-configuration.d.ts"app/routes/home.tsx:9:21 - error TS18046: 'context.cloudflare' is of type 'unknown'.
9 return { message: context.cloudflare.env.VALUE_FROM_CLOUDFLARE };nodejs_compat_populate_process_envvitest-pool-workers[vitest-pool-workers] Failed to import "/.../shared-travel-app/node_modules/@noble/hashes/esm/scrypt.js" from "/.../shared-travel-app/node_modules/better-auth/dist/index.mjs".New SSE connection. NOTE: The sse transport is deprecated and has been replaced by streamable-http
Query parameters: [Object: null prototype] {
url: 'http://localhost:8788/sse',
transportType: 'sse'
}
SSE transport: url=http://localhost:8788/sse, headers=Accept
Received 401 Unauthorized from MCP server: SSE error: Non-200 status code (401)node_modules/wrangler/config-schema.json$schemassehanging Promise was cancelled..EventSourceparser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.cloudflare.json',
},const fileAsResponse = await env.ASSETS.fetch("https://fake.host/your/file.name");case '/sse':
const { readable, writable } = new TransformStream();
const writer = writable.getWriter();
broker.addClient(writer);
console.log("here");
request.signal.onabort = () => {
broker.removeClient(writer);
writer.close();
};
return new Response(readable, {
headers: new Headers({
'Content-Type': 'text/event-stream; charset=utf-8',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'X-Accel-Buffering': 'no'
})
});