Skip to content

fix(module): augment @nuxt/schema rather than nuxt/schema - #2171

Merged
benjamincanac merged 2 commits into
devfrom
schema-augment
Sep 10, 2024
Merged

benjamincanac merged 2 commits into
devfrom
schema-augment

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

❓ 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)
  • ✨ 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

Context: nuxt/nuxt#28332

nuxt/schema is a re-export of @nuxt/schema for users to use. Modules should not augment it, or it may end up overwriting the inferred types from @nuxt/schema.

(We made the change in nuxt/module-builder#295 (released in v0.8.0 of @nuxt/module-builder) to avoid doing this in @nuxt/module-builder itself.)

📝 Checklist

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

@benjamincanac benjamincanac changed the title fix: augment @nuxt/schema rather than nuxt/schema fix(module): augment @nuxt/schema rather than nuxt/schema Sep 10, 2024
@benjamincanac
benjamincanac merged commit ead904f into dev Sep 10, 2024
@benjamincanac
benjamincanac deleted the schema-augment branch September 10, 2024 15:40
binhtranhuu pushed a commit to binhtranhuu/nuxt-ui that referenced this pull request Sep 14, 2024
)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
patrick-hofmann pushed a commit to patrick-hofmann/nuxt-ui that referenced this pull request Oct 3, 2024
)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>

This branch was successfully deployed

1 active deployment
Preview — c2dbe47b Deployed Sep 10, 2024 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.

2 participants