Unverified Commit 739299d3 authored by Aurora Scharff's avatar Aurora Scharff Committed by GitHub

fix: add @deprecated annotation to experimental.useCache (#92316)

### What?

Add a `@deprecated` JSDoc annotation to `experimental.useCache` in
`config-shared.ts`, pointing to `cacheComponents: true` as the
successor.

### Why?

`experimental.cacheComponents` already has `@deprecated use top-level
cacheComponents instead`, but `experimental.useCache` has no deprecation
notice despite `cacheComponents: true` being the documented successor.
This causes both developers and AI coding agents to use the old flag,
since nothing in the type definitions signals it's deprecated. IDEs and
agents rely on JSDoc annotations for guidance.

### How?

Replace the existing JSDoc comment on `experimental.useCache` with
`@deprecated use top-level cacheComponents instead`, matching the
existing pattern on `experimental.cacheComponents`.

## PR checklist (Fixing a bug)

- One-line JSDoc change, no tests needed

Made with [Cursor](https://cursor.com)
parent d5f479c1
......@@ -940,6 +940,7 @@ export interface ExperimentalConfig {
/**
* Enables the use of the `"use cache"` directive.
* @deprecated use top-level `cacheComponents` instead
*/
useCache?: boolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment