![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@channel.io/bezier-codemod
Advanced tools
Codemod transformations to help upgrade app using Bezier design system.
Codemod transformations to help upgrade app using Bezier design system.
In your terminal, navigate into your project's folder, then run:
npx @channel.io/bezier-codemod
icons-to-bezier-icons
Update the import syntax for the icon source moved from @channel.io/bezier-react
to @channel.io/bezier-icons
.
For example:
import React from "react";
import {
AllIcon,
Button,
CheckIcon as CheckIconSource,
Icon,
type IconName,
IconSize,
} from "@channel.io/bezier-react";
import Foo from "./foo";
Transforms into:
import React from "react";
import {
AllIcon,
CheckIcon as CheckIconSource,
type IconName,
} from "@channel.io/bezier-icons";
import { Button, Icon, IconSize } from "@channel.io/bezier-react";
import Foo from "./foo";
enum-member-to-string-literal
Replace deprecated enum usage to string literal.
For example:
import {
ProgressBar,
ProgressBarSize,
ProgressBarVariant,
} from "@channel.io/bezier-react";
export default () => (
<ProgressBar
width="100%"
size={ProgressBarSize.M}
variant={ProgressBarVariant.GreenAlt}
value={uploadProgressPercentage / 100}
/>
);
Transforms into:
import { ProgressBar } from "@channel.io/bezier-react";
export default () => (
<ProgressBar
width="100%"
size="m"
variant="green-alt"
value={uploadProgressPercentage / 100}
/>
);
foundation-to-css-variable
Replace foundation to css variable
You can also use individual transform function such as foundation-to-css-theme
, foundation-to-css-rounding
, and so on.
For example:
import { styled } from "@channel.io/bezier-react";
const Wrapper = styled.div`
color: ${({ foundation }) => foundation?.theme?.["txt-black-dark"]};
${({ foundation }) => foundation?.rounding.round12};
${({ foundation }) =>
foundation?.border?.getBorder(0.5, foundation.theme["bdr-black-light"], {
top: false,
right: false,
left: false,
})};
${({ foundation }) => foundation?.elevation?.ev1()};
${({ foundation }) => foundation?.transition?.getTransitionsCSS("color")};
`;
Transforms into:
import { styled } from "@channel.io/bezier-react";
const Wrapper = styled.div`
color: var(--txt-black-dark);
border-radius: var(--radius-12);
border-bottom: 0.5px solid var(--bdr-black-light);
background-color: var(--bg-white-low);
box-shadow: var(--ev-1);
transition: color var(--transition-s);
`;
FAQs
Codemod transformations to help upgrade app using Bezier design system.
The npm package @channel.io/bezier-codemod receives a total of 1 weekly downloads. As such, @channel.io/bezier-codemod popularity was classified as not popular.
We found that @channel.io/bezier-codemod demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.