Skip to content

Latest commit

 

History

History
262 lines (159 loc) · 10.7 KB

CHANGELOG.md

File metadata and controls

262 lines (159 loc) · 10.7 KB

@channel.io/bezier-codemod

0.5.0

Minor Changes

  • Changes in v2-text-component-interface codemod (#1932) by @yangwooseong Previously, both the component name and the name of the property were checked, but now only the name of the component property is checked.

  • Add codemod for Stack component (#1836) by @yangwooseong

  • Add more various cases to v2-enum-member-to-string-literal (#2059) by @yangwooseong

  • Fix typo in v2-z-index-interpolation-to-css-variable codemod. It now transforms ${ZIndex.Float} enum to var(--z-index-floating), not var(--z-index-float). (#1924) by @yangwooseong

  • Add codemod to transform interface of Text component (#1849) by @yangwooseong

  • Enhancement in v2-foundation-to-css-variable-transition codemod (#1917) by @yangwooseong

    • It will properly remove import statement if it converts code where TransitionDuration is used.
  • Changes in v2-remove-alpha-from-alpha-stack transform (#1894) by @yangwooseong

    • It is renamed as v2-remove-alpha-from-alpha-components.
    • It covers AlphaCenter as well.
  • Add v2-foundation-to-css-variable-spacing codemod to convert the foundation's spacing variable to pixels (#1907) by @yangwooseong

    This transforms

    import { styled } from "@channel.io/bezier-react";
    
    export const Wrapper = styled.div`
      padding: ${({ foundation }) => foundation?.spacing.s5};
    `;

    into

    import { styled } from "@channel.io/bezier-react";
    
    export const Wrapper = styled.div`
      padding: 12px;
    `;
  • Changes in v2-**-interpolation-to-css-variable transform. (#1928) by @yangwooseong

    • it is renamed to v2-interpolation-to-css-variable-**. e.g. v2-interpolation-to-css-varable-input, v2-interpolation-to-css-variable-typography, and so on
    • it provides integrated transform named v2-interpolation-to-css-variable that handles all interpolation transform
  • Enhance import-styled-from-styled-component codemod to cover other APIs from styled-components (#1852) by @yangwooseong

  • Add Typography transform logic to interpolation codemod (#1841) by @yangwooseong

  • Add v2 prefix to codemods related to major version 2 (#1844) by @yangwooseong

  • Add codemod for z-index interpolation and enum (#1845) by @yangwooseong

  • Add more various cases to v2-enum-member-to-string-literal. Now it covers following enums. (#2059) by @yangwooseong

    • AvatarGroupEllipsisType
    • IconSize
    • LegacyTooltipPosition
    • ModalTitleSize
    • OverlayPosition
    • ProgressBarSize, ProgressBarVariant
    • SpinnerSize
    • SwitchSize
    • TagBadgeSize, TagBadgeVariant
    • TextAreaHeight
    • TextFieldSize, TextFieldVariant
    • ToastPlacement, ToastAppearance, ToastPreset
    • TooltipPosition
  • Add inputPlaceholderStyle migration logic to v2-input-interpolation-to-css-variable codemod (#1926) by @yangwooseong

  • Add transform functions to help to migrate foundation to css variable generated by @channel.io/bezier-tokens package. They cover theme, transition, elevation, rounding, and border of foundation (#1781) by @yangwooseong

  • Added a codemod to switch the library for importing 'styled' object from @channel.io/bezier-react to styled-components (#1789) by @yangwooseong

  • Add codemod for mixin interpolation (#1787) by @yangwooseong

Patch Changes

  • Fix bug in v2-import-from-bezier-to-styled-components codemod when there are only named imports as following: (#1987) by @yangwooseong

    // As-is
    import { css } from "@channel.io/bezier-react";
    
    // To-be
    import { css } from "styled-components";
  • Fix hasNamedImportInImportDeclaration util to check all named imports (#2060) by @yangwooseong

0.5.0-alpha.8

Patch Changes

  • Fix hasNamedImportInImportDeclaration util to check all named imports (#2060) by @yangwooseong

0.5.0-alpha.7

Minor Changes

  • Add more various cases to v2-enum-member-to-string-literal (#2059) by @yangwooseong

  • Add more various cases to v2-enum-member-to-string-literal. Now it covers following enums. (#2059) by @yangwooseong

    • AvatarGroupEllipsisType
    • IconSize
    • LegacyTooltipPosition
    • ModalTitleSize
    • OverlayPosition
    • ProgressBarSize, ProgressBarVariant
    • SpinnerSize
    • SwitchSize
    • TagBadgeSize, TagBadgeVariant
    • TextAreaHeight
    • TextFieldSize, TextFieldVariant
    • ToastPlacement, ToastAppearance, ToastPreset
    • TooltipPosition

0.5.0-alpha.6

Patch Changes

  • Fix bug in v2-import-from-bezier-to-styled-components codemod when there are only named imports as following: (#1987) by @yangwooseong

    // As-is
    import { css } from "@channel.io/bezier-react";
    
    // To-be
    import { css } from "styled-components";

0.5.0-alpha.5

Minor Changes

  • Changes in v2-text-component-interface codemod (#1932) by @yangwooseong Previously, both the component name and the name of the property were checked, but now only the name of the component property is checked.

  • Changes in v2-**-interpolation-to-css-variable transform. (#1928) by @yangwooseong

    • it is renamed to v2-interpolation-to-css-variable-**. e.g. v2-interpolation-to-css-varable-input, v2-interpolation-to-css-variable-typography, and so on
    • it provides integrated transform named v2-interpolation-to-css-variable that handles all interpolation transform

0.5.0-alpha.4

Minor Changes

  • Fix typo in v2-z-index-interpolation-to-css-variable codemod. It now transforms ${ZIndex.Float} enum to var(--z-index-floating), not var(--z-index-float). (#1924) by @yangwooseong

  • Enhancement in v2-foundation-to-css-variable-transition codemod (#1917) by @yangwooseong

    • It will properly remove import statement if it converts code where TransitionDuration is used.
  • Add v2-foundation-to-css-variable-spacing codemod to convert the foundation's spacing variable to pixels (#1907) by @yangwooseong

    This transforms

    import { styled } from "@channel.io/bezier-react";
    
    export const Wrapper = styled.div`
      padding: ${({ foundation }) => foundation?.spacing.s5};
    `;

    into

    import { styled } from "@channel.io/bezier-react";
    
    export const Wrapper = styled.div`
      padding: 12px;
    `;
  • Add inputPlaceholderStyle migration logic to v2-input-interpolation-to-css-variable codemod (#1926) by @yangwooseong

0.5.0-alpha.3

Minor Changes

  • Changes in v2-remove-alpha-from-alpha-stack transform (#1894) by @yangwooseong

    • It is renamed as v2-remove-alpha-from-alpha-components.
    • It covers AlphaCenter as well.

0.5.0-alpha.2

Minor Changes

  • Add codemod for Stack component (#1836) by @yangwooseong

  • Add codemod to transform interface of Text component (#1849) by @yangwooseong

  • Enhance import-styled-from-styled-component codemod to cover other APIs from styled-components (#1852) by @yangwooseong

  • Add Typography transform logic to interpolation codemod (#1841) by @yangwooseong

  • Add v2 prefix to codemods related to major version 2 (#1844) by @yangwooseong

  • Add codemod for z-index interpolation and enum (#1845) by @yangwooseong

0.5.0-alpha.1

Minor Changes

  • Added a codemod to switch the library for importing 'styled' object from @channel.io/bezier-react to styled-components (#1789) by @yangwooseong

  • Add codemod for mixin interpolation (#1787) by @yangwooseong

0.5.0-alpha.0

Minor Changes

  • Add transform functions to help to migrate foundation to css variable generated by @channel.io/bezier-tokens package. (#1781) by @yangwooseong They cover theme, transition, elevation, rounding, and border of foundation.

0.4.0

Minor Changes

  • Implement codemod transform which replaces enum usage with string literal (#1639) by @Dogdriip

0.3.0

Minor Changes

  • Add Banner to iconName transformation target (#1562) by @yangwooseong

0.2.1

Patch Changes

  • Update the following packages to the latest versions: meow, ts-morph (#1429) by @sungik-choi

0.2.0

Minor Changes

  • Add migration function that changes iconName to BezierIcon (#1418) by @yangwooseong

0.1.1

Patch Changes

  • icons-to-bezier-icons : Remove LegacyIcon from the migration target module name pattern (#1384) by @sungik-choi

0.1.0

Minor Changes

  • Add icons-to-bezier-icons transformer (#1382) by @sungik-choi