Skip to content

fix: remove content field any casts - #631

Merged
berry-13 merged 1 commit into
mainfrom
fix/blog-changelog-type-safety
Jun 20, 2026
Merged

berry-13 merged 1 commit into
mainfrom
fix/blog-changelog-type-safety

Conversation

@berry-13

Copy link
Copy Markdown
Collaborator

What changed

  • Replaced any casts on blog and changelog content fields with direct typed field access.
  • Added codedb.snapshot to .gitignore so the generated local snapshot is not accidentally committed.
  • Included the tracked TypeScript build-info update produced by the type changes.

Why

The content schema already defines author, ogImagePosition, version, and ogImage, so these route components can rely on the generated types instead of bypassing TypeScript with any.

Impact

This keeps blog and changelog metadata/rendering behavior the same while improving type safety and reducing the chance of future schema drift going unnoticed.

Validation

  • pnpm typecheck
  • git diff --check
  • Pre-commit hook ran prettier --write and eslint --fix on staged TypeScript files.

@vercel

vercel Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
librechat-ai Ready Ready Preview, Comment Jun 20, 2026 9:42pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Analysis for librechat.ai

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@berry-13 berry-13 changed the title [codex] Remove content field any casts fix: remove content field any casts Jun 20, 2026
@berry-13
berry-13 marked this pull request as ready for review June 20, 2026 21:51
@berry-13

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: de80c6c984

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@berry-13
berry-13 merged commit 4c1961b into main Jun 20, 2026
5 checks passed
@berry-13
berry-13 deleted the fix/blog-changelog-type-safety branch June 20, 2026 21:55

This branch was successfully deployed

1 active deployment
Preview — de80c6c9 Deployed Jun 20, 2026 by vercel[bot]
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