Skip to content

Commit f1ea2f0

Browse files
committed
fix: illegal method name in some jvm impls
1 parent abbca49 commit f1ea2f0

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kotlin = "2.2.0"
33
kotlinx-serialization = "1.8.1"
44

55
mongodb = "5.5.1"
6-
mongokt = "0.2.0-beta.11"
6+
mongokt = "0.2.0-beta.12"
77

88
[libraries]
99
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }

module-ped-mongodb/src/commonMain/kotlin/filters/_Comparison.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ import org.cufy.ped.encodeOne
1818

1919
/** https://www.mongodb.com/docs/manual/reference/operator/query/eq */
2020
@BsonMarker2
21-
@JvmName($$"(BsonCodec<T>)_$eq_T")
21+
@JvmName($$"$BsonCodec$T$_$eq_T")
2222
context(_: /* Operator */BsonDocumentBuilder, _: BsonCodec<T>)
2323
fun <T> `$eq`(value: T) =
2424
`$eq` by encode(value)
2525

2626
/** https://www.mongodb.com/docs/manual/reference/operator/query/eq */
2727
@Suppress("CONTEXTUAL_OVERLOAD_SHADOWED")
2828
@BsonMarker2
29-
@JvmName($$"(BsonCodec<List<T>>)_$eq_T")
29+
@JvmName($$"$BsonCodec$List$T$_$eq_T")
3030
context(_: /* Operator */BsonDocumentBuilder, _: BsonCodec<List<T>>)
3131
fun <T> `$eq`(value: T) =
3232
`$eq` by encodeOne(value)
3333

3434
/** https://www.mongodb.com/docs/manual/reference/operator/query/eq */
3535
@BsonMarker2
36-
@JvmName($$"BsonFieldCodec<T>_$eq_T")
36+
@JvmName($$"BsonFieldCodec$T_$eq_T")
3737
context(_: /* Query */BsonDocumentBuilder)
3838
infix fun <T> BsonFieldCodec<T>.`$eq`(value: T) =
3939
this.name by { `$eq` by (value encode this) }
4040

4141
/** https://www.mongodb.com/docs/manual/reference/operator/query/eq */
4242
@BsonMarker2
43-
@JvmName($$"BsonFieldCodec<List<T>>_$eq_T")
43+
@JvmName($$"BsonFieldCodec$List$T_$eq_T")
4444
context(_: /* Query */BsonDocumentBuilder)
4545
infix fun <T> BsonFieldCodec<List<T>>.`$eq`(value: T) =
4646
this.name by { `$eq` by (value encodeOne this) }
@@ -89,14 +89,14 @@ fun <T> `$in`(values: List<T>) =
8989

9090
/** https://www.mongodb.com/docs/manual/reference/operator/query/in */
9191
@BsonMarker2
92-
@JvmName($$"BsonFieldCodec<T>_$in_List<T>")
92+
@JvmName($$"BsonFieldCodec$T_$in_List$T")
9393
context(_: /* Query */BsonDocumentBuilder)
9494
infix fun <T> BsonFieldCodec<T>.`$in`(values: List<T>) =
9595
this.name by { `$in` by array { values.forEach { by(it encode this) } } }
9696

9797
/** https://www.mongodb.com/docs/manual/reference/operator/query/in */
9898
@BsonMarker2
99-
@JvmName($$"BsonFieldCodec<List<T>>_$in_List<T>")
99+
@JvmName($$"BsonFieldCodec$List$T_$in_List$T")
100100
context(_: /* Query */BsonDocumentBuilder)
101101
infix fun <T> BsonFieldCodec<List<T>>.`$in`(values: List<T>) =
102102
this.name by { `$in` by (values encode this) }
@@ -133,29 +133,29 @@ infix fun <T> BsonFieldCodec<T>.`$lte`(value: T) =
133133

134134
/** https://www.mongodb.com/docs/manual/reference/operator/query/ne */
135135
@BsonMarker2
136-
@JvmName($$"(BsonCodec<T>)_$ne_T")
136+
@JvmName($$"$BsonCodec$T$_$ne_T")
137137
context(_: /* Operator */BsonDocumentBuilder, _: BsonCodec<T>)
138138
fun <T> `$ne`(value: T) =
139139
`$ne` by encode(value)
140140

