Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

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

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 1, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@hookform/resolvers (source) ^3.3.1 -> ^3.3.2 age adoption passing confidence
@next/font 13.5.2 -> 13.5.4 age adoption passing confidence
@prisma/client (source) ^5.3.1 -> ^5.4.2 age adoption passing confidence
@radix-ui/react-alert-dialog (source) ^1.0.4 -> ^1.0.5 age adoption passing confidence
@radix-ui/react-avatar (source) ^1.0.3 -> ^1.0.4 age adoption passing confidence
@radix-ui/react-dialog (source) ^1.0.4 -> ^1.0.5 age adoption passing confidence
@radix-ui/react-dropdown-menu (source) ^2.0.5 -> ^2.0.6 age adoption passing confidence
@radix-ui/react-scroll-area (source) ^1.0.4 -> ^1.0.5 age adoption passing confidence
@radix-ui/react-toast (source) ^1.1.4 -> ^1.1.5 age adoption passing confidence
@radix-ui/react-tooltip (source) ^1.0.6 -> ^1.0.7 age adoption passing confidence
@tanstack/react-query (source) ^4.35.3 -> ^4.36.1 age adoption passing confidence
@tanstack/react-table 8.10.1 -> 8.10.6 age adoption passing confidence
@trpc/client (source) ^10.38.3 -> ^10.40.0 age adoption passing confidence
@trpc/next (source) ^10.38.3 -> ^10.40.0 age adoption passing confidence
@trpc/react-query (source) ^10.38.3 -> ^10.40.0 age adoption passing confidence
@trpc/server (source) ^10.38.2 -> ^10.40.0 age adoption passing confidence
axios (source) ^1.5.0 -> ^1.5.1 age adoption passing confidence
cron ^3.0.0 -> ^3.1.0 age adoption passing confidence
express-rate-limit ^7.0.2 -> ^7.1.1 age adoption passing confidence
lucide-react (source) ^0.279.0 -> ^0.286.0 age adoption passing confidence
next (source) ^13.5.2 -> ^13.5.4 age adoption passing confidence
prisma (source) ^5.3.1 -> ^5.4.2 age adoption passing confidence
react-hook-form (source) ^7.46.2 -> ^7.47.0 age adoption passing confidence
superjson ^1.13.1 -> ^1.13.3 age adoption passing confidence
swr (source) ^2.2.2 -> ^2.2.4 age adoption passing confidence
winston ^3.10.0 -> ^3.11.0 age adoption passing confidence
zod (source) ^3.22.2 -> ^3.22.4 age adoption passing confidence

Release Notes

react-hook-form/resolvers (@​hookform/resolvers)

v3.3.2

Compare Source

Bug Fixes
vercel/next.js (@​next/font)

v13.5.4

Compare Source

Core Changes
  • chore: NextJS -> Next.js: #​55961
  • fix-failed-to-generate-self-signed-certificate issue:#​55891: #​55947
  • Remove .test.js from dist: #​55946
  • Turbopack next/font/google: don't insert css rules for multiple weights or styles: #​55852
  • Fix stale revalidate stream handling: #​55978
  • turbopack: improve turbopack/test stability: #​56024
  • Mark testmode fetches internal: #​56036
  • chore: Remove 'beta.' Subdomain from beta.nextjs.org Links: #​55924
  • Remove experimental.sharedPool: #​56021
  • fix(worker): pass env to build worker w/ config.experimental.workerThreads: #​55257
  • Update swc_core to v0.83.26: #​55780
  • Revert "Update swc_core to v0.83.26": #​56077
  • fix reporting of illegal segments when directory only contains irrelevant files: #​56076
  • Make permanentRedirect return 308 in route handlers: #​56065
  • Remove unneeded next-dev js in next-core: #​56039
  • Fix: Use boolean instead of false for experimental logging config: #​56110
  • chore: remove chalk in favor of picocolors: #​55992
  • Revert: "Generate prefetch RSC payload during build for SSR paths (#​54403)": #​56059
  • fetching logging on edge: #​56108
  • Optimize build trace handling: #​56048
  • Update font data: #​56121
  • feat(turbopack): port bloom filter to nexturbo: #​55678
  • Fixes performance problems due to TaskScopes: #​55721
  • perf: remove react dom legacy from app router: #​56082
  • perf: replace zod with superstruct: #​56083
  • perf: externalise ws for bundled server: #​56095
  • misc: refactor node utils: #​56096
  • Add support for skipTrailingSlashRedirect and skipMiddlewareUrlNormalize in Turbopack: #​56147
  • Add experimental.scrollRestoration for Turbopack: #​56150
  • misc: refactor handleExternals: #​56161
  • perf: add option to bundle pages externals: #​56162
  • Allow jest to run with use server directive: #​56148
  • Update experimental compile cache handling: #​56139
  • App render related code clean up: #​56178
  • Add support for i18n config in Turbopack: #​56182
  • Implement list of config options for Turbopack: #​56188
  • Turbopack: add support for an assetPrefix and basePath: #​56058
  • update turbopack: #​56197
  • Update supported options list to reflect #​56188: #​56200
  • Add support for experimental.logging.level in Turbopack: #​56201
  • Add next.config.js options to turbopack warning file: #​56207
  • fix: @​libsql/client build error: #​56192
  • chore: bump postcss: #​56225
  • Add additional handling for experimental-compile: #​56224
  • Drop ipc server headers filters: #​56226
  • only override NODE_EXTRA_CA_CERTS when using experimental https flag: #​56252
  • Pass same mangling option as terser to SWC minifier: #​56281
  • update turbopack: #​56285
  • clear require cache only when needed: #​56198
  • misc: enable source maps for bundled runtime: #​56289
  • misc: shortcut styled-jsx in external resolution: #​56291
  • Support serverRuntimeConfig and publicRuntimeConfig in Turbopack: #​56310
  • Reland static prefetches & fix prefetch bailout behavior: #​56228
  • fix(#​53190): add missing crossOrigin to assetsPrefix resources: #​56311
  • misc: fix instrumentation with bundled server: #​56318
  • fix(next/client): keep hash when navigating from app to pages router: #​56223
  • fix: support both decoded and encoded url requests of conventioned files : #​56187
  • fix: Invalid URL (404) provided on server actions error: #​56323
  • Revert "misc: shortcut styled-jsx in external resolution (#​56291)": #​56334
  • Fix build output logging order: #​56335
Documentation Changes
  • docs: add not-found to file conventions page: #​55944
  • Update 03-linking-and-navigating.mdx: #​55907
  • docs: Correct place for passing extension option to createMDX(): #​55967
  • docs-55629 update router cache column in cache interactions api table: #​55630
  • Update 03-linking-and-navigating.mdx: #​55969
  • Updates "Prerender Error" page for App Router: #​56044
  • Add the default import alias to create-next-app prompt for clarity: #​55896
  • Update revalidatePath.mdx to fix confusing wording of arguments section.: #​56099
  • docs: Renamed function that is used by other name: #​56170
  • (docs) Document Server Actions .bind method: #​56164
  • docs: Use Response.json over NextResponse.json: #​56173
  • correcting link to useSearchParams ref: #​56169
  • docs(sharp-missing-in-production.mdx): update standalone command: #​56191
  • docs(sharp-missing-in-production.mdx): update standalone command: #​56239
  • Update image.mdx: #​56269
  • Update image.mdx: #​56266
Example Changes
  • chore(examples): bump dependency versions: #​55899
  • Update to with-supertokens example app: #​56035
  • Update dependencies in examples : #​55993
  • Chore/update with supabase demo deploy button: #​52483
  • chore(examples): remove deprecated dependency from with-jest: #​56152
  • chore(examples): fix with-jest types: #​56193
  • (Examples) update Grafbase example: #​54705
  • fix: typo in with-stripe-typescript example: #​56274
Misc Changes
Credits

Huge thanks to @​balazsorban44, @​sdkdeepa, @​aayman997, @​mayank1513, @​timneutkens, @​2XG-DEV, @​eliot-akira, @​hi-matthew, @​riobits, @​wbinnssmith, @​ijjk, @​sokra, @​dvoytenko, @​rishabhpoddar, @​manovotny, @​A7med3bdulBaset, @​huozhi, @​jridgewell, @​joulev, @​SukkaW, @​kdy1, @​feedthejim, @​Fredkiss3, @​styfle, @​MildTomato, @​ForsakenHarmony, @​walfly, @​bzhn, @​shuding, @​boylett, @​Loki899899, @​devrsi0n, @​ImBIOS, @​vinaykulk621, @​ztanner, @​sdaigo, @​hamirmahal, @​blurrah, @​omarmciver, and @​alexBaizeau for helping!

v13.5.3

Compare Source

Core Changes
  • only put css in entry_css_files: #​55585
  • update taskfile to generate types during build: #​55628
  • refactor: use fs.existsSync instead of accessSync: #​55675
  • Capitalize compiling log: #​55685
  • Split prerending by route kind: #​55622
  • turbopack: Update the next/dist/esm rewrite ResolvePlugin: #​55689
  • refactor: modernize get-online with dns/promises: #​55674
  • ensure fetchServerResponse is a valid record when stored in router cache: #​55690
  • fix(react-refresh-utils): avoid memory leaks caused by prevExports: #​53797
  • fix(ts): allow auto-import of next/navigation: #​55743
  • remove --watch from generate_types task: #​55748
  • Remove the left padding in next info output: #​55704
  • test(turbopack): remove escape hatches for custom turbopack bindings: #​55757
  • fix: Invoke cancel, only if the stream is not closed: #​55684
  • Revert "fix: Invoke cancel, only if the stream is not closed (#​55684)": #​55764
  • fix thenable types & update another incorrect cache record: #​55758
  • turbopack: Rewrite ESM modules to CJS during client transition: #​55693
  • Fix output log extra new line: #​55770
  • Remove unused internal env var: #​55762
  • fix Image when used with --experimental-https: #​55775
  • chore: update turbopack to turbopack-230922.2: #​55828
  • Move DefineEnv to separate file: #​55811
  • Remove legacy checks for unstable_getXProps: #​55813
  • Remove next-typescript check in webpack config: #​55819
  • Correctly mark turbo sessions in telemetry: #​55835
  • feat(turbopack): construct output path with distDir next.js config: #​55613
  • Remove extra type: #​55837
  • Update rust toolchain to nightly-2023-09-21: #​55774
  • Remove unused internal env var: #​55762
  • fix Image when used with --experimental-https: #​55775
  • chore: update turbopack to turbopack-230922.2: #​55828
  • Move DefineEnv to separate file: #​55811
  • Remove legacy checks for unstable_getXProps: #​55813
  • Remove next-typescript check in webpack config: #​55819
  • Correctly mark turbo sessions in telemetry: #​55835
  • feat(turbopack): construct output path with distDir next.js config: #​55613
  • Remove extra type: #​55837
  • Update rust toolchain to nightly-2023-09-21: #​55774
  • Ensure next-swc-loader types are used: #​55846
  • Use swc for runtime bundling: #​55842
  • fix bugs pertaining to server actions + navigation: #​55853
  • Ensure opentelemetry mismatched version error bubbles: #​55868
  • test: re-enabled the disabled manifest test: #​55810
  • Remove unnecessary Object.assign: #​55882
  • Move experimental.runtime warning to config loading: #​55880
  • Add experimental.strictNextHead to Turbopack: #​55915
  • Loose types of app routes return value: #​55849
  • Add trailingSlash, basePath, and assetPrefix to Turbopack: #​55921
  • app router: ensure static prefetch renders loading.js: #​55950
Documentation Changes
  • add tip for case sensitivity of imports: #​55662
  • Docs - Fix VSCode Full Stack Debugging Regex Pattern: #​55670
  • Feedback: Remove line saying server actions is dynamic-only: #​55746
  • Update 01-pages-and-layouts.mdx: #​55795
  • fix typo in API Reference - Image Component: #​55776
  • Update 01-pages-and-layouts.mdx: #​55795
  • fix typo in API Reference - Image Component: #​55776
  • docs: useFormState: #​55564
  • Update 10-testing.mdx: #​55801
  • Revert "fix typo in API Reference - Image Component": #​55889
  • Fix missing async keyword in function declaration: #​55887
  • docs: Add note that Server Actions work with static routes: #​55626
  • docs: Add example on query parameters in route handlers: #​55789
Example Changes
Misc Changes
  • Upgrade to latest NAPI-RS infra: #​55505
  • ci(tests): enable turbopack /e2e tests: #​55681
  • chore: bump nissuer: #​55723
  • improve CI log: #​55736
  • fix(cna): separate dependencies/devDependencies: #​55730
  • misc: improve profiling script: #​55732
  • test(fixture): prevent start failure teardowns whole process: #​55760
  • Update fnm setup for CI: #​55765
  • test(turbopack): explicitly clean up instance for turbopack: #​55772
  • Update flakey next-image tests: #​55838
  • Update flakey next-image tests: #​55838
  • Allow filtering individual test cases inside test files: #​55786
  • Move client-navigation test to test/development: #​55888
  • Ensure Turbopack passing test list is sorted: #​55948
Credits

Huge thanks to @​sokra, @​ztanner, @​anonrig, @​huozhi, @​mayank1513, @​travisanderson, @​wyattjoh, @​jridgewell, @​ryanagillie, @​Brooooooklyn, @​kwonoj, @​balazsorban44, @​naruaway, @​S3Prototype, @​feedthejim, @​joulev, @​icyJoseph, @​ijjk, @​ForsakenHarmony, @​timneutkens, @​wbinnssmith, @​sdkdeepa, @​sdaigo, @​leerob, @​dominiksipowicz, @​joao-vasconcelos, and @​mostafaegouda for helping!

prisma/prisma (@​prisma/client)

v5.4.2

Compare Source

Today, we are issuing the 5.4.2 patch release.

Fix in Prisma Client

v5.4.1

Compare Source

Today, we are issuing the 5.4.1 patch release.

Fix in Prisma Client
Fix in @prisma/adapter-planetscale

v5.4.0

Compare Source

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

Highlights

Preview support for PlanetScale and Neon serverless database drivers

We’re excited to announce Preview support for the Neon and PlanetScale serverless database drivers. The PlanetScale and Neon serverless database drivers allow Prisma to connect to your database using protocols besides TCP — HTTP (PlanetScale) or WebSockets (Neon).

To get started with the serverless database drivers, first enable the driverAdapters Preview feature flag in your Prisma schema:

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

Next, to set up Prisma Client to use the serverless database drivers:

PlanetScale

Install the Prisma adapter for PlanetScale and PlanetScale serverless database driver, and undici:

npm install @​prisma/adapter-planetscale @​planetscale/database undici

Prisma ORM supports Node 16 and up. In Node 18 and up, undici is not needed.

Ensure you update the host value in your connection string to aws.connect.psdb.cloud. You can learn more about this here.

DATABASE_URL='mysql://johndoe:strongpassword@aws.connect.psdb.cloud/clear_nightsky?sslaccept=strict'

Update your Prisma Client instance to use the PlanetScale database driver:

// Import required dependencies
import { connect } from '@​planetscale/database';
import { PrismaPlanetScale } from '@​prisma/adapter-planetscale';
import { PrismaClient } from '@​prisma/client';
import { fetch as undiciFetch } from 'undici';

// Initialize Prisma Client with the PlanetScale serverless database driver
const connection = connect({ url: connectionString, fetch: undiciFetch });
const adapter = new PrismaPlanetScale(connection);
const prisma = new PrismaClient({ adapter });
Neon

Install the Prisma adapter for Neon, Neon serverless database driver and undici (WebSockets):

npm install @​prisma/adapter-neon @​neondatabase/serverless undici

Update your Prisma Client instance to use the Neon serverless database driver:

// Import required dependencies
import { Pool, neonConfig } from '@​neondatabase/serverless';
import { PrismaNeon } from '@​prisma/adapter-neon';
import { PrismaClient } from '@​prisma/client';
import { WebSocket } from 'undici'

neonConfig.webSocketConstructor = WebSocket;

// Initialize Prisma Client with the Neon serverless database driver
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
const adapter = new PrismaNeon(pool);
const prisma = new PrismaClient({ adapter });

Let us know your feedback about the Neon or Planetscale serverless database drivers in the linked GitHub discussions. Create a bug report if you run into any issues.

Early Access support for Turso

Turso is an edge-hosted, distributed database that's based on libSQL, an open-source and open-contribution fork of SQLite, enabling you to bring data closer to your application and minimize query latency.

Since support for Turso is in Early Access, there may be some rough edges which we’re still working on it to improve the API and overall support. Additionally, it is behind the driverAdapters Preview feature flag. Enable it to get started using Turso in your project:

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

Next, install the Prisma Client adapter for Turso and the libSQL database client

npm install @​prisma/adapter-libsql @​libsql/client

Update your Prisma Client instance:

// Import required dependencies
import { PrismaClient } from '@​prisma/client'
import { PrismaLibSQL } from '@​prisma/adapter-libsql'
import { createClient } from '@​libsql/client'

// Create a new instance of the libSQL database client
const libsql = createClient({
  // @​ts-expect-error
  url: process.env.TURSO_DATABASE_URL,
  authToken: process.env.TURSO_AUTH_TOKEN 
})

// Create a Prisma "adapter" for libSQL
const adapter = new PrismaLibSQL(libsql)
// Pass the adapter option to the Prisma Client instance
const prisma = new PrismaClient({ adapter })

You can learn more on how to use Prisma together with Turso in the announcement blog post.

Try it out! Let us know what you think and create a bug report if you run into any issues.

Query performance improvements

In our continued efforts to make Prisma Client faster, we identified and improved the performance of different types of queries.

Relation filters improvements

We made the following improvements to relation filters:

  • Removed an unnecessary INNER JOIN used in relation filter queries (Big thank you to @​KhooHaoYit for helping out)
  • Use of LEFT JOIN's for to-one relations. Previously, Prisma made use of sub-queries to fetch data.

Example Prisma Client query

prisma.comment.findMany({
  where: {
    post: {
      author: {
        name: "John"
      }
    }
  }
})

Before 5.4.0

SELECT
  "Comment"."id"
FROM
  "Comment"
WHERE
  ("Comment"."id") IN (
    SELECT
      "t0"."id"
    FROM
      "Comment" AS "t0"
      INNER JOIN "Post" AS "j0" ON ("j0"."id") = ("t0"."postId")
    WHERE
      (
        ("j0"."id") IN (
          SELECT
            "t1"."id"
          FROM
            "Post" AS "t1"
            INNER JOIN "User" AS "j1" ON ("j1"."id") = ("t1"."userId")
          WHERE
            (
              "j1"."name" = $ 1
              AND "t1"."id" IS NOT NULL
            )
        )
        AND "t0"."id" IS NOT NULL
      )
  );

After 5.4.0

SELECT
  "Comment"."id"
FROM
  "Comment"
  LEFT JOIN "Post" AS "j1" ON ("j1"."id") = ("Comment"."postId")
  LEFT JOIN "User" AS "j2" ON ("j2"."id") = ("j1"."userId")
WHERE
  (
    "j2"."name" = $ 1
    AND ("j2"."id" IS NOT NULL)
    AND ("j1"."id" IS NOT NULL)
  );

If you’re interested in more details on the relation query filter improvements, you can take a look at this pull request.

Enum improvements on PostgreSQL and CockroachDB

Previously, when an enum value was used in a query, our Postgres driver would make additional queries to resolve the enum types that were used.

In this release, we’re making improvements by casting enums to TEXT to avoid the additional roundtrips when resolving the types.

This change should have the most impact if you’re using pgBouncer or if you’re running Prisma in a serverless environment, where our Postgres driver can’t cache enum types information.

Prisma schema

model User {
  id   Int  @​id @​default(cuid())
  role Role
}

enum Role {
  User
  Admin
}

Prisma Client query

await prisma.user.findMany({ 
  where: {
    role: "Admin"
  }
})

Before 5.4.0

-- Internal driver query
SELECT t.typname, t.typtype, t.typelem, r.rngsubtype, t.typbasetype, n.nspname, t.typrelid FROM pg_catalog.pg_type t LEFT OUTER JOIN pg_catalog.pg_range r ON r.rngtypid = t.oid INNER JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1;

-- Internal driver query
SELECT enumlabel FROM pg_catalog.pg_enum WHERE enumtypid = $1 ORDER BY enumsortorder;

-- Prisma Client query
SELECT id, role FROM "User" WHERE role = $1;

After 5.4.0

-- Prisma Client query
SELECT id, role::text FROM "User" WHERE role = CAST($1::text AS "Role);
Bulk delete improvements

We optimized the deleteMany operation by:

  • Removing all SELECT queries used to fetch data that would be used as input for the DELETE operation. In some cases, this also improves index usage.
  • Removing the transaction previously used as it’s now a single atomic operation.

Prisma Client query

await prisma.post.deleteMany({
  where: {
    id: {
      gt: 1,
      lt: 10,
    }
  }
})

Before 5.4.0

``


Configuration

📅 Schedule: Branch creation - "before 12pm on Sunday" (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.

@ijsblokjeee ijsblokjeee bot added Dependencies 🚀 PRs and Issues related to dependencies Chore 🧹 labels Oct 1, 2023
@renovate renovate bot force-pushed the renovate/all-non-major branch 14 times, most recently from 64a9aa3 to 20b8b40 Compare October 8, 2023 02:02
@renovate renovate bot force-pushed the renovate/all-non-major branch 6 times, most recently from d65bc67 to 8bbbc0d Compare October 12, 2023 07:02
@renovate renovate bot force-pushed the renovate/all-non-major branch from 8bbbc0d to b87ead2 Compare October 12, 2023 10:17
@kodiakhq kodiakhq bot merged commit f6260b5 into main Oct 12, 2023
6 checks passed
@kodiakhq kodiakhq bot deleted the renovate/all-non-major branch October 12, 2023 10:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Chore 🧹 Dependencies 🚀 PRs and Issues related to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant