This repository was archived by the owner on Jan 13, 2025. It is now read-only.
chore(deps): update all non-major dev-dependencies #58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^18.17.1->^18.17.3^8.9.0->^8.10.0^3.0.0->^3.0.1^5.0.0->^5.1.1Release Notes
prettier/eslint-config-prettier (eslint-config-prettier)
v8.10.0Compare Source
prettier/prettier (prettier)
v3.0.1Compare Source
diff
Fix cursor positioning for a special case (#14812 by @fisker)
Fix plugins/estree.d.ts to make it a module (#15018 by @kingyue737)
Add
export {}inplugins/estree.d.tsto fix the "File is not a module" errorAdd parenthesis around leading multiline comment in return statement (#15037 by @auvred)
Add support for Vue "Generic Components" (#15066 by @auvred)
https://blog.vuejs.org/posts/vue-3-3#generic-components
Fix comments print in
IfStatement(#15076 by @fisker)Add missing type definition for
printer.preprocess(#15123 by @so1ve)export interface Printer<T = any> { // ... + preprocess?: + | ((ast: T, options: ParserOptions<T>) => T | Promise<T>) + | undefined; }Add missing
getVisitorKeysmethod type definition forPrinter(#15125 by @auvred)Add typing to support
readonlyarray properties of AST Node (#15127 by @auvred)Add space before unary minus followed by a function call (#15129 by @pamelalozano)
prisma/prisma (prisma)
v5.1.1Compare Source
Today, we are issuing the
5.1.1patch release.Fixes in Prisma Client
disconnect: truedoes not appear to delete the foreign key in the returned dataneedsandcountmethodv5.1.0Compare Source
Today, we are excited to share the
5.1.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release.
Highlights
After two big releases where we released Client extensions for production usage (
4.16.0) and made Prisma faster by default (5.0.0), we have focused on some smaller issues to make the experience with these new features even better.Community contributions
Our community has been on the roll! We appreciate everyone who helps us by opening a GitHub issue or proposing a fix via Pull Requests. In this release, we're excited to highlight multiple community contributions:
PrismaActiontype, missingfindUniqueOrThrowandfindFirstOrThrowhttps://github.com/prisma/prisma/pull/17471 by @mejiaej and missinggroupByhttps://github.com/prisma/prisma/pull/19985 by @iurylippoBetter performance: Fewer SQL queries on PostgreSQL & CockroachDB
In our continued and ongoing work to make Prisma faster, we identified some Prisma Client queries that led to multiple SQL statements being executed — although in specific databases, that was not necessary.
Hence we optimized our internal SQL generation for PostgreSQL and CockroachDB to generate more efficient SQL queries:
Simple
createqueryIn a simple
createquery,RETURNINGmakes the second query and the transaction statements obsolete:Prisma Client query
Before v5.1.0
5.1.0 and later
Simple
updatequeryFor a simple
updatequery,RETURNINGmakes both additional queries and the transaction statements obsolete:Prisma Client query
Before v5.1.0
5.1.0 and later
Simple
updatequery, return with relation valueOne
SELECTquery could easily be dropped in a simpleupdatequery that should return a relation value as well:Prisma Client query
Before v5.1.0
5.1.0 and later
Empty
updatequeryAn empty
updatequery can be optimized to skip the transaction and the second identical query by creating specific handling for this edge case in our code:Prisma Client query
Before v5.1.0
5.1.0 and later
Simple + relation
updatequery (but do not return relation value)An update of both the model and its relation, we could drop 2
SELECTqueries that we did before without ever using their return values:Prisma Client query
Before v5.1.0
5.1.0 and later
In the next releases, we will continue optimizing Prisma Client queries to only run the minimal amount of SQL queries necessary.
If you notice any Prisma Client queries that are affected right now, please check the issues under our
performance/querieslabel. If you didn’t find one for what you’re seeing, please create a new issue. This will be super useful for us to understand all (edge) cases. Thank you!Prisma Studio now supports
directUrlOur CLI command
prisma studiothat opens Prisma Studio now also can use thedirectUrlproperty of thedatasourceblock so you can make it talk to a different database than defined inurl. This makes it easier to use Studio alongside the Prisma Data Proxy and Accelerate.Prisma Client: No more type clashes
We fixed (almost) all cases where using a specific term as a model name in your Prisma Schema would lead to a type clash due to Prisma’s generated typings. As a result of a type clash, it was not possible to use that model in your code (this was e.g. the case if you named a model
ModelorModelUpdate).We also deprecated the
<ModelName>Argstype as part of that fix. Going forward,<ModelName>DefaultArgsshould be used instead.Fixes and improvements
Prisma Client
XandXUpdateModelandModelUpdateis defined in the schema@prisma/internals(previously @prisma/sdk) uses deprecated dependenciesuuid@3.4.0viatemp-write 4.0.0Datasourcebreaks generated return typesmodelnames cause clashes in generated types$extendsTS error: "Inferred type of this node exceeds the maximum length the compiler will serialize" with"declaration": trueintsconfigType '"findUniqueOrThrow"' is not assignable to type 'PrismaAction'Promisebreaks types forPrismaPromiseincludenot working on models ending with...Updatewith unique compound indexLogLevelenum conflicts with built-in Prisma typePrisma.XyzFindManyArgsbreaksfindManytyping in v4.16.0+this.$on("beforeExit")doesn't work anymore on 5.0.0Error: Unknown value typeon nested createfindUniqueon@uniquecolumns that are enums<Tablename>UpsertArgsselect field does not match type fordb.<tablename>.upsert(item)byingroupByin 5.0.0TypeError [ERR_INVALID_URL]: Invalid URLwhenHTTP(S)_PROXYen var has is set to a URL without a protocoltsc --watchfails withJavaScript heap out of memoryerrorGetResultPrisma Studio
directUrlinprisma studioLanguage tools (e.g. VS Code)
Credits
Huge thanks to @skyzh, @alula, @michaelpoellath, @RobertCraigie, @Gerschtli, @andyjy, @mejiaej, @iurylippo, @mrazauskas for helping!
Configuration
📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.