Skip to content

task-024: remove RedBean no-op stubs and autoloadModels - #23

Merged
Igloczek merged 1 commit into
masterfrom
task/024-redbean-remove-noops
Jun 30, 2026
Merged

Igloczek merged 1 commit into
masterfrom
task/024-redbean-remove-noops

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/024-redbean-remove-noops.md from the ponytail audit backlog.

Goal

First pass on bun-sqlite-store.ts: delete stubs that exist only for upstream API parity.

Scope

  • Remove no-op methods: autoloadModels, setup, freeze, debug (or make them unexported if required by type).
  • Remove autoloadModels parameter from Database.connect() and its call to R.autoloadModels.
  • Remove createRequire resolution block if only used for autoload.
  • Keep all query/store behavior unchanged.

Acceptance criteria

  • R.autoloadModels has zero callers.
  • Database.connect signature no longer accepts autoloadModels (update all call sites).
  • bun run test:backend passes (schema.test.ts, upgrade.test.ts, monitor tests).
  • bun run build succeeds.

Depends on

Task 006 (Database.patch removed).

Verification

bun run test:backend
bun run build
rg "autoloadModels|R\\.freeze|R\\.debug" src

Audit reference

Finding #1 — RedBean-compat no-ops (phase 1).

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Lean already. Ship.

Closes task 024 (Finding #1 — RedBean-compat no-ops, phase 1).

3 files changed, 2 insertions(+), 14 deletions(-)

Delete unused autoloadModels, setup, freeze, and debug stubs from the
Bun SQLite store. Drop the autoloadModels parameter from Database.connect
and update call sites. Models continue to load lazily via modelMap.
@Igloczek
Igloczek force-pushed the task/024-redbean-remove-noops branch from 1280863 to 9ae9d5e Compare June 30, 2026 11:55
@Igloczek
Igloczek merged commit a8f26d6 into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/024-redbean-remove-noops branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
task-024: remove RedBean no-op stubs and autoloadModels
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