Commit 348f230
authored
chore(psl): unhide the typedSql preview feature (#5836)
## What
Moves the `TypedSql` preview feature from the **hidden** set to the
**active** set in `psl-core`'s feature classification
(`psl/psl-core/src/common/preview_features.rs`).
This is a **visibility-only change — no behavior changes**. `typedSql`
was already a valid, fully functional preview feature when enabled
explicitly in a schema; being hidden only meant it was excluded from
tooling surfaces (autocomplete in language tools) and from the "Expected
one of: ..." list in validation error messages. After this change it
appears in both.
The two tests that embed the rendered list of visible preview features
(`psl/psl/tests/config/generators.rs` and
`psl/psl/tests/validation/preview_features/native_full_text_search_postgres/mysql.prisma`)
gain `typedSql` in their expected output. No other test or snapshot in
the repository pins the classification (verified by sweeping for the
rendered list and for `TypedSql` references).
## Why now
Prisma ORM's agent-native documentation work recommends TypedSQL as the
escape hatch for several known pitfalls (e.g. full-text search on
PostgreSQL), but neither users nor AI agents can discover a hidden flag:
it never shows up in autocomplete or in the valid-feature listings that
errors print. Making the feature visible closes that discoverability
gap.
## What stays as is
- `reactNative` remains hidden.
- GA/stabilization of `typedSql` is explicitly out of scope — that would
make `$queryRawTyped` generation unconditional and is a separate
decision with its own compatibility questions.
## Validation
- `CLICOLOR_FORCE=1 cargo test -p psl --features all` — 1,297 tests
green (`CLICOLOR_FORCE` matches the CI unit-test environment; the
expect-test snapshots embed ANSI colors).
- `cargo test -p psl-core --all-features` — green.
- `cargo fmt --check -p psl-core` — clean.
- CI (`make test-unit`, workspace-wide with `--all-features`) is the
authoritative surface for the remaining crates; a repository-wide sweep
found no other snapshot embedding the visible-features list.
---------
Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>1 parent 1171e96 commit 348f230
3 files changed
Lines changed: 4 additions & 3 deletions
File tree
- psl
- psl-core/src/common
- psl/tests
- config
- validation/preview_features/native_full_text_search_postgres
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments