Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
crs-codemod
Advanced tools
A collection (only one for now) of Codemod transformations to help you upgrade your codebase when a Chakra React Select feature is deprecated.
Codemods are transformations that run on your codebase programmatically. This allows for a large amount of changes to be applied without having to manually go through every file.
These codemods are based on
the codemods offered by Next.js,
and are written using jscodeshift
.
In your terminal, navigate (cd
) into your project's folder, then run:
npx crs-codemod@latest <transform> <path>
Replacing <transform>
and <path>
with appropriate values.
transform
- name of transformpath
- files or directory to transform--dry
Do a dry-run, no code will be edited--print
Prints the changed output for comparisonv5
)npx crs-codemod@latest v5 .
# or
npx crs-codemod@latest v5 ./src
This codemod runs on all versions of the Select
component (Select
,
AsyncSelect
, AsyncCreatableSelect
, CreatableSelect
), and performs the
following modifications to your every instance of them:
useBasicStyles
prop.
v5.0.0
.selectedOptionColor
to selectedOptionColorScheme
.
v4.6.0
to reduce confusion about what values can be passed to it. It has been fully
removed in v5.0.0
.colorScheme
to tagColorScheme
.
hasStickyGroupHeaders
prop
v4.6.0
as well due to it not working properly with keyboard navigation, and being
outside the scope of the intentions for this project. It has also been fully
removed in v5.0.0
.This codemod will only work for props that are added directly to a Select
instance. If you have a shared props object, you will have to make these changes
manually.
FAQs
A set of codemods for chakra-react-select
We found that crs-codemod demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.