Releases: orangain/ktcodeshift
Releases · orangain/ktcodeshift
0.4.0
Breaking changes
- Updated ktast to 0.10.0 that has breaking changes.
- Builder Functions have been moved to ktast.builder package.
- For the compatibility of transform scripts, we provide implicit import of
ktast.builder.*
packages. Most of the transform scripts will work without change.
- For the compatibility of transform scripts, we provide implicit import of
Improvements
-
Introduced
@file:Import
annotation to load other files from the transform script. See README for detail. -
Now, the following imports are implicitly available in the transform file:
import ktast.ast.* import ktast.builder.* import ktcodeshift.*
Commits
- faf25e2: Add "How to release" section to README (orangain) #61
- aa785fc: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.9.0 to 1.10.1 (dependabot[bot]) #63
- 170bd31: Introduce
@file:Import
annotation (orangain, suggested by @pmqueiroz) #68 - 3457128: Describe annotations in README (orangain) #68
- afd1fa9: Rephrase description of annotations (orangain) #68
- dc09ab5: Refactor annotation handling (orangain) #68
- be91b7a: Delete Builder.kt (orangain) #70
- 97bc6c9: Bump ktast to 0.10.0 (orangain) #70
- 76ac9e5: Implicitly import ktcodeshift and ktast (orangain) #70
- 107a38c: Remove imports no longer needed (orangain) #70
- 91f0c87: Describe about implicit imports (orangain) #70
- 7e99ebf: Bump com.palantir.git-version from 3.1.0 to 3.2.0 (dependabot[bot]) #69
- deef3bf: Add import of ktast.builder.* (orangain) #70
- 1fc576c: Bump jvm from 2.1.10 to 2.1.20 (dependabot[bot]) #67
- d787f58: Bump org.jetbrains.dokka from 1.9.20 to 2.0.0 (dependabot[bot]) #62
0.3.4
Commits
- f66aea7: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.7.1 to 1.7.3 (dependabot[bot]) #40
- 2581603: Bump info.picocli:picocli from 4.7.4 to 4.7.5 (dependabot[bot]) #41
- 350775c: Add Development Tips to README (orangain)
- 93fd6f0: Bump org.jetbrains.dokka from 1.8.20 to 1.9.10 (dependabot[bot]) #44
- 2848723: Bump jvm from 1.8.22 to 1.9.22 (dependabot[bot]) #45
- 2d90f94: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.7.3 to 1.8.0 (dependabot[bot]) #46
- d914613: Bump org.jetbrains.dokka from 1.9.10 to 1.9.20 (dependabot[bot]) #47
- 850278d: Bump jvm from 1.9.22 to 1.9.23 (dependabot[bot]) #48
- e2f0f04: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.8.0 to 1.8.1 (dependabot[bot]) #50
- cebee4b: Bump info.picocli:picocli from 4.7.5 to 4.7.6 (dependabot[bot]) #51
- 55fa0fa: Bump jvm from 1.9.23 to 2.0.0 (dependabot[bot]) #52
- 41bb750: Bump com.palantir.git-version from 3.0.0 to 3.1.0 (dependabot[bot]) #53
- 0aab942: Bump jvm from 2.0.0 to 2.0.10 (dependabot[bot]) #54
- 6a6641d: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.8.1 to 1.9.0 (dependabot[bot]) #56
- 6effbfb: Bump jvm from 2.0.10 to 2.0.21 (dependabot[bot]) #57
- 6b090df: Update actions in document.yaml (orangain) #59
- 9aa7ad1: Update gradle to 8.12.1 (orangain) #59
- 40bd46c: Update actions in java_ci.yaml (orangain) #59
- 382e389: Update ktast to 0.9.4 (orangain) #60
- 3a09533: Use compilerOptions (orangain) #60
- 7b606ac: Update kotlin to latest (orangain) #60
0.3.3
0.3.2
Commits
- b43cf8e: Now lPar and rPar around parameters are mandatory (orangain) #35
- 5cd1ae3: Update Builder (orangain) #35
- 099720b: Create lPar and rPar for CallExpression when lambda argument does not exist (orangain) #35
- 36398c9: Update Builder (orangain) #35
- 52d1cad: Refactor expressionOf in GenerateBuilders.transform.kts (orangain) #35
- 0ed3ba9: Update ktast to 0.9.2 (orangain) #35
- 813e4d0: Refactor GenerateBuilders.transform.kts (orangain) #36
- 34527d4: Generate overload of single variable for property and lambda parameter (orangain) #36
- 6a4687f: Update Builder (orangain) #36
- 672348b: Now variables does not have default value (orangain) #36
- 2b385bc: Update Builder (orangain) #36
0.3.1
Breaking changes
- Rename
ktcodeshift.Api
toktcodeshift.Ktcodeshift
. - Type of
FileInfo.path
is nowjava.nio.file.Path
. - Extension function
Node.traverse
is removed.
Commits
- eb33795: Refactor GenerateBuilders.transform.kts (orangain) #31
- 1cf16dc: Rename Api to Ktcodeshift (orangain) #31
- 038882d: Rename file (orangain) #31
- ca132db: Move definitions (orangain) #31
- 9b34732: Update transform scripts (orangain) #31
- a3b80fa: Type of FileInfo.path is now java.nio.file.Path (orangain) #31
- 13f4d4e: Add KDocs (orangain) #31
- f2efc78: Update visibility of App functions (orangain) #31
- 55d182e: Update README (orangain) #31
- 5e0c024: Move ScriptDefinition to script package (orangain) #31
- f5c6576: Update SortWhenBranches.transform.kts (orangain) #31
- 4355640: Update GenerateBuilders.transform.kts to generate KDoc (orangain) #31
- bc29f06: Add KDdocs to Builder functions (orangain) #31
- 77e00f5: Specify version in all projects (orangain) #32
- b20a6d7: Specify group (orangain) #32
- d975f0e: Use deploy key instead of GITHUB_TOKEN (orangain) #33
- cd70e95: Update link to the latest stable version of document (orangain) #34
0.3.0
Breaking changes
- Update ktast to 0.9.1. Node types are significantly changed.
Changes
- Now
transform
function allows null when no change is needed.
Commits
- d5c1692: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.6.4 to 1.7.1 (dependabot[bot]) #21
- 8e51a78: Update README.md (orangain)
- a10b931: Use latest version of ktast (orangain) #25
- 96fc41b: Update GenerateBuilders.transform.kts (orangain) #25
- 2e2b0ed: Make compile pass (orangain) #25
- c17a612: Move error handling of evalScriptSource to caller side (orangain) #25
- 330ab63: Update transform scripts to use latest version of ktast (orangain) #25
- 0da204f: Update GenerateBuilders.transform.kts to use latest version of ktast (orangain) #25
- 2b689ce: Simplify nestedNames (orangain) #25
- d66606a: Simplify creation of function name (orangain) #25
- 7b79724: Improve default value of brackets (orangain) #25
- 8967259: Update Builder (orangain) #25
- 89bcc15: Simplify transforms (orangain) #25
- 7124034: Use generateSequence instead of while statement (orangain) #25
- 80d2383: Use List instead of FullyQualifiedName (orangain) #25
- 9a7cc64: Rename variable (orangain) #25
- 48e0c6c: Update ktast to the latest (orangain) #25
- 974479b: Refactor script (orangain) #25
- a9f330f: Update Builder for the latest ktast (orangain) #25
- 6c05553: Update JUnit4To5.transform.kts (orangain) #25
- 0f33b5b: Update GenerateBuilders.transform.kts (orangain) #25
- 3d6219e: Simplify script (orangain) #25
- 6824f73: Update Builder (orangain) #25
- de0a8bf: Update ktast (orangain) #25
- 32ae1e8: Use ktast 0.9.0 (orangain) #25
- ead1e53: Update scripts (orangain) #25
- 5f71950: Bump info.picocli:picocli from 4.7.3 to 4.7.4 (dependabot[bot]) #22
- c466577: Bump jvm from 1.8.21 to 1.8.22 (dependabot[bot]) #23
- 5dde116: Fix FileWithContext.find to match subtypes (orangain) #26
- 8f0a5aa: Bump org.jetbrains.dokka from 1.8.10 to 1.8.20 (dependabot[bot]) #24
- 9ae2059: Add new methods to NodeCollection (orangain) #27
- a4cda11: Add sample script (orangain) #27
- 9d7bc49: Add test of Api methods (orangain) #27
- 81a2a2d: Now transform function can return null when no modification is needed (orangain) #28
- e85cb16: Update GenerateBuilders.transform.kts (orangain) #29
- 654304c: Update Builder (orangain) #29
- 6772d72: Update ktast to 0.9.1 (orangain) #29
- bed9a9b: Update API (orangain) #29
- ffd75e9: Update sample code (orangain) #30
- 798234d: Auto format (orangain) #30
- 474e144: Update README (orangain) #30
- 68139ea: Update usage and transform file of README (orangain) #30
0.2.5
0.2.4
0.2.3
Commits
- 5f5813f: Add example of RenameVariable (orangain) #8
- 37e7d8f: Update code style settings (orangain) #8
- 3246b45: Use wildcard import for ktcodeshift (orangain) #8
- a7cac70: Reformat code (orangain) #8
- 309e81e: Reorder methods (orangain) #8
- 63d0eb0: Create dependabot.yml (orangain)
- 93da6ee: Bump com.palantir.git-version from 0.15.0 to 3.0.0 (dependabot[bot]) #9
- 570fc1e: Bump org.jetbrains.kotlinx:kotlinx-coroutines-core from 1.6.1 to 1.6.4 (dependabot[bot]) #10
- ce0c25c: Bump info.picocli:picocli from 4.6.3 to 4.7.3 (dependabot[bot]) #11
- 3f97af3: Bump com.github.orangain.ktast:ast-psi from 0.8.1 to 0.8.3 (dependabot[bot]) #12
- efac6da: Add documentation how to generate builder (orangain) #12
- d84d06f: Update Builder (orangain) #12
- 5491a69: Upgrade Kotlin to 1.8.21 (orangain) #12
- 46744bc: Introduce Dokka (orangain) #14
- 3dae79e: Set MaxMetaspaceSize to avoid OutOfMemoryError when using Dokka (orangain) #14
- 05b0cef: Set languageVersion (orangain) #14
- 2e960b2: Add package declaration to Builder.kt (orangain) #14
- b21ee09: Add GitHub Actions to generate API document (orangain) #14
- 08a5ad1: Set languageVersion to 11 (orangain) #14
- 1e48a07: Move TestUtil to test package (orangain) #14
- e561b1d: Ignore IDEA files (orangain) #14
- e1d3349: Remove .idea/compiler.xml (orangain) #14
- b9a5370: Specify permission to deploy (orangain) #14
- a54b71e: ./gradlew wrapper --gradle-version 8.1.1 && ./gradlew wrapper (orangain) #15
- 4021f7c: Set jvmTarget to 11 (orangain) #15
- d43932d: Add prerequisites (orangain) #16
- 5795a50: Auto format (orangain) #16
- c4d7ba0: Add example of transform file to README (orangain) #16
- 791c3f1: Add link to API documents (orangain) #16
- a3920a1: Add detailed explanation of examples (orangain) #16
- 66529e0: Simplify explanation (orangain) #16
0.2.2
Commits
- 39db5e6: Upgrade ktast 0.8.1 (orangain) #7
- c53b049: Update Builder (orangain) #7
- 085bbe1: Update JUnit4To5.transform.kts (orangain) #7
- 337106c: Update GenerateBuilders.transform.kts (orangain) #7
- 7beda84: Remove unused codes (orangain) #7
- 9046762: Rename body to lambdaBody (orangain) #7
- 48a5760: Update to use lambdaBody (orangain) #7