Skip to content

chore: remove hardcoded URL validation and related tests#28297

Merged
aqrln merged 1 commit intonextfrom
push-szmyvzrlutuy
Oct 15, 2025
Merged

chore: remove hardcoded URL validation and related tests#28297
aqrln merged 1 commit intonextfrom
push-szmyvzrlutuy

Conversation

@aqrln
Copy link
Copy Markdown
Member

@aqrln aqrln commented Oct 14, 2025

Since we won't have these attributes anymore in Prisma 7, as well as
env() in the PSL, this validation is no longer possible.

It's up to users to ensure that they don't hardcode any sensitive
information in prisma.config.ts. Perhaps we could provide an ESLint
plugin in the future to help with that.

Ref: https://linear.app/prisma-company/issue/TML-1339/remove-url-directurl-shadowdatabaseurl-datasource-attributes-from-psl
Ref: https://linear.app/prisma-company/issue/TML-1340/remove-env-from-psl

Since we won't have these attributes anymore in Prisma 7, as well as
`env()` in the PSL, this validation is no longer possible.

It's up to users to ensure that they don't hardcode any sensitive
information in `prisma.config.ts`. Perhaps we could provide an ESLint
plugin in the future to help with that.

Ref: https://linear.app/prisma-company/issue/TML-1339/remove-url-directurl-shadowdatabaseurl-datasource-attributes-from-psl
Ref: https://linear.app/prisma-company/issue/TML-1340/remove-env-from-psl
@aqrln aqrln added this to the 7.0.0 milestone Oct 14, 2025
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 197.91 KB (0%)
packages/client/runtime/library.d.ts 127.12 KB (0%)
packages/client/runtime/binary.js 658.48 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 166.8 KB (0%)
packages/client/runtime/edge-esm.js 166.26 KB (0%)
packages/client/runtime/wasm-engine-edge.js 128.92 KB (0%)
packages/client/runtime/index-browser.js 34.5 KB (0%)
packages/client/runtime/index-browser.d.ts 11.64 KB (0%)
packages/cli/build/index.js 2.63 MB (-0.02% 🔽)
packages/client/prisma-client-0.0.0.tgz 25.93 MB (0%)
packages/cli/prisma-0.0.0.tgz 16.73 MB (-0.01% 🔽)
packages/bundle-size/da-workers-libsql/output.tgz 924.99 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 999 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 998.26 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 941.45 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 906.85 KB (0%)

@aqrln aqrln merged commit cb899ce into next Oct 15, 2025
376 checks passed
@aqrln aqrln deleted the push-szmyvzrlutuy branch October 15, 2025 11:51
aqrln added a commit that referenced this pull request Nov 17, 2025
Since we won't have these attributes anymore in Prisma 7, as well as
`env()` in the PSL, this validation is no longer possible.

It's up to users to ensure that they don't hardcode any sensitive
information in `prisma.config.ts`. Perhaps we could provide an ESLint
plugin in the future to help with that.

Ref:
https://linear.app/prisma-company/issue/TML-1339/remove-url-directurl-shadowdatabaseurl-datasource-attributes-from-psl
Ref:
https://linear.app/prisma-company/issue/TML-1340/remove-env-from-psl
aqrln added a commit that referenced this pull request Nov 17, 2025
Since we won't have these attributes anymore in Prisma 7, as well as
`env()` in the PSL, this validation is no longer possible.

It's up to users to ensure that they don't hardcode any sensitive
information in `prisma.config.ts`. Perhaps we could provide an ESLint
plugin in the future to help with that.

Ref:
https://linear.app/prisma-company/issue/TML-1339/remove-url-directurl-shadowdatabaseurl-datasource-attributes-from-psl
Ref:
https://linear.app/prisma-company/issue/TML-1340/remove-env-from-psl
aqrln added a commit that referenced this pull request Nov 17, 2025
Since we won't have these attributes anymore in Prisma 7, as well as
`env()` in the PSL, this validation is no longer possible.

It's up to users to ensure that they don't hardcode any sensitive
information in `prisma.config.ts`. Perhaps we could provide an ESLint
plugin in the future to help with that.

Ref:
https://linear.app/prisma-company/issue/TML-1339/remove-url-directurl-shadowdatabaseurl-datasource-attributes-from-psl
Ref:
https://linear.app/prisma-company/issue/TML-1340/remove-env-from-psl
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.

2 participants