Skip to content

Commit 42b5237

Browse files
committed
Version 1.2.1
1 parent 9e5f9ab commit 42b5237

File tree

8 files changed

+35
-17
lines changed

8 files changed

+35
-17
lines changed

CHANGES.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Change log for kotlinx.coroutines
22

3+
## Version 1.2.1
4+
5+
Major:
6+
* Infrastructure for testing coroutine-specific code in `kotlinx-coroutines-test`: `runBlockingTest`, `TestCoroutineScope` and `TestCoroutineDispatcher`, contributed by Sean McQuillan (@objcode). Obsolete `TestCoroutineContext` from `kotlinx-coroutines-core` is deprecated.
7+
* `Job.asCompletableFuture` extension in jdk8 module (#1113).
8+
9+
Flow improvements:
10+
* `flowViaChannel` rework: block parameter is no longer suspending, but provides `CoroutineScope` receiver and allows conflated channel (#1081, #1112).
11+
* New operators: `switchMap`, `sample`, `debounce` (#1107).
12+
* `consumerEach` is deprecated on `Publisher`, `ObservableSource` and `MaybeSource`, `collect` extension is introduced instead (#1080).
13+
14+
Other:
15+
* Race in Job.join and concurrent cancellation is fixed (#1123).
16+
* Stacktrace recovery machinery improved: cycle detection works through recovered exceptions, cancellation exceptions are recovered on cancellation fast-path.
17+
* Atomicfu-related bug fixes: publish transformed artifacts, do not propagate transitive atomicfu dependency (#1064, #1116).
18+
* Publication to NPM fixed (#1118).
19+
* Misplaced resources are removed from the final jar (#1131).
20+
321
## Version 1.2.0
422

523
* Kotlin updated to 1.3.30.

README.md

+8-8
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.2.0) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.2.0)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=1.2.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.2.1)
66

77
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
88
This is a companion version for Kotlin `1.3.30` release.
@@ -81,7 +81,7 @@ Add dependencies (you can also add other modules that you need):
8181
<dependency>
8282
<groupId>org.jetbrains.kotlinx</groupId>
8383
<artifactId>kotlinx-coroutines-core</artifactId>
84-
<version>1.2.0</version>
84+
<version>1.2.1</version>
8585
</dependency>
8686
```
8787

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

100100
```groovy
101101
dependencies {
102-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0'
102+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1'
103103
}
104104
```
105105

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

126126
```groovy
127127
dependencies {
128-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0")
128+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1")
129129
}
130130
```
131131

@@ -144,7 +144,7 @@ Make sure that you have either `jcenter()` or `mavenCentral()` in the list of re
144144
Core modules of `kotlinx.coroutines` are also available for
145145
[Kotlin/JS](#js) and [Kotlin/Native](#native).
146146
In common code that should get compiled for different platforms, add dependency to
147-
[`kotlinx-coroutines-core-common`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-common/1.2.0/jar)
147+
[`kotlinx-coroutines-core-common`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-common/1.2.1/jar)
148148
(follow the link to get the dependency declaration snippet).
149149

150150
### Android
@@ -153,7 +153,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
153153
module as dependency when using `kotlinx.coroutines` on Android:
154154

155155
```groovy
156-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0'
156+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1'
157157
```
158158

159159
This gives you access to Android [Dispatchers.Main](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-android/kotlinx.coroutines.android/kotlinx.coroutines.-dispatchers/index.html)
@@ -172,15 +172,15 @@ R8 is a replacement for ProGuard in Android ecosystem, it is enabled by default
172172
### JS
173173

174174
[Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html) version of `kotlinx.coroutines` is published as
175-
[`kotlinx-coroutines-core-js`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.2.0/jar)
175+
[`kotlinx-coroutines-core-js`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.2.1/jar)
176176
(follow the link to get the dependency declaration snippet).
177177

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

180180
### Native
181181

182182
[Kotlin/Native](https://kotlinlang.org/docs/reference/native-overview.html) version of `kotlinx.coroutines` is published as
183-
[`kotlinx-coroutines-core-native`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.2.0/jar)
183+
[`kotlinx-coroutines-core-native`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.2.1/jar)
184184
(follow the link to get the dependency declaration snippet).
185185

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

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Kotlin
2-
version=1.2.0-SNAPSHOT
2+
version=1.2.1-SNAPSHOT
33
group=org.jetbrains.kotlinx
44
kotlin_version=1.3.30
55

kotlinx-coroutines-debug/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ of coroutines hierarchy referenced by a [Job] or [CoroutineScope] instances usin
1818
Add `kotlinx-coroutines-debug` to your project test dependencies:
1919
```
2020
dependencies {
21-
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.2.0'
21+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.2.1'
2222
}
2323
```
2424

@@ -57,7 +57,7 @@ stacktraces will be dumped to the console.
5757
### Using as JVM agent
5858

5959
It is possible to use this module as a standalone JVM agent to enable debug probes on the application startup.
60-
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.2.0.jar`.
60+
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.2.1.jar`.
6161
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.
6262

6363

kotlinx-coroutines-test/README.md

+3-3
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.2.0'
12+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.2.1'
1313
}
1414
```
1515

@@ -274,8 +274,8 @@ important to ensure that [cleanupTestCoroutines][TestCoroutineScope.cleanupTestC
274274

275275
```kotlin
276276
class TestClass {
277-
val testScope = TestCoroutineScope()
278-
lateinit var subject: Subject = null
277+
private val testScope = TestCoroutineScope()
278+
private lateinit var subject: Subject = null
279279

280280
@Before
281281
fun setup() {

ui/coroutines-guide-ui.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { .
165165
`app/build.gradle` file:
166166

167167
```groovy
168-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0"
168+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1"
169169
```
170170

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
1919
kotlin.coroutines=enable
2020

2121
kotlin_version=1.3.30
22-
coroutines_version=1.2.0
22+
coroutines_version=1.2.1
2323

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
1919
kotlin.coroutines=enable
2020

2121
kotlin_version=1.3.30
22-
coroutines_version=1.2.0
22+
coroutines_version=1.2.1
2323

0 commit comments

Comments
 (0)