Skip to content

Commit 11b1e00

Browse files
committed
Merge pull request #134 from CodeshiftCommunity/changeset-release/main
Version Packages
2 parents 8648d93 + 68e9505 commit 11b1e00

File tree

9 files changed

+78
-27
lines changed

9 files changed

+78
-27
lines changed

.changeset/wicked-jeans-care.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @codeshift/cli
22

3+
## 0.11.4
4+
5+
### Patch Changes
6+
7+
- 1ffc6bf: Omitting transforms from the package flag will now display a prompt instead of throwing an error
8+
- @codeshift/initializer@0.3.5
9+
310
## 0.11.3
411

512
### Patch Changes

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codeshift/cli",
3-
"version": "0.11.3",
3+
"version": "0.11.4",
44
"main": "dist/codeshift-cli.cjs.js",
55
"module": "dist/codeshift-cli.esm.js",
66
"types": "dist/codeshift-cli.cjs.d.ts",
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@codeshift/fetcher": "^0.1.1",
19-
"@codeshift/initializer": "^0.3.4",
19+
"@codeshift/initializer": "^0.3.5",
2020
"@codeshift/types": "*",
2121
"@codeshift/validator": "^0.4.2",
2222
"chalk": "^4.1.0",

packages/initializer/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @codeshift/initializer
22

3+
## 0.3.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [1ffc6bf]
8+
- @codeshift/cli@0.11.4
9+
310
## 0.3.4
411

512
### Patch Changes

packages/initializer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codeshift/initializer",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"main": "dist/codeshift-initializer.cjs.js",
55
"types": "dist/codeshift-initializer.cjs.d.ts",
66
"license": "MIT",

packages/publisher/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codeshift/publisher
22

3+
## 0.1.18
4+
5+
### Patch Changes
6+
7+
- @codeshift/initializer@0.3.5
8+
39
## 0.1.17
410

511
### Patch Changes

packages/publisher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codeshift/publisher",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"main": "dist/codeshift-publisher.cjs.js",
55
"types": "dist/codeshift-publisher.cjs.d.ts",
66
"license": "MIT",

website/docs/api/codeshift-test-utils.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ However, it is also available for use outside of this project and compatible wit
1717

1818
## API
1919

20-
### `applyTransform(transform, input, options = { parser: 'babel' })`
20+
### `applyTransform`
21+
22+
`applyTransform(transform, input, options = { parser: 'babel' })`
2123

2224
Runs a transform against the provided code and returns the resulting file.
2325

website/docs/api/codeshift-utils.mdx

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ However, it is also available for use outside of this project and compatible wit
1717

1818
## Imports
1919

20-
### `hasImportDeclaration(j, source, sourcePath)`
20+
### `hasImportDeclaration`
21+
22+
`hasImportDeclaration(j, source, sourcePath)`
2123

2224
Finds an import declaration by source name
2325

@@ -38,7 +40,9 @@ import { hasImportDeclaration } from '@codeshift/utils';
3840
hasImportDeclaration(j, source, 'react'); // True
3941
```
4042

41-
### `getImportDeclaration(j, source, sourcePath)`
43+
### `getImportDeclaration`
44+
45+
`getImportDeclaration(j, source, sourcePath)`
4246

4347
Returns an import declaration by source name
4448

@@ -59,7 +63,9 @@ import { getImportDeclaration } from '@codeshift/utils';
5963
getImportDeclaration(j, source, 'react');
6064
```
6165

62-
### `removeImportDeclaration(j, source, sourcePath)`
66+
### `removeImportDeclaration`
67+
68+
`removeImportDeclaration(j, source, sourcePath)`
6369

6470
Removes an import declaration by source name
6571

@@ -85,7 +91,9 @@ removeImportDeclaration(j, source, 'react');
8591
-import React, { useEffect } from 'react';
8692
```
8793

88-
### `renameImportDeclaration(j, source, sourcePath, newSourcePath)`
94+
### `renameImportDeclaration`
95+
96+
`renameImportDeclaration(j, source, sourcePath, newSourcePath)`
8997

9098
Renames an import declaration by source name
9199

@@ -112,7 +120,9 @@ renameImportDeclaration(j, source, 'react', 'preact');
112120
+import React, { useEffect } from 'preact';
113121
```
114122

115-
### `getDefaultImportSpecifier(j, source, sourcePath)`
123+
### `getDefaultImportSpecifier`
124+
125+
`getDefaultImportSpecifier(j, source, sourcePath)`
116126

117127
Finds a default import specifier
118128

