npm gotenberg-js-client 0.7.3
v0.7.3

latest release: 0.7.4
2 years ago

🐛 Fixes

  • Change condition for success response from strict 200 equality to [200; 300) range

Context: Gotenberg 7 uses different headers, and responses with code 204 from Webhook module (see documentation). While changing headers themselves is possible via custom function inside pipe (see this comment for reference), changing bundled HTTP client to recognize response code 204 as successful response is not that easy. Well, it is easy in some cases — you can define your own HTTP client, check this comment, — but I decided it will not break anything, if I change condition to recognize any 2×× code as successful one. So, this shouldn't break compatibility with Gotenberg 6, and it will be a little less painful to use this library with Gotenberg 7.
Check issue #47 for more details.

Don't miss a new gotenberg-js-client release

NewReleases is sending notifications on new releases.