BlogDocs

refactor: rename isNodeAPISupported to assertNodeAPISupported(#19257)

Merged
Merging
refactor/assert-node-api-supported
into
main
-62%
IMPROVEMENTS
0
REGRESSIONS
1
UNTOUCHED
3
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Failing

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

Passing

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
+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
+2%
10.8 s
10.6 s
getPlatform
packages/get-platform/bench/get-platform.bench.ts::get-platform::getPlatform
-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
a year ago by aqrln
ResourcesHomePricingDocsBlogGitHub
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.