Skip to content
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

Lock file maintenance Examples #3486

Merged
merged 1 commit into from
May 1, 2024
Merged

Lock file maintenance Examples #3486

merged 1 commit into from
May 1, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 1, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change Age Adoption Passing Confidence
lockFileMaintenance All locks refreshed
@prisma/client (source) dependencies minor 5.12.1 -> 5.13.0 age adoption passing confidence
@supabase/supabase-js dependencies minor 2.42.3 -> 2.43.0 age adoption passing confidence
@tanstack/react-query (source) dependencies minor 5.29.2 -> 5.32.1 age adoption passing confidence
prisma (source) devDependencies minor ^5.12.1 -> ^5.13.0 age adoption passing confidence
@types/react (source) devDependencies minor 18.2.78 -> 18.3.1 age adoption passing confidence

🔧 This Pull Request updates lock files to use the latest dependency versions.


Release Notes

prisma/prisma (@​prisma/client)

v5.13.0

Compare Source

Today, we are excited to share the 5.13.0 stable release 🎉

🌟 Help us spread the word about Prisma by starring the repo or posting on X about the release.

Highlights
omit fields from Prisma Client queries (Preview)

We’re excited to announce Preview support for the omit option within the Prisma Client query options. The highly-requested omit feature now allows you to exclude fields that you don’t want to retrieve from the database on a per-query basis.

By default, when a query returns records, the result includes all scalar fields of the models defined in the Prisma schema. select can be used to return specific fields, while omit can now be used to exclude specific fields. omit lives at the same API level and works on all of the same Prisma Client model queries as select. Note, however, that omit and select are mutually exclusive. In other words, you can’t use both in the same query.

To get started using omit, enable the omitApi Preview feature in your Prisma schema:

// schema.prisma
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["omitApi"]
}

Be sure to re-generate Prisma Client afterwards:

npx prisma generate

Here is an example of using omit:

// Includes all fields except password
await prisma.user.findMany({
  omit: {
   password: true
  },
})

Here is an example of using omit with include:

// Includes all user fields except user's password and title of user's posts
await prisma.user.findMany({
  omit: {
   password: true
  },
  include: {
    posts: {
      omit: {
        title: true
      },
    },
  },
})
Expand to view the example Prisma schema
model User {
  id       Int     @​id @​default(autoincrement())
  email    String  @​unique
  name     String?
  password String
  posts    Post[]
}

model Post {
  id       Int    @​id @​default(autoincrement())
  title    String
  author   User   @​relation(fields: [authorId], references: [id])
  authorId Int
}

Many users have requested a global implementation of omit. This request will be accommodated in the future. In the meantime, you can follow the issue here.

📣 Share your feedback: omitApi Preview feature

📚 Documentation: omit - Prisma Client API Reference

Fixes and improvements
Prisma Migrate
Prisma Client
Credits

Huge thanks to @​ospfranco, @​pranayat, @​yubrot, @​skyzh, @​anuraaga, @​yehonatanz, @​arthurfiorette, @​elithrar, @​tockn, @​Kuhave, @​obiwac for helping!

supabase/supabase-js (@​supabase/supabase-js)

v2.43.0

Compare Source

v2.42.7

Compare Source

Bug Fixes
  • set hasCustomAuthorizationHeader property on the AuthClient (31fc0cc)

v2.42.6

Compare Source

Bug Fixes

v2.42.5

Compare Source

v2.42.4

Compare Source

Bug Fixes
TanStack/query (@​tanstack/react-query)

v5.32.1

Compare Source

Version 5.32.1 - 4/30/2024, 1:38 PM

Changes
Fix
  • trigger release (684ffbf) by Dominik Dorfmeister
  • codemods: Use .cjs extension for CommonJS files (#​7333) (2aca521) by Anton Jeppsson
Docs
  • createSyncStoragePersister: fix typo (#​7348) (6768a9c) by Mackie Underdown
Packages

v5.32.0

Compare Source

Version 5.32.0 - 4/23/2024, 7:31 AM

Changes

Feat
  • core: make observers on Query a public property (#​7326) (e3240f0) by Dominik Dorfmeister
Chore
  • docs: fix prettier (f025a7c) by Dominik Dorfmeister
Docs

Packages

v5.31.0

Compare Source

Version 5.31.0 - 4/22/2024, 6:41 AM

Changes

Feat

Packages


Configuration

📅 Schedule: Branch creation - "before 6:00am on the first day of the month" in timezone 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Update of dependencies label May 1, 2024
@Janpot Janpot merged commit 4a51a91 into master May 1, 2024
12 checks passed
@Janpot Janpot deleted the renovate/examples branch May 1, 2024 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Update of dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant