Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update thrift library patch and prepare release #140

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

Merged
merged 5 commits into from
Apr 20, 2023

Conversation

kravets-levko
Copy link
Contributor

@kravets-levko kravets-levko commented Apr 18, 2023

Update our patch for thrift dependency: immediately stop processing respone on HTTP error statuses (non-200), otherwise it leads to weird errors when trying to parse Thrift response body. Related to ES-662981

Update to the way we ship patched thrift dependency: Yarn 2 and upper does not respect bundledPackages field and completely ignores bundled dependencies. Instead, we copy patched thrift into dist/node_modules explicitly. It works because Nodejs looks in nested node_modules first, and only if package not found there - will attempt to go up the directory tree. Dependencies of thrift itself will still be located at their default locations since we still depend on thrift library and it will be installed as usual.

Also, with the changes mentioned above, we're going to release next library version, so all preparation steps are performed as well (update package.json, changdelog, etc.)

@kravets-levko kravets-levko merged commit a4bc14c into main Apr 20, 2023
@kravets-levko kravets-levko deleted the update-thrift-patch branch April 20, 2023 15:17
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