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

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

Benchmarks

client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
+54%
7.9 s
5.1 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
+5%
63.8 ms
60.6 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
+17%
62.4 s
53.3 s

Commits

Click on a commit to change the comparison range
chore(deps): update engines to 4.13.0-3.2c633d2988cbc78da0d02d7daf514ccf76e6b001 (#18574)
base
1a0fbfa
8 months ago by prisma-bot
+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
8 months ago by aqrln
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.