Skip to content

Commit b5f1075

Browse files
authored
bump versions on dependencies (#284)
1 parent bf5a13c commit b5f1075

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
3. `applicationVfs` for loading files at the root of the application working directory.
2222
- Update internal JVM `readPixmap` to use `stbimage` instead of `ImageIO`
2323
- Add `Compression` interface with `CompressionGZIP` implementations for jvmAndroid & js.
24+
- Update `kotlin` from `2.0.0` to `2.1.0`
25+
- Update `kotlinx-serialization` from `1.7.0` to `1.7.3`
26+
- Update `kotlinx.atomicfu` from `0.24.0` to `0.26.1`
27+
- Update `LWJGL` from `3.3.3` to `3.3.4`
2428
- Internal code clean up
2529
- Documentation tweaks and clean up
2630

core/src/commonMain/kotlin/com/littlekt/file/vfs/MimeType.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class MimeType(val mime: String, val exts: List<String>) {
4040
TEXT_HTML,
4141
TEXT_PLAIN,
4242
TEXT_CSS,
43-
TEXT_JS
43+
TEXT_JS,
4444
)
4545
}
4646

4747
fun getByExtension(ext: String, default: MimeType = APPLICATION_OCTET_STREAM): MimeType =
48-
MimeType_byExtensions[ext.toLowerCase()] ?: default
48+
MimeType_byExtensions[ext.lowercase()] ?: default
4949
}
5050
}

core/src/commonMain/kotlin/com/littlekt/file/vfs/PathInfo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ val PathInfo.fullPathWithoutExtension: String
4848
val startIndex = fullPathNormalized.lastIndexOfOrNull('/')?.plus(1) ?: 0
4949
return fullPath.substring(
5050
0,
51-
fullPathNormalized.indexOfOrNull('.', startIndex) ?: fullPathNormalized.length
51+
fullPathNormalized.indexOfOrNull('.', startIndex) ?: fullPathNormalized.length,
5252
)
5353
}
5454

@@ -95,7 +95,7 @@ val PathInfo.compoundExtension: String
9595

9696
/** /path\to/file.1.EXT -> 1.ext */
9797
val PathInfo.compoundExtensionLC: String
98-
get() = compoundExtension.toLowerCase()
98+
get() = compoundExtension.lowercase()
9999

100100
/** /path\to/file.1.jpg -> MimeType("image/jpeg", listOf("jpg", "jpeg")) */
101101
val PathInfo.mimeTypeByExtension

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[versions]
22
download-gradle = "5.6.0"
3-
kotlin = "2.0.0"
3+
kotlin = "2.1.0"
44
kotlinxHtmlVersion = "0.11.0"
5-
kotlinx-atomicfu = "0.24.0"
5+
kotlinx-atomicfu = "0.26.1"
66
kotlinx-coroutines = "1.9.0-RC"
7-
kotlinx-serialization = "1.7.0"
8-
lwjgl = "3.3.3"
7+
kotlinx-serialization = "1.7.3"
8+
lwjgl = "3.3.4"
99
mp3-decoder = "1.0.1"
1010

1111
[libraries]

0 commit comments

Comments
 (0)