Skip to content

Commit c35ce7e

Browse files
committed
Version 1.4.1
1 parent e710048 commit c35ce7e

File tree

9 files changed

+30
-20
lines changed

9 files changed

+30
-20
lines changed

CHANGES.md

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

3+
## Version 1.4.1
4+
5+
This is a patch release with an important fix to the `SharedFlow` implementation.
6+
7+
* SharedFlow: Fix scenario with concurrent emitters and cancellation of subscriber (#2359, thanks to @vehovsky for the bug report).
8+
39
## Version 1.4.0
410

511
### Improvements

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.4.0) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/1.4.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)
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.0</version>
89+
<version>1.4.1</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.0'
107+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
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.0")
133+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
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.0")
155+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
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.0'
166+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
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.0/jar)
193+
[`kotlinx-coroutines-core-js`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-js/1.4.1/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.0/jar)
201+
[`kotlinx-coroutines-core-native`](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.4.1/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.

RELEASE.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ To release new `<version>` of `kotlinx-coroutines`:
1212
`git merge origin/master`
1313

1414
4. Search & replace `<old-version>` with `<version>` across the project files. Should replace in:
15-
* [`README.md`](README.md) (native, core, test, debug, modules)
16-
* [`coroutines-guide.md`](docs/coroutines-guide.md)
17-
* [`gradle.properties`](gradle.properties)
18-
* [`ui/kotlinx-coroutines-android/example-app/gradle.properties`](ui/kotlinx-coroutines-android/example-app/gradle.properties)
19-
* [`ui/kotlinx-coroutines-android/animation-app/gradle.properties`](ui/kotlinx-coroutines-android/animation-app/gradle.properties)
15+
* Docs
16+
* [`README.md`](README.md) (native, core, test, debug, modules)
17+
* [`kotlinx-coroutines-debug/README.md`](kotlinx-coroutines-debug/README.md)
18+
* [`kotlinx-coroutines-test/README.md`](kotlinx-coroutines-test/README.md)
19+
* [`coroutines-guide-ui.md`](ui/coroutines-guide-ui.md)
20+
* Properties
21+
* [`gradle.properties`](gradle.properties)
22+
* [`ui/kotlinx-coroutines-android/example-app/gradle.properties`](ui/kotlinx-coroutines-android/example-app/gradle.properties)
23+
* [`ui/kotlinx-coroutines-android/animation-app/gradle.properties`](ui/kotlinx-coroutines-android/animation-app/gradle.properties)
2024
* Make sure to **exclude** `CHANGES.md` from replacements.
2125

2226
As an alternative approach you can use `./bump-version.sh old_version new_version`
@@ -26,7 +30,7 @@ To release new `<version>` of `kotlinx-coroutines`:
2630
* Write each change on a single line (don't wrap with CR).
2731
* Study commit message from previous release.
2832

29-
6. Create branch for this release:
33+
6. Create the branch for this release:
3034
`git checkout -b version-<version>`
3135

3236
7. Commit updated files to a new version branch:<br>

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

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

kotlinx-coroutines-debug/README.md

+1-1
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.0.jar`.
64+
You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.4.1.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

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

ui/coroutines-guide-ui.md

+1-1
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.0"
113+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"
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

+1-1
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.0
24+
coroutines_version=1.4.1
2525

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

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

+1-1
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.0
24+
coroutines_version=1.4.1
2525

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

0 commit comments

Comments
 (0)