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(client): types oom and inferred length errors #20161
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
millsp
commented
Jul 11, 2023
...nt/src/__tests__/integration/happy/exhaustive-schema-mongo/__snapshots__/binary.test.ts.snap
Outdated
Show resolved
Hide resolved
millsp
commented
Jul 11, 2023
millsp
commented
Jul 11, 2023
millsp
force-pushed
the
integration/fix/client/oom-default-selection
branch
from
July 11, 2023 02:21
693e410
to
37305a1
Compare
…client/oom-default-selection
Will add tests once I got the greenlight/feedback from the users. |
This was referenced Jul 20, 2023
…client/oom-default-selection
Needs #20285, for now code just added here too. |
millsp
commented
Jul 22, 2023
millsp
commented
Jul 22, 2023
millsp
changed the title
fix(client): types oom default selection
fix(client): types oom and inferred length errors
Jul 22, 2023
millsp
commented
Jul 24, 2023
…client/oom-default-selection
millsp
commented
Jul 24, 2023
packages/client/tests/e2e/issues/19999-tsc-extensions-oom/src/index.ts
Outdated
Show resolved
Hide resolved
jkomyno
reviewed
Jul 25, 2023
SevInf
reviewed
Jul 25, 2023
SevInf
reviewed
Jul 25, 2023
…client/oom-default-selection
SevInf
approved these changes
Jul 26, 2023
…client/oom-default-selection
SevInf
added a commit
that referenced
this pull request
Sep 18, 2023
In #20161, in order to solve type declaration/OOM/performance issues, we added forced exports for every type within the runime. However, our type bundler renames certain types if the naming conflicts. For example, if there are 2 `Result` types, one of them will be renamed to `Result_2`. Making renamed type public gives `tsc` green light for dependenig on it when creating declaration for third-party library. This is wrong, because rename is not guaranteed to be stable. In fact, we have the problem with `accelerate` extension on a different branch: latest Accelerate depends on `Result_2`, but in a branch corresponding type got renamed to `Result_3`. Internal discussion: https://prisma-company.slack.com/archives/C04TW4A2H8C/p1694778678856899 In this PR we revert to manual re-exports and ensure every type from `core/types` gets re-exported without rename. Tests, fixed in #20161 are still green, but it also ensures that only types we want will leak to third party project. Couple of public types with conflicting names got renamed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #16536
closes #19999
(maybe related #20308)
Internal Slack