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

Update all non-major dependencies #65

Merged
merged 1 commit into from Sep 20, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 11, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@grammyjs/ratelimiter 1.1.5 -> 1.1.6 age adoption passing confidence
@prisma/client (source) 4.2.0 -> 4.3.1 age adoption passing confidence
@types/lodash (source) 4.14.182 -> 4.14.185 age adoption passing confidence
@typescript-eslint/eslint-plugin 5.33.0 -> 5.38.0 age adoption passing confidence
@typescript-eslint/parser 5.33.0 -> 5.38.0 age adoption passing confidence
dotenv 16.0.1 -> 16.0.2 age adoption passing confidence
eslint (source) 8.21.0 -> 8.23.1 age adoption passing confidence
eslint-import-resolver-typescript 3.4.0 -> 3.5.1 age adoption passing confidence
fastify (source) 4.4.0 -> 4.6.0 age adoption passing confidence
grammy (source) 1.10.1 -> 1.11.0 age adoption passing confidence
ioredis 5.2.2 -> 5.2.3 age adoption passing confidence
pino (source) 8.4.0 -> 8.6.0 age adoption passing confidence
prisma (source) 4.2.0 -> 4.3.1 age adoption passing confidence
prom-client 14.0.1 -> 14.1.0 age adoption passing confidence
type-fest 2.18.0 -> 2.19.0 age adoption passing confidence
typescript (source) 4.7.4 -> 4.8.3 age adoption passing confidence

Release Notes

grammyjs/rateLimiter

v1.1.6

Compare Source

prisma/prisma

v4.3.1

Compare Source

Today, we are issuing the 4.3.1 patch release.

Fixes in Prisma Client

Fixes in Prisma CLI

v4.3.0

Compare Source

🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟

Major improvements

Field reference support on query filters (Preview)

We're excited to announce Preview support for field references. You can enable it with the fieldReference Preview feature flag.

Field references will allow you to compare columns against other columns. For example, given the following schema:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["fieldReference"]
}

model Invoice {
  id     Int @​id @​default(autoincrement)
  paid   Int
  due    Int
}

You can now compare one column with another after running prisma generate, for example:

// Filter all invoices that haven't been paid yet
await prisma.invoice.findMany({
  where: {
    paid: {
      lt: prisma.invoice.fields.due // paid < due
    }
  }
})

Learn more about field references in our documentation. Try it out and let us know what you think in this GitHub issue.

Count by filtered relation (Preview)

In this release, we're adding support for the ability to count by a filtered relation. You can enable this feature by adding the filteredRelationCount Preview feature flag.

Given the following Prisma schema:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["filteredRelationCount"]
}

model User {
  id    Int     @&#8203;id @&#8203;default(autoincrement())
  email String  @&#8203;unique
  name  String?
  posts Post[]
}

model Post {
  id        Int      @&#8203;id @&#8203;default(autoincrement())
  title     String
  content   String?
  published Boolean  @&#8203;default(false)

  author    User?    @&#8203;relation(fields: [authorId], references: [id])
  authorId  Int?
}

You can now express the following query with the Preview feature after re-generating Prisma Client:

// Count all published user posts 
await prisma.user.findMany({
  select: {
    _count: {
      posts: { where: { published: true } },
    },
  },
})

Learn more in our documentation and let us know what you think in this issue

Multi-schema support (Preview)

In this release, we're adding very early Preview support of multi-schema support for PostgreSQL and SQL Server behind the multiSchema Preview feature flag. With it, you can write a Prisma schema that accesses models across multiple schemas.

Read further in this GitHub issue. Try it out and let us know what you think in this GitHub issue.

Prisma CLI exit code fixes

