Skip to content

Bumps jscodeshift globally #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025
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
8 changes: 8 additions & 0 deletions .changeset/afraid-ligers-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@hypermod/initializer': minor
'@hypermod/utils': minor
'@hypermod/core': minor
'@hypermod/cli': minor
---

Bumps jscodeshift to the latest version to surface bug fixes and various improvements. Note: this may inherently change how files are parsed and transformed.
27 changes: 27 additions & 0 deletions .changeset/smart-teachers-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
'@hypermod/mod-atlaskit__progress-indicator': minor
'@hypermod/mod-atlaskit__section-message': minor
'@hypermod/mod-atlaskit__side-navigation': minor
'@hypermod/mod-atlaskit__breadcrumbs': minor
'@hypermod/mod-atlaskit__textfield': minor
'@hypermod/mod-atlaskit__calendar': minor
'@hypermod/mod-atlaskit__checkbox': minor
'@hypermod/mod-atlaskit__textarea': minor
'@hypermod/mod-atlaskit__spinner': minor
'@hypermod/mod-emotion__monorepo': minor
'@hypermod/mod-atlaskit__avatar': minor
'@hypermod/mod-atlaskit__button': minor
'@hypermod/mod-atlaskit__popper': minor
'@hypermod/mod-atlaskit__toggle': minor
'@hypermod/mod-atlaskit__popup': minor
'@hypermod/mod-atlaskit__range': minor
'@hypermod/mod-atlaskit__icon': minor
'@hypermod/mod-atlaskit__menu': minor
'@hypermod/mod-atlaskit__tag': minor
'@hypermod/mod-memoize-one': minor
'@hypermod/mod-javascript': minor
'@hypermod/mod-hypermod': minor
'@hypermod/mod-react': minor
---

