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

Replace Neon Serverless Driver with @vercel/postgres #23251

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

janpio
Copy link
Member

@janpio janpio commented Feb 23, 2024

No description provided.

Copy link

socket-security bot commented Feb 23, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/jest@29.5.1 Transitive: environment +12 911 kB types
npm/@types/jest@29.5.11 Transitive: environment, filesystem, unsafe +49 5.26 MB types
npm/@types/node@16.18.65 None 0 3.51 MB types
npm/@types/node@18.11.18 None 0 3.58 MB types
npm/@types/react@18.0.26 None +3 1.38 MB types
npm/db@1.0.0 Transitive: network +1 151 kB
npm/esbuild@0.19.5 environment, filesystem, network, shell 0 132 kB evanw
npm/expect-type@0.15.0 None 0 35.8 kB mmkale
npm/next@13.1.4 environment, filesystem, network, shell, unsafe +14 46 MB vercel-release-bot
npm/react-dom@18.2.0 environment +3 4.92 MB gnoff
npm/react@18.2.0 environment +1 322 kB gnoff
npm/require-in-the-middle@7.2.0 unsafe Transitive: environment, filesystem +9 301 kB trentm
npm/typescript@4.9.4 None 0 66.8 MB typescript-bot
npm/vercel@28.13.0 environment, eval, filesystem Transitive: network, shell, unsafe +137 138 MB vercel-release-bot
npm/wrangler@3.5.1 Transitive: environment, filesystem, network, shell, unsafe +80 27.3 MB wrangler-publisher

🚮 Removed packages: npm/@antfu/ni@0.21.12, npm/@cloudflare/workers-types@4.20240208.0, npm/@codspeed/benchmark.js-plugin@3.1.0, npm/@faker-js/faker@8.4.1, npm/@fast-check/jest@1.8.0, npm/@inquirer/prompts@4.0.0, npm/@jest/create-cache-key-function@29.7.0, npm/@jest/globals@29.7.0, npm/@jest/test-sequencer@29.7.0, npm/@libsql/client@0.4.3, npm/@microsoft/api-extractor@7.40.1, npm/@neondatabase/serverless@0.8.1, npm/@opentelemetry/api@1.7.0, npm/@opentelemetry/context-async-hooks@1.21.0, npm/@opentelemetry/instrumentation@0.48.0, npm/@opentelemetry/resources@1.21.0, npm/@opentelemetry/sdk-trace-base@1.21.0, npm/@opentelemetry/semantic-conventions@1.21.0, npm/@planetscale/database@1.16.0, npm/@prisma/engines-version@5.11.0-1.af6ceee5db79017870b8793ce19ab0440083dacd, npm/@prisma/mini-proxy@0.9.5, npm/@prisma/prisma-schema-wasm@5.11.0-1.af6ceee5db79017870b8793ce19ab0440083dacd, npm/@prisma/query-engine-wasm@5.11.0-1.af6ceee5db79017870b8793ce19ab0440083dacd, npm/@prisma/studio-server@0.499.0, npm/@prisma/studio@0.499.0, npm/@sindresorhus/slugify@1.1.2, npm/@slack/webhook@7.0.2, npm/@snaplet/copycat@0.17.3, npm/@swc-node/register@1.8.0, npm/@swc/core@1.2.204, npm/@swc/core@1.4.1, npm/@swc/jest@0.2.36, npm/@timsuchanek/copy@1.4.5, npm/@types/benchmark@2.1.5, npm/@types/cross-spawn@6.0.6, npm/@types/debug@4.1.12, npm/@types/fs-extra@9.0.13, npm/@types/graphviz@0.0.39, npm/@types/jest@29.5.12, npm/@types/js-levenshtein@1.1.3, npm/@types/mssql@9.1.5, npm/@types/node-fetch@2.6.11, npm/@types/node@18.19.17, npm/@types/node@20.11.19, npm/@types/pg@8.11.0, npm/@types/progress@2.0.7, npm/@types/prompts@2.4.9, npm/@types/redis@2.8.32, npm/@types/resolve@1.20.6, npm/@types/rimraf@3.0.2, npm/@types/sqlite3@3.1.11, npm/@typescript-eslint/eslint-plugin@7.0.1, npm/@typescript-eslint/parser@7.0.1, npm/@typescript-eslint/utils@7.0.1, npm/archiver@6.0.1, npm/arg@5.0.2, npm/async-listen@3.0.1, npm/async-mutex@0.4.1, npm/batching-toposort@1.2.0, npm/benchmark@2.1.4, npm/buffer@6.0.3, npm/checkpoint-client@1.1.33, npm/chokidar@3.6.0, npm/ci-info@4.0.0, npm/cli-truncate@2.1.0, npm/cross-spawn@7.0.3, npm/decimal.js@10.4.3, npm/del@6.1.1, npm/detect-runtime@1.0.4, npm/dotenv-cli@7.3.0, npm/dotenv@16.0.3, npm/env-paths@2.2.1, npm/esbuild-register@3.5.0, npm/esbuild@0.20.0, npm/eslint-config-prettier@9.1.0, npm/eslint-plugin-eslint-comments@3.2.0, npm/eslint-plugin-import@2.29.1, npm/eslint-plugin-jest@27.8.0, npm/eslint-plugin-local-rules@2.0.1, npm/eslint-plugin-prettier@4.2.1, npm/eslint-plugin-simple-import-sort@12.0.0, npm/eslint@8.56.0, npm/execa@5.1.1, npm/expect-type@0.16.0, npm/fast-glob@3.3.2, npm/find-cache-dir@5.0.0, npm/find-up@5.0.0, npm/flat-map-polyfill@0.3.8, npm/format-util@1.0.5, npm/fp-ts@2.16.2, npm/fs-extra@11.1.1, npm/fs-jetpack@5.1.0, npm/get-port@5.1.1, npm/get-stdin@8.0.0, npm/get-stream@6.0.1, npm/global-dirs@3.0.1, npm/globby@11.1.0, npm/graphviz-mit@0.0.9, npm/has-yarn@2.1.0, npm/hasha@5.2.2, npm/http-proxy-agent@7.0.2, npm/https-proxy-agent@7.0.4, npm/husky@9.0.11, npm/indent-string@4.0.0, npm/is-ci@3.0.1, npm/is-windows@1.0.2, npm/is-wsl@3.1.0, npm/jest-extended@4.0.2, npm/jest-junit@16.0.0, npm/jest-serializer-ansi-escapes@2.0.1, npm/jest-snapshot@29.7.0, npm/jest@29.7.0, npm/js-levenshtein@1.1.6, npm/klona@2.0.6, npm/line-replace@2.0.1, npm/lint-staged@15.2.2, npm/log-update@4.0.0, npm/mariadb@3.2.3, npm/memfs@4.7.0, npm/mock-stdin@1.0.0, npm/mongoose@8.1.2, npm/mssql@10.0.2, npm/new-github-issue-url@0.2.1, npm/node-fetch@2.7.0, npm/npm-packlist@5.1.3, npm/open@7.4.2, npm/ora@5.4.1

