Skip to content

Commit 7cbf1cb

Browse files
authored
update: release contribution (#4960)
1 parent c1af5b9 commit 7cbf1cb

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

docs/topics/whatsnew/whatsnew-eap.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fun test(e: Example) = when (e) {
5858
}
5959
```
6060

61-
With the new feature enabled, the `when` expression in this example compiles to a single `invokedynamic` type switch
61+
With the new feature enabled, the `when` expression in this example compiles to a single `invokedynamic` type switch
6262
instead of multiple `instanceof` checks.
6363

6464
To enable this feature, compile your Kotlin code with JVM target 21 or above and add the following compiler option:
@@ -112,7 +112,7 @@ Note that in some cases, stack protection might come with a performance cost.
112112
Kotlin %kotlinEapVersion% introduces the `smallBinary` option that can help you decrease the binary size for iOS targets.
113113
The new option effectively sets `-Oz` as the default optimization argument for the compiler during the LLVM compilation phase.
114114

115-
With the `smallBinary` option enabled, you can make release binaries smaller and improve build time. However, it might
115+
With the `smallBinary` option enabled, you can make release binaries smaller and improve build time. However, it might
116116
affect runtime performance in some cases.
117117

118118
#### How to enable smaller binary size
@@ -128,23 +128,23 @@ For a specific binary, set the `binaryOption("smallBinary", "true")` in your `bu
128128

129129
```kotlin
130130
kotlin {
131-
listOf(
132-
iosX64(),
133-
iosArm64(),
134-
iosSimulatorArm64(),
135-
).forEach {
136-
it.binaries.framework {
137-
binaryOption("smallBinary", "true")
138-
}
139-
}
131+
listOf(
132+
iosX64(),
133+
iosArm64(),
134+
iosSimulatorArm64(),
135+
).forEach {
136+
it.binaries.framework {
137+
binaryOption("smallBinary", "true")
138+
}
139+
}
140140
}
141141
```
142142

143143
The Kotlin team is grateful to [Troels Lund](https://github.com/troelsbjerre) for his help in implementing this feature.
144144

145145
### Improved debugger object summaries
146146

147-
Kotlin/Native now generates clearer object summaries for debugger tools like LLDB and GDB. This improves the
147+
Kotlin/Native now generates clearer object summaries for debugger tools like LLDB and GDB. This improves the
148148
readability of the produced debug information and streamlines your debugging experience.
149149

150150
Previously, if you inspected an object such as:
@@ -172,6 +172,8 @@ With Kotlin %kotlinEapVersion%, the debugger shows richer details, including the
172172
(int32_t) point->x = 1
173173
```
174174

175+
The Kotlin team is grateful to [Nikita Nazarov](https://github.com/nikita-nazarov) for his help in implementing this feature.
176+
175177
For more information on debugging in Kotlin/Native, see the [documentation](native-debugging.md).
176178

177179
## Kotlin/Wasm: separated npm dependencies
@@ -196,11 +198,11 @@ tooling and the user dependencies have separate directories:
196198

197199
Also, the lock files inside the project directory contain only user-defined dependencies.
198200

199-
This improvement keeps your lock files focused only on your own dependencies, helps maintain a cleaner project, and
201+
This improvement keeps your lock files focused only on your own dependencies, helps maintain a cleaner project, and
200202
reduces unnecessary changes to your files.
201203

202204
This change is enabled by default for the `wasm-js` target. The change is not yet implemented for the `js` target. While
203-
there are plans to implement it in future releases, the behavior of the npm dependencies remains the same for the `js`
205+
there are plans to implement it in future releases, the behavior of the npm dependencies remains the same for the `js`
204206
target in Kotlin %kotlinEapVersion%.
205207

206208
## Kotlin/JS: new DSL function for cleaner arguments
@@ -211,7 +213,7 @@ When running a Kotlin/JS application with Node.js, the arguments passed to your
211213
* The path to your script.
212214
* The actual command-line arguments you provided.
213215

214-
However, the expected behavior for `args` was to include only the command-line arguments. To achieve this, you had to
216+
However, the expected behavior for `args` was to include only the command-line arguments. To achieve this, you had to
215217
manually skip the first two arguments using the `drop()` function inside your `build.gradle.kts` file or in your Kotlin code:
216218

217219
```kotlin
@@ -229,7 +231,7 @@ With this function, the arguments only include the command-line arguments and ex
229231
```kotlin
230232
fun main(args: Array<String>) {
231233
// No need for drop() and only your custom arguments are included
232-
println(args.joinToString(", "))
234+
println(args.joinToString(", "))
233235
}
234236
```
235237

0 commit comments

Comments
 (0)