Skip to content

Commit 50395b2

Browse files
fix(deps): update snakeyaml-engine-kmp to 4.0.1 and kaml to 0.102.0 (#414)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [it.krzeminski:snakeyaml-engine-kmp](https://redirect.github.com/krzema12/snakeyaml-engine-kmp) | `3.2.1` -> `4.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/it.krzeminski:snakeyaml-engine-kmp/4.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/it.krzeminski:snakeyaml-engine-kmp/3.2.1/4.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>krzema12/snakeyaml-engine-kmp (it.krzeminski:snakeyaml-engine-kmp)</summary> ### [`v4.0.1`](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/releases/tag/v4.0.1): 4.0.1 ##### What's Changed - Remove dependency on unpublished KSP processor module by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;601](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/601) **Full Changelog**: <krzema12/snakeyaml-engine-kmp@v4.0.0...v4.0.1> ### [`v4.0.0`](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/releases/tag/v4.0.0): 4.0.0 ##### ‼️ This release is not usable! See [#&#8203;600](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/issues/600). *** Corresponds to [snakeyaml-engine](https://bitbucket.org/snakeyaml/snakeyaml-engine) 2.10 + several unreleased changes. ##### What's Changed ##### Customer-facing ##### Breaking - Remove builders for settings classes by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;589](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/589) - Add `copy` methods to DumpSettings and LoadSettings by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;592](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/592) To migrate to the new API, convert e.g. ```kotlin LoadSettings.builder() .setLabel("foobar") .build() ``` to ```kotlin LoadSettings( label = "foobar", ) ``` and non-trivial usages of builders, e.g.: ```kotlin val builder = LoadSettings.builder() // ... if (...) { builder.setLabel("foobar") } val settings = builder.build() ``` to using the `.copy { } ` function: ```kotlin val settings = LoadSettings(...) settings.copy { if (...) { label = "foobar" } } ``` ##### Other - Fix dumping numbers for JS by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;579](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/579) ##### Internal - Treat Kotlin compilation warnings as errors by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;587](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/587) - Add tests for failing parsing comment after alias by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;580](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/580) - Move DumpSettingsTest to DumpSetting's package by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;594](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/594) - Generate copy DSL using KSP by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;593](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/593) - Do not store API dump for copy-dsl-ksp-processor by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;596](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/596) - Fix publishing after adding KSP by [@&#8203;krzema12](https://redirect.github.com/krzema12) in [#&#8203;597](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/597) - Update gradle/actions action to v5 by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;584](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/584) - Update dependency org.junit.jupiter:junit-jupiter-engine to v6 by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;582](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/582) - Update plugin com.gradle.develocity to v4.2.2 by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;591](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/591) - Update dependency com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin to v2.2.20-2.0.4 by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;565](https://redirect.github.com/krzema12/snakeyaml-engine-kmp/pull/565) **Full Changelog**: <krzema12/snakeyaml-engine-kmp@v3.2.1...v4.0.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every 1 week on saturday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/typesafegithub/github-actions-typing). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTYuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Piotr Krzeminski <[email protected]>
1 parent 8bead59 commit 50395b2

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ kotlin {
131131
sourceSets {
132132
jvmMain {
133133
dependencies {
134-
implementation("com.charleskorn.kaml:kaml:0.98.0")
135-
implementation("it.krzeminski:snakeyaml-engine-kmp:3.2.1")
134+
implementation("com.charleskorn.kaml:kaml:0.102.0")
135+
implementation("it.krzeminski:snakeyaml-engine-kmp:4.0.1")
136136
}
137137
}
138138

@@ -145,7 +145,7 @@ kotlin {
145145
implementation("io.kotest:kotest-assertions-core")
146146
implementation("io.kotest:kotest-common")
147147

148-
implementation("it.krzeminski:snakeyaml-engine-kmp:3.2.1")
148+
implementation("it.krzeminski:snakeyaml-engine-kmp:4.0.1")
149149
implementation("io.github.optimumcode:json-schema-validator:0.5.2")
150150
}
151151
}

src/jvmMain/kotlin/it/krzeminski/githubactionstyping/parsing/TypesManifestParsing.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ data class ApiItem(
2020

2121
fun parseTypesManifest(manifestString: String): Result<TypesManifest> =
2222
runCatching {
23-
val loadedTypesManifest = Load(
24-
// work-around for https://github.com/krzema12/snakeyaml-engine-kmp/pull/390
25-
LoadSettings.builder().setSchema(CoreSchema()).build()
26-
).loadOne(manifestString)
23+
val loadedTypesManifest = Load(LoadSettings(schema = CoreSchema()))
24+
.loadOne(manifestString)
2725

2826
when (loadedTypesManifest) {
2927
null -> TypesManifest()

src/jvmTest/kotlin/it/krzeminski/githubactionstyping/JsonSchemaValidatorSchemaValidationTest.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ private fun beValid(): Matcher<File> {
4949
MatcherResult(
5050
runCatching {
5151
schema.validate(dataFile.inputStream().use {
52-
Load(
53-
// work-around for https://github.com/krzema12/snakeyaml-engine-kmp/pull/390
54-
// Per https://yaml.org/spec/1.2.2/#recommended-schemas, the Core Schema is
55-
// the recommended default schema that YAML processor should use unless
56-
// instructed otherwise.
57-
LoadSettings.builder().setSchema(CoreSchema()).build()
58-
).loadOne(it)
52+
Load(LoadSettings(schema = CoreSchema())).loadOne(it)
5953
}.toJsonElement()) {
6054
errorMessage = buildString {
6155
if (errorMessage != null) {

0 commit comments

Comments
 (0)