Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(psl): make omitApi GA #5097

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion psl/psl-core/src/common/preview_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ impl<'a> FeatureMapWithProvider<'a> {
| Metrics
| MultiSchema
| NativeDistinct
| OmitApi
| PostgresqlExtensions
| PrismaSchemaFolder
| RelationJoins
Expand Down Expand Up @@ -211,6 +210,7 @@ impl<'a> FeatureMapWithProvider<'a> {
| NamedConstraints
| NApi
| NativeTypes
| OmitApi
| OrderByAggregateGroup
| OrderByNulls
| OrderByRelation
Expand Down
2 changes: 1 addition & 1 deletion psl/psl/tests/config/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading