Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crs-codemod

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crs-codemod - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "crs-codemod",
"version": "1.0.0",
"version": "1.0.1",
"description": "A set of codemods for chakra-react-select",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -59,2 +59,5 @@ # Chakra React Select Codemods

removed in `v5.0.0`.
- Renames the prop `colorScheme` to `tagColorScheme`.
- This prop's name was changed as it didn't represent specifically what it was
for originally.
- Removes the `hasStickyGroupHeaders` prop

@@ -61,0 +64,0 @@ - This prop was deprecated in

@@ -58,2 +58,7 @@ "use strict";

.forEach((attribute) => j(attribute).replaceWith(j.jsxAttribute(j.jsxIdentifier("selectedOptionColorScheme"), attribute.node.value)));
// Replace `colorScheme` prop with `tagColorScheme`
$select
.find(j.JSXAttribute)
.filter((nodePath) => nodePath.node.name.name === "colorScheme")
.forEach((attribute) => j(attribute).replaceWith(j.jsxAttribute(j.jsxIdentifier("tagColorScheme"), attribute.node.value)));
});

@@ -60,0 +65,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc