jsgar 3.1.1 → 3.1.2

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.
Files changed (2) hide show
  1. package/dist/gar.umd.js +6 -0
  2. package/package.json +1 -1
package/dist/gar.umd.js CHANGED
@@ -742,6 +742,7 @@
742
742
  * @param {number} [snapshotSizeLimit=0] - Limit snapshot size
743
743
  * @param {number} [nagleInterval=0] - Nagle interval in milliseconds
744
744
  * @param {number} [limit=0] - Limits records in initial snapshot (0 = all)
745
+ * @param {boolean} [trimDefaultValues=false] - Trim records containing default values from the snapshot
745
746
  */
746
747
  subscribe(
747
748
  name,
@@ -757,6 +758,7 @@
757
758
  includeReferencedKeys = false,
758
759
  includeReferencingKeys = false,
759
760
  includeAllNamespace = false,
761
+ trimDefaultValues = false,
760
762
  workingNamespace = null,
761
763
  density = null,
762
764
  subscriptionGroup = 0,
@@ -841,6 +843,9 @@
841
843
  if (includeAllNamespace) {
842
844
  valueDict.include_all_namespace = includeAllNamespace;
843
845
  }
846
+ if (trimDefaultValues) {
847
+ valueDict.trim_default_values = trimDefaultValues;
848
+ }
844
849
  if (limit > 0) {
845
850
  valueDict.limit = limit;
846
851
  }
@@ -913,6 +918,7 @@
913
918
  false,
914
919
  false,
915
920
  false,
921
+ false,
916
922
  null,
917
923
  null,
918
924
  subscriptionGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgar",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A Javascript client for the GAR protocol",
5
5
  "type": "module",
6
6
  "main": "dist/gar.umd.js",