Skip to content

feat(admin)!: read snake_case config keys - #12

Closed
zumbrunn wants to merge 2 commits into
mainfrom
feat/snake-case-config
Closed

zumbrunn wants to merge 2 commits into
mainfrom
feat/snake-case-config

Conversation

@zumbrunn

@zumbrunn zumbrunn commented Nov 4, 2026

Copy link
Copy Markdown
Member

Refs duneorg/dune#96 (core PR duneorg/dune#98)

Draft, breaking. Waits for @dune/core 0.36 to be published.

What

Core renames its camelCase config keys to snake_case (duneorg/dune#98, no aliases). This is the admin plugin's side: it reads the admin: block and a few other renamed keys through DuneConfig.

Change

  • Reads of the renamed keys: admin.session_lifetime, data_dir, runtime_dir, max_upload_mb, authz_store, audit.log_file, and content.allow_tsx_format (about 20 sites, including the inline fallback defaults in mod.ts).
  • The LDAP/SAML provider config types (src/admin/auth/provider.ts) follow core's AuthProviderConfig; the provider classes themselves are only doc-comment examples here, so only the types and examples change.
  • Error message, doc comments, README config example and test fixtures use the new names.
  • A site with an old key never reaches this code: core refuses to load a config that still has one and points at dune migrate:config.

Before it can merge

CI is red until the range points at a published core.

Testing

Type-checked and tested against core's feat/config-snake-case branch in a scratch workspace: deno check clean, deno lint src/ clean, 237 tests pass.

🤖 Generated with Claude Code

zumbrunn and others added 2 commits November 4, 2026 10:10
The admin: block, audit.log_file, content.allow_tsx_format and the LDAP/SAML
provider config types follow core's snake_case rename. Requires @dune/core 0.36
(the dependency range is bumped when it is published).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
admin.data_dir is removed in core; resolve the directory with resolveDataDir().

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zumbrunn

Copy link
Copy Markdown
Member Author

Landed in 4.0.0 as part of #26 (one squash of the whole stack: its intermediate commits only type-check against the final contract). Verified against the published @dune/core 0.36.0 and @dune/testing 2.0.0.

@zumbrunn zumbrunn closed this Nov 10, 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