BlogDocs

refactor(client): remove makeEnum from generated client(#18591)

Merged
Merging
refactor/remove-makeenum
into
main
+54%
IMPROVEMENTS
1
REGRESSIONS
0
UNTOUCHED
2
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
+54%
1.6 s
1 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
+15%
14.9 ms
12.9 ms
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
+16%
11.9 s
10.3 s

Commits

Click on a commit to change the comparison range
base
main
1a0fbfa
+54%
refactor(client): remove makeEnum from generated client `makeEnum` is just an identity function and doesn't do anything in generated JavaScript code. What the comment refers to is only relevant to TypeScript on type level, and we have types generated separately in a `.d.ts` file.
b0a569f
a year ago by aqrln
ResourcesHomePricingDocsBlogGitHub
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.