Skip to content

Commit b221094

Browse files
committed
Version 1.4.2
1 parent 4bbd4e2 commit b221094

File tree

8 files changed

+26
-14
lines changed

8 files changed

+26
-14
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change log for kotlinx.coroutines
22

3+
## Version 1.4.2
4+
5+
* Fixed `StackOverflowError` in `Job.toString` when `Job` is observed in its intermediate state (#2371).
6+
* Improved liveness and latency of `Dispatchers.Default` and `Dispatchers.IO` in low-loaded mode (#2381).
7+
* Improved performance of consecutive `Channel.cancel` invocations (#2384).
8+
* `SharingStarted` is now `fun` interface (#2397).
9+
* Additional lint settings for `SharedFlow` to catch programmatic errors early (#2376).
10+
* Fixed bug when mutex and semaphore were not released during cancellation (#2390, thanks to @Tilps for reproducing).
11+
* Some corner cases in cancellation propagation between coroutines and listenable futures are repaired (#1442, thanks to @vadimsemenov).
12+
* Fixed unconditional cast to `CoroutineStackFrame` in exception recovery that triggered failures of instrumented code (#2386).
13+
* Platform-specific dependencies are removed from `kotlinx-coroutines-javafx` (#2360).
14+
315
## Version 1.4.1
416

517
This is a patch release with an important fix to the `SharedFlow` implementation.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![official JetBrains project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
44
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
5-
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.4.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.4.1)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.4.2) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.4.2)
66
[![Kotlin](https://img.shields.io/badge/kotlin-1.4.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
77
[![Slack channel](https://img.shields.io/badge/chat-slack-green.svg?logo=slack)](https://kotlinlang.slack.com/messages/coroutines/)
88

@@ -86,7 +86,7 @@ Add dependencies (you can also add other modules that you need):
8686
<dependency>
8787
<groupId>org.jetbrains.kotlinx</groupId>
8888
<artifactId>kotlinx-coroutines-core</artifactId>
89-
<version>1.4.1</version>
89+
<version>1.4.2</version>
9090
</dependency>
9191
```
9292

@@ -104,7 +104,7 @@ Add dependencies (you can also add other modules that you need):
104104

105105
```groovy
106106
dependencies {
107-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
107+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
108108
}
109109
```
110110

@@ -130,7 +130,7 @@ Add dependencies (you can also add other modules that you need):
130130

131131
```groovy
132132
dependencies {
133-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
133+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
134134
}
135135
```
136136

@@ -152,7 +152,7 @@ In common code that should get compiled for different platforms, you can add dep
152152
```groovy
153153
commonMain {
154154
dependencies {
155-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
155+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
156156
}
157157
}
158158
```
@@ -163,7 +163,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
163163
module as dependency when using `kotlinx.coroutines` on Android:
164164

165165
```groovy
166-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
166+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2'
167167
```
168168

169169
This gives you access to Android [Dispatchers.Main]
@@ -190,15 +190,15 @@ packagingOptions {
190190
### JS
191191

192192
[Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html) version of `kotlinx.coroutines` is published as
193-
[`kotlinx-coroutines-core-js`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.4.1/jar)
193+
[`kotlinx-coroutines-core-js`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.4.2/jar)
194194
(follow the link to get the dependency declaration snippet).
195195

196196
You can also use [`kotlinx-coroutines-core`](https://www.npmjs.com/package/kotlinx-coroutines-core) package via NPM.
197197

198198
### Native
199199

200200
[Kotlin/Native](https://kotlinlang.org/docs/reference/native-overview.html) version of `kotlinx.coroutines` is published as
201-
[`kotlinx-coroutines-core-native`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.4.1/jar)
201+
[`kotlinx-coroutines-core-native`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.4.2/jar)
202202
(follow the link to get the dependency declaration snippet).
203203

204204
Only single-threaded code (JS-style) on Kotlin/Native is currently supported.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
# Kotlin
6-
version=1.4.1-SNAPSHOT
6+
version=1.4.2-SNAPSHOT
77
group=org.jetbrains.kotlinx
88
kotlin_version=1.4.0
99

kotlinx-coroutines-debug/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ stacktraces will be dumped to the console.
6161
### Using as JVM agent
6262

6363
Debug module can also be used as a standalone JVM agent to enable debug probes on the application startup.
64-
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.4.1.jar`.
64+
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.4.2.jar`.
6565
Additionally, on Linux and Mac OS X you can use `kill -5 $pid` command in order to force your application to print all alive coroutines.
6666
When used as Java agent, `"kotlinx.coroutines.debug.enable.creation.stack.trace"` system property can be used to control
6767
[DebugProbes.enableCreationStackTraces] along with agent startup.

kotlinx-coroutines-test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This package provides testing utilities for effectively testing coroutines.
99
Add `kotlinx-coroutines-test` to your project test dependencies:
1010
```
1111
dependencies {
12-
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.1'
12+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'
1313
}
1414
```
1515

ui/coroutines-guide-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { .
110110
`app/build.gradle` file:
111111

112112
```groovy
113-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"
113+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2"
114114
```
115115

116116
You can clone [kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines) project from GitHub onto your

ui/kotlinx-coroutines-android/animation-app/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ org.gradle.jvmargs=-Xmx1536m
2121
# org.gradle.parallel=true
2222

2323
kotlin_version=1.4.0
24-
coroutines_version=1.4.1
24+
coroutines_version=1.4.2
2525

2626
android.useAndroidX=true
2727
android.enableJetifier=true

ui/kotlinx-coroutines-android/example-app/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ org.gradle.jvmargs=-Xmx1536m
2121
# org.gradle.parallel=true
2222

2323
kotlin_version=1.4.0
24-
coroutines_version=1.4.1
24+
coroutines_version=1.4.2
2525

2626
android.useAndroidX=true
2727
android.enableJetifier=true

0 commit comments

Comments
 (0)