You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add v3 to v4 upgrade guide and breaking changes tools
Add support for Vuetify 3 → 4 migration:
- Add v3 entry to UPGRADE_FROM_VERSIONS (fetches from next branch)
- Add V4_BREAKING_CHANGES with 13 categories of breaking changes
- Add get_upgrade_guide tool to expose upgrade documentation
- Add get_v4_breaking_changes tool with optional category filtering
description: 'CSS architecture changes including layers, reset, and entry points',
456
+
changes: [
457
+
{
458
+
title: 'CSS Layers are now mandatory',
459
+
description: 'Vuetify 4 always uses CSS layers for all styles. This changes how specificity works - you may need to adjust custom overrides that relied on !important or specificity hacks.',
460
+
migration: 'Replace !important overrides with layer-aware CSS. Use @layer to control specificity.',
description: 'Default breakpoint values have been reduced to better match modern device sizes.',
526
+
migration: 'If you have layouts depending on specific breakpoint values, review and adjust accordingly or override the breakpoints in your Vuetify config.',
'accessibility': 'Web accessibility (a11y for short), is the inclusive practice of ensuring there are no barriers that prevent the interaction with, or access to, websites on the World Wide Web by people with disabilities.',
443
663
'aliasing': 'Create virtual components that extend built-in Vuetify components using custom aliases.',
@@ -532,10 +752,14 @@ export function createDocumentationService () {
532
752
getUpgradeGuide: async({ version }: {version: UpgradeFromVersion})=>{
533
753
constguide=UPGRADE_FROM_VERSIONS[version]
534
754
755
+
// For v3 upgrade, fetch from next.vuetifyjs.com docs (v4 branch)
756
+
constref=version==='v3' ? 'next' : undefined
757
+
535
758
const{ data }=awaitoctokit.rest.repos.getContent({
'Get the upgrade guide for migrating between Vuetify major versions (v1.5→v2, v2.7→v3, v3→v4).',
81
+
{
82
+
version: z.enum(upgradeVersions).describe(`The source Vuetify version to upgrade from. Available versions: ${upgradeVersions.join(', ')}`),
83
+
},
84
+
documentation.getUpgradeGuide,
85
+
)
86
+
87
+
server.tool(
88
+
'get_v4_breaking_changes',
89
+
'Get Vuetify 4 breaking changes, optionally filtered by category. Returns migration guidance for each change.',
90
+
{
91
+
category: z.enum(breakingChangeCategories).optional().describe(`Optional category to filter by. Available categories: ${breakingChangeCategories.join(', ')}. Omit to get all breaking changes.`),
0 commit comments