question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`prisma 3.0.1` warns about breaking changes.

See original GitHub issue

Bug description

It probably should warn about breaking changes, but this check: https://github.com/prisma/prisma/blob/40783e17b07d24c3576e863abe6344b6d9d7a9a7/packages/cli/src/Generate.ts#L219

Is not correct since the switch to semver.

How to reproduce

Install prisma@3.0.1 and re-run prisma generate.

Expected behavior

No response

Prisma information

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

model Something {
  id        String @id @default(cuid())
  name      String
}

Environment & setup

  • OS: MacOS
  • Database: PostgreSQL
  • Node.js version: v14.17.1

Prisma Version

prisma                  : 3.0.1
@prisma/client          : 3.0.1
Current platform        : darwin
Query Engine (Node-API) : libquery-engine 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine        : migration-engine-cli 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt 2452cc6313d52b8b9a96999ac0e974d0aedf88db (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : 2452cc6313d52b8b9a96999ac0e974d0aedf88db
Studio                  : 0.423.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pantharshit00commented, Sep 9, 2021

Sorry for the title change that I did. I misread the issue and thought you were asking for a warning about breaking changes. Looks like this is already handled now.

1reaction
janpiocommented, Sep 8, 2021

Thanks for reporting this @Zn4rK - a draft PR is up and we are now looking at if this is all correct, covered, if we can and should do more and so on. The message is really nothing to worry about of course really.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade to Prisma 3
Prisma 3 introduces a number of breaking changes if you are upgrading from an earlier version (any 2.x version), therefore, it is important...
Read more >
Features in Prisma Access 3.0 Preferred and Innovation
New Features—Prisma Access 3.0 Preferred. The following table describes the new features that are available with Prisma Access 3.0 Preferred.  ...
Read more >
What's new in Prisma (v3.11.0) - YouTube
Austin and Alex from the Prisma team discuss the latest 3.11.0 release of Prisma and other news from the Prisma ecosystem.
Read more >
Redwood 3.0.0 is now available! - Releases and Upgrade ...
Redwood v3 bumps Prisma from v3.15.2 to v4.3.1. Prisma v4 was breaking for both the framework and for projects because it dropped Node.js...
Read more >
Prisma-whats-new - Linen
Learn more in the release notes For more info and links to documentation, ... We excited to announce that we just released Prisma...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found