diff --git a/.changeset/old-spoons-scream.md b/.changeset/old-spoons-scream.md new file mode 100644 index 00000000000..45924bba72f --- /dev/null +++ b/.changeset/old-spoons-scream.md @@ -0,0 +1,12 @@ +--- +'braid-design-system': minor +--- + +--- +updated: + - test +--- + +dummy for snapshot + + diff --git a/packages/codemod/src/codemod.ts b/packages/codemod/src/codemod.ts index bb6539fada7..fdc75ff4ee8 100644 --- a/packages/codemod/src/codemod.ts +++ b/packages/codemod/src/codemod.ts @@ -18,6 +18,10 @@ import importUpdatePlugin from './plugin-deprecate/plugin-import-update'; import propRenamePlugin from './plugin-deprecate/plugin-prop-rename'; import { v31 } from './plugin-deprecate/deprecationMaps/v31'; import { v31_11 } from './plugin-deprecate/deprecationMaps/v31-11'; +import { + v33Rename, + v33ValueChange, +} from './plugin-deprecate/deprecationMaps/v33'; const pluginsForVersion = { v31: [ @@ -27,6 +31,10 @@ const pluginsForVersion = { importUpdatePlugin, ], [`v31.11`]: [[propRenamePlugin, { renames: v31_11 }]], + v33: [ + [propRenamePlugin, { renames: v33Rename }], + [propsPlugin, { deprecations: v33ValueChange }], + ], }; type Version = keyof typeof pluginsForVersion; diff --git a/packages/codemod/src/plugin-deprecate/deprecationMaps/v33.ts b/packages/codemod/src/plugin-deprecate/deprecationMaps/v33.ts new file mode 100644 index 00000000000..0df57a9119e --- /dev/null +++ b/packages/codemod/src/plugin-deprecate/deprecationMaps/v33.ts @@ -0,0 +1,17 @@ +export const v33Rename = { + Text: { + truncate: 'maxLines', + }, + Heading: { + truncate: 'maxLines', + }, +}; + +export const v33ValueChange = { + Text: { + maxLines: 1, + }, + Heading: { + maxLines: 1, + }, +};