@ninetailed/experience.js 7.17.0 → 7.17.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/index.cjs.js CHANGED
@@ -916,7 +916,7 @@ class Ninetailed {
916
916
  }));
917
917
  });
918
918
  this.trackVariableComponentView = properties => {
919
- const validatedVariable = experience_jsShared.SerializableObject.parse(properties.variable);
919
+ const validatedVariable = experience_jsShared.allowVariableTypeSchema.parse(properties.variable);
920
920
  return this.instance.dispatch(Object.assign(Object.assign({}, properties), {
921
921
  type: experience_jsPluginAnalytics.HAS_SEEN_VARIABLE,
922
922
  variable: validatedVariable
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { FEATURES, buildComponentViewEvent, logger, ConsoleLogSink, buildPageEvent, buildTrackEvent, buildIdentifyEvent, unionBy, pipe, PageviewProperties, Properties, Traits, isPageViewEvent, isTrackEvent, isIdentifyEvent, isComponentViewEvent, SerializableObject, selectHasVariants, selectExperience, selectVariant as selectVariant$1, selectBaselineWithVariants, OnLogLogSink, OnErrorLogSink, NinetailedApiClient } from '@ninetailed/experience.js-shared';
1
+ import { FEATURES, buildComponentViewEvent, logger, ConsoleLogSink, buildPageEvent, buildTrackEvent, buildIdentifyEvent, unionBy, pipe, PageviewProperties, Properties, Traits, isPageViewEvent, isTrackEvent, isIdentifyEvent, isComponentViewEvent, allowVariableTypeSchema, selectHasVariants, selectExperience, selectVariant as selectVariant$1, selectBaselineWithVariants, OnLogLogSink, OnErrorLogSink, NinetailedApiClient } from '@ninetailed/experience.js-shared';
2
2
  export { EXPERIENCE_TRAIT_PREFIX, isExperienceMatch, selectActiveExperiments, selectDistribution, selectExperience, selectBaselineWithVariants as selectExperienceBaselineWithVariants, selectVariant as selectExperienceVariant, selectVariants as selectExperienceVariants, selectHasVariants as selectHasExperienceVariants } from '@ninetailed/experience.js-shared';
3
3
  import { NinetailedAnalyticsPlugin, HAS_SEEN_COMPONENT, HAS_SEEN_VARIABLE, HAS_SEEN_ELEMENT, hasComponentViewTrackingThreshold } from '@ninetailed/experience.js-plugin-analytics';
4
4
  import Analytics from 'analytics';
@@ -906,7 +906,7 @@ class Ninetailed {
906
906
  }));
907
907
  };
908
908
  this.trackVariableComponentView = properties => {
909
- const validatedVariable = SerializableObject.parse(properties.variable);
909
+ const validatedVariable = allowVariableTypeSchema.parse(properties.variable);
910
910
  return this.instance.dispatch(Object.assign({}, properties, {
911
911
  type: HAS_SEEN_VARIABLE,
912
912
  variable: validatedVariable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js",
3
- "version": "7.17.0",
3
+ "version": "7.17.1",
4
4
  "description": "Ninetailed SDK for javascript",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  "directory": "packages/sdks/javascript"
10
10
  },
11
11
  "dependencies": {
12
- "@ninetailed/experience.js-plugin-analytics": "7.17.0",
13
- "@ninetailed/experience.js-shared": "7.17.0",
12
+ "@ninetailed/experience.js-plugin-analytics": "7.17.1",
13
+ "@ninetailed/experience.js-shared": "7.17.1",
14
14
  "analytics": "0.8.1",
15
15
  "uuid": "9.0.0"
16
16
  },
@@ -1,5 +1,5 @@
1
1
  import { HAS_SEEN_COMPONENT, HAS_SEEN_ELEMENT, HAS_SEEN_VARIABLE } from '@ninetailed/experience.js-plugin-analytics';
2
- import { PROFILE_CHANGE, Profile, SelectedVariantInfo, PROFILE_RESET, Change, SerializableObject } from '@ninetailed/experience.js-shared';
2
+ import { PROFILE_CHANGE, Profile, SelectedVariantInfo, PROFILE_RESET, Change, AllowedVariableType } from '@ninetailed/experience.js-shared';
3
3
  import { HAS_SEEN_STICKY_COMPONENT, PAGE_HIDDEN } from '../constants';
4
4
  type ReadyAction = {
5
5
  type: 'ready';
@@ -11,7 +11,7 @@ type HasSeenElementAction = {
11
11
  };
12
12
  type HasSeenVariableAction = {
13
13
  type: typeof HAS_SEEN_VARIABLE;
14
- variable: SerializableObject;
14
+ variable: AllowedVariableType;
15
15
  };
16
16
  type PageHiddenAction = {
17
17
  type: typeof PAGE_HIDDEN;