We've made several improvements to the Prisma CLI:

  • prisma migrate dev previously returned a successful exit code (0) when prisma db seed was triggered but failed due to an error. We've fixed this and prisma migrate dev will now exit with an unsuccessful exit code (1) when seeding fails.

  • prisma migrate status previously returned a successful exit code (0) in unexpected cases. The command will now exit with an unsuccessful exit code (1) if:

    • An error occurs
    • There's a failed or unapplied migration
    • The migration history diverges from the local migration history (/prisma/migrations folder)
    • Prisma Migrate does not manage the database' migration history
  • The previous behavior when canceling a prompt by pressing Ctrl + C was returning a successful exit code (0). It now returns a non-successful, SIGINT, exit code (130).

  • In the rare event of a Rust panic from the Prisma engine, the CLI now asks you to submit an error report and exit the process with a non-successful exit code (1). Prisma previously ended the process with a successful exit code (0).

Improved precision for the tracing Preview feature

Before this release, you may have occasionally seen some traces that took 0μs working with the tracing Preview feature. In this release, we've increased the precision to ensure you get accurate traces.

Let us know if you run into any issues in this GitHub issue.

prisma format now uses a Wasm module

Initially, the prisma format command relied on logic from the Prisma engines in form of a native binary. In an ongoing effort to make prisma more portable and easier to maintain, we decided to shift to a Wasm module.

prisma format now uses the same Wasm module as the one the Prisma language server uses, i.e. @prisma/prisma-fmt-wasm, which is now visible in prisma version command's output.

Let us know what you think. In case you run into any issues, let us know by creating a GitHub issue.

MongoDB query fixes

⚠️ This may affect your query results if you relied on this buggy behavior in your application.

While implementing field reference support, we noticed a few correctness bugs in our MongoDB connector that we fixed along the way:

  1. mode: insensitive alphanumeric comparisons (e.g. “a” > “Z”) didn’t work (GitHub issue)
  2. mode: insensitive didn’t exclude undefined (GitHub issue)
  3. isEmpty: false on lists types (e.g. String[]) returned true when a list is empty (GitHub issue)
  4. hasEvery on list types wasn’t aligned with the SQL implementations (GitHub issue)
JSON filter query fixes

⚠️ This may affect your query results if you relied on this buggy behavior in your application.
We also noticed a few correctness bugs in when filtering JSON values when used in combination with the NOT condition. For example:

await prisma.log.findMany({
  where: {
    NOT: {
      meta: {
        string_contains: "GET"
      }
    }
  }
})
Prisma schema
model Log {
  id      Int  @&#8203;id @&#8203;default(autoincrement())
  level   Level
  message String
  meta    Json
}

enum Level {
  Info
  Warn
  Error
}

If you used NOT with any of the following queries on a Json field, double-check your queries to ensure they're returning the correct data:

  • string_contains
  • string_starts_with
  • string_ends_with
  • array_contains
  • array_starts_with
  • array_ends_with
  • gt/gte/lt/lte
Prisma extension for VS Code improvements

The Prisma language server now provides Symbols in VS Code. This means you can now:

  • See the different blocks (datasource, generator, model, enum, and type) of your Prisma schema in the Outline view. This makes it easier to navigate to a block in 1 click
    A few things to note about the improvement are that:

    • CMD + hover on a field whose type is an enum will show the block in a popup
    • CMD + left click on a field whose type is a model or enum will take you to its definition.
  • Enable Editor sticky scroll from version 1.70 of VS Code. This means you can have sticky blocks in your Prisma schema, improving your experience when working with big schema files

Make sure to update your VS Code application to 1.70, and the Prisma extension to 4.3.0.

We'd also like to give a big Thank you to @​yume-chan for your contribution!

Prisma Studio improvements

We've made several improvements to the filter panel which includes:

  • Refined filter panel

    • Reducing the contrast of the panel in dark mode
    • Ability to toggle filters in the panel
  • Refined error handling for MongoDB m-n relations
    Prisma Studio prevents fatal errors when interacting with m-n relations by explicitly disabling creating, deleting, or editing records for m-n relations

  • Multi-row copying
    You can select multiple rows and copy them to your clipboard as JSON objects using CMD + C on MacOS or Ctrl + C on Windows/ Linux

Prisma Client Extensions: request for comments

For the last couple of months, we've been working on a specification for an upcoming feature — Prisma Client extensions. We're now ready to share our proposed design and we would appreciate your feedback.

