Skip to content

Commit

Permalink
chore(deps): update dependency @types/jscodeshift to ^0.12.0 (#429)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Dec 2, 2024
1 parent 836a277 commit b749185
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 29 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@changesets/cli": "^2.22.0",
"@jest/globals": "^29.0.0",
"@types/inquirer": "^9.0.0",
"@types/jscodeshift": "^0.11.3",
"@types/jscodeshift": "^0.12.0",
"@types/node": "^20.0.0",
"@types/yargs": "^17.0.10",
"dedent": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion transforms/context-any.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const parseSync = require("./utils/parseSync");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*
* Summary for Klarna's klapp@19fc4dafed84670398644298bf19c8c2a781dcf8/clients
* 28172 Files unmodified
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-legacy-ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { renameType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedLegacyRefTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-prop-types-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { replaceReactType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedPropTypesTypes = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-react-child.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { replaceReactType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedReactChildTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-react-fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { replaceReactType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedReactFragmentTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-react-node-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { replaceReactType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedReactNodeArrayTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-react-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { replaceReactType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedReactTextTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-react-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { renameType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedReactTypeTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-sfc-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { renameType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedSFCElementTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-sfc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { renameType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedSFCTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-stateless-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { renameType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedStatelessComponentTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/deprecated-void-function-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const parseSync = require("./utils/parseSync");
const { renameType } = require("./utils/replaceType");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedVoidFunctionComponentTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/implicit-children.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const parseSync = require("./utils/parseSync");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*
* Summary for Klarna's klapp@19fc4dafed84670398644298bf19c8c2a781dcf8/clients
* 25718 Files unmodified
Expand Down
3 changes: 2 additions & 1 deletion transforms/no-implicit-ref-callback-return.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const parseSync = require("./utils/parseSync");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const noImplicitRefCallbackReturnTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
6 changes: 4 additions & 2 deletions transforms/preset-18.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const implicitChildrenTransform = require("./implicit-children");
const implicitAnyTransform = require("./useCallback-implicit-any");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
* @param {import('jscodeshift').Options} options
*
* Summary for Klarna's klapp@19fc4dafed84670398644298bf19c8c2a781dcf8/clients
* 28172 Files unmodified
Expand All @@ -22,7 +24,7 @@ const transform = (file, api, options) => {

const transformNames = new Set(preset18Transforms.split(","));
/**
* @type {import('jscodeshift').Transform[]}
* @type {Array<(file: import('jscodeshift').FileInfo, api: import('jscodeshift').API, options: import('jscodeshift').Options) => string>}
*/
const transforms = [];
if (transformNames.has("context-any")) {
Expand Down
6 changes: 4 additions & 2 deletions transforms/preset-19.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ const scopedJsxTransform = require("./scoped-jsx");
const useRefRequiredInitialTransform = require("./useRef-required-initial");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
* @param {import('jscodeshift').Options} options
*/
const transform = (file, api, options) => {
const { preset19Transforms } = options;

const transformNames = new Set(preset19Transforms.split(","));
/**
* @type {import('jscodeshift').Transform[]}
* @type {Array<(file: import('jscodeshift').FileInfo, api: import('jscodeshift').API, options: import('jscodeshift').Options) => string>}
*/
const transforms = [];
if (transformNames.has("deprecated-prop-types-types")) {
Expand Down
3 changes: 2 additions & 1 deletion transforms/react-element-default-any-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const {
} = require("./utils/jscodeshift-bugfixes");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const reactElementDefaultAnyPropsTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
2 changes: 1 addition & 1 deletion transforms/refobject-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const t = require("@babel/types");
const traverse = require("@babel/traverse").default;

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
*
* Summary for Klarna's klapp@b560a65cd2
* 1 errors
Expand Down
3 changes: 2 additions & 1 deletion transforms/scoped-jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const {
const traverse = require("@babel/traverse").default;

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
const deprecatedReactChildTransform = (file, api) => {
const j = api.jscodeshift;
Expand Down
3 changes: 2 additions & 1 deletion transforms/useCallback-implicit-any.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const parseSync = require("./utils/parseSync");

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*
* Summary for Klarna's klapp@19fc4dafed84670398644298bf19c8c2a781dcf8/clients
* 23154 Files unmodified
Expand Down
2 changes: 1 addition & 1 deletion transforms/useRef-required-initial.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const t = require("@babel/types");
const traverse = require("@babel/traverse").default;

/**
* @type {import('jscodeshift').Transform}
* @param {import('jscodeshift').FileInfo} file
*
* Summary for Klarna's klapp@?
* TODO
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2213,13 +2213,13 @@ __metadata:
languageName: node
linkType: hard

"@types/jscodeshift@npm:^0.11.3":
version: 0.11.11
resolution: "@types/jscodeshift@npm:0.11.11"
"@types/jscodeshift@npm:^0.12.0":
version: 0.12.0
resolution: "@types/jscodeshift@npm:0.12.0"
dependencies:
ast-types: ^0.14.1
recast: ^0.20.3
checksum: 6224b781cbbc8e095cae3cb8f9dd1ca102d6c42d9c882b76ea84dfd0cd43870ce317369480ed6b593352efe9fe7199bd6c40ec2cb37646c474ba15f5b43d2109
checksum: 66c2025ee500b30c29af4674033711bd5d7c5fcdc37d62c2d5633d39fc5dbdc571abd497aed96bd2313080a3d131ef4d8da5c593f220ec2ff1302e5ce27ebf46
languageName: node
linkType: hard

Expand Down Expand Up @@ -6043,7 +6043,7 @@ __metadata:
"@changesets/cli": ^2.22.0
"@jest/globals": ^29.0.0
"@types/inquirer": ^9.0.0
"@types/jscodeshift": ^0.11.3
"@types/jscodeshift": ^0.12.0
"@types/node": ^20.0.0
"@types/yargs": ^17.0.10
dedent: ^1.0.0
Expand Down

0 comments on commit b749185

Please sign in to comment.