Skip to content

fix(path-meta): slugify function did not pass to transformer#3794

Merged
farnabaz merged 1 commit into
mainfrom
fix/slugify-options
May 18, 2026
Merged

fix(path-meta): slugify function did not pass to transformer#3794
farnabaz merged 1 commit into
mainfrom
fix/slugify-options

Conversation

@farnabaz
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves #3788

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

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

Project Deployment Actions Updated (UTC)
content Ready Ready Preview, Comment May 18, 2026 9:25am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fe64e13f-694e-4483-9b70-d049a706c5db

📥 Commits

Reviewing files that changed from the base of the PR and between 53305bb and b85bbcd.

📒 Files selected for processing (1)
  • src/utils/content/index.ts

📝 Walkthrough

Walkthrough

This PR fixes path metadata configuration being ignored during content parsing. The parser's createParser function was previously passing an empty object to pathMetaTransformer.transform! instead of the actual configured parserOptions.pathMeta. This one-line change now propagates the configured path metadata options, allowing features like slugifyOptions.lower: false to take effect when deriving path-based metadata fields during parsing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: fixing the slugify function/options not being passed to the transformer during path metadata processing.
Description check ✅ Passed The description includes a linked issue (#3788) that directly addresses the bug being fixed, and identifies the change as a bug fix.
Linked Issues check ✅ Passed The PR directly resolves issue #3788 by passing configured pathMeta options to the transformer instead of an empty object, which restores the lower: false slugifyOption functionality.
Out of Scope Changes check ✅ Passed The single line change in src/utils/content/index.ts is directly scoped to fixing the pathMeta transformer call issue reported in #3788, with no unrelated modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/slugify-options

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 18, 2026

npm i https://pkg.pr.new/@nuxt/content@3794

commit: b85bbcd

@farnabaz farnabaz merged commit 778d7db into main May 18, 2026
10 checks passed
@farnabaz farnabaz deleted the fix/slugify-options branch May 18, 2026 09:37
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.

content.build.pathMeta.slugifyOptions.lower = false is ignored

1 participant