🌟 Help us spread the word about Prisma by starring the repo or posting on X about the release. 🌟
Highlights
strictUndefinedChecks in Preview
With Prisma ORM 5.20.0, the Preview feature strictUndefinedChecks will disallow any value that is explicitly undefined and will be a runtime error. This change is direct feedback from this GitHub issue and follows our latest proposal on the same issue.
To demonstrate the change, take the following code snippet:
prisma.table.deleteMany({
where: {
// If `nullableThing` is nullish, this query will remove all data.
email: nullableThing?.property,
}
})
In Prisma ORM 5.19.0 and below, this could result in unintended behavior. In Prisma ORM 5.20.0, if the strictUndefinedChecks Preview feature is enabled, you will get a runtime error instead:
Invalid \`prisma.user.findMany()\` invocation in
/client/tests/functional/strictUndefinedChecks/test.ts:0:0
XX })
XX
XX test('throws on undefined input field', async () => {
→ XX const result = prisma.user.deleteMany({
where: {
email: undefined
~~~~~~~~~
}
})
Invalid value for argument \`where\`: explicitly \`undefined\` values are not allowed."
We have also introduced the Prisma.skip symbol, which will allow you to get the previous behavior if desired.
prisma.table.findMany({
where: {
// Use Prisma.skip to skip parts of the query
email: nullableEmail ?? Prisma.skip
}
})
From Prisma ORM 5.20.0 onward, we recommend enabling strictUndefinedChecks, along with the TypeScript compiler option exactOptionalPropertyTypes, which will help catch cases of undefined values at compile time. Together, these two changes will help protect your Prisma queries from potentially destructive behavior.
Bumps the dev group with 18 updates in the / directory:
19.4.0
19.5.0
19.2.2
19.5.0
8.4.1
9.0.3
10.4.4
10.4.5
10.1.3
10.1.4
10.4.1
10.4.4
2.22.2
2.22.4
0.5.14
0.5.15
29.5.12
29.5.13
1.4.11
1.4.12
22.4.1
22.7.4
13.13.3
13.15.0
9.1.4
9.1.6
15.2.9
15.2.10
5.18.0
5.20.0
3.4.10
3.4.13
29.2.4
29.2.5
4.25.0
4.26.1
Updates
@commitlint/cli
from 19.4.0 to 19.5.0Release notes
Sourced from
@commitlint/cli
's releases.Changelog
Sourced from
@commitlint/cli
's changelog.Commits
7e79af1
v19.5.0d7070d8
feat(cli): use special errorCode for missing rules/config #4142 (#4143)3c4b0fd
chore: replaceexeca
withtinyexec
and Node'schild_process.spawnSync
(...249e6a2
v19.4.1Updates
@commitlint/config-conventional
from 19.2.2 to 19.5.0Release notes
Sourced from
@commitlint/config-conventional
's releases.... (truncated)
Changelog
Sourced from
@commitlint/config-conventional
's changelog.Commits
7e79af1
v19.5.0249e6a2
v19.4.1Updates
@faker-js/faker
from 8.4.1 to 9.0.3Release notes
Sourced from
@faker-js/faker
's releases.... (truncated)
Changelog
Sourced from
@faker-js/faker
's changelog.... (truncated)
Commits
4a8499a
chore(release): 9.0.3 (#3146)78b2a3a
fix(image): fix dataUri with type svg-base64 in browsers (#3144)d6bceb6
refactor(locale): update french legal entity types (#3142)9537dfd
infra: update file structure for util/internal (#3141)424b120
chore(release): 9.0.2 (#3140)311f7b6
chore(deps): lock file maintenance (#3138)be0fd96
chore(deps): update eslint (#3136)d3a3e2c
chore(deps): update dependency@algolia/client-search
to v5.5.3 (#3135)e209c35
chore(deps): update devdependencies (#3134)6fd5d60
chore(deps): update mcr.microsoft.com/devcontainers/typescript-node:22 docker...Maintainer changes
This version was pushed to npm by st-ddt, a new releaser for
@faker-js/faker
since your current version.Updates
@nestjs/cli
from 10.4.4 to 10.4.5Release notes
Sourced from
@nestjs/cli
's releases.Commits
999f806
chore(): release v10.4.5a734d81
Merge pull request #2666 from nestjs/renovate/nest-monorepo587e407
Merge pull request #2712 from nestjs/renovate/npm-webpack-vulnerability4ccad5c
chore(deps): update dependency@swc/core
to v1.7.21d3484bf
chore(deps): update commitlint monorepo to v19.4.17813682
fix(deps): update dependency webpack to v5.94.0 [security]b9cdc65
chore(deps): update dependency@types/node
to v20.16.228913e7
chore(deps): update typescript-eslint monorepo to v8.3.0fa03cba
chore(deps): update dependency@swc/core
to v1.7.1889009c4
chore(deps): update dependency eslint to v9.9.1Updates
@nestjs/schematics
from 10.1.3 to 10.1.4Release notes
Sourced from
@nestjs/schematics
's releases.Commits
f0dc1fe
chore(): release v10.1.481a1f41
chore: update readmed1e6384
chore(deps): update dependency@types/node
to v20.16.15c5acb5
chore(deps): update dependency@types/node
to v20.16.04c38478
chore(deps): update dependency@types/node
to v20.15.0f1f79d0
chore(deps): update typescript-eslint monorepo to v8.1.0f7786b7
chore(deps): update dependency@types/node
to v20.14.15a0eacfe
chore(deps): update dependency@commitlint/cli
to v19.4.058a0c5d
chore(deps): update typescript-eslint monorepo to v8.0.1d0559f9
chore(deps): update dependency@types/node
to v20.14.14Updates
@nestjs/testing
from 10.4.1 to 10.4.4Release notes
Sourced from
@nestjs/testing
's releases.Commits
5ae7e0f
chore(@nestjs
) publish v10.4.4 release3c24de6
chore: update readmes2fb629e
chore(@nestjs
) publish v10.4.3 released3dd896
chore: update readme696b441
chore(@nestjs
) publish v10.4.2 releasefff4b96
chore(deps): bump tslib from 2.6.3 to 2.7.0Updates
@sentry/webpack-plugin
from 2.22.2 to 2.22.4Release notes
Sourced from
@sentry/webpack-plugin
's releases.Changelog
Sourced from
@sentry/webpack-plugin
's changelog.Commits
dab9336
release: 2.22.461a6fb4
meta: Update changelog for 2.22.47ee1f9f
fix: Allow injection plugins to apply to files with query parameters and frag...687a9f5
feat(react-component-annotate): Handle function body returning a ternary (#598)71e80d9
Merge branch 'release/2.22.3'242dac9
release: 2.22.34b9cea2
meta: Update CHANGELOG for 2.22.3 (#595)22b9a47
fix(core): Always instantiate globalError
class in injected code snippets ...6993888
Merge branch 'release/2.22.2'Updates
@tailwindcss/typography
from 0.5.14 to 0.5.15Release notes
Sourced from
@tailwindcss/typography
's releases.Changelog
Sourced from
@tailwindcss/typography
's changelog.Commits
199a0c6
0.5.15fa5beec
Modernize repository setup (#359)1da9d14
Update peer dependency version to include 4.0.0-alpha.20 (#358)Updates
@types/jest
from 29.5.12 to 29.5.13Commits
Updates
@types/multer
from 1.4.11 to 1.4.12Commits
Updates
@types/node
from 22.4.1 to 22.7.4Commits
Updates
cypress
from 13.13.3 to 13.15.0Release notes
Sourced from cypress's releases.
Commits
5afb929
chore: Update Chrome (stable) to 129.0.6668.70 (#30279)0d2248c
chore: release 13.15.0 (#30292)8d71cc4
chore: Update changelog to 'addresses' rather than addressed in (#30275)1d84532
feat: Improve UX when Test Replay upload fails due to slow upload (#30235)fbe51fc
chore: fix net_stubbing flake (#30276)88900e7
chore: update tests to skip the welcome screen on launchpad tests. (#30240)954cc50
chore: [Snyk] Security upgrade express from 4.19.2 to 4.21.0 in packages/grap...3ff88b7
chore: Fix double bugfixes headings in changelog (#30268)0bdf495
chore: Update Chrome (beta) to 130.0.6723.6 (#30256)f7946de
docs: update guides/building-release-artifacts.md (#30257)Updates
husky
from 9.1.4 to 9.1.6Release notes
Sourced from husky's releases.
Commits
a2d942a
9.1.6b4465ed
fix: add parens around the null coalescing operator to fix issues when npm_co...3b3e7f1
docs(spanish): improve spanish translation (#1504)dcf3aed
dosc: repair support Spanish sponsors links (#1500)c3afd5f
docs: support Spanish documentation (#1499)c5f4f48
docs: support Russian documentation (#1495)2fee8d2
9.1.5397e7f0
fixes #1494 support pre-merge-commit hookUpdates
lint-staged
from 15.2.9 to 15.2.10Release notes
Sourced from lint-staged's releases.
Changelog
Sourced from lint-staged's changelog.
Commits
163112f
chore(changeset): release829575c
Merge pull request #1471 from lint-staged/updates893ca84
refactor: remove unused parameter defaulta661f46
build(deps): migrate to ESLint 9e3f283b
build(deps): update minor dependencies35483b9
docs: add some more concrete command examples to the READMEUpdates
prisma
from 5.18.0 to 5.20.0Release notes
Sourced from prisma's releases.
... (truncated)
Commits
8957496
feat(client): Typed SQL (#24907)f3856a9
chore(deps): update devdependencies patch (non-major) (#24813)ce552f3
feat(cli): remove Optimize specific login in Platform CLI (#25036)26c8d91
feat(cli): Chokidar-based watch (#24983)Updates
tailwindcss
from 3.4.10 to 3.4.13Release notes
Sourced from tailwindcss's releases.