Skip to content

chore(deps): update all non-major dependencies - #136

Merged
mxseev merged 1 commit into
mainfrom
renovate/all-non-major
Oct 6, 2022
Merged

mxseev merged 1 commit into
mainfrom
renovate/all-non-major

Conversation

@renovate

@renovate renovate Bot commented Sep 26, 2022

Copy link
Copy Markdown
Contributor

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/cli 2.12.0 -> 2.13.4 age adoption passing confidence
@prisma/client (source) 4.3.1 -> 4.4.0 age adoption passing confidence
@types/jest (source) 29.0.3 -> 29.1.1 age adoption passing confidence
@types/lodash (source) 4.14.185 -> 4.14.186 age adoption passing confidence
@typescript-eslint/eslint-plugin 5.38.0 -> 5.39.0 age adoption passing confidence
@typescript-eslint/parser 5.38.0 -> 5.39.0 age adoption passing confidence
@vercel/node (source) 2.5.15 -> 2.5.22 age adoption passing confidence
dotenv 16.0.2 -> 16.0.3 age adoption passing confidence
eslint (source) 8.23.1 -> 8.24.0 age adoption passing confidence
eslint-plugin-jest 27.0.4 -> 27.1.1 age adoption passing confidence
jest (source) 29.0.3 -> 29.1.2 age adoption passing confidence
prisma (source) 4.3.1 -> 4.4.0 age adoption passing confidence
spectaql 1.5.3 -> 1.5.4 age adoption passing confidence
ts-jest (source) 29.0.1 -> 29.0.3 age adoption passing confidence
typescript (source) 4.8.3 -> 4.8.4 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

dotansimha/graphql-code-generator

v2.13.4

Compare Source

Patch Changes

v2.13.3

Compare Source

Patch Changes

v2.13.2

Compare Source

Patch Changes

v2.13.1

Compare Source

Patch Changes

v2.13.0

Compare Source

Minor Changes
Patch Changes

v2.12.2

Compare Source

Patch Changes

v2.12.1

Compare Source

Patch Changes
prisma/prisma

v4.4.0

Compare Source

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

Major improvements

General improvements

In the last sprint, we focused our efforts on squashing as many bugs as we could. You can find the full list of improvements and bug fixes in the Fixes and improvements section below.

Some of the improvements we made include but are not limited to:

  • Improved optimistic concurrency control (GitHub issue)
  • Improved decimal precision
  • Improved handling of big amounts of prepared statement placeholders:
    Databases impose limits when they hit a specific number, and when a query (either generated by Prisma Client or provided by the user directly as a raw query) hits it some users ran into a misleading Can't reach database server error message (GitHub issue). The error message will now be more useful (P2035 error code), and Prisma Client should not cause these errors anymore.

If you notice any regression, please make sure to create a GitHub issue. We touched a lot of code in this sprint, and even though we are confident in our tests, something might have slipped through the cracks. We'd like to fix the regressions as soon as possible.

isolationLevel for sequential transaction operations

In version 4.2.0, we added support for setting transaction isolation levels for interactive transactions (Preview). You can now define isolation levels for sequential transaction operations: prisma.$transaction([]).

Isolation levels describe different types of trade-offs between isolation and performance that databases can make when processing transactions. Isolation levels determine what types of data leaking can occur between transactions or what data anomalies can occur.
To set the transaction isolation level, use the isolationLevel option in the second parameter of the API. For example:

await prisma.$transaction(
  [
    // sequential operations
    prisma.user.create({ data: {/** args */ } }),
    prisma.post.create({ data: {/** args  */ } })
  ],
  {
    isolationLevel: Prisma.TransactionIsolationLevel.Serializable
  }
)

Prisma Client supports the following isolation levels if they're available in your database provider:

  • ReadCommitted
  • ReadUncommitted
  • RepeatableRead
  • Serializable
  • Snapshot

Learn more about it in our documentation.

New P2034 error code for transaction conflicts or deadlocks

When using certain isolation levels, it is expected that a transaction can fail due to a write conflict or a deadlock, throwing an error. One way to solve these cases is by retrying the transaction.

To make this easier, we're introducing a new PrismaClientKnownRequestError with the error code P2034: "Transaction failed due to a write conflict or a deadlock. Please retry your transaction". You can programmatically catch the error and retry the transaction. Here's an example showing how you can retry a transaction:

import { Prisma, PrismaClient } from '@​prisma/client'

const prisma = new PrismaClient()
async function main() {
  const MAX_RETRIES = 5
  let retries = 0;

  let result;
  while (retries < MAX_RETRIES) {
    try {
      result = await prisma.$transaction(
        [
          prisma.user.deleteMany({ where: { /**  args */ } }),
          prisma.post.createMany({ data: { /**  args */ } })
        ],
        {
          isolationLevel: Prisma.TransactionIsolationLevel.Serializable
        }
      )
    } catch (error) {
      if (error.code === 'P2034') {
        retries++
        continue
      }
      throw error
    }
  }
}

Fixes and improvements

Prisma Client
Prisma
Prisma Migrate
Prisma Studio

Credits

Huge thanks to @​abenhamdine, @​miguelgargallo, @​Clansty, @​panoplied, @​MEnnabah, @​drzamich, @​AndrewSouthpaw, @​kt3k 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 Developer Advocate (Frontend / Fullstack) and Back-end Engineer: Prisma Data Platform.

Feel free to read the job descriptions and apply using the links provided.

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!

📺 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 29 at 5 pm Berlin | 8 am San Francisco.

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

v5.39.0

Compare Source

