{"_id":"@ausuliv/pf-codemods","_rev":"2-b9a92ede946500ec6baf3d7ee67e0c3f","name":"@ausuliv/pf-codemods","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@ausuliv/pf-codemods","version":"0.0.1","description":"Codemods for v4 breaking change release 2020.07","author":{"name":"Red Hat"},"license":"MIT","bin":{"pf-codemods":"index.js"},"engines":{"node":">=8"},"publishConfig":{"access":"public","channel":"test"},"dependencies":{"@ausuliv/eslint-plugin-pf-codemods":"^0.0.1","@typescript-eslint/parser":"^3.4.0","commander":"^5.1.0","eslint":"^7.3.0","typescript":"^3.8.3"},"gitHead":"1402d45e1367f745db12dfae95aa00a5add3f864","_id":"@ausuliv/pf-codemods@0.0.1","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"integrity":"sha512-5h09+M7PHAHXYCsTFofxe+1dv725lIxQoleTQi1NJiNjDJ/uL04Osk0xbFjm9vzTmMHHvaSltUhPEbsP/0NFAw==","shasum":"f3daa3586697120f891b5470f6f326d48dba5f4d","tarball":"https://registry.npmjs.org/@ausuliv/pf-codemods/-/pf-codemods-0.0.1.tgz","fileCount":7,"unpackedSize":52526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEL3noT1Qily7mZZAyZL0Zl0zfUaB2QZARDL6Xt6feHTAiEAw9kQwEG/HD48kIf8AOvJ8YY91MYkhAqqhvvH5UVwtCA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwc8wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKhQ/+LtAmjI0XBsbJhbzW0pahUEdbNmfVY40/CB7sf+oaGGkNHgBC\r\nQUmxdUtWbhi0Uqf9I8OE2CMVhgHZMejqhBin61tH8SJrnKM28czZVsll9uul\r\n31FitOcgfCMPfgTQuDalLka23UxY+2n8qW080l73D15/tOP5Zuwp5nwO8w8J\r\nyScrQg0veqMZrAWLiMdhFRj+DxEm39WGnIMomNuSAFcl/dDNixGkBwAPB8gr\r\n7uC9IosrEwNmc8aMJ0GYkBCxVcFlcaIwxxFaBBi/yk0X8kjBk/1RtZGazo7q\r\nqkDXe7m4cAVx22tLbjwd1FAUP6fQmA5E2rOZFZe4HZ+J61Ir2O/0vsqk40G6\r\no/E7yI1ADE0p6xDKzhX/yraa9Gc783yxltfMPMylKIJ4vJEXkJ39WVpK6DHP\r\nFWLz9wAxUAr7Cd0XXHxKOKoYxZVr/usdV14RIyLoRjJ7c7v+JF49ExY+PS6p\r\n4qEGlFFTRk/bZgsYgPw7OBK9LDlHbL8ts8/vPF14ZoZJ8I+b9YhPKmwzACLA\r\nw5a8WtGbzzSokpW/I59lXSzaW1LyXaKbmJ6n/aUTdSidgSd1U2ZsOPn9aeXi\r\n7PcutXpYDhEZmj18mSQLxCQZBRYJQ6CvhCb3DcpVX41Ol4YXSp8lnnwOCiGg\r\nIb3/piuRGwkK8PDLkiUQCFCGK/26FRx6uyk=\r\n=xXnF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"directories":{},"maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pf-codemods_0.0.1_1673645872263_0.5882241222561531"},"_hasShrinkwrap":false},"0.0.2":{"name":"@ausuliv/pf-codemods","version":"0.0.2","description":"Codemods for v4 breaking change release 2020.07","author":{"name":"Red Hat"},"license":"MIT","bin":{"pf-codemods":"index.js"},"engines":{"node":">=8"},"publishConfig":{"access":"public","channel":"test"},"dependencies":{"@ausuliv/eslint-plugin-pf-codemods":"^0.0.1","@typescript-eslint/parser":"^3.4.0","commander":"^5.1.0","eslint":"^7.3.0","typescript":"^3.8.3"},"gitHead":"1402d45e1367f745db12dfae95aa00a5add3f864","_id":"@ausuliv/pf-codemods@0.0.2","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"integrity":"sha512-/tBz6zR3Nji+6U6ZjU5GXTVBZU72cW72n+fm6oGOw6fQIVi71fuFjCK+9my8nlVL0dmG5ssgT06xxN8wyiW69Q==","shasum":"9cccee830cd54edf75cceb62da5542f965fa1163","tarball":"https://registry.npmjs.org/@ausuliv/pf-codemods/-/pf-codemods-0.0.2.tgz","fileCount":7,"unpackedSize":52604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGfgFjjFREmNkWpy0DR/9GGMWOhRx6lbu+hMX5KbgNnAiBckiW4xG61wlB26atqkxORz6U8B0QoMseOneaCOurYZg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwdXcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7KxAAjAv0wMdoJTTRL9O5DvJpeIe4cJquZsFL4B3hkMnbNurCLpbB\r\nbDQlkhJjR8JB8QIS4Ob42RcGzFwZ00djsG9Sb7L+EpWse9L6Z9iKUvDsKC6z\r\nHhwvOBj2PKOZTXPt2ekeILwqJEbY0+bwfPYe+74vNnjYs5V2wCKqcsdffc4O\r\ncmg3Ckdz1XCHowICZ+u5fvztBLHmd0y5/H+L06oU5fTHq5sF57RSn9OooK7r\r\nrvLiDlFfCeAEq0Rx4vv4Zxjyx5O2SnulUGvAHHe7oqpNHdEFOaf9lAZViIvQ\r\nK6uxmcjrRVEgV5minTMrDSWCmBhIgTda8THT3JXetmus/A/zHC01mR+Jwcnj\r\nbo/ff/HP7uTZOeXFzSOHvzSqddMzVyB+9xRNmf2Txkx8WBFTHlgfIaE53v1p\r\nhxM3f4Gd2kwtDd4wWnWaUxAlZR8eOwrihw4/bQ0YlZlFjoSjunwcc92DMTCK\r\n189dc4/GkE579l0hdGUJiyUBSUoNuksrgS1hGb6t7ip8Xi4Dx8SDMsbu6r1u\r\nCKeHyNoDa1J6UJqW8xzcnl48l/HVpTNKOsq0P+naXqTJoBOBP6ySMeWmHb3h\r\nflcrlEV8mAFJocjCYyrE5a8E34QZJVei5d1WrsPQVjbhRZuwhjF4RejX+Ody\r\nxCIjJjptMDCs9NwvFgDwVGAHddH+znaiK8M=\r\n=zuxb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"directories":{},"maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pf-codemods_0.0.2_1673647580388_0.09457854967050405"},"_hasShrinkwrap":false},"0.0.3":{"name":"@ausuliv/pf-codemods","version":"0.0.3","description":"Codemods for v4 breaking change release 2020.07","author":{"name":"Red Hat"},"license":"MIT","bin":{"pf-codemods":"index.js"},"engines":{"node":">=8"},"publishConfig":{"access":"public","channel":"test"},"dependencies":{"@ausuliv/eslint-plugin-pf-codemods":"^0.0.2","@typescript-eslint/parser":"^3.4.0","commander":"^5.1.0","eslint":"^7.3.0","typescript":"^3.8.3"},"gitHead":"c9b39f86546b00d5a97177f7e75b94439ebf22d1","_id":"@ausuliv/pf-codemods@0.0.3","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"integrity":"sha512-51bvl1uExrcVP5EinNrdjlm0heCUctvtkyLf3SGg2Tk6QucBkWEMKbg1tuGgC04gN0heVo0cGiqSiINnl7Vt/g==","shasum":"6a55ae1c83c322f42c435b25398c6e905d0fde48","tarball":"https://registry.npmjs.org/@ausuliv/pf-codemods/-/pf-codemods-0.0.3.tgz","fileCount":7,"unpackedSize":52604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIADYjQItY5ZCh/Q3/BSVggaJuQmOMh3uX4xGe4znvL4dAiAGhGQlgtT5+eg6RlkawoZovnZQ5V7f7wGvXrUza32Pew=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwddhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxjhAAjGwDKR7UN0SyFM+8lZCDxmCx4qm2Cjlq93Vs4zI7Uzi6+kVH\r\n/j1KaR0A8euokM7tF6g7urYNx6E9zqHpMz5tRuIHK9fuc4SNPDHjBk+pyGGj\r\nT5h96YqxgZdRa9LdH2ZrX5FAWulT7ujjyLTo1fKJlyKdJ/jkWTel7hXmRczb\r\nekU605zybeUc8NT36A1yCHtoOtuoP7/K4+UYJ1/RJekeHhq9MqEBg9ZwTe0P\r\nk/lJDTnclLc6yCN/u8W5SlHmf73OKm7H4Yb5BkuUw26T+sdaHBQqjMOJCSUO\r\nm554Ev0OOc7iKSufBFz3ewnyyPL15jUWoeUktLVp73LKx3XkpjmxjLOkl8Oe\r\nOcI05PCkOs5Gxl6+4EqX+cgoK0Kz6Ep1INXJmn34DtQPRPa5iSuZw9fdZSlP\r\n0OmxuellcLpD3DViul+c+Xy5D+rcXH5hT44t+0uFnAm6hsf5GlouFELs1ok8\r\nSaIhQ35rEgnU9j/hSYvXfy/wlCvi5/s5BVd0phQL6K2U1kxRekSlPaXvZunu\r\nFhSMLS3lk91b2/y05e2o3D/I84HPvO0QVbP5Zjrn/ZgzPkZTiWhJlA23GDlO\r\nNwjVxm2pNuENqxn7irGNx9BEAm0vJHWh1l8AV8QapNE6WyO15+q0K71AExBS\r\nLs8W9fkcZZYkDeP4Ke0j1lvV5TlK791fGys=\r\n=3bNu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"directories":{},"maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pf-codemods_0.0.3_1673647969177_0.21885094356546797"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-13T21:37:52.203Z","0.0.1":"2023-01-13T21:37:52.474Z","modified":"2023-01-13T22:12:49.413Z","0.0.2":"2023-01-13T22:06:20.602Z","0.0.3":"2023-01-13T22:12:49.336Z"},"maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"description":"Codemods for v4 breaking change release 2020.07","author":{"name":"Red Hat"},"license":"MIT","readme":"# pf-codemods\n\nHey PatternFly-React devs! `pf-codemods` is an eslint wrapper to update @patternfly/react-core@4.x.x code to 5.x.x.\n\nI hope these rules and their autofixers will help you more quickly adopt our breaking changes. These rules are not designed to fix all build errors, but they can help to fix easy ones.\n\n## Usage\n\n### Simple case\n\nRequires Node.js >= 10.\n\n```sh\nnpx pf-codemods ./src\n```\n\nGiving node more RAM can help for large codebases.\n\n```sh\nNODE_OPTIONS=--max-old-space-size=4096 npx pf-codemods ./path-to-src\n```\n\n### Options\n\n```sh\nUsage: pf-codemods [options] <path> [otherPaths...]\n\nRun codemods on path using eslint.\n\nOptions:\n  -V, --version      output the version number\n  --only <rules>     Comma-seperated list of rules to run\n  --exclude <rules>  Run recommended rules EXCLUDING this comma-seperated list\n  --fix              Whether to run fixer\n  --format <format>  What eslint report format to use (default: \"stylish\")\n  -h, --help         display help for command\n```\n\n## Rules\n\nThese rules are based off the breaking change notes for React. Each rule links the breaking change patternfly-react PR in case you want to better understand the change. Also, each rule makes sure you're using a PatternFly component before running.\n\n### accordion-rename-displaySize-large [(#8212)](https://github.com/patternfly/patternfly-react/pull/8212)\n\nWe've renamed the `large` prop value of `displaySize` to `lg`.\n\n#### Examples\n\nIn:\n\n```jsx\n<Accordion displaySize=\"large\" />\n```\n\nOut:\n\n```jsx\n<Accordion displaySize=\"lg\" />\n```\n\n### card-remove-isHoverable [(#8196)](https://github.com/patternfly/patternfly-react/pull/8196)\n\nWe've removed the deprecated `isHoverable` prop from Card.\n\nIn:\n\n```jsx\n<Card isHoverable />\n```\n\nOut:\n\n```jsx\n<Card  />\n```\n\n### datalist-remove-ondrags [(#163)](https://github.com/patternfly/pf-codemods/issues/163)\n\nWe've removed the deprecated `onDragFinish`, `onDragStart`, `onDragMove`, and `onDragCancel` props. This rule will remove them and suggest the user use the DragDrop component.\n\n#### Examples\n\nIn:\n\n```jsx\n<DataList onDragStart />\n```\n\nOut:\n\n```jsx\n<DataList  />\n```\n\n### divider-remove-isVertical [(#8199)](https://github.com/patternfly/patternfly-react/pull/8199)\n\nWe've replaced the `isVertical` flag with the `orientation` property that can define verticality on different breakpoints.\n\n#### Examples\n\n```jsx\n<Divider isVertical />\n```\n\nOut:\n\n```jsx\n<Divider orientation={{ default: \"vertical\" }} />\n```\n\n### expandable-section-rename-displaySize-large [(#8212)](https://github.com/patternfly/patternfly-react/pull/8212)\n\nWe've renamed the `large` prop value of `displaySize` to `lg`.\n\n#### Examples\n\nIn:\n\n```jsx\n<ExpandableSection displaySize=\"large\" />\n```\n\nOut:\n\n```jsx\n<ExpandableSection displaySize=\"lg\" />\n```\n\n### fileUpload-remove-onChange [(#8155)](https://github.com/patternfly/patternfly-react/pull/8155)\n\nWe've removed the deprecated `onChange` prop. This rule will remove the prop from the FileUpload component and suggest replacing it with the `onFileInputChange`, `onTextChange`, `onDataChange`, and `onClearClick` props as needed.\n\n#### Examples\n\nIn:\n\n```jsx\n<FileUpload onChange={onChange} />\n```\n\nOut:\n\n```jsx\n<FileUpload  />\n```\n\n### pagination-remove-ToggleTemplateProps [(#8134)](https://github.com/patternfly/patternfly-react/pull/8134)\n\nWe've removed the depracated `ToggleTemplateProps` prop and replaced it with `PaginationToggleTemplateProps`.\n\n#### Examples\n\nIn:\n\n```jsx\n<Pagination ToggleTemplateProps />\n```\n\nOut:\n\n```jsx\n<Pagination PaginationToggleTemplateProps />\n```\n\n### pagination-rename-props [(#8319)](https://github.com/patternfly/patternfly-react/pull/8319)\n\nWe've renamed and/or removed several props for Pagination:\n\n- `currPage`: `currPageAriaLabel`,\n- `paginationTitle`: `paginationAriaLabel`,\n- `toFirstPage`: `toFirstPageAriaLabel`,\n- `toLastPage`: `toLastPageAriaLabel`,\n- `toNextPage`: `toNextPageAriaLabel`,\n- `toPreviousPage`: `toPreviousPageAriaLabel`,\n- `optionsToggle`: `optionsToggleAriaLabel`,\n- `defaultToFullPage`: `isLastFullPageShown`,\n- `perPageComponenet`: removed\n\n#### Examples\n\nIn:\n\n```jsx\n<Pagination\n  currPage='text'\n  paginationTitle='text'\n  toFirstPage='text'\n  toLastPage='text'\n  toNextPage='text'\n  toPreviousPage='text'\n  optionsToggle='text'\n  defaultToFullPage\n  perPageComponenet='div'\n/>\n```\n\nOut:\n\n```jsx\n<Pagination\n  currPageAriaLabel='text'\n  paginationAriaLabel='text'\n  toFirstPageAriaLabel='text'\n  toLastPageAriaLabel='text'\n  toNextPageAriaLabel='text'\n  toPreviousPageAriaLabel='text'\n  optionsToggleAriaLabel='text'\n  isLastFullPageShown\n/>\n```\n\n### remove-sticky-props [(#8220)](https://github.com/patternfly/patternfly-react/pull/8220)\n\nWe've removed the deprecated `sticky` prop from `PageSection`, `PageGroup`, `PageNavigation`, and `PageBreadcrumb`.\n\nIn:\n\n```jsx\n<PageSection sticky=\"top\" />\n<PageGroup sticky=\"top\" />\n<PageNavigation sticky=\"top\" />\n<PageBreadcrumb sticky=\"top\" />\n```\n\nOut:\n\n```jsx\n<PageSection  />\n<PageGroup  />\n<PageNavigation  />\n<PageBreadcrumb  />\n```\n\n### resizeObserver-function-param [(#8324)](https://github.com/patternfly/patternfly-react/pull/8324)\n\nWe've updated the default value of the `getResizeObserver` helper function's third parameter, `useRequestAnimationFrame`. This rule will only provide two suggestions detailing when to pass which boolean into this parameter.\n\n### tableComposable-remove-hasSelectableRowCaption [(#8352)](https://github.com/patternfly/patternfly-react/pull/8352)\n\nWe've removed the depracated `hasSelectableRowCaption` prop.\n\n#### Examples\n\nIn:\n\n```jsx\n<TableComposable hasSelectableRowCaption />\n```\n\nOut:\n\n```jsx\n<TableComposable  />\n```\n\n### simpleList-remove-isCurrent [(#8132)](https://github.com/patternfly/patternfly-react/pull/8132)\n\nWe've removed the deprecated the `isCurrent` prop. This rule wil replace it with `isActive`.\n\n#### Examples\n\nIn:\n\n```jsx\n<SimpleList isCurrent />\n```\n\nOut:\n\n```jsx\n<SimpleList isActive />\n```\n\n### toggle-remove-isprimary [(#8179)](https://github.com/patternfly/patternfly-react/pull/8179)\n\nWe've removed the deprecated `isPrimary` prop. This rule wil replace it with the \"primary\" value on the `toggleVariant` prop.\n\n#### Examples\n\nIn:\n\n```jsx\n<Toggle isPrimary />\n```\n\nOut:\n\n```jsx\n<Toggle toggleVariant=\"primary\" />\n```\n\n### toolbar-remove-visiblity [(#8212)](https://github.com/patternfly/patternfly-react/pull/8212)\n\nWe've removed the deprecated `visiblity` prop. This rule will replace it with the correctly spelled `visibility` prop.\n\n#### Examples\n\nIn:\n\n```jsx\n<ToolbarContent visiblity={{ default: \"hidden\" }} />\n```\n\nOut:\n\n```jsx\n<ToolbarContent visibility={{ default: \"hidden\" }} />\n```\n\n### tooltip-remove-props [(#8231)](https://github.com/patternfly/patternfly-react/pull/8231)\n\nWe've removed the `boundary`, `tippyProps`, and `isAppLauncher` properties from Tooltip.\n\n#### Examples\n\nIn:\n\n```jsx\n<Tooltip boundary={} tippyProps={} isAppLauncher />\n```\n\nOut:\n\n```jsx\n<Tooltip     />\n```\n","readmeFilename":"README.md"}