feat(client): Remove array shortcuts(#19474)

Merged
Merging
feat/remove-array-shortcuts
into
main
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
4
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
+1%
9.3 s
9.2 s
typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
-1%
123.4 ms
124.3 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
+1%
54.8 s
54.1 s
getPlatform
packages/get-platform/bench/get-platform.bench.ts::get-platform::getPlatform
0%
70.7 ms
71 ms

Commits

Click on a commit to change the comparison range
feat(client): remove GraphQL from TS client (#19749) * WIP: remove GraphQL * Adjust CI, tempararily hardcode `getQueryEngineProtocol` * Remove old GraphQL tests * Remove exclude * Remove ProtocolEncoder abstraction * Remove getDMMF * Move some utils around * Remove embedded DMMF generation * Remove document property * Update error snapshots in legacy tests * Update functional test suite * Remove edgeClientProtocol * Try to simplify CI piplenes build-client-matrix script is no longer needed * Fix relation tests * Fix relation mode test * Update .github/workflows/test-template.yml Co-authored-by: Alexey Orlenko <alex@aqrln.net> * Update packages/client/src/generation/dmmf.ts Co-authored-by: Alexey Orlenko <alex@aqrln.net> * Update packages/client/src/runtime/core/errors/PrismaClientValidationError.ts Co-authored-by: Alexey Orlenko <alex@aqrln.net> * Update packages/client/src/runtime/getPrismaClient.ts Co-authored-by: Alexey Orlenko <alex@aqrln.net> * Penalize `RequiredArgumentMissing` error So that any other will surface below that * Update packages/client/src/runtime/core/errorRendering/applyUnionError.ts Co-authored-by: Alexey Orlenko <alex@aqrln.net> * Fix client version for validation errors * Bump engines --------- Co-authored-by: Alexey Orlenko <alex@aqrln.net>
base
3a95e6c
6 months ago by SevInf
0%
feat(client): Remove array shortcut Stop expanding `T[]` to `T | T[]` during types generation unless both scalars and lists are allowed on the engine side. GraphQL encoder: Stop converting scalar values into single-element lists automatically. BREAKING CHANGE: automatic conversion of scalar values to lists is no longer performed unless explicitly allowed by the schema. Cases where this is no longer allowed will be caught by both compile- and runtime validation. Sibling to prisma/prisma-engines#3966
fa7eea1
6 months ago by SevInf
-1%
feat(client): Remove array shortcut Stop expanding `T[]` to `T | T[]` during types generation unless both scalars and lists are allowed on the engine side. GraphQL encoder: Stop converting scalar values into single-element lists automatically. BREAKING CHANGE: automatic conversion of scalar values to lists is no longer performed unless explicitly allowed by the schema. Cases where this is no longer allowed will be caught by both compile- and runtime validation. Sibling to prisma/prisma-engines#3966 Fix #19303
03755ea
6 months ago by SevInf
-10%
Fix tests
149d145
6 months ago by SevInf
+11%
Update dmmf snapshots
913b78b
6 months ago by SevInf
ResourcesHomePricingDocsBlogGitHub
Copyright © 2023 CodSpeed Technology SAS. All rights reserved.