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

Benchmarks

Failing

typescript compilation ~50 Models
Regression
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
-62%
102.9 ms
268.8 ms

Passing

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
+2%
9.4 s
9.2 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%
55.4 s
54.4 s
getPlatform
packages/get-platform/bench/get-platform.bench.ts::get-platform::getPlatform
-2%
70.6 ms
72 ms

Commits

Click on a commit to change the comparison range
fix(client): $$typeof runtime error (#19230)
base
ea22c62
7 months ago by millsp
-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
7 months ago by aqrln
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.