Skip to content

refactor: invert Worker config filter to blacklist oblaka-managed fields#2

Open
jonasnobile wants to merge 1 commit intomainfrom
feat/config-types
Open

refactor: invert Worker config filter to blacklist oblaka-managed fields#2
jonasnobile wants to merge 1 commit intomainfrom
feat/config-types

Conversation

@jonasnobile
Copy link
Copy Markdown
Member

@jonasnobile jonasnobile commented May 5, 2026

Summary

  • Místo whitelistu (Pick<Config, ...>) povolených polí používáme blacklist (Omit<Config, ...>) polí, která spravuje sama oblaka.
  • Nové wrangler binding typy (jako hyperdrive, pipelines, mtls_certificates, ratelimits, tail_consumers, dispatch_namespaces, secrets_store_secrets, unsafe, …) teď automaticky propadnou jako fallback, dokud se pro ně nepřidá konkrétní oblaka resource.
  • Blacklist obsahuje jen: identitní pole (name, compatibility_flags, account_id), bindings spravované resources (kv_namespaces, r2_buckets, d1_databases, queues, durable_objects, migrations, workflows, containers, send_email, services, vectorize, analytics_engine_datasets, browser, images, version_metadata, worker_loaders, vpc_networks, ai_search_namespaces, flagship) a hidden cache.

Test plan

  • bun run typecheck
  • bun run format:check
  • bun run lint

🤖 Generated with Claude Code

Switch from a Pick whitelist to an Omit blacklist so that new wrangler
config options (and binding types without an oblaka resource yet) fall
through automatically as a fallback. The blacklist excludes only fields
managed by oblaka resources, identity fields handled at the top level,
and hidden internal fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonasnobile jonasnobile force-pushed the feat/config-types branch from fc5fbc5 to 9f9eea6 Compare May 5, 2026 08:55
@jonasnobile jonasnobile changed the title feat: allow placement, tsconfig, preserve_file_names, secrets on Worker resource refactor: invert Worker config filter to blacklist oblaka-managed fields May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant