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

fix(deps): update all non-major dependencies #150

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 10, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@prisma/client (source) ^5.6.0 -> ^5.7.0 age adoption passing confidence
@sapphire/async-queue (source) ^1.5.0 -> ^1.5.1 age adoption passing confidence
@sapphire/duration (source) ^1.1.0 -> ^1.1.1 age adoption passing confidence
@sapphire/eslint-config (source) ^5.0.2 -> ^5.0.3 age adoption passing confidence
@sapphire/result (source) ^2.6.4 -> ^2.6.5 age adoption passing confidence
@sapphire/utilities (source) ^3.13.0 -> ^3.14.0 age adoption passing confidence
@types/luxon (source) ^3.3.6 -> ^3.3.7 age adoption passing confidence
@types/node (source) ^20.10.2 -> ^20.10.4 age adoption passing confidence
@typescript-eslint/eslint-plugin (source) ^6.13.1 -> ^6.13.2 age adoption passing confidence
@typescript-eslint/parser (source) ^6.13.1 -> ^6.13.2 age adoption passing confidence
@vladfrangu/async_event_emitter ^2.2.3 -> ^2.2.4 age adoption passing confidence
lint-staged ^15.1.0 -> ^15.2.0 age adoption passing confidence
prisma (source) ^5.6.0 -> ^5.7.0 age adoption passing confidence
typescript (source) ^5.3.2 -> ^5.3.3 age adoption passing confidence

Release Notes

prisma/prisma (@​prisma/client)

v5.7.0

Compare Source

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

Highlights

✨ In this release, we improved the SQL queries Prisma Client generates for you with two new Preview features, the driver adapters, and support for the database drivers we currently support. 5.7.0 will be the last release of the year. Stay tuned for the next one in January! ✨

Preview support for JOINs for relation queries for PostgreSQL and CockroachDB

We’re excited to announce Preview support for JOINs in Prisma Client when querying relations. Support for JOINs has been a long-standing feature request, and this release adds support for PostgreSQL and CockroachDB. The upcoming releases will expand support for other databases Prisma supports.

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

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

Run prisma generate to regenerate Prisma Client and enable the Preview feature.

Prisma Client will use a JOIN in your query to fetch relation data for a majority of the cases.

Example queries

1-1 relation queries example

Prisma Client query

await prisma.user.findUnique({
	where: {
		id: 1
	},
	include: {
		profile: true
	}
})

SQL

SELECT
	"t1"."id",
	"t1"."name",
	"User_profile"."__prisma_data__" AS "profile"
FROM
	"public"."User" AS "t1"
	LEFT JOIN LATERAL (
		SELECT
			COALESCE(JSON_AGG("__prisma_data__"), '[]') AS "__prisma_data__"
		FROM
			(
				SELECT
					"t4"."__prisma_data__"
				FROM
					(
						SELECT
							JSON_BUILD_OBJECT(
								'id',
								"t3"."id",
								'bio',
								"t3"."bio",
								'userId',
								"t3"."userId"
							) AS "__prisma_data__"
						FROM
							(
								SELECT
									"t2".*
								FROM
									"public"."Profile" AS "t2"
								WHERE
									"t1"."id" = "t2"."userId"
							) AS "t3"
					) AS "t4"
			) AS "t5"
	) AS "User_profile" ON TRUE
WHERE "t1"."id" = $1
LIMIT $2
1-m relation queries example

Prisma Client query

await prisma.user.findUnique({
	where: {
		id: 1
	},
	include: {
		posts: true
	}
})

SQL

SELECT
	"t1"."id",
	"t1"."name",
	"User_posts"."__prisma_data__" AS "posts"
FROM
	"public"."User" AS "t1"
	LEFT JOIN LATERAL (
		SELECT
			COALESCE(JSON_AGG("__prisma_data__"), '[]') AS "__prisma_data__"
		FROM
			(
				SELECT
					"t4"."__prisma_data__"
				FROM
					(
						SELECT
							JSON_BUILD_OBJECT(
								'id',
								"t3"."id",
								'title',
								"t3"."title",
								'content',
								"t3"."content",
								'published',
								"t3"."published",
								'authorId',
								"t3"."authorId"
							) AS "__prisma_data__"
						FROM
							(
								SELECT
									"t2".*
								FROM
									"public"."Post" AS "t2"
								WHERE
									"t1"."id" = "t2"."authorId"
									/* root select */
							) AS "t3"
							/* inner select */
					) AS "t4"
					/* middle select */
			) AS "t5"
			/* outer select */
	) AS "User_posts" ON TRUE
WHERE "t1"."id" = $1
LIMIT $2
m-n relation queries example

Prisma Client query

await prisma.post.findUnique({
	where: {
		id: 1
	},
	include: {
		tags: true
	}
})

SQL

SELECT
	"t1"."id",
	"t1"."title",
	"t1"."content",
	"t1"."published",
	"t1"."authorId",
	"Post_tags_m2m"."__prisma_data__" AS "tags"
FROM
	"public"."Post" AS "t1"
	LEFT JOIN LATERAL (
		SELECT
			COALESCE(JSON_AGG("__prisma_data__"), '[]') AS "__prisma_data__"
		FROM
			(
				SELECT
					"Post_tags"."__prisma_data__"
				FROM
					"public"."_PostToTag" AS "t2"
					LEFT JOIN LATERAL (
						SELECT
							JSON_BUILD_OBJECT('id', "t4"."id", 'name', "t4"."name") AS "__prisma_data__",
							"t4"."id"
						FROM
							(
								SELECT
									"t3".*
								FROM
									"public"."Tag" AS "t3"
								WHERE
									"t2"."B" = "t3"."id"
									/* root select */
							) AS "t4"
					) AS "Post_tags" ON TRUE
				WHERE
					"t2"."A" = "t1"."id"
			) AS "Post_tags_m2m_1"
	) AS "Post_tags_m2m" ON TRUE
