Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .changeset/leverage-jssg-utils.md

This file was deleted.

7 changes: 7 additions & 0 deletions codemods/create-element-to-jsx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-create-element-to-jsx

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/create-element-to-jsx/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-create-element-to-jsx"
version: "0.1.3"
version: "0.1.4"
description: "Convert React.createElement calls to JSX"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/create-element-to-jsx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-create-element-to-jsx",
"version": "0.1.3",
"version": "0.1.4",
"description": "Convert React.createElement calls to JSX",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/find-dom-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-find-dom-node

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/find-dom-node/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-find-dom-node"
version: "0.1.3"
version: "0.1.4"
description: "Replace getDOMNode() with React.findDOMNode()"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/find-dom-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-find-dom-node",
"version": "0.1.3",
"version": "0.1.4",
"description": "Replace getDOMNode() with React.findDOMNode()",
"type": "module",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions codemods/fragment-ref-wrappers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# react-19-3-fragment-ref-wrappers

## 0.1.3

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion codemods/fragment-ref-wrappers/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-19-3-fragment-ref-wrappers"
version: "0.1.2"
version: "0.1.3"
description: "Replace display:contents wrapper elements that only exist to hold a ref with a Fragment ref"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/fragment-ref-wrappers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-19-3-fragment-ref-wrappers",
"version": "0.1.2",
"version": "0.1.3",
"description": "Replace display:contents wrapper elements that only exist to hold a ref with a Fragment ref",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/prop-types-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-prop-types-typescript

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/prop-types-typescript/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-prop-types-typescript"
version: "0.1.3"
version: "0.1.4"
description: "Convert React PropTypes declarations into TypeScript props interfaces"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/prop-types-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-prop-types-typescript",
"version": "0.1.3",
"version": "0.1.4",
"description": "Convert React PropTypes declarations into TypeScript props interfaces",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/pure-component/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-pure-component

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/pure-component/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-pure-component"
version: "0.1.3"
version: "0.1.4"
description: "Convert simple React classes into pure function components"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/pure-component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-pure-component",
"version": "0.1.3",
"version": "0.1.4",
"description": "Convert simple React classes into pure function components",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/pure-render-mixin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-pure-render-mixin

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/pure-render-mixin/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-pure-render-mixin"
version: "0.1.3"
version: "0.1.4"
description: "Replace PureRenderMixin with shouldComponentUpdate using React.addons.shallowCompare"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/pure-render-mixin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-pure-render-mixin",
"version": "0.1.3",
"version": "0.1.4",
"description": "Replace PureRenderMixin with shouldComponentUpdate using React.addons.shallowCompare",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/react-dom-to-react-dom-factories/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-dom-to-react-dom-factories

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/react-dom-to-react-dom-factories/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-dom-to-react-dom-factories"
version: "0.1.3"
version: "0.1.4"
description: "Replace React.DOM factories with createElement calls"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/react-dom-to-react-dom-factories/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dom-to-react-dom-factories",
"version": "0.1.3",
"version": "0.1.4",
"description": "Replace React.DOM factories with createElement calls",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/react-native-view-prop-types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-native-view-prop-types

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/react-native-view-prop-types/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-native-view-prop-types"
version: "0.1.3"
version: "0.1.4"
description: "Replace View.propTypes with ViewPropTypes"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/react-native-view-prop-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-view-prop-types",
"version": "0.1.3",
"version": "0.1.4",
"description": "Replace View.propTypes with ViewPropTypes",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/react-proptypes-to-prop-types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-proptypes-to-prop-types

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/react-proptypes-to-prop-types/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-proptypes-to-prop-types"
version: "0.1.3"
version: "0.1.4"
description: "Replace React.PropTypes with prop-types package"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/react-proptypes-to-prop-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-proptypes-to-prop-types",
"version": "0.1.3",
"version": "0.1.4",
"description": "Replace React.PropTypes with prop-types package",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/react-to-react-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-to-react-dom

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/react-to-react-dom/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-to-react-dom"
version: "0.1.3"
version: "0.1.4"
description: "Move DOM APIs from react to react-dom"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/react-to-react-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-to-react-dom",
"version": "0.1.3",
"version": "0.1.4",
"description": "Move DOM APIs from react to react-dom",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/remove-forward-ref/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-19-remove-forward-ref

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/remove-forward-ref/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-19-remove-forward-ref"
version: "0.1.3"
version: "0.1.4"
description: "Inline forwardRef render functions and move ref into props"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/remove-forward-ref/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-19-remove-forward-ref",
"version": "0.1.3",
"version": "0.1.4",
"description": "Inline forwardRef render functions and move ref into props",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/remove-legacy-context/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-19-remove-legacy-context

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/remove-legacy-context/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-19-remove-legacy-context"
version: "0.1.3"
version: "0.1.4"
description: "Remove legacy childContextTypes/getChildContext usage from React class components"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/remove-legacy-context/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-19-remove-legacy-context",
"version": "0.1.3",
"version": "0.1.4",
"description": "Remove legacy childContextTypes/getChildContext usage from React class components",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/remove-memoization/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-19-remove-memoization

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/remove-memoization/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-19-remove-memoization"
version: "0.1.3"
version: "0.1.4"
description: "Remove manual React memoization calls for React Compiler adoption"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/remove-memoization/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-19-remove-memoization",
"version": "0.1.3",
"version": "0.1.4",
"description": "Remove manual React memoization calls for React Compiler adoption",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/replace-act-import/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-19-replace-act-import

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/replace-act-import/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-19-replace-act-import"
version: "0.1.3"
version: "0.1.4"
description: "Migrate act() from react-dom/test-utils to react"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion codemods/replace-act-import/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-19-replace-act-import",
"version": "0.1.3",
"version": "0.1.4",
"description": "Migrate act() from react-dom/test-utils to react",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions codemods/replace-create-factory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# react-19-replace-create-factory

## 0.1.4

### Patch Changes

- dbc10a9: Adopt `@jssg/utils` import helpers (`getImport`, `getAllImports`, `addImport`, `removeImport`, `updateImport`) across React JSSG codemods, bump to `^0.0.10`, and add fixtures covering CJS, aliases, quote/style merges, and multi-specifier import cleanup.
2 changes: 1 addition & 1 deletion codemods/replace-create-factory/codemod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: "1.0"

name: "react-19-replace-create-factory"
version: "0.1.3"
version: "0.1.4"
description: "Replace deprecated React.createFactory calls with JSX"
author: "Codemod <hello@codemod.com>"
license: "MIT"
Expand Down
Loading