ui icon indicating copy to clipboard operation
ui copied to clipboard

feat(module)!: use `moduleDependencies` to manipulate options

Open danielroe opened this issue 2 months ago โ€ข 1 comments

๐Ÿ”— Linked issue

โ“ Type of change

  • [ ] ๐Ÿ“– Documentation (updates to the documentation or readme)
  • [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [x] ๐Ÿ‘Œ Enhancement (improving an existing functionality)
  • [ ] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

this uses the new module dependencies feature in https://github.com/nuxt/nuxt/releases/tag/v4.1.0 to specify options for other modules (and require them).

remake of https://github.com/nuxt/ui/pull/4927, pending a fix in nuxt/content

๐Ÿ“ Checklist

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

danielroe avatar Nov 04 '25 12:11 danielroe

npm i https://pkg.pr.new/@nuxt/ui@5384

commit: cc8fc95

pkg-pr-new[bot] avatar Nov 04 '25 12:11 pkg-pr-new[bot]

@danielroe I'm a bit hesitant to merge this as it will break apps that haven't been updated to https://github.com/nuxt/content/releases/tag/v3.8.1. We would need to update the @nuxt/content peer dependency to 3.8.1 as well right?

benjamincanac avatar Nov 18 '25 09:11 benjamincanac

once I merge https://github.com/nuxt/nuxt/pull/33689, we should be fine with the latest nuxt patch even if uses don't update content

danielroe avatar Nov 18 '25 09:11 danielroe