Features
  • eslint-plugin: allow using void as a default type for a generic argument if allowInGenericTypeArguments is specified (#​5671) (bb46ef0)

5.38.1 (2022-09-26)

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

v5.38.1

Compare Source

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

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

v5.39.0

Compare Source

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

5.38.1 (2022-09-26)

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

v5.38.1

Compare Source

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

vercel/vercel

v2.5.22

Compare Source

v2.5.21

Compare Source

v2.5.20

Compare Source

v2.5.19

Compare Source

v2.5.18

Compare Source

v2.5.17

Compare Source

v2.5.16

Compare Source

motdotla/dotenv

v16.0.3

Compare Source

Changed
  • Added library version to debug logs (#​682)
eslint/eslint

v8.24.0

Compare Source

Features

  • 1729f9e feat: account for sourceType: "commonjs" in the strict rule (#​16308) (Milos Djermanovic)
  • b0d72c9 feat: add rule logical-assignment-operators (#​16102) (fnx)
  • f02bcd9 feat: array-callback-return support findLast and findLastIndex (#​16314) (Sosuke Suzuki)

Documentation

Chores

jest-community/eslint-plugin-jest

v27.1.1

Compare Source

Bug Fixes

v27.1.0

Compare Source

Features

27.0.4 (2022-09-10)

Bug Fixes

27.0.3 (2022-09-09)

Bug Fixes

27.0.2 (2022-09-08)

Bug Fixes
  • no-restricted-matchers: improve check to not be solely based on the start of the matcher chain (#​1236) (5fe4568), closes #​1235

27.0.1 (2022-08-28)

Bug Fixes
  • prefer-expect-assertions: report on concise arrow functions with expect call (#​1225) (64ec9c1)
facebook/jest

v29.1.2

Compare Source

Fixes
  • [expect, @&#8203;jest/expect] Revert buggy inference of argument types for *CalledWith and *ReturnedWith matchers introduced in 29.1.0 (#​13339)
  • [jest-worker] Add missing dependency on jest-util (#​13341)

v29.1.1

Compare Source

Fixes
  • [jest-mock] Revert #​13145 which broke mocking of transpiled ES modules

v29.1.0

Compare Source

Features
  • [expect, @&#8203;jest/expect] Support type inference for function parameters in CalledWith assertions (#​13268)
  • [expect, @&#8203;jest/expect] Infer type of *ReturnedWith matchers argument (#​13278)
  • [@jest/environment, jest-runtime] Allow jest.requireActual and jest.requireMock to take a type argument (#​13253)
  • [@jest/environment] Allow jest.mock and jest.doMock to take a type argument (#​13254)
  • [@jest/fake-timers] Add jest.now() to return the current fake clock time (#​13244, #​13246)
  • [@jest/mock] Add withImplementation method for temporarily overriding a mock (#​13281)
  • [expect] Export toThrow* matchers (#​13328)
Fixes
  • [jest-circus, jest-jasmine2] Fix error messages for Node's assert.throes (#​13322)
  • [jest-haste-map] Remove __proto__ usage (#​13256)
  • [jest-mock] Improve spyOn typings to handle optional properties (#​13247)
  • [jest-mock] Fix mocking of getters and setters on classes (#​13145)
  • [jest-snapshot] Throw useful error when an array is passed as property matchers (#​13263)
  • [jest-snapshot] Prioritize parser used in the project (#​13323)
  • [jest-transform] Attempt to work around issues with atomic writes on Windows (#​11423)
anvilco/spectaql

v1.5.4

kulshekhar/ts-jest

v29.0.3

Compare Source

Bug Fixes
Features
  • add useESM option to pathsToModuleNameMapper options (#​3792) (eabe906)

v29.0.2

Compare Source

Bug Fixes
Microsoft/TypeScript

v4.8.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (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, click this checkbox.

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

@renovate
renovate Bot requested a review from mxseev as a code owner September 26, 2022 02:46
@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Sep 26, 2022
@vercel

vercel Bot commented Sep 26, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
base-api ✅ Ready (Inspect) Visit Preview Oct 6, 2022 at 8:47AM (UTC)

@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 8826174 to 9f98903 Compare September 26, 2022 19:42
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 9f98903 to d24b3b2 Compare September 27, 2022 17:03
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from d24b3b2 to 75e1169 Compare September 27, 2022 19:56
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 75e1169 to 5b31b7d Compare September 27, 2022 23:51
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 5b31b7d to 424bb17 Compare September 28, 2022 08:27
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 424bb17 to 53f0e8f Compare September 28, 2022 12:22
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 53f0e8f to 59d1b0a Compare September 28, 2022 16:56
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 59d1b0a to b57a451 Compare September 28, 2022 20:20
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from b57a451 to 88ffc9a Compare September 29, 2022 05:11
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 88ffc9a to 922c2a0 Compare September 29, 2022 07:01
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 922c2a0 to e5f47c6 Compare September 29, 2022 19:42
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from e5f47c6 to 08f9f1e Compare September 30, 2022 06:44
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 08f9f1e to f83c1d3 Compare September 30, 2022 09:59
@renovate
renovate Bot force-pushed the renovate/all-non-major branch from 143e7c2 to bdc89b2 Compare October 6, 2022 08:46
@mxseev
mxseev merged commit 28b7762 into main Oct 6, 2022
@mxseev
mxseev deleted the renovate/all-non-major branch October 6, 2022 08:50
@mxseev mxseev mentioned this pull request Nov 6, 2022
mxseev added a commit that referenced this pull request Nov 6, 2022
…son-2.x

chore(deps): update dependency sort-package-json to v2

This branch was successfully deployed

1 active deployment
Preview bdc89b26 Deployed Oct 6, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant