Skip to content

Commit ce08d73

Browse files
committed
fix: platform clash issue
- added explicit JvmName to resolve the issue - removed ExperimentalMongoDBApi from non-experimental declarations
1 parent a411dc0 commit ce08d73

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

module-mongokt/src/commonMain/kotlin/filters/_Evaluation.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import org.cufy.mongodb.expr.buildExpr
1212
/* ============= ------------------ ============= */
1313

1414
/** https://www.mongodb.com/docs/manual/reference/operator/query/expr */
15-
@ExperimentalMongodbApi
1615
@BsonMarker2
1716
context(_: /* Query */BsonDocumentBuilder)
1817
fun expr(expression: BsonDocument) =
@@ -28,14 +27,12 @@ fun expr(expression: context(ExprScope) () -> Expr<_Boolean>) =
2827
/* ============= ------------------ ============= */
2928

3029
/** https://www.mongodb.com/docs/manual/reference/operator/query/jsonSchema */
31-
@ExperimentalMongodbApi
3230
@BsonMarker2
3331
context(_: /* Query */BsonDocumentBuilder)
3432
fun jsonSchema(expression: BsonDocumentBlock) =
3533
`$jsonSchema` by expression
3634

3735
/** https://www.mongodb.com/docs/manual/reference/operator/query/jsonSchema */
38-
@ExperimentalMongodbApi
3936
@BsonMarker2
4037
context(_: /* Query */BsonDocumentBuilder)
4138
fun jsonSchema(expression: BsonDocument) =
@@ -58,16 +55,15 @@ fun mod(divisor: Long, remainder: Long) =
5855
/* ============= ------------------ ============= */
5956

6057
/** https://www.mongodb.com/docs/manual/reference/operator/query/regex */
61-
@ExperimentalMongodbApi
6258
@BsonMarker2
59+
@JvmName("regex_String_String")
6360
context(_: /* Operator */BsonDocumentBuilder)
6461
fun regex(regex: String, options: String? = null) {
6562
`$regex` by regex
6663
if (options != null) `$options` by options
6764
}
6865

6966
/** https://www.mongodb.com/docs/manual/reference/operator/query/regex */
70-
@ExperimentalMongodbApi
7167
@BsonMarker2
7268
context(_: /* Operator */BsonDocumentBuilder)
7369
fun regex(regex: BsonRegExp, options: String? = null) {
@@ -77,6 +73,7 @@ fun regex(regex: BsonRegExp, options: String? = null) {
7773

7874
/** https://www.mongodb.com/docs/manual/reference/operator/query/regex */
7975
@BsonMarker2
76+
@JvmName("String_regex_String")
8077
context(_: /* Query */BsonDocumentBuilder)
8178
infix fun String.regex(regex: String) =
8279
this by { `$regex` by regex }
@@ -90,7 +87,6 @@ infix fun String.regex(regex: BsonRegExp) =
9087
/* ============= ------------------ ============= */
9188

9289
/** https://www.mongodb.com/docs/manual/reference/operator/query/text */
93-
@ExperimentalMongodbApi
9490
@BsonMarker2
9591
context(_: /* Query */BsonDocumentBuilder)
9692
fun text(

0 commit comments

Comments
 (0)