Fix zod-validation-error dependency range#36486
Conversation
|
Hi @savagemechanic! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Summary
This updates packages that import
zod-validation-error/v4so they no longer acceptzod-validation-error@3.5.4.3.5.4satisfies the old^3.5.0 || ^4.0.0range, but it does not export./v4, which can makerequire('eslint-plugin-react-hooks')fail withERR_PACKAGE_PATH_NOT_EXPORTEDwhen a package manager resolves that version. The new range keeps the currently locked4.0.2resolution while excluding only the known-broken3.5.4version from the 3.x side of the range.Fixes #35045.
How did you test this change?
git diff --checkpackage.jsonfiles withjq empty>=3.5.0 <3.5.4 || ^4.0.0allows3.5.0,3.5.3,4.0.0, and4.0.2, while excluding3.5.4zod-validation-error@>=3.5.0 <3.5.4 || ^4.0.0in a temp project and verifiedrequire('zod-validation-error/v4')succeeds