@@ -133,7 +143,9 @@ import { getDefaultImportSpecifier } from '@codeshift/utils';
133143
getDefaultImportSpecifier(j, source, 'react'); // Collection containing 'React'
134144
```
135145

136-
### `getDefaultImportSpecifierName(j, source, sourcePath)`
146+
### `getDefaultImportSpecifierName`
147+
148+
`getDefaultImportSpecifierName(j, source, sourcePath)`
137149

138150
Finds a default import specifier and returns its name
139151

@@ -154,7 +166,9 @@ import { getDefaultImportSpecifierName } from '@codeshift/utils';
154166
getDefaultImportSpecifierName(j, source, 'react'); // Collection containing 'React'
155167
```
156168

157-
### `hasDefaultImportSpecifier(j, source, sourcePath)`
169+
### `hasDefaultImportSpecifier`
170+
171+
`hasDefaultImportSpecifier(j, source, sourcePath)`
158172

159173
Attempts to find a default import specifier and returns a boolean result
160174

@@ -175,7 +189,9 @@ import { hasDefaultImportSpecifier } from '@codeshift/utils';
175189
hasDefaultImportSpecifier(j, source, 'react'); // True
176190
```
177191

178-
### `removeDefaultImportSpecifier(j, source, sourcePath)`
192+
### `removeDefaultImportSpecifier`
193+
194+
`removeDefaultImportSpecifier(j, source, sourcePath)`
179195

180196
Attempts to remove a default import specifier
181197

@@ -201,7 +217,9 @@ removeDefaultImportSpecifier(j, source, 'React');
201217
+import { useEffect } from 'react';
202218
```
203219

204-
### `hasImportSpecifier(j, source, sourcePath)`
220+
### `hasImportSpecifier`
221+
222+
`hasImportSpecifier(j, source, sourcePath)`
205223

206224
Checks for an import import specifier
207225

@@ -222,7 +240,9 @@ import { hasImportSpecifier } from '@codeshift/utils';
222240
hasImportSpecifier(j, source, 'react', 'useEffect'); // True
223241
```
224242

225-
### `getImportSpecifier(j, specifier, source)`
243+
### `getImportSpecifier`
244+
245+
`getImportSpecifier(j, specifier, source)`
226246

227247
Finds an import specifier by name
228248

@@ -243,7 +263,9 @@ import { getImportSpecifier } from '@codeshift/utils';
243263
getImportSpecifier(j, source, 'useEffect'); // Collection containing 'useEffect'
244264
```
245265

246-
### `getImportSpecifierName(j, specifier, source)`
266+
### `getImportSpecifierName`
267+
268+
`getImportSpecifierName(j, specifier, source)`
247269

248270
Returns the local name of an import. This is useful for cases where an import specifier is potentially aliased.
249271

@@ -264,7 +286,9 @@ import { getImportSpecifierName } from '@codeshift/utils';
264286
getImportSpecifierName(j, source, 'useEffect', 'react'); // 'foo'
265287
```
266288

267-
### `insertImportSpecifier(j, source, specifier)`
289+
### `insertImportSpecifier`
290+
291+
`insertImportSpecifier(j, source, specifier)`
268292

269293
Inserts an import specifier
270294

@@ -293,7 +317,9 @@ insertImportSpecifier(j, source, 'useMemo', 'react'); // Collection containing '
293317

294318
## JSX
295319

296-
### `getJSXAttributes(j, source, attributeName)`
320+
### `getJSXAttributes`
321+
322+
`getJSXAttributes(j, source, attributeName)`
297323

298324
Finds a JSX attributeName (aka prop) by name
299325

@@ -316,7 +342,9 @@ import { getJSXAttributes } from '@codeshift/utils';
316342
getJSXAttributes(j, source, 'primary'); // Collection containing 'primary'
317343
```
318344

319-
### `hasJSXAttributes(j, source, attributeName)`
345+
### `hasJSXAttributes`
346+
347+
`hasJSXAttributes(j, source, attributeName)`
320348

321349
Finds a JSX attributeName (aka prop) by name and returns true if found
322350

@@ -341,7 +369,9 @@ hasJSXAttributes(j, source, 'primary'); // Found!
341369

342370
## Comments
343371

344-
### `insertCommentBefore(j, source, message, prefix)`
372+
### `insertCommentBefore`
373+
374+
`insertCommentBefore(j, source, message, prefix)`
345375

346376
Appends a comment before the provided node
347377

@@ -376,7 +406,9 @@ import React from 'react';
376406
const App = () => <Button primary>Say hello</Button>;
377407
```
378408

379-
### `insertCommentToStartOfFile(j, source, message)`
409+
### `insertCommentToStartOfFile`
410+
411+
`insertCommentToStartOfFile(j, source, message)`
380412

381413
Appends a comment to the start of a file
382414

@@ -413,7 +445,9 @@ const App = () => <Button primary>Say hello</Button>;
413445

414446
## Motions
415447

416-
### `applyMotions(j, source, motions)`
448+
### `applyMotions`
449+
450+
`applyMotions(j, source, motions)`
417451

418452
A helper function to apply an array of motions in sequence.
419453

0 commit comments

Comments
 (0)