From 88475a2f9a9ea05eaa77e1b32a07064073b46ef9 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Thu, 19 Dec 2024 19:19:30 +0100 Subject: [PATCH] feat(psl): make omitApi GA --- psl/psl-core/src/common/preview_features.rs | 2 +- psl/psl/tests/config/generators.rs | 2 +- .../native_full_text_search_postgres/mysql.prisma | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/psl/psl-core/src/common/preview_features.rs b/psl/psl-core/src/common/preview_features.rs index ea39efb6ac7..9ae18ab4e79 100644 --- a/psl/psl-core/src/common/preview_features.rs +++ b/psl/psl-core/src/common/preview_features.rs @@ -156,7 +156,6 @@ impl<'a> FeatureMapWithProvider<'a> { | Metrics | MultiSchema | NativeDistinct - | OmitApi | PostgresqlExtensions | PrismaSchemaFolder | RelationJoins @@ -211,6 +210,7 @@ impl<'a> FeatureMapWithProvider<'a> { | NamedConstraints | NApi | NativeTypes + | OmitApi | OrderByAggregateGroup | OrderByNulls | OrderByRelation diff --git a/psl/psl/tests/config/generators.rs b/psl/psl/tests/config/generators.rs index e59c439c9f0..f2c651ad2c5 100644 --- a/psl/psl/tests/config/generators.rs +++ b/psl/psl/tests/config/generators.rs @@ -256,7 +256,7 @@ fn nice_error_for_unknown_generator_preview_feature() { .unwrap_err(); let expectation = expect![[r#" - error: The preview feature "foo" is not known. Expected one of: deno, driverAdapters, metrics, multiSchema, nativeDistinct, postgresqlExtensions, views, relationJoins, prismaSchemaFolder, omitApi, strictUndefinedChecks + error: The preview feature "foo" is not known. Expected one of: deno, driverAdapters, metrics, multiSchema, nativeDistinct, postgresqlExtensions, views, relationJoins, prismaSchemaFolder, strictUndefinedChecks --> schema.prisma:3  |   2 |  provider = "prisma-client-js" diff --git a/psl/psl/tests/validation/preview_features/native_full_text_search_postgres/mysql.prisma b/psl/psl/tests/validation/preview_features/native_full_text_search_postgres/mysql.prisma index 3e770e760a0..4d24052d0d5 100644 --- a/psl/psl/tests/validation/preview_features/native_full_text_search_postgres/mysql.prisma +++ b/psl/psl/tests/validation/preview_features/native_full_text_search_postgres/mysql.prisma @@ -14,7 +14,7 @@ model Blog { title String @@fulltext([content, title]) } -// error: The preview feature "fullTextSearchPostgres" is not known. Expected one of: deno, driverAdapters, metrics, multiSchema, nativeDistinct, postgresqlExtensions, views, relationJoins, prismaSchemaFolder, omitApi, strictUndefinedChecks +// error: The preview feature "fullTextSearchPostgres" is not known. Expected one of: deno, driverAdapters, metrics, multiSchema, nativeDistinct, postgresqlExtensions, views, relationJoins, prismaSchemaFolder, strictUndefinedChecks // --> schema.prisma:3 //  |  //  2 |  provider = "prisma-client-js"