WHERE "t1"."id" = $1
LIMIT $2

Share your feedback and create a bug report if you encounter any issues.

Prisma’s distinct option now uses SQL queries (Preview)

From this release, Prisma Client’s distinct option now uses the native SQL DISTINCT ON for unordered queries with PostgreSQL and CockroachDB. The upcoming releases will expand support for the other databases that Prisma supports.

Prisma Client already supports querying for distinct records. However, Prisma Client took care of the post-processing for distinct records in memory.

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

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

Regenerate your Prisma Client to get started using the Preview feature.

Given the following Prisma Client query:

await prisma.user.findMany({
    distinct: ['role'],
    select: {
      role: true,
    },
})

Before 5.7.0

Previously, Prisma Client handled the post-processing to select distinct records in-memory. Therefore, the following query was generated and executed against your database:

SELECT
	"public"."User"."id",
	"public"."User"."role"::text
FROM
	"public"."User"
WHERE
	1 = 1 OFFSET $1

After 5.7.0

SELECT DISTINCT ON ("public"."User"."role")
	"public"."User"."id",
	"public"."User"."role"::text
FROM
	"public"."User"
WHERE
	1 = 1 OFFSET $1

Share your feedback and create a bug report if you encounter any issues.

Improved support for Netlify using Node.js v20

In this release, we improved Prisma support when deploying to Netlify on Node.js v20. Previously, the Prisma Client could not resolve the location of the Query Engine after deploying to Netlify when using Node.js v20. If you run into this issue, we recommend updating to Prisma v5.7.0.

We recommend giving this comment on GitHub a read if you are not yet able to upgrade Prisma, to learn how to get around the error.

Fixes and improvements
Prisma Client
Prisma
Prisma Migrate
Credits

Huge thanks to @​anuraaga, @​onichandame, @​LucianBuzzo, @​RobertCraigie, @​fqazi, @​KhooHaoYit, @​alencardc, @​Oreilles, @​christianledgard, @​skyzh, @​alula, @​AikoRamalho, @​petradonka for helping!

Company news
💼 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 hiring for the following roles:

sapphiredev/utilities (@​sapphire/async-queue)

v1.5.1

Compare Source

🏠 Refactor

  • Split @sapphire/time-utilities into 4 sub-packages (#​462) (574299a)

🐛 Bug Fixes

📝 Documentation

🧪 Testing

sapphiredev/utilities (@​sapphire/duration)

v1.1.1

Compare Source

🐛 Bug Fixes

  • duration: Properly split CJS, ESM and IIFE (f070fdc)
  • Update export mapping for proper ESM/CJS split (dd0cff8)
  • deps: Update all non-major dependencies (#​607) (9cc8bd0)
  • deps: Update all non-major dependencies (#​577) (291dd67)

🧪 Testing

  • Update vitest to coverage v8 (a4bc6e4)
sapphiredev/utilities (@​sapphire/eslint-config)

v5.0.3

Compare Source

🐛 Bug Fixes

  • eslint-config: Properly split CJS and ESM (ccc6514)
  • eslint-config: Update transitive dependencies (8656062)
sapphiredev/utilities (@​sapphire/result)

v2.6.5

Compare Source

🐛 Bug Fixes

  • result: Properly split CJS, ESM and IIFE (1f8f52e)
  • Update export mapping for proper ESM/CJS split (dd0cff8)
  • deps: Update all non-major dependencies (#​607) (9cc8bd0)

📝 Documentation

  • readme: Add link to examples (e33b5b9)

🧪 Testing

  • Update vitest to coverage v8 (a4bc6e4)
sapphiredev/utilities (@​sapphire/utilities)

v3.14.0

Compare Source

🐛 Bug Fixes

  • utilities: Properly split CJS, ESM and IIFE (f9d8c8e)
  • discord.js-utilities: Fixed isNsfwChannel typeguard by including ChannelType.GuildMedia (#​665) (7c6cfe2)

📝 Documentation

  • utilities: Improve typedoc (16c05ea)

🚀 Features

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

v6.13.2

Compare Source

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

You can read about our versioning strategy and releases on our website.

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

v6.13.2

Compare Source

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

You can read about our versioning strategy and releases on our website.

vladfrangu/async_event_emitter (@​vladfrangu/async_event_emitter)

v2.2.4

Compare Source

🐛 Bug Fixes

  • Correct import of CJS version in package.json (#​3) (8dc308c)
okonet/lint-staged (lint-staged)

v15.2.0

Compare Source

Minor Changes
  • #​1371 f3378be Thanks @​iiroj! - Using the --no-stash flag no longer discards all unstaged changes to partially staged files, which resulted in inadvertent data loss. This fix is available with a new flag --no-hide-partially-staged that is automatically enabled when --no-stash is used.
Patch Changes
Microsoft/TypeScript (typescript)

v5.3.3: TypeScript 5.3.3

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 12pm on Sunday" (UTC), 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, check this box

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

@renovate renovate bot added this pull request to the merge queue Dec 10, 2023
Merged via the queue into main with commit e3ac959 Dec 10, 2023
5 of 6 checks passed
@renovate renovate bot deleted the renovate/all-minor-patch branch December 10, 2023 01:17
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.

0 participants