Skip to content

Commit 60d3b00

Browse files
Merge pull request #243 from hypermod-io/bump-jscodeshift
Bumps jscodeshift globally
2 parents 9658a64 + 6baffa1 commit 60d3b00

File tree

47 files changed

+609
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+609
-195
lines changed

.changeset/afraid-ligers-tap.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@hypermod/initializer': minor
3+
'@hypermod/utils': minor
4+
'@hypermod/core': minor
5+
'@hypermod/cli': minor
6+
---
7+
8+
Bumps jscodeshift to the latest version to surface bug fixes and various improvements. Note: this may inherently change how files are parsed and transformed.

.changeset/smart-teachers-report.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
'@hypermod/mod-atlaskit__progress-indicator': minor
3+
'@hypermod/mod-atlaskit__section-message': minor
4+
'@hypermod/mod-atlaskit__side-navigation': minor
5+
'@hypermod/mod-atlaskit__breadcrumbs': minor
6+
'@hypermod/mod-atlaskit__textfield': minor
7+
'@hypermod/mod-atlaskit__calendar': minor
8+
'@hypermod/mod-atlaskit__checkbox': minor
9+
'@hypermod/mod-atlaskit__textarea': minor
10+
'@hypermod/mod-atlaskit__spinner': minor
11+
'@hypermod/mod-emotion__monorepo': minor
12+
'@hypermod/mod-atlaskit__avatar': minor
13+
'@hypermod/mod-atlaskit__button': minor
14+
'@hypermod/mod-atlaskit__popper': minor
15+
'@hypermod/mod-atlaskit__toggle': minor
16+
'@hypermod/mod-atlaskit__popup': minor
17+
'@hypermod/mod-atlaskit__range': minor
18+
'@hypermod/mod-atlaskit__icon': minor
19+
'@hypermod/mod-atlaskit__menu': minor
20+
'@hypermod/mod-atlaskit__tag': minor
21+
'@hypermod/mod-memoize-one': minor
22+
'@hypermod/mod-javascript': minor
23+
'@hypermod/mod-hypermod': minor
24+
'@hypermod/mod-react': minor
25+
---
26+
27+
Bumps jscodeshift, which may have unintended side-effects

community/@atlaskit__avatar/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.5.0",
15-
"jscodeshift": "^0.13.1"
15+
"jscodeshift": "^17.1.2"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.24.0",

