Avatar for the prisma user
prisma
prisma
BlogDocsChangelog

refactor: rename isNodeAPISupported to assertNodeAPISupported

#19257Merged
Comparing
refactor/assert-node-api-supported
(
416699b
) with
main
(
ea22c62
)
CodSpeed Performance Gauge
-62%
Improvements
0
Regressions
1
Untouched
3
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

typescript compilation ~50 ModelsRegression
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
CodSpeed Performance Gauge
-62%
20.9 ms
55.4 ms

Passed

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
CodSpeed Performance Gauge
+3%
1.8 s
1.8 s
client generation 100 models with relations
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
CodSpeed Performance Gauge
+2%
10.8 s
10.6 s
getPlatform
packages/get-platform/bench/get-platform.bench.ts::get-platform::getPlatform
CodSpeed Performance Gauge
-2%
13.7 ms
14 ms

Commits

Click on a commit to change the comparison range
Base
main
ea22c62
-62%
refactor: rename isNodeAPISupported to assertNodeAPISupported This function doesn't return a boolean or anything and throws if the checked conditions are not met, so the existing name was confusing. This commit renames the function to better convey what it does.
416699b
2 years ago
by aqrln
© 2025 CodSpeed Technology
Home Terms Privacy Docs