Prisma Client Extensions aims to provide a type-safe way to extend your existing Prisma Client instance. With Prisma Client Extensions you can:

  • Define computed fields
  • Define methods for your models
  • Extend your queries
  • Exclude fields from a model
    ... and much more!

Here’s a glimpse at how that will look:

const prisma = new PrismaClient().$extend({
  $result: {
    User: {
      fullName: (user) => {
        return `${user.firstName} ${user.lastName}`
      },
    },
  },
  $model: {
    User: {
      signup: async ({ firstName, lastName, email, password }) => {
        // validate and create the user here
        return prisma.user.create({ 
          data: { firstName, lastName, email, password }
        })
      },
    },
  },
})

const user = await prisma.user.signup({
  firstName: "Alice", 
  lastName: "Lemon", 
  email: "alice@prisma.io", 
  password: "pri$mar0ckz"
})
console.log(user.fullName) // Alice Lemon

For further details, refer to this GitHub issue. Have a read and let us know what you think!

Fixes and improvements

Prisma Client
Prisma
Prisma Migrate
Language tools (e.g. VS Code)

Credits

Huge thanks to @​abenhamdine, @​drzamich, @​AndrewSouthpaw, @​kt3k, @​lodi-g, @​Gnucki, @​apriil15, @​givensuman for helping!

Prisma Data Platform

We're working on the Prisma Data Platform — a collaborative environment for connecting apps to databases. It includes the:

  • Data Browser for navigating, editing, and querying data
  • Data Proxy for your database's persistent, reliable, and scalable connection pooling.
  • Query Console for experimenting with queries

Try it out and let us know what you think!

💼 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 Developer Advocate (Frontend / Fullstack) and Back-end Engineer: Prisma Data Platform.

Feel free to read 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, September 1 at 5 pm Berlin | 8 am San Francisco.

v4.2.1

Compare Source

Today, we are issuing the 4.2.1 patch release.

Fix in Prisma Client

typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)

v5.38.0

Compare Source

Note: Version bump only for package @​typescript-eslint/eslint-plugin

v5.37.0

Compare Source

