Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Sep 25, 2024
1 parent 654f5a8 commit 6b65b2e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/old-spoons-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'braid-design-system': minor
---

---
updated:
- test
---

dummy for snapshot

<!-- Todo - remove file -->
8 changes: 8 additions & 0 deletions packages/codemod/src/codemod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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;
Expand Down
17 changes: 17 additions & 0 deletions packages/codemod/src/plugin-deprecate/deprecationMaps/v33.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const v33Rename = {
Text: {
truncate: 'maxLines',
},
Heading: {
truncate: 'maxLines',
},
};

export const v33ValueChange = {
Text: {
maxLines: 1,
},
Heading: {
maxLines: 1,
},
};

0 comments on commit 6b65b2e

Please sign in to comment.