generated from tuanlc/express-prisma-postgresql-boilerplate
    
        
        - 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Update prisma monorepo to v3.15.2 #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            renovate
  wants to merge
  1
  commit into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
renovate/prisma-monorepo
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
                
     Open
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    a35c975    to
    66c956a      
    Compare
  
    66c956a    to
    4c4f9d6      
    Compare
  
    4c4f9d6    to
    c601a51      
    Compare
  
    c601a51    to
    2d99dfa      
    Compare
  
    2d99dfa    to
    3f85765      
    Compare
  
    3f85765    to
    0716627      
    Compare
  
    0716627    to
    c4fc625      
    Compare
  
    c4fc625    to
    164e173      
    Compare
  
    | 
 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  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:
3.12.0->3.15.23.12.0->3.15.2Release Notes
prisma/prisma (@prisma/client)
v3.15.2Compare Source
Today, we are issuing the
3.15.2patch release.Fixes
In order to use the Prisma Data Proxy via Prisma Client, you need to generate it with
prisma generate --data-proxyas described in our documentation. We are introducingPRISMA_GENERATE_DATAPROXY="true"as an additional way to do the same thing, but via an environment variable.This is necessary, for example, to reliably deploy a Prisma Client for Data Proxy on Vercel Serverless Functions, where it can be hard to update the build command to run
prisma generate --data-proxy. Starting with this version you can just setPRISMA_GENERATE_DATAPROXY="true"as an environment variable the Vercel project settings.If you are unfamiliar with the Data Proxy, read how to get started.
v3.15.1Compare Source
Today, we are issuing the
3.15.1patch release.Fixes
v3.15.0Compare Source
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Major improvements
Improvements to Prisma Client for Data Proxy
In this release, we're shipping a couple of improvements to Prisma Client for Data Proxy.
The Prisma Data Proxy provides connection management and pooling for database connections for efficiently scaling database connections in serverless environments. The Prisma Client for Data Proxy provides support for connecting to the Prisma Data Proxy using HTTP.
We introduced this feature in version
3.3.0and constantly shipped features, fixes, and improvements.One of the changes in this release is improving the Prisma Client for the Data Proxy generation step.
datasource db { provider = "postgresql" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" - previewFeatures = ["dataProxy"] }You can generate Prisma Client for the Data Proxy it by using the
--data-proxyflag:We also updated how you can run Prisma Client using the Data Proxy in Cloudflare Workers and Edge environments. You can now use
@prisma/client/edgeinstead of@prisma/clientin your application.To learn more, check out our documentation.
Prisma Client Metrics is now in Preview
Metrics is a new Preview feature that allows you to monitor how Prisma Client interacts with your database. Metrics expose a set of counters, gauges, and histograms that can be labeled and piped into an external monitoring system like Prometheus or StatsD.
You can use metrics in your project to help diagnose how your application's number of idle and active connections changes with counters, gauges, and histograms.
To get started using metrics in your project, enable the Preview feature flag in your Prisma schema:
You can then get started using metrics in your project:
To learn more, check out the metrics documentation. Give it a try and let us know what you think.
Regression
Azure SQL on MacOS
This release includes a known regression when connecting to Azure SQL from MacOS only and will be resolved soon. Follow this issue for updates and resolution.
Fixes and improvements
migrate resetreturns with a non-0 exit code if the seed script returns with a non-0 exit codeThis will help user scripts know more about the success of the command, but might break existing scripts.
Prisma
introspect --urlthrows error if existing schema file only containsgeneratorprisma migrate resetalways exits with0, needs to exit with1on errorsWould you like to create a Github issue? » Yesdoes nothing in terminal on Windows患者IDAirbyteRawYuriPagesAirbyteDataProperties推荐点RichTextdbandmigratecommandsPrisma Client
Option::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87upsertcauses: "PANIC: calledOption::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87".envfilesOption::unwrap()on aNonevalue in query-engine\core\src\query_document\parser.rs:250:87prisma generateerrors withError: Error: ENOENT: no such file or directory, open '/[...]/prisma/schema.prisma'when using a custom name for the Prisma schema fileOption::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87Option::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87TypeError: at normalizeAndValidateHeaderValuewith data proxy in cloudflare workers/miniflareOption::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87getConfigandgetDmmfof Query EngineOption::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87Option::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87Option::unwrap()on aNonevalue in query-engine/core/src/query_document/parser.rs:250:87InvalidDatasourceErrorof Data Proxy Client outputs a code snippetCredits
Huge thanks to @shian15810, @zifeo, @ever0de, @rushabhhere for helping!
Prisma Day
Prisma Day is back this year, and it'll be on June 15 - 16 at the James June Sommergarten in Berlin. Join us in-person or online for talks and workshops on modern application development and databases. Come and meet and chat with the team behind the Prisma ORM and Prisma Data Platform.
💼 We're hiring!
If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.
We're looking for a Technical Support Engineer and Back-end Engineer: Prisma Data Platform.
Feel free to read through the job descriptions and apply using the links provided.
📺 Join us for another "What's new in Prisma" livestream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on YouTube on Thursday, June 9 at 5 pm Berlin | 8 am San Francisco.
v3.14.0Compare Source
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Major improvements
CockroachDB connector is now Generally Available!
We are proud to announce the CockroachDB connector is now stable and Generally Available. The connector was built in joined efforts with the team at Cockroach Labs and comes with full Prisma Client and Prisma Migrate support.
If you're upgrading from Prisma version
3.9.0+ or the PostgreSQL connector, you can now runnpx prisma db pulland review the changes to your schema. To learn more about CockroachDB-specific native types we support, refer to our docs.To learn more about the connector and how it differs from PostgreSQL, head to our documentation.
PostgreSQL
GIN,GiST,SP-GiST, andBRINindexes support (Preview)We introduced the
extendedIndexesPreview feature in version3.5.0, and we have been adding new configuration options for indexes. We've expanded index type support with theGIN,GiST,SP-GiST, andBRINindexes in this release.To make use of an index type, you can update your Prisma schema by providing the
typeargument to the@@​indexattribute:The following SQL will be generated in your migration when you run
prisma migrate dev:To learn more about configuring index types in your schema, refer to our documentation.
Improved
queryRawAPIIn this release, we made improvements to the SQL raw API. Some improvements are breaking and will be available behind the new
improvedQueryRawPreview feature flag.The
improvedQueryRawPreview feature solves most of the issues faced when working with the raw API. We would encourage you to turn on the Preview feature flag, try out the new API, and let us know how we can make it even better.You can enable the Preview feature in your Prisma schema as follows:
Here's a list of the improvements
improvedQueryRawcomes with:1. Raw scalar values are deserialized as their correct JavaScript types
Prisma Client queries such as
findManydeserialize database scalar values to their corresponding JavaScript types. For example, aDateTimevalue is deserialized as a JavaScriptDate,and aByteswould be deserialized as a JavaScriptBuffer.Raw queries now implement the same behavior when the
improvedQueryRawPreview feature flag is enabled.The types of values from the database will be used instead of the types in the Prisma schema. Here's an example query and response:
Here's a table that recaps the serialization type-mapping for raw results:
2. PostgreSQL type-casts
We've also fixed a lot of PostgreSQL type-casts that were broken by enabling the
improvedQueryRawPreview feature flag.Here's an example of a query that used to fail:
You can now perform some more type-casts in your queries:
A consequence of this fix is that some subtle implicit casts are now handled more strictly and would fail. Here's an example that used to work but won't work anymore under the
improvedQueryRawfeature flag:The
LENGTHPostgreSQL function only accepttextas input. Prisma used to coerce42totextsilently, but won’t anymore. As suggested by the hint, cast42totextas follows:3. Query parameters are correctly sent to the database
Before this release, query parameters of type
BigInt,Bytes, andDecimalwere incorrectly sent to the database leading to instances of unexpected inserts. Passing the types as query parameters now works:Fixes and improvements
Prisma Client
incorrect binary data format in bind parameter 3$queryRawgenerateoutput withoutputhas weird package path on Windows$fromexecuteRawin error message "Invalid `prisma.executeRaw()` invocation:"Result::unwrap()on anErrvalue: Any { .. } in query-engine/connectors/sql-query-connector/src/error.rs:58:51referentialIntegrity = prisma: Broken query ononUpdate: Cascade|symbol ... not found|The column ... does not exist in the current database.N/A. Message:error deserializing column 0: a Postgres value wasNULL``" error when using Postgres ARRAY_AGG with a nullable columndebugPaniclike functionality forgetConfigandgetDmmfof Query EngineResult::unwrap()on anErrvalue: Any { .. } in query-engine/connectors/sql-query-connector/src/error.rs:58:51Prisma
Result::unwrap()on anErrvalue: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }prisma formatpanics when you use a colon to declare field type (field: Typesyntax)TEXTorBLOBin MySQL @id/@index/@uniqueError parsing attribute "@​id"but it's actually about@@​idOption::unwrap()on aNonevalueprovider=posgresqlschema--urlfordb pullignored/overwritesprovider=cockroachdbPrisma Migrate
Language tools (e.g. VS Code)
Credits
Huge thanks to @ever0de, @flatplate, @njmaeff, @tnzk, @DePasqualeOrg for helping!
Prisma Day
Prisma Day is back this year, and it'll be on June 15 - 16 at the JamesJune Sommergarten in Berlin. Join us in-person or online for talks and workshops on modern application development and databases. Come and meet and chat with the team behind the Prisma ORM and Prisma Data Platform.
💼 We're hiring!
If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.
We're hiring for a number of roles: Technical Support Engineer, Back-end Engineer: Prisma Data Platform, and a Developer Advocate(Frontend/ Fullstack). You can find more jobs we're hiring for on our jobs page.
Feel free to read through the job descriptions and apply using the links provided.
📺 Join us for another "What's new in Prisma" livestream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on YouTube on Thursday, May 12 at 5 pm Berlin | 8 am San Francisco.
v3.13.0Compare Source
Today, we are excited to share the
3.13.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
Major improvements
migrate diffanddb executeare now Generally Available!We released two new Preview CLI commands in version
3.9.0–prisma migrate diffandprisma db execute– to enable our users to create and understand migrations and build their workflows using the commands.We're proud to announce that the commands are now Generally Available and can now be used without the
--preview-featureflag. 🎉The
prisma migrate diffcommand creates a diff of your database schema, Prisma schema file, or the migration history. All you have to do is feed the command with a schemafromstate and a schematostate to get an SQL script or human-readable diff.In addition to
prisma migrate diff,prisma db executeis used to execute SQL scripts against a database. You can directly executeprisma migrate diff's output usingprisma db execute --stdin.Both commands are non-interactive, so it's possible to build many new workflows such as forward and backward migrations with some automation tooling. Take a look at our documentation to learn some of the popular workflows these commands unlock:
migrate diffanddb executeLet us know what tools, automation, and scripts you build using these commands.
SQL Server index clustering (Preview)
In version
3.5.0, we introduced theextendedIndexesPreview feature which we have constantly been adding new configuration options for indexes. In this release, we added support for enabling or disabling index/constraint clustering in SQL Server.By default, indexes will be clustered by default. You can update this in your schema as follows to disable index clustering:
The following SQL will be generated in your migration when you run
prisma migrate devIf you've enabled the
extendedIndexesPreview feature, this is potentially a breaking change. Refer to our documentation to learn how you can upgrade from a previous version.Updated native types for CockroachDB (Preview)
We have revamped the native types available in the CockroachDB connector. We initially re-used the PostgreSQL native types because they were close enough, but we have now adapted our list of the supported native types to match what CockroachDB supports.
If you are already using CockroachDB in your project, you can run
prisma db pullto update all the native types in your Prisma schema. Refer to our documentation for the complete list of all CockroachDB native types.OpenSSL 3.0 Support
We're excited to announce that version
3.13.0now supports OpenSSL 3.0. Operating systems such as Ubuntu 22.04 default to OpenSSL 3.0, and when runningprisma generate, you would run into the following error:If you've run into a similar error, bump up to the latest Prisma version and give it another try!
Fixes and improvements
Prisma Client
Prisma
prisma initneeds CockroachDB in the providers listDROP DATABASE "test-doesnotexists;"says thatDatabase postgres.public does not existmigrate diffjust crashed.prisma init --datasource-provider=cockroachdb --url ...sets provider topostgresql--preview-featureflag for Primitives (migrate diffanddb execute)Language tools (e.g. VS Code)
Prisma Engines
Credits
Huge thanks to @ever0de, @jacobhq, @dkantereivin, @CommanderRoot for helping!
💼 We're hiring!
If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you.
We're looking for a Technical Support Engineer and Senior Software Engineer (Prisma Data Platform).
Feel free to read through the job descriptions and apply using the links provided.
📺 Join us for another "What's new in Prisma" livestream
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on YouTube on Thursday, April 28 at 5 pm Berlin | 8 am San Francisco.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.