Skip to content

chore: update dependencies and fix duplicate export warning#22

Merged
amondnet merged 4 commits intomainfrom
fix/nuxt-content-layer-compatibility
Dec 22, 2025
Merged

chore: update dependencies and fix duplicate export warning#22
amondnet merged 4 commits intomainfrom
fix/nuxt-content-layer-compatibility

Conversation

@amondnet
Copy link
Copy Markdown
Contributor

Summary

  • Update @nuxt/content, @nuxtjs/mdc, shadcn-nuxt, and zod to latest minor/patch versions
  • Update tailwindcss and @tailwindcss/vite to v4.1.18
  • Fix duplicate export warning by renaming flattenNavigation to flattenNavigationToSearchItems
  • Update bun.lock with resolved dependencies

Changes

Dependencies Updated

  • @nuxt/content: ^3.8.2 → ^3.9.0
  • @nuxtjs/mdc: ^0.18.4 → ^0.19.1
  • shadcn-nuxt: 2.3.3 → 2.4.3
  • zod: ^3.25.76 → ^4.2.1
  • tailwindcss/vite: ^4.1.17 → ^4.1.18
  • @iconify-json/lucide, @nuxt/kit, nuxt-og-image, @nuxtjs/robots (minor updates)

Files Modified

  • packages/layer/package.json - Updated dependency versions
  • packages/layer/app/composables/useContentSearch.ts - Renamed function to avoid export conflict
  • packages/layer/app/components/app/AppSearch.vue - Updated import and function call
  • bun.lock - Updated lock file

Test plan

  • Dependencies resolve without conflicts
  • Application builds successfully
  • No TypeScript errors
  • Search functionality works with renamed function

…mports

- Add extendViteConfig import and configure optimizeDeps for @nuxt/content/slugify
- Update deprecated @nuxt/content/nitro import to @nuxt/content/server
- Remove duplicate nuxt-og-image module from modules array
- Fix indentation in modules array for consistency

This ensures the @pleaseai/docs layer works correctly when imported as a dependency in other Nuxt projects.
- Changed import from '@nuxt/content/server' to '@nuxt/content/nitro' in raw route handler
- Matches Docus pattern for proper layer compatibility
- Adds experimental.asyncContext flag to nuxt.config.ts
- Updates compatibilityDate to 2025-07-22
- Applies ESLint formatting fixes (double quotes to single quotes) in UI components
- Fixes indentation in apps/docs/nuxt.config.ts
- Update @nuxt/content from ^3.8.2 to ^3.9.0
- Update @nuxtjs/mdc from ^0.18.4 to ^0.19.1
- Update shadcn-nuxt from 2.3.3 to 2.4.3
- Update zod from ^3.25.76 to ^4.2.1
- Update tailwindcss and @tailwindcss/vite from ^4.1.17 to ^4.1.18
- Update other minor dependencies (@iconify-json/lucide, @nuxt/kit, nuxt-og-image, @nuxtjs/robots)
- Rename flattenNavigation to flattenNavigationToSearchItems to fix duplicate export warning
- Update AppSearch.vue to use renamed function
- Update bun.lock with new dependency versions

Closes #22
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @amondnet, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a routine maintenance task, bringing several core project dependencies up to date. It also addresses a specific code quality issue by renaming a function to eliminate a duplicate export warning. These changes collectively aim to improve the project's stability, leverage newer library features, and maintain a clean, warning-free codebase.

Highlights

  • Dependency Updates: Key dependencies including @nuxt/content, @nuxtjs/mdc, shadcn-nuxt, zod, tailwindcss, and @tailwindcss/vite have been updated to their latest minor/patch versions, ensuring the project benefits from the latest features and bug fixes.
  • Duplicate Export Warning Fix: The flattenNavigation function in useContentSearch.ts has been renamed to flattenNavigationToSearchItems to resolve a duplicate export warning, improving code clarity and preventing potential build issues.
  • Build Configuration Enhancements: The nuxt.config.ts file has been updated to include extendViteConfig for better compatibility with @nuxt/content's optimizeDeps, and the compatibilityDate has been adjusted along with enabling experimental.asyncContext.
  • Lock File Synchronization: The bun.lock file has been comprehensively updated to reflect all resolved dependency changes, ensuring consistent and reproducible builds.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@sonarqubecloud
Copy link
Copy Markdown

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying docs-please with  Cloudflare Pages  Cloudflare Pages

Latest commit: 394d2e8
Status:🚫  Deploy failed.

View logs

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several dependencies to their latest versions and resolves a duplicate export warning by renaming a function. The changes are generally positive and improve the project's maintenance.

I have one specific suggestion regarding the nuxt.config.ts file in the packages/layer directory, where a package name is hardcoded. Making this dynamic would improve maintainability.

Additionally, I noticed the update of zod from v3 to v4. This is a major version bump, and while the tests pass, it's important to be mindful of potential breaking changes, especially since other parts of the workspace might still depend on v3 through other dependencies. Ensuring compatibility across the board is crucial.

Overall, this is a good set of updates.

const includes = new Set(config.optimizeDeps.include)
includes.add('@nuxt/content > slugify')
config.optimizeDeps.include = Array.from(includes).map(id =>
id.startsWith('@nuxt/content > ') ? `docs-please > ${id}` : id,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The package name docs-please is hardcoded here. This could be brittle if the package name is ever changed. Consider reading the package name from package.json dynamically to make this more robust.

@amondnet amondnet merged commit 01a0719 into main Dec 22, 2025
1 of 2 checks passed
@amondnet amondnet deleted the fix/nuxt-content-layer-compatibility branch December 22, 2025 11:49
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