141141
/** https://www.mongodb.com/docs/manual/reference/operator/query/ne */
142142
@Suppress("CONTEXTUAL_OVERLOAD_SHADOWED")
143143
@BsonMarker2
144-
@JvmName($$"(BsonCodec<List<T>>)_$ne_T")
144+
@JvmName($$"$BsonCodec$List$T$_$ne_T")
145145
context(_: /* Operator */BsonDocumentBuilder, _: BsonCodec<List<T>>)
146146
fun <T> `$ne`(value: T) =
147147
`$ne` by encodeOne(value)
148148

149149
/** https://www.mongodb.com/docs/manual/reference/operator/query/ne */
150150
@BsonMarker2
151-
@JvmName($$"BsonFieldCodec<T>_$ne_T")
151+
@JvmName($$"BsonFieldCodec$T_$ne_T")
152152
context(_: /* Query */BsonDocumentBuilder)
153153
infix fun <T> BsonFieldCodec<T>.`$ne`(value: T) =
154154
this.name by { `$ne` by (value encode this) }
155155

156156
/** https://www.mongodb.com/docs/manual/reference/operator/query/ne */
157157
@BsonMarker2
158-
@JvmName($$"BsonFieldCodec<List<T>>_$ne_T")
158+
@JvmName($$"BsonFieldCodec$List$T_$ne_T")
159159
context(_: /* Query */BsonDocumentBuilder)
160160
infix fun <T> BsonFieldCodec<List<T>>.`$ne`(value: T) =
161161
this.name by { `$ne` by (value encodeOne this) }
@@ -176,14 +176,14 @@ fun <T> `$nin`(values: List<T>) =
176176

177177
/** https://www.mongodb.com/docs/manual/reference/operator/query/nin */
178178
@BsonMarker2
179-
@JvmName($$"BsonFieldCodec<T>_$nin_List<T>")
179+
@JvmName($$"BsonFieldCodec$T_$nin_List$T")
180180
context(_: /* Query */BsonDocumentBuilder)
181181
infix fun <T> BsonFieldCodec<T>.`$nin`(values: List<T>) =
182182
this.name by { `$nin` by array { values.forEach { by(it encode this) } } }
183183

184184
/** https://www.mongodb.com/docs/manual/reference/operator/query/nin */
185185
@BsonMarker2
186-
@JvmName($$"BsonFieldCodec<List<T>>_$nin_List<T>")
186+
@JvmName($$"BsonFieldCodec$List$T_$nin_List$T")
187187
context(_: /* Query */BsonDocumentBuilder)
188188
infix fun <T> BsonFieldCodec<List<T>>.`$nin`(values: List<T>) =
189189
this.name by { `$nin` by (values encode this) }

module-ped-mongodb/src/commonMain/kotlin/filters/_Element.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ infix fun BsonFieldCodec<*>.`$type`(type: String) =
3333

3434
/** https://www.mongodb.com/docs/manual/reference/operator/query/type */
3535
@BsonMarker2
36-
@JvmName($$"BsonFieldCodec<*>_$type_List<Int>")
36+
@JvmName($$"BsonFieldCodec_$type_List$Int")
3737
context(_: /* Query */BsonDocumentBuilder)
3838
infix fun BsonFieldCodec<*>.`$type`(types: List<Int>) =
3939
this.name by { `$type` by array { types.forEach { contextOf().add(it.bson) } } }
4040

4141
/** https://www.mongodb.com/docs/manual/reference/operator/query/type */
4242
@BsonMarker2
43-
@JvmName($$"BsonFieldCodec<*>_$type_List<String>")
43+
@JvmName($$"BsonFieldCodec_$type_List$String")
4444
context(_: /* Query */BsonDocumentBuilder)
4545
infix fun BsonFieldCodec<*>.`$type`(types: List<String>) =
4646
this.name by { `$type` by array { types.forEach { contextOf().add(it.bson) } } }

0 commit comments

Comments
 (0)