Bug Fixes
  • eslint-plugin: [strict-boolean-expressions] check all conditions in a logical operator chain (#​5539) (77d76e2)

5.36.2 (2022-09-05)

Bug Fixes
  • eslint-plugin: [no-extra-parens] handle generic ts array type. (#​5550) (0d6a190)
  • scope-manager: correct handling for class static blocks (#​5580) (35bb8dd)

5.36.1 (2022-08-30)

Note: Version bump only for package @​typescript-eslint/eslint-plugin

v5.36.2

Compare Source

Bug Fixes
  • eslint-plugin: [no-extra-parens] handle generic ts array type. (#​5550) (0d6a190)
  • scope-manager: correct handling for class static blocks (#​5580) (35bb8dd)

v5.36.1

Compare Source

Note: Version bump only for package @​typescript-eslint/eslint-plugin

v5.36.0

Compare Source

Bug Fixes
Features

5.35.1 (2022-08-24)

Bug Fixes
  • eslint-plugin: correct rule schemas to pass ajv validation (#​5531) (dbf8b56)

v5.35.1

Compare Source

Bug Fixes
  • eslint-plugin: correct rule schemas to pass ajv validation (#​5531) (dbf8b56)

v5.35.0

Compare Source

Features
  • eslint-plugin: [explicit-member-accessibility] suggest adding explicit accessibility specifiers (#​5492) (0edb94a)

v5.34.0

Compare Source

Bug Fixes
  • eslint-plugin: [no-useless-constructor] handle parameter decorator (#​5450) (864dbcf)
Features
  • eslint-plugin: [prefer-optional-chain] support suggesting !foo || !foo.bar as a valid match for the rule (#​5266) (aca935c)

5.33.1 (2022-08-15)

Bug Fixes
  • missing placeholders in violation messages for no-unnecessary-type-constraint and no-unsafe-argument (and enable eslint-plugin/recommended rules internally) (#​5453) (d023910)

v5.33.1

Compare Source

Bug Fixes
  • missing placeholders in violation messages for no-unnecessary-type-constraint and no-unsafe-argument (and enable eslint-plugin/recommended rules internally) (#​5453) (d023910)
typescript-eslint/typescript-eslint (@​typescript-eslint/parser)

v5.38.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

v5.37.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

5.36.2 (2022-09-05)

Note: Version bump only for package @​typescript-eslint/parser

5.36.1 (2022-08-30)

Note: Version bump only for package @​typescript-eslint/parser

v5.36.2

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

v5.36.1

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

v5.36.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

5.35.1 (2022-08-24)

Note: Version bump only for package @​typescript-eslint/parser

v5.35.1

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

v5.35.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

v5.34.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

5.33.1 (2022-08-15)

Note: Version bump only for package @​typescript-eslint/parser

v5.33.1

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

motdotla/dotenv

v16.0.2

Compare Source

Added
  • Export env-options.js and cli-options.js in package.json for use with downstream dotenv-expand module
eslint/eslint

v8.23.1

Compare Source

Bug Fixes
  • b719893 fix: Upgrade eslintrc to stop redefining plugins (#​16297) (Brandon Mills)
  • 734b54e fix: improve autofix for the prefer-const rule (#​16292) (Nitin Kumar)
  • 6a923ff fix: Ensure that glob patterns are normalized (#​16287) (Nicholas C. Zakas)
  • c6900f8 fix: Ensure globbing doesn't include subdirectories (#​16272) (Nicholas C. Zakas)
Documentation
  • 16cba3f docs: fix mobile double tap issue (#​16293) (Sam Chen)
  • e098b5f docs: keyboard control to search results (#​16222) (Shanmughapriyan S)
  • 1b5b2a7 docs: add Consolas font and prioritize resource loading (#​16225) (Amaresh S M)
  • 1ae8236 docs: copy & use main package version in docs on release (#​16252) (Jugal Thakkar)
  • 279f0af docs: Improve id-denylist documentation (#​16223) (Mert Ciflikli)
Chores

v8.23.0

Compare Source

Features

  • 3e5839e feat: Enable eslint.config.js lookup from CLI (#​16235) (Nicholas C. Zakas)
  • 30b1a2d feat: add allowEmptyCase option to no-fallthrough rule (#​15887) (Amaresh S M)
  • 43f03aa feat: no-warning-comments support comments with decoration (#​16120) (Lachlan Hunt)

Documentation

Chores

v8.22.0

Compare Source

Features

  • 2b97607 feat: Implement caching for FlatESLint (#​16190) (Nicholas C. Zakas)
  • fd5d3d3 feat: add methodsIgnorePattern option to object-shorthand rule (#​16185) (Milos Djermanovic)

Documentation

Chores

  • 10a6e0e chore: remove deploy workflow for playground (#​16186) (Milos Djermanovic)
import-js/eslint-import-resolver-typescript

v3.5.1

Compare Source

Patch Changes

v3.5.0

Compare Source

Minor Changes
Patch Changes

v3.4.2

Compare Source

Patch Changes

v3.4.1

Compare Source

Patch Changes
fastify/fastify

v4.6.0

Compare Source

What's Changed

New Contr


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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, click this checkbox.

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

@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 2a2eb5c to 1289e8a Compare August 12, 2022 14:37
@renovate renovate bot changed the title Update all non-major dependencies to v4.2.1 Update all non-major dependencies Aug 12, 2022
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 11 times, most recently from 56908fe to 5dca53f Compare August 19, 2022 13:03
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 9 times, most recently from e070b8a to 2ec22da Compare August 29, 2022 15:07
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 8 times, most recently from 34b0976 to 7efe835 Compare September 5, 2022 20:38
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 7 times, most recently from 918de81 to 2fa1a62 Compare September 12, 2022 18:40
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from 743074b to 2601351 Compare September 19, 2022 21:23
@deptyped deptyped merged commit b091a11 into main Sep 20, 2022
@renovate renovate bot deleted the renovate/all-minor-patch branch September 20, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant