node-avo-inspector 2.0.0-beta.2 → 2.0.1-beta.0

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,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 2.0.0
3
+ ## Unreleased
4
+
5
+ - **List properties are no longer dropped when values are encrypted.** With a public encryption key set in dev or staging, a list property (such as `item_ids: ["a", "b"]`) was left out of the event entirely, so the Inspector Debugger showed it as a missing property and the event as not validated. It is now sent with its name, type and children, without a value, as the web SDK sends lists and as every property is sent in prod. Other properties are unchanged.
6
+
7
+ ## 2.0.0 (2026-10-22)
4
8
 
5
9
  Implements [avohq/spec-first-inspector-server-sdk](https://github.com/avohq/spec-first-inspector-server-sdk) v3.0.1: the `/inspector/v2/track` endpoint, batching with `flush()` and `destroy()`, gzip, and gateway fields. This is a breaking release; see [Upgrading from 1.x to 2.0](README.md#upgrading-from-1x-to-20) in the README.
6
10
 
@@ -1,3 +1,3 @@
1
- export declare const VERSION = "2.0.0";
1
+ export declare const VERSION = "2.0.1";
2
2
  export declare const SPEC_VERSION = "3.0.1";
3
3
  export declare const LIB_PLATFORM = "node";
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LIB_PLATFORM = exports.SPEC_VERSION = exports.VERSION = void 0;
4
4
  // SDK library version, sent on the wire as `libVersion`. Plain SemVer, no suffix.
5
5
  // Update this constant (and package.json "version") on every release.
6
- exports.VERSION = "2.0.0";
6
+ exports.VERSION = "2.0.1";
7
7
  // Version of avohq/spec-first-inspector-server-sdk this SDK implements.
8
8
  exports.SPEC_VERSION = "3.0.1";
9
9
  // Sent as `libPlatform` on every event and as the `X-Avo-Client` request header.
@@ -322,8 +322,11 @@ class AvoNetworkCallsHandler {
322
322
  var _a;
323
323
  const result = [];
324
324
  for (const prop of properties) {
325
- // List-type properties: omit entirely
325
+ // List-type properties are sent without a value: name, type and children only,
326
+ // as the web SDK does and as every property is sent in prod. Dropping them made the
327
+ // Debugger report the list as a missing property.
326
328
  if (AvoEncryption_1.AvoEncryption.isListType(prop.propertyType)) {
329
+ result.push(Object.assign({ propertyName: prop.propertyName, propertyType: prop.propertyType }, (prop.children !== undefined ? { children: prop.children } : {})));
327
330
  continue;
328
331
  }
329
332
  const rawValue = rawEventProperties[prop.propertyName];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-avo-inspector",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.1-beta.0",
4
4
  "description": "Avo Inspector for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",