community/@atlaskit__avatar/src/18.0.0/__tests__/transform.spec.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('Update Avatar props', () => {
142142
import Avatar from '@atlaskit/avatar';
143143
144144
const App = () => {
145-
return <Avatar />;
145+
return (<Avatar />);
146146
}
147147
`,
148148
'should remove all deleted props',
@@ -170,7 +170,7 @@ describe('Update Avatar props', () => {
170170
import Foo from '@atlaskit/avatar';
171171
172172
const App = () => {
173-
return <Foo />;
173+
return (<Foo />);
174174
}
175175
`,
176176
'should remove all deleted props with aliased import name',
@@ -194,7 +194,7 @@ describe('Update Avatar props', () => {
194194
import Avatar from '@atlaskit/avatar';
195195
196196
const App = () => {
197-
return <Avatar />;
197+
return (<Avatar />);
198198
}
199199
`,
200200
'should remove enableTooltip when false',
@@ -256,7 +256,7 @@ describe('Update AvatarItem props', () => {
256256
import Avatar, { AvatarItem } from '@atlaskit/avatar';
257257
258258
const App = () => {
259-
return <AvatarItem />;
259+
return (<AvatarItem />);
260260
}
261261
`,
262262
'should remove all deleted props',
@@ -284,7 +284,7 @@ describe('Update AvatarItem props', () => {
284284
import { AvatarItem as Foo } from '@atlaskit/avatar';
285285
286286
const App = () => {
287-
return <Foo />;
287+
return (<Foo />);
288288
}
289289
`,
290290
'should remove all deleted props with aliased import',
@@ -308,7 +308,7 @@ describe('Update AvatarItem props', () => {
308308
import { AvatarItem } from '@atlaskit/avatar';
309309
310310
const App = () => {
311-
return <AvatarItem />;
311+
return (<AvatarItem />);
312312
}
313313
`,
314314
'should remove enableTextTruncate when defaulted to true',
@@ -333,9 +333,9 @@ describe('Update AvatarItem props', () => {
333333
334334
const App = () => {
335335
return (
336-
<AvatarItem
336+
(<AvatarItem
337337
isTruncationDisabled
338-
/>
338+
/>)
339339
);
340340
}
341341
`,
@@ -365,9 +365,9 @@ describe('Update AvatarItem props', () => {
365365
366366
const App = () => {
367367
return (
368-
<AvatarItem
368+
(<AvatarItem
369369
isTruncationDisabled={!value}
370-
/>
370+
/>)
371371
);
372372
}
373373
`,
@@ -399,9 +399,9 @@ describe('Update AvatarItem props', () => {
399399
400400
const App = () => {
401401
return (
402-
<AvatarItem
402+
(<AvatarItem
403403
isTruncationDisabled={!(foo && bar)}
404-
/>
404+
/>)
405405
);
406406
}
407407
`,
@@ -426,7 +426,7 @@ describe('Update AvatarItem props', () => {
426426
import Avatar, { AvatarItem } from '@atlaskit/avatar';
427427
428428
const App = () => {
429-
return <AvatarItem />;
429+
return (<AvatarItem />);
430430
}
431431
`,
432432
'should remove isTruncationDisabled when true',

community/@atlaskit__breadcrumbs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.5.0",
15-
"jscodeshift": "^0.13.1"
15+
"jscodeshift": "^17.1.2"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.24.0",

community/@atlaskit__button/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.5.0",
15-
"jscodeshift": "^0.13.1"
15+
"jscodeshift": "^17.1.2"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.24.0",

community/@atlaskit__calendar/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.5.0",
15-
"jscodeshift": "^0.13.1"
15+
"jscodeshift": "^17.1.2"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.24.0",

community/@atlaskit__calendar/src/11.0.0/__tests__/flatten-certain-inner-props.spec.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
4646
import Calendar from '@atlaskit/calendar';
4747
const SimpleCalendar = () => {
4848
return (
49-
<Calendar
49+
(<Calendar
5050
innerProps={{
5151
style: {
5252
border: '1px solid red',
@@ -58,7 +58,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
5858
border: '1px solid red',
5959
display: 'inline-block',
6060
}}
61-
className={'abc'} />
61+
className={'abc'} />)
6262
);
6363
};"
6464
`);
@@ -89,11 +89,11 @@ describe('Flatten Inner Prop Style As Prop', () => {
8989
import Calendar from '@atlaskit/calendar';
9090
const SimpleCalendar = () => {
9191
return (
92-
<Calendar
92+
(<Calendar
9393
innerProps={{
9494
className: 'abc',
9595
}}
96-
className={'abc'} />
96+
className={'abc'} />)
9797
);
9898
};"
9999
`);
@@ -127,7 +127,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
127127
import Calendar from '@atlaskit/calendar';
128128
const SimpleCalendar = () => {
129129
return (
130-
<Calendar
130+
(<Calendar
131131
innerProps={{
132132
style: {
133133
border: '1px solid red',
@@ -137,7 +137,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
137137
style={{
138138
border: '1px solid red',
139139
display: 'inline-block',
140-
}} />
140+
}} />)
141141
);
142142
};"
143143
`);

community/@atlaskit__calendar/src/11.0.0/__tests__/remove-inner-props.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('Remove innerProps', () => {
5151
import Calendar from '@atlaskit/calendar';
5252
5353
const SimpleCalendar = () => {
54-
return <Calendar />;
54+
return (<Calendar />);
5555
}"
5656
`);
5757
});
@@ -91,7 +91,7 @@ describe('Remove innerProps', () => {
9191
import AkCalendar from '@atlaskit/calendar';
9292
9393
const SimpleCalendar = () => {
94-
return <AkCalendar />;
94+
return (<AkCalendar />);
9595
}"
9696
`);
9797
});
@@ -135,10 +135,10 @@ describe('Remove innerProps', () => {
135135
136136
const SimpleCalendar = () => {
137137
return (
138-
<Calendar
138+
(<Calendar
139139
defaultDisabled={['2020-12-04']}
140140
defaultPreviouslySelected={['2020-12-06']}
141-
defaultSelected={['2020-12-08']} />
141+
defaultSelected={['2020-12-08']} />)
142142
);
143143
}"
144144
`);

community/@atlaskit__calendar/src/11.0.0/__tests__/transform.spec.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
4646
4747
const SimpleCalendar= () => {
4848
return (
49-
<Calendar
49+
(<Calendar
5050
defaultDisabled={['2020-12-04']}
5151
defaultPreviouslySelected={['2020-12-06']}
5252
defaultSelected={['2020-12-08']}
@@ -57,7 +57,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
5757
style={{
5858
border: '1px solid red',
5959
display: 'inline-block',
60-
}} />
60+
}} />)
6161
);
6262
}"
6363
`);
@@ -107,7 +107,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
107107
108108
const SimpleCalendar= () => {
109109
return (
110-
<Calendar
110+
(<Calendar
111111
defaultDisabled={['2020-12-04']}
112112
defaultPreviouslySelected={['2020-12-06']}
113113
defaultSelected={['2020-12-08']}
@@ -118,7 +118,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
118118
style={{
119119
border: '1px solid red',
120120
display: 'inline-block',
121-
}} />
121+
}} />)
122122
);
123123
}"
124124
`);
@@ -161,13 +161,13 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
161161
import Calendar from '@atlaskit/calendar';
162162
const SimpleCalendar= () => {
163163
return (
164-
<Calendar
164+
(<Calendar
165165
defaultDisabled={['2020-12-04']}
166166
defaultPreviouslySelected={['2020-12-06']}
167167
defaultSelected={['2020-12-08']}
168168
defaultMonth={12}
169169
defaultYear={2020}
170-
testId="the-calendar" />
170+
testId="the-calendar" />)
171171
);
172172
}"
173173
`);

community/@atlaskit__checkbox/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.5.0",
15-
"jscodeshift": "^0.13.1"
15+
"jscodeshift": "^17.1.2"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.24.0",

community/@atlaskit__checkbox/src/12.0.0/__tests__/transform.spec.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ describe('Update ref prop', () => {
229229
let ref = useRef();
230230
231231
return (
232-
<Checkbox
232+
(<Checkbox
233233
ref={newRef => {
234234
ref = newRef;
235235
}}
236-
/>
236+
/>)
237237
);
238238
}"
239239
`);
@@ -345,7 +345,7 @@ describe('Remove props', () => {
345345
import Icon from '@atlaskit/icon/glyph/check-circle';
346346
347347
const SimpleCheckbox = () => {
348-
return <Checkbox />;
348+
return (<Checkbox />);
349349
}"
350350
`);
351351
});
@@ -381,7 +381,7 @@ describe('Remove props', () => {
381381
import customeTheme from './theme';
382382
383383
const SimpleCheckbox = () => {
384-
return <Checkbox />;
384+
return (<Checkbox />);
385385
}"
386386
`);
387387
});
@@ -437,7 +437,7 @@ describe('Remove props', () => {
437437
import customeTheme from './theme';
438438
439439
const SimpleCheckbox = () => {
440-
return <Checkbox />;
440+
return (<Checkbox />);
441441
}"
442442
`);
443443
});
@@ -498,7 +498,7 @@ describe('Remove props', () => {
498498
import customeTheme from './theme';
499499
500500
const SimpleCheckbox = () => {
501-
return <Checkbox />;
501+
return (<Checkbox />);
502502
}"
503503
`);
504504
});
@@ -536,11 +536,11 @@ describe('Remove props', () => {
536536
of the checkbox there is now a \`size\` prop. The appearance of Checkbox
537537
will have likely changed. */ import React from 'react'; import { Checkbox
538538
} from "@atlaskit/checkbox"; import customeTheme from './theme'; const
539-
SimpleCheckbox = () => { return (
539+
SimpleCheckbox = () => { return ( (
540540
<div>
541541
<Checkbox />
542542
<Checkbox />
543-
</div>); }
543+
</div>) ); }
544544
`);
545545
});
546546
it('should remove props when using an aliased name', async () => {
@@ -595,7 +595,7 @@ describe('Remove props', () => {
595595
import customeTheme from './theme';
596596
597597
const SimpleCheckbox = () => {
598-
return <Foo />;
598+
return (<Foo />);
599599
}"
600600
`);
601601
});

community/@atlaskit__icon/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.5.0",
15-
"jscodeshift": "^0.13.1"
15+
"jscodeshift": "^17.1.2"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.24.0",

0 commit comments

Comments
 (0)