Skip to content

Conversation

ad-world
Copy link
Contributor

@ad-world ad-world commented Aug 2, 2024

DX-634

This ticket adds an optional name parameter to the httpRequest function. Now, if a decode fails (and the httpRequest has a name), the name can be used for logging / debugging purposes to improve inspection, rather than only seeing the expected schema and trying to figure out the request from there.

@ad-world ad-world marked this pull request as ready for review August 2, 2024 18:07
@ad-world ad-world requested review from a team as code owners August 2, 2024 18:07
@bitgopatmcl bitgopatmcl merged commit a7cd268 into master Aug 5, 2024
@bitgopatmcl bitgopatmcl deleted the DX-634 branch August 5, 2024 15:00
Copy link

github-actions bot commented Aug 5, 2024

🎉 This PR is included in version @api-ts/express-wrapper@1.0.28 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Aug 5, 2024

🎉 This PR is included in version @api-ts/typed-express-router@1.1.8 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@@ -1,4 +1,4 @@
import { pipe } from 'fp-ts/pipeable';
import { pipe } from 'fp-ts/function';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: This line is actually a breaking change! @ad-world, can you please open a PR to import from pipeable instead?

The issue is the io-ts-http package manifest advertises compatibility with fp-ts version 2.0.0 or higher1, while pipe was only added to the function module in fp-ts v2.6.32. It is important to import from pipeable (even though marked as deprecated) because that import does exist from v2.0.03. This guarantees even when consumers are using an fp-ts version between 2.0.0 and 2.6.3, the pipe import can still be found.

Footnotes

  1. https://github.com/BitGo/api-ts/blob/a7cd268553e3b068996596f4e09600fa913f700f/packages/io-ts-http/package.json#L23

  2. https://gcanti.github.io/fp-ts/modules/function.ts.html#pipe

  3. https://gcanti.github.io/fp-ts/modules/pipeable.ts.html#pipe

Copy link

github-actions bot commented Aug 5, 2024

🎉 This PR is included in version @api-ts/superagent-wrapper@1.2.3 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Aug 5, 2024

🎉 This PR is included in version @api-ts/io-ts-http@3.1.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Aug 6, 2024

🎉 This PR is included in version @api-ts/openapi-generator@4.28.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants