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

Prisma Client (Binary): upgrade to undici@4 #7539

Closed
janpio opened this issue Jun 8, 2021 · 13 comments · Fixed by #8842
Closed

Prisma Client (Binary): upgrade to undici@4 #7539

janpio opened this issue Jun 8, 2021 · 13 comments · Fixed by #8842
Assignees
Labels
Milestone

Comments

@janpio
Copy link
Member

janpio commented Jun 8, 2021

We have a long standing bug for the combination of Undici and Webpack: #6899 + #6564 Unfortunately there is no full workaround.

Undici@4 will most probably fix this, and we should upgrade to that as soon as possible.

To make sure this is possible, we should also try to upgrade to one of the recent release candidates as well and help them get that over the line, and make sure we have the necessary adaptations ready when the stable version is released.

@janpio janpio added topic: dependencies kind/tech A technical change. team/client Issue for team Client. process/candidate labels Jun 8, 2021
@Jolg42
Copy link
Member

Jolg42 commented Jun 11, 2021

Also related #6925

@Jolg42 Jolg42 added tech/typescript Issue for tech TypeScript. topic: prisma-client labels Jun 11, 2021
@Jolg42
Copy link
Member

Jolg42 commented Jun 11, 2021

We should try to upgrade to the latest version, v4.0.0-rc.7 currently, see https://github.com/nodejs/undici/releases or https://github.com/nodejs/undici/tags

@janpio
Copy link
Member Author

janpio commented Jun 16, 2021

Obsolete as it is out now: #7705

@Jolg42
Copy link
Member

Jolg42 commented Jun 17, 2021

@Jolg42
Copy link
Member

Jolg42 commented Jun 17, 2021

Note from undici v4 package.json the Node.js supported version is >=12.18
https://github.com/nodejs/undici/blob/main/package.json#L71-L73

Prisma supported version is >=12.2
https://www.prisma.io/docs/reference/system-requirements/

Node.js v12 releases https://nodejs.org/en/download/releases/
Screen Shot 2021-06-17 at 08 57 22

So it looks like we would need to bump Prisma to the same version?

@janpio
Copy link
Member Author

janpio commented Jun 17, 2021

Our tests should catch that 👍

@Jolg42
Copy link
Member

Jolg42 commented Jun 17, 2021

I couldn't find why 2.18 was required maybe it's a choice and not an hard requirement.

Found this interesting bit for info
https://nodejs.org/en/blog/release/v12.18.0/

This is a security release.
Vulnerabilities fixed:

CVE-2020-8172: TLS session reuse can lead to host certificate verification bypass (High).
CVE-2020-11080: HTTP/2 Large Settings Frame DoS (Low).
CVE-2020-8174: napi_get_value_string_*() allows various kinds of memory corruption (High).

@millsp
Copy link
Member

millsp commented Jun 21, 2021

To investigate #7705 (comment)

@andrewgadziksonos
Copy link

Is there any update on this issue? Running into similar deployment issues in AWS Amplify (similar to this #8503)

@matthewmueller
Copy link
Contributor

matthewmueller commented Aug 6, 2021

PR up: #7931

@matthewmueller
Copy link
Contributor

matthewmueller commented Aug 20, 2021

Currently running into memory issues due to WASM being instatiated many times. Waiting for #8831.

@janpio
Copy link
Member Author

janpio commented Aug 20, 2021

If #8831 turns out to be fine, we still need to investigate the impact of the new files in the package and decide if we can/want/need to bundle them somehow instead. We also found a few weird bits where undici itself is bundled that way, which we should probably finish investigating (internal link: https://prisma-company.slack.com/archives/CUXLS0Z6K/p1629392329046500)

@Jolg42
Copy link
Member

Jolg42 commented Aug 23, 2021

New PR is at #8842, tests are passing now.

@Jolg42 Jolg42 linked a pull request Aug 23, 2021 that will close this issue
@matthewmueller matthewmueller added this to the 3.1.0 milestone Sep 7, 2021
@janpio janpio removed their assignment Sep 7, 2021
@matthewmueller matthewmueller modified the milestones: 3.1.0, 3.2.0 Sep 21, 2021
@Jolg42 Jolg42 modified the milestones: 3.2.0, 3.6.0 Nov 17, 2021
@Jolg42 Jolg42 modified the milestones: 3.6.0, 3.12.0 Mar 23, 2022
@Jolg42 Jolg42 changed the title Upgrade to undici@4 Prisma Client (Binary): upgrade to undici@4 Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants