@openreplay/tracker 18.0.15 → 18.0.16

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/dist/cjs/index.js CHANGED
@@ -3074,6 +3074,10 @@ function isObservable(node) {
3074
3074
  }
3075
3075
  return !isIgnored(node);
3076
3076
  }
3077
+ const PRESERVE_VALUE_INPUT_TYPES = new Set(['button', 'reset', 'submit', 'checkbox', 'radio']);
3078
+ function shouldSkipValueAttribute(node) {
3079
+ return hasTag(node, 'input') && !PRESERVE_VALUE_INPUT_TYPES.has(node.type);
3080
+ }
3077
3081
  /*
3078
3082
  TODO:
3079
3083
  - fix unbinding logic + send all removals first (ensure sequence is correct)
@@ -3254,11 +3258,7 @@ class Observer {
3254
3258
  name.substring(0, 2) === 'on') {
3255
3259
  return;
3256
3260
  }
3257
- if (name === 'value' &&
3258
- hasTag(node, 'input') &&
3259
- node.type !== 'button' &&
3260
- node.type !== 'reset' &&
3261
- node.type !== 'submit') {
3261
+ if (name === 'value' && shouldSkipValueAttribute(node)) {
3262
3262
  return;
3263
3263
  }
3264
3264
  if (value === null) {
@@ -4249,7 +4249,7 @@ class App {
4249
4249
  this.stopCallbacks = [];
4250
4250
  this.commitCallbacks = [];
4251
4251
  this.activityState = ActivityState.NotActive;
4252
- this.version = '18.0.15'; // TODO: version compatability check inside each plugin.
4252
+ this.version = '18.0.16'; // TODO: version compatability check inside each plugin.
4253
4253
  this.socketMode = false;
4254
4254
  this.compressionThreshold = 24 * 1000;
4255
4255
  this.bc = null;
@@ -9584,7 +9584,7 @@ class ConstantProperties {
9584
9584
  user_id: this.user_id,
9585
9585
  distinct_id: this.deviceId,
9586
9586
  sdk_edition: 'web',
9587
- sdk_version: '18.0.15',
9587
+ sdk_version: '18.0.16',
9588
9588
  timezone: getUTCOffsetString(),
9589
9589
  search_engine: this.searchEngine,
9590
9590
  };
@@ -10286,7 +10286,7 @@ class API {
10286
10286
  this.signalStartIssue = (reason, missingApi) => {
10287
10287
  const doNotTrack = this.checkDoNotTrack();
10288
10288
  console.log("Tracker couldn't start due to:", JSON.stringify({
10289
- trackerVersion: '18.0.15',
10289
+ trackerVersion: '18.0.16',
10290
10290
  projectKey: this.options.projectKey,
10291
10291
  doNotTrack,
10292
10292
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,