@taxora/sdk 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `@taxora/sdk` are documented here. Versions follow [SemVer](https://semver.org/).
4
4
 
5
+ ## [1.7.1] — 2026-10-24
6
+
7
+ ### Fixed
8
+
9
+ - **`smartEnrichment.export()` keeps the CSV's UTF-8 BOM.** `Response.text()` silently dropped it, so Excel opened a
10
+ saved export as ANSI and garbled umlauts. The body is now returned byte-for-byte, as documented.
11
+
5
12
  ## [1.7.0] — 2026-10-24
6
13
 
7
14
  ### Added
package/dist/index.cjs CHANGED
@@ -3063,7 +3063,7 @@ var SmartEnrichmentEndpoint = class {
3063
3063
  * verbatim (text/csv) instead of parsing JSON.
3064
3064
  */
3065
3065
  async parseCsvResponse(response) {
3066
- const responseText = await response.text();
3066
+ const responseText = new TextDecoder("utf-8", { ignoreBOM: true }).decode(await response.arrayBuffer());
3067
3067
  if (response.status === 422) {
3068
3068
  throw new ValidationException(
3069
3069
  jsonErrorMessage(responseText) ?? "Validation failed",
@@ -4033,7 +4033,7 @@ var AuthRetryHttpClient = class {
4033
4033
  };
4034
4034
 
4035
4035
  // src/version.ts
4036
- var SDK_VERSION = "1.7.0";
4036
+ var SDK_VERSION = "1.7.1";
4037
4037
 
4038
4038
  // src/http/SdkVersionHttpClient.ts
4039
4039
  var SDK_VERSION_HEADER = "X-Taxora-SDK-Version";