@flowcore/sdk 1.46.0 → 1.46.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
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.46.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.46.0...v1.46.1) (2025-05-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ingestion:** :art: remove unused Buffer import from ingest.event.ts ([be523af](https://github.com/flowcore-io/flowcore-sdk/commit/be523aff5613f6a209403ae14f29998a9e418075))
9
+ * **ingestion:** :bug: encode metadata as base64 in ingestion commands and tests ([4e1937e](https://github.com/flowcore-io/flowcore-sdk/commit/4e1937e414f6c424d4cf65aae1b1b54f76522992))
10
+
3
11
  ## [1.46.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.45.0...v1.46.0) (2025-05-07)
4
12
 
5
13
 
@@ -55,7 +55,7 @@ export class IngestBatchCommand extends Command {
55
55
  return {
56
56
  "Content-Type": "application/json",
57
57
  ...(this.input.flowcoreManaged && { "X-Flowcore-Managed": "true" }),
58
- ...(metadata && { "x-flowcore-metadata-json": JSON.stringify(metadata) }),
58
+ ...(metadata && { "x-flowcore-metadata-json": btoa(JSON.stringify(metadata)) }),
59
59
  ...(this.input.eventTime && { "x-flowcore-event-time": this.input.eventTime }),
60
60
  ...(this.input.validTime && { "x-flowcore-valid-time": this.input.validTime }),
61
61
  ...(authHeader && { "Authorization": authHeader }),
@@ -55,7 +55,7 @@ export class IngestEventCommand extends Command {
55
55
  return {
56
56
  "Content-Type": "application/json",
57
57
  ...(this.input.flowcoreManaged && { "X-Flowcore-Managed": "true" }),
58
- ...(metadata && { "x-flowcore-metadata-json": JSON.stringify(metadata) }),
58
+ ...(metadata && { "x-flowcore-metadata-json": btoa(JSON.stringify(metadata)) }),
59
59
  ...(this.input.eventTime && { "x-flowcore-event-time": this.input.eventTime }),
60
60
  ...(this.input.validTime && { "x-flowcore-valid-time": this.input.validTime }),
61
61
  ...(authHeader && { "Authorization": authHeader }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -58,7 +58,7 @@ class IngestBatchCommand extends command_js_1.Command {
58
58
  return {
59
59
  "Content-Type": "application/json",
60
60
  ...(this.input.flowcoreManaged && { "X-Flowcore-Managed": "true" }),
61
- ...(metadata && { "x-flowcore-metadata-json": JSON.stringify(metadata) }),
61
+ ...(metadata && { "x-flowcore-metadata-json": btoa(JSON.stringify(metadata)) }),
62
62
  ...(this.input.eventTime && { "x-flowcore-event-time": this.input.eventTime }),
63
63
  ...(this.input.validTime && { "x-flowcore-valid-time": this.input.validTime }),
64
64
  ...(authHeader && { "Authorization": authHeader }),
@@ -58,7 +58,7 @@ class IngestEventCommand extends command_js_1.Command {
58
58
  return {
59
59
  "Content-Type": "application/json",
60
60
  ...(this.input.flowcoreManaged && { "X-Flowcore-Managed": "true" }),
61
- ...(metadata && { "x-flowcore-metadata-json": JSON.stringify(metadata) }),
61
+ ...(metadata && { "x-flowcore-metadata-json": btoa(JSON.stringify(metadata)) }),
62
62
  ...(this.input.eventTime && { "x-flowcore-event-time": this.input.eventTime }),
63
63
  ...(this.input.validTime && { "x-flowcore-valid-time": this.input.validTime }),
64
64
  ...(authHeader && { "Authorization": authHeader }),