View full report↗︎

Copy link

socket-security bot commented Feb 23, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Native code npm/better-sqlite3@8.5.1
Install scripts npm/workerd@1.20230814.1
Telemetry npm/next@13.1.4
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information
Install scripts npm/vercel@28.13.0
  • Install script: preinstall
  • Source: node ./scripts/preinstall.js

View full report↗︎

Next steps

What's wrong with native code?

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/better-sqlite3@8.5.1
  • @SocketSecurity ignore npm/workerd@1.20230814.1
  • @SocketSecurity ignore npm/next@13.1.4
  • @SocketSecurity ignore npm/vercel@28.13.0

Copy link
Contributor

github-actions bot commented Feb 23, 2024

size-limit report 📦

Path Size
packages/client/runtime/library.js 177.1 KB (0%)
packages/client/runtime/library.d.ts 81 B (0%)
packages/client/runtime/binary.js 601.08 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 155.74 KB (0%)
packages/client/runtime/edge-esm.js 155.63 KB (0%)
packages/client/runtime/wasm.js 147.08 KB (0%)
packages/client/runtime/index-browser.js 33.5 KB (0%)
packages/client/runtime/index-browser.d.ts 89 B (0%)
packages/cli/build/index.js 2.71 MB (0%)
packages/client/prisma-client-0.0.0.tgz 2.92 MB (0%)
packages/cli/prisma-0.0.0.tgz 3.87 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 899.5 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 998.82 KB (+5.41% 🔺)
packages/bundle-size/da-workers-pg/output.tgz 969.29 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 889.24 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 872.38 KB (0%)

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.

None yet

2 participants