crs-codemod
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15587
254
72