Bumps jscodeshift, which may have unintended side-effects
2 changes: 1 addition & 1 deletion community/@atlaskit__avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hypermod/utils": "^0.5.0",
"jscodeshift": "^0.13.1"
"jscodeshift": "^17.1.2"
},
"devDependencies": {
"@hypermod/cli": "^0.24.0",
Expand Down
26 changes: 13 additions & 13 deletions community/@atlaskit__avatar/src/18.0.0/__tests__/transform.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('Update Avatar props', () => {
import Avatar from '@atlaskit/avatar';

const App = () => {
return <Avatar />;
return (<Avatar />);
}
`,
'should remove all deleted props',
Expand Down Expand Up @@ -170,7 +170,7 @@ describe('Update Avatar props', () => {
import Foo from '@atlaskit/avatar';

const App = () => {
return <Foo />;
return (<Foo />);
}
`,
'should remove all deleted props with aliased import name',
Expand All @@ -194,7 +194,7 @@ describe('Update Avatar props', () => {
import Avatar from '@atlaskit/avatar';

const App = () => {
return <Avatar />;
return (<Avatar />);
}
`,
'should remove enableTooltip when false',
Expand Down Expand Up @@ -256,7 +256,7 @@ describe('Update AvatarItem props', () => {
import Avatar, { AvatarItem } from '@atlaskit/avatar';

const App = () => {
return <AvatarItem />;
return (<AvatarItem />);
}
`,
'should remove all deleted props',
Expand Down Expand Up @@ -284,7 +284,7 @@ describe('Update AvatarItem props', () => {
import { AvatarItem as Foo } from '@atlaskit/avatar';

const App = () => {
return <Foo />;
return (<Foo />);
}
`,
'should remove all deleted props with aliased import',
Expand All @@ -308,7 +308,7 @@ describe('Update AvatarItem props', () => {
import { AvatarItem } from '@atlaskit/avatar';

const App = () => {
return <AvatarItem />;
return (<AvatarItem />);
}
`,
'should remove enableTextTruncate when defaulted to true',
Expand All @@ -333,9 +333,9 @@ describe('Update AvatarItem props', () => {

const App = () => {
return (
<AvatarItem
(<AvatarItem
isTruncationDisabled
/>
/>)
);
}
`,
Expand Down Expand Up @@ -365,9 +365,9 @@ describe('Update AvatarItem props', () => {

const App = () => {
return (
<AvatarItem
(<AvatarItem
isTruncationDisabled={!value}
/>
/>)
);
}
`,
Expand Down Expand Up @@ -399,9 +399,9 @@ describe('Update AvatarItem props', () => {

const App = () => {
return (
<AvatarItem
(<AvatarItem
isTruncationDisabled={!(foo && bar)}
/>
/>)
);
}
`,
Expand All @@ -426,7 +426,7 @@ describe('Update AvatarItem props', () => {
import Avatar, { AvatarItem } from '@atlaskit/avatar';

const App = () => {
return <AvatarItem />;
return (<AvatarItem />);
}
`,
'should remove isTruncationDisabled when true',
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__breadcrumbs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hypermod/utils": "^0.5.0",
"jscodeshift": "^0.13.1"
"jscodeshift": "^17.1.2"
},
"devDependencies": {
"@hypermod/cli": "^0.24.0",
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hypermod/utils": "^0.5.0",
"jscodeshift": "^0.13.1"
"jscodeshift": "^17.1.2"
},
"devDependencies": {
"@hypermod/cli": "^0.24.0",
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hypermod/utils": "^0.5.0",
"jscodeshift": "^0.13.1"
"jscodeshift": "^17.1.2"
},
"devDependencies": {
"@hypermod/cli": "^0.24.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
import Calendar from '@atlaskit/calendar';
const SimpleCalendar = () => {
return (
<Calendar
(<Calendar
innerProps={{
style: {
border: '1px solid red',
Expand All @@ -58,7 +58,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
border: '1px solid red',
display: 'inline-block',
}}
className={'abc'} />
className={'abc'} />)
);
};"
`);
Expand Down Expand Up @@ -89,11 +89,11 @@ describe('Flatten Inner Prop Style As Prop', () => {
import Calendar from '@atlaskit/calendar';
const SimpleCalendar = () => {
return (
<Calendar
(<Calendar
innerProps={{
className: 'abc',
}}
className={'abc'} />
className={'abc'} />)
);
};"
`);
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
import Calendar from '@atlaskit/calendar';
const SimpleCalendar = () => {
return (
<Calendar
(<Calendar
innerProps={{
style: {
border: '1px solid red',
Expand All @@ -137,7 +137,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
style={{
border: '1px solid red',
display: 'inline-block',
}} />
}} />)
);
};"
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Remove innerProps', () => {
import Calendar from '@atlaskit/calendar';

const SimpleCalendar = () => {
return <Calendar />;
return (<Calendar />);
}"
`);
});
Expand Down Expand Up @@ -91,7 +91,7 @@ describe('Remove innerProps', () => {
import AkCalendar from '@atlaskit/calendar';

const SimpleCalendar = () => {
return <AkCalendar />;
return (<AkCalendar />);
}"
`);
});
Expand Down Expand Up @@ -135,10 +135,10 @@ describe('Remove innerProps', () => {

const SimpleCalendar = () => {
return (
<Calendar
(<Calendar
defaultDisabled={['2020-12-04']}
defaultPreviouslySelected={['2020-12-06']}
defaultSelected={['2020-12-08']} />
defaultSelected={['2020-12-08']} />)
);
}"
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('@atlaskit/[email protected] transform', () => {

const SimpleCalendar= () => {
return (
<Calendar
(<Calendar
defaultDisabled={['2020-12-04']}
defaultPreviouslySelected={['2020-12-06']}
defaultSelected={['2020-12-08']}
Expand All @@ -57,7 +57,7 @@ describe('@atlaskit/[email protected] transform', () => {
style={{
border: '1px solid red',
display: 'inline-block',
}} />
}} />)
);
}"
`);
Expand Down Expand Up @@ -107,7 +107,7 @@ describe('@atlaskit/[email protected] transform', () => {

const SimpleCalendar= () => {
return (
<Calendar
(<Calendar
defaultDisabled={['2020-12-04']}
defaultPreviouslySelected={['2020-12-06']}
defaultSelected={['2020-12-08']}
Expand All @@ -118,7 +118,7 @@ describe('@atlaskit/[email protected] transform', () => {
style={{
border: '1px solid red',
display: 'inline-block',
}} />
}} />)
);
}"
`);
Expand Down Expand Up @@ -161,13 +161,13 @@ describe('@atlaskit/[email protected] transform', () => {
import Calendar from '@atlaskit/calendar';
const SimpleCalendar= () => {
return (
<Calendar
(<Calendar
defaultDisabled={['2020-12-04']}
defaultPreviouslySelected={['2020-12-06']}
defaultSelected={['2020-12-08']}
defaultMonth={12}
defaultYear={2020}
testId="the-calendar" />
testId="the-calendar" />)
);
}"
`);
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hypermod/utils": "^0.5.0",
"jscodeshift": "^0.13.1"
"jscodeshift": "^17.1.2"
},
"devDependencies": {
"@hypermod/cli": "^0.24.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ describe('Update ref prop', () => {
let ref = useRef();

return (
<Checkbox
(<Checkbox
ref={newRef => {
ref = newRef;
}}
/>
/>)
);
}"
`);
Expand Down Expand Up @@ -345,7 +345,7 @@ describe('Remove props', () => {
import Icon from '@atlaskit/icon/glyph/check-circle';

const SimpleCheckbox = () => {
return <Checkbox />;
return (<Checkbox />);
}"
`);
});
Expand Down Expand Up @@ -381,7 +381,7 @@ describe('Remove props', () => {
import customeTheme from './theme';

const SimpleCheckbox = () => {
return <Checkbox />;
return (<Checkbox />);
}"
`);
});
Expand Down Expand Up @@ -437,7 +437,7 @@ describe('Remove props', () => {
import customeTheme from './theme';

const SimpleCheckbox = () => {
return <Checkbox />;
return (<Checkbox />);
}"
`);
});
Expand Down Expand Up @@ -498,7 +498,7 @@ describe('Remove props', () => {
import customeTheme from './theme';

const SimpleCheckbox = () => {
return <Checkbox />;
return (<Checkbox />);
}"
`);
});
Expand Down Expand Up @@ -536,11 +536,11 @@ describe('Remove props', () => {
of the checkbox there is now a \`size\` prop. The appearance of Checkbox
will have likely changed. */ import React from 'react'; import { Checkbox
} from "@atlaskit/checkbox"; import customeTheme from './theme'; const
SimpleCheckbox = () => { return (
SimpleCheckbox = () => { return ( (
<div>
<Checkbox />
<Checkbox />
</div>); }
</div>) ); }
`);
});
it('should remove props when using an aliased name', async () => {
Expand Down Expand Up @@ -595,7 +595,7 @@ describe('Remove props', () => {
import customeTheme from './theme';

const SimpleCheckbox = () => {
return <Foo />;
return (<Foo />);
}"
`);
});
Expand Down
2 changes: 1 addition & 1 deletion community/@atlaskit__icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@hypermod/utils": "^0.5.0",
"jscodeshift": "^0.13.1"
"jscodeshift": "^17.1.2"
},
"devDependencies": {
"@hypermod/cli": "^0.24.0",
Expand Down
Loading
Loading