Skip to content

task-025: merge redbean-compat imports into bun-sqlite-store - #25

Merged
Igloczek merged 1 commit into
masterfrom
task/025-redbean-merge-compat-imports
Jun 30, 2026
Merged

Igloczek merged 1 commit into
masterfrom
task/025-redbean-merge-compat-imports

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/025-redbean-merge-compat-imports.md from the ponytail audit backlog.

Goal

Eliminate the 4-line shim file by importing R directly from bun-sqlite-store.

Scope

  • Update all import { R } from "@/server/redbean-compat" to import { R } from "@/server/bun-sqlite-store" (or a single src/server/db.ts barrel if preferred).
  • Delete src/server/redbean-compat.ts.
  • Update scripts under scripts/admin/ that import redbean-compat.

Acceptance criteria

  • src/server/redbean-compat.ts deleted.
  • Zero imports of @/server/redbean-compat in repo.
  • bun run test:backend passes.
  • bun run build succeeds.
  • bun scripts/admin/reset-password.ts --help or dry invocation does not throw on import.

Depends on

Task 024.

Verification

bun run test:backend
bun run build
rg "redbean-compat" src scripts

Audit reference

Finding #1 — redbean-compat.ts shim (phase 2).

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Deletion/simplification pass aligned with task scope. No speculative abstractions added.

41 files changed, 48 insertions(+), 52 deletions(-)

Replace all @/server/redbean-compat re-exports with direct imports from
@/server/bun-sqlite-store and delete the 4-line compatibility shim.

Verification: lint, test:backend (59 pass), build, admin scripts import OK.
@Igloczek
Igloczek force-pushed the task/025-redbean-merge-compat-imports branch from 8429e70 to 3ac78d4 Compare June 30, 2026 12:01
@Igloczek
Igloczek merged commit 5cf8789 into master Jun 30, 2026
1 check passed
Igloczek added a commit that referenced this pull request Jun 30, 2026
Replace the ~90 LOC class singleton with module-scoped Intl formatters
and two exported functions: formatDuration() and setDurationFormatLocale().
Update all call sites in lang mixin, Details, and EditMonitor.

Ponytail audit finding #25.
@Igloczek
Igloczek deleted the task/025-redbean-merge-compat-imports branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
…ports

task-025: merge redbean-compat imports into bun-sqlite-store
Igloczek added a commit that referenced this pull request Aug 8, 2026
Replace the ~90 LOC class singleton with module-scoped Intl formatters
and two exported functions: formatDuration() and setDurationFormatLocale().
Update all call sites in lang mixin, Details, and EditMonitor.

Ponytail audit finding #25.
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