vercel
next.js
BlogDocsChangelog

Allow exporting object and array literals in `'use cache'` files again

#86655Merged
Comparing
hl/fix-use-cache-object-export-validation
(
120b0f9
) with
canary
(
a51a2e4
)
CodSpeed Performance Gauge
0%
Untouched
17
Skipped
3

Benchmarks

Skipped (3)

Passed

build[lucide-react-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
942.1 ms940.7 ms
build[date-fns-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
1.4 s1.4 s
packages-bundle.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
1.1 s1.1 s
react-dom-client.development.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
455.5 ms455.2 ms
build[joy]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
2.1 s2.1 s
jsonwebtoken.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
320.4 ms320.2 ms
build[shiki]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
5.4 s5.4 s
build[framer-motion-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
3 s3 s
jsonwebtoken.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
362.4 ms362.5 ms
app-page-turbo.runtime.prod.js[full]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
711.5 ms711.6 ms
build[lucide-react-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
8.4 s8.4 s
build[mui]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
3.1 s3.1 s
packages-bundle.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
935.8 ms936.6 ms
build[framer-motion-single]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
2.2 s2.2 s
build[date-fns-all]
turbopack/crates/turbopack-cli/benches/small_apps.rs::benches::bench_small_apps::turbopack/build/apps
CodSpeed Performance Gauge
0%
2.2 s2.2 s
react-dom-client.development.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
399.1 ms399.9 ms
app-page-turbo.runtime.prod.js[tracing]
turbopack/crates/turbopack-ecmascript/benches/references.rs::references_benches::benchmark::references
CodSpeed Performance Gauge
0%
608.7 ms610.1 ms

Commits

Click on a commit to change the comparison range
Base
canary
a51a2e4
-0.03%
Allow exporting object and array literals in `'use cache'` files again In #86014 we added a validation for exporting object and array literals in `'use cache'` files. This was a bit too restrictive, and short-sighted, as it would prevent exporting common things like metadata or viewport objects from page and layout files, if the file uses a `'use cache'` top-level directive.
120b0f9
2 days ago
by unstubbable
© 2025 CodSpeed Technology
Home Terms Privacy Docs