jsgar 4.0.5 → 4.3.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.
Files changed (3) hide show
  1. package/dist/gar.umd.js +32 -16
  2. package/gar.js +32 -16
  3. package/package.json +1 -1
package/dist/gar.umd.js CHANGED
@@ -55,7 +55,7 @@
55
55
  this.scaledHeartbeatTimeoutInterval *= this.timeoutScale;
56
56
  }
57
57
  this.unique_key_and_record_updates = uniqueKeyAndRecordUpdates;
58
- this.version = 650708;
58
+ this.version = 650709;
59
59
  this.uuid = GARClient._generateUUID();
60
60
 
61
61
  if (typeof window !== 'undefined' && window.location) {
@@ -916,10 +916,12 @@
916
916
  * @param {string|null} [excludeKeyFilter=null] - Exclude key filter regex (cannot use with keyName)
917
917
  * @param {string|null} [excludeTopicFilter=null] - Exclude topic filter regex (cannot use with topicName)
918
918
  * @param {string|null} [maxHistory] - Maximum history to include
919
- * @param {boolean} [includeDerived=false] - Include derived topics
919
+ * @param {boolean} [excludeDerived=false] - Exclude derived topics (derived topics are included by default)
920
+ * @param {boolean} [includeHeavy=false] - Include heavy derived topics (comprehensions, array-typed, heavy functions)
920
921
  * @param {boolean} [trimDefaultValues=false] - Trim records containing default values from the snapshot
921
922
  * @param {string|null} [workingNamespace] - Namespace for matching relative paths
922
- * @param {string|null} [restrictNamespace=false] - Restricts topics and keys to children of restrict_namespace. Defaults to the working namespace. Use "::" for root / no restriction.
923
+ * @param {string|Array<string>|null} [restrictNamespace] - Restricts topics and keys to children of these namespaces (union). Defaults to the working namespace. Use ["::"] for root / no restriction.
924
+ * @param {string|Array<string>|null} [excludeNamespace] - Excludes topics and keys from children of these namespaces (union). Defaults to 'g' unless restrictNamespace is set.
923
925
  * @param {string|null} [density] - For performance tuning
924
926
  * @param {number} [subscriptionGroup=0] - Subscription group ID for isolating callbacks
925
927
  * @param {string|null} [subscriptionSet] - Subscription set identifier
@@ -939,10 +941,12 @@
939
941
  excludeKeyFilter = null,
940
942
  excludeTopicFilter = null,
941
943
  maxHistory = null,
942
- includeDerived = false,
944
+ excludeDerived = false,
945
+ includeHeavy = false,
943
946
  trimDefaultValues = false,
944
947
  workingNamespace = null,
945
948
  restrictNamespace = null,
949
+ excludeNamespace = null,
946
950
  density = null,
947
951
  subscriptionGroup = 0,
948
952
  subscriptionSet = null,
@@ -1026,11 +1030,17 @@
1026
1030
  if (density) {
1027
1031
  valueDict.density = density;
1028
1032
  }
1029
- if (includeDerived) {
1030
- valueDict.include_derived = includeDerived;
1033
+ if (excludeDerived) {
1034
+ valueDict.exclude_derived = excludeDerived;
1035
+ }
1036
+ if (includeHeavy) {
1037
+ valueDict.include_heavy = includeHeavy;
1031
1038
  }
1032
1039
  if (restrictNamespace) {
1033
- valueDict.restrict_namespace = restrictNamespace;
1040
+ valueDict.restrict_namespace = typeof restrictNamespace === 'string' ? [restrictNamespace] : restrictNamespace;
1041
+ }
1042
+ if (excludeNamespace) {
1043
+ valueDict.exclude_namespace = typeof excludeNamespace === 'string' ? [excludeNamespace] : excludeNamespace;
1034
1044
  }
1035
1045
  if (trimDefaultValues) {
1036
1046
  valueDict.trim_default_values = trimDefaultValues;
@@ -1109,6 +1119,8 @@
1109
1119
  null,
1110
1120
  false,
1111
1121
  false,
1122
+ false,
1123
+ null,
1112
1124
  null,
1113
1125
  null,
1114
1126
  null,
@@ -1299,9 +1311,9 @@
1299
1311
  * @param {string|null} [excludeTopicFilter]
1300
1312
  * @param {Array<string>|null} [historyTypes]
1301
1313
  * @param {string|null} [workingNamespace]
1302
- * @param {string|null} [restrictNamespace]
1303
- * @param {string|null} [excludeNamespace]
1304
- * @param {boolean} [includeDerived=false]
1314
+ * @param {string|Array<string>|null} [restrictNamespace]
1315
+ * @param {string|Array<string>|null} [excludeNamespace]
1316
+ * @param {boolean} [excludeDerived=false]
1305
1317
  * @param {number} [timeout=10.0] seconds
1306
1318
  * @param {number} [subscriptionGroupServerKeys=650704]
1307
1319
  * @param {number} [subscriptionGroupServerRecords=650705]
@@ -1319,7 +1331,7 @@
1319
1331
  workingNamespace = null,
1320
1332
  restrictNamespace = null,
1321
1333
  excludeNamespace = null,
1322
- includeDerived = false,
1334
+ excludeDerived = false,
1323
1335
  timeout = 10.0,
1324
1336
  subscriptionGroupServerKeys = 650704,
1325
1337
  subscriptionGroupServerRecords = 650705,
@@ -1335,13 +1347,13 @@
1335
1347
  if (Array.isArray(topicList)) recordFilter.topic_list = topicList;
1336
1348
  if (Array.isArray(classList)) recordFilter.class_list = classList;
1337
1349
  if (workingNamespace != null) recordFilter.working_namespace = workingNamespace;
1338
- if (restrictNamespace != null) recordFilter.restrict_namespace = restrictNamespace;
1339
- if (excludeNamespace != null) recordFilter.exclude_namespace = excludeNamespace;
1350
+ if (restrictNamespace != null) recordFilter.restrict_namespace = typeof restrictNamespace === 'string' ? [restrictNamespace] : restrictNamespace;
1351
+ if (excludeNamespace != null) recordFilter.exclude_namespace = typeof excludeNamespace === 'string' ? [excludeNamespace] : excludeNamespace;
1340
1352
  if (keyFilter != null) recordFilter.key_filter_regex = keyFilter;
1341
1353
  if (excludeKeyFilter != null) recordFilter.exclude_key_filter_regex = excludeKeyFilter;
1342
1354
  if (topicFilter != null) recordFilter.topic_filter_regex = topicFilter;
1343
1355
  if (excludeTopicFilter != null) recordFilter.exclude_topic_filter_regex = excludeTopicFilter;
1344
- if (includeDerived) recordFilter.include_derived = includeDerived;
1356
+ if (excludeDerived) recordFilter.exclude_derived = excludeDerived;
1345
1357
  if (Array.isArray(historyTypes)) recordFilter.history_types = historyTypes;
1346
1358
 
1347
1359
  const resultContainer = { };
@@ -1399,11 +1411,13 @@
1399
1411
  null,
1400
1412
  null,
1401
1413
  null,
1402
- true,
1414
+ false,
1415
+ false,
1403
1416
  false,
1404
1417
  'g::deployment::Server',
1405
1418
  null,
1406
1419
  null,
1420
+ null,
1407
1421
  subscriptionGroupServerRecords,
1408
1422
  );
1409
1423
  };
@@ -1447,11 +1461,13 @@
1447
1461
  null,
1448
1462
  null,
1449
1463
  null,
1450
- true,
1464
+ false,
1465
+ false,
1451
1466
  false,
1452
1467
  'g::deployment::RecordFilter',
1453
1468
  null,
1454
1469
  null,
1470
+ null,
1455
1471
  subscriptionGroupServerKeys,
1456
1472
  );
1457
1473
 
package/gar.js CHANGED
@@ -49,7 +49,7 @@ class GARClient {
49
49
  this.scaledHeartbeatTimeoutInterval *= this.timeoutScale;
50
50
  }
51
51
  this.unique_key_and_record_updates = uniqueKeyAndRecordUpdates;
52
- this.version = 650708;
52
+ this.version = 650709;
53
53
  this.uuid = GARClient._generateUUID();
54
54
 
55
55
  if (typeof window !== 'undefined' && window.location) {
@@ -910,10 +910,12 @@ class GARClient {
910
910
  * @param {string|null} [excludeKeyFilter=null] - Exclude key filter regex (cannot use with keyName)
911
911
  * @param {string|null} [excludeTopicFilter=null] - Exclude topic filter regex (cannot use with topicName)
912
912
  * @param {string|null} [maxHistory] - Maximum history to include
913
- * @param {boolean} [includeDerived=false] - Include derived topics
913
+ * @param {boolean} [excludeDerived=false] - Exclude derived topics (derived topics are included by default)
914
+ * @param {boolean} [includeHeavy=false] - Include heavy derived topics (comprehensions, array-typed, heavy functions)
914
915
  * @param {boolean} [trimDefaultValues=false] - Trim records containing default values from the snapshot
915
916
  * @param {string|null} [workingNamespace] - Namespace for matching relative paths
916
- * @param {string|null} [restrictNamespace=false] - Restricts topics and keys to children of restrict_namespace. Defaults to the working namespace. Use "::" for root / no restriction.
917
+ * @param {string|Array<string>|null} [restrictNamespace] - Restricts topics and keys to children of these namespaces (union). Defaults to the working namespace. Use ["::"] for root / no restriction.
918
+ * @param {string|Array<string>|null} [excludeNamespace] - Excludes topics and keys from children of these namespaces (union). Defaults to 'g' unless restrictNamespace is set.
917
919
  * @param {string|null} [density] - For performance tuning
918
920
  * @param {number} [subscriptionGroup=0] - Subscription group ID for isolating callbacks
919
921
  * @param {string|null} [subscriptionSet] - Subscription set identifier
@@ -933,10 +935,12 @@ class GARClient {
933
935
  excludeKeyFilter = null,
934
936
  excludeTopicFilter = null,
935
937
  maxHistory = null,
936
- includeDerived = false,
938
+ excludeDerived = false,
939
+ includeHeavy = false,
937
940
  trimDefaultValues = false,
938
941
  workingNamespace = null,
939
942
  restrictNamespace = null,
943
+ excludeNamespace = null,
940
944
  density = null,
941
945
  subscriptionGroup = 0,
942
946
  subscriptionSet = null,
@@ -1020,11 +1024,17 @@ class GARClient {
1020
1024
  if (density) {
1021
1025
  valueDict.density = density;
1022
1026
  }
1023
- if (includeDerived) {
1024
- valueDict.include_derived = includeDerived;
1027
+ if (excludeDerived) {
1028
+ valueDict.exclude_derived = excludeDerived;
1029
+ }
1030
+ if (includeHeavy) {
1031
+ valueDict.include_heavy = includeHeavy;
1025
1032
  }
1026
1033
  if (restrictNamespace) {
1027
- valueDict.restrict_namespace = restrictNamespace;
1034
+ valueDict.restrict_namespace = typeof restrictNamespace === 'string' ? [restrictNamespace] : restrictNamespace;
1035
+ }
1036
+ if (excludeNamespace) {
1037
+ valueDict.exclude_namespace = typeof excludeNamespace === 'string' ? [excludeNamespace] : excludeNamespace;
1028
1038
  }
1029
1039
  if (trimDefaultValues) {
1030
1040
  valueDict.trim_default_values = trimDefaultValues;
@@ -1103,6 +1113,8 @@ class GARClient {
1103
1113
  null,
1104
1114
  false,
1105
1115
  false,
1116
+ false,
1117
+ null,
1106
1118
  null,
1107
1119
  null,
1108
1120
  null,
@@ -1293,9 +1305,9 @@ class GARClient {
1293
1305
  * @param {string|null} [excludeTopicFilter]
1294
1306
  * @param {Array<string>|null} [historyTypes]
1295
1307
  * @param {string|null} [workingNamespace]
1296
- * @param {string|null} [restrictNamespace]
1297
- * @param {string|null} [excludeNamespace]
1298
- * @param {boolean} [includeDerived=false]
1308
+ * @param {string|Array<string>|null} [restrictNamespace]
1309
+ * @param {string|Array<string>|null} [excludeNamespace]
1310
+ * @param {boolean} [excludeDerived=false]
1299
1311
  * @param {number} [timeout=10.0] seconds
1300
1312
  * @param {number} [subscriptionGroupServerKeys=650704]
1301
1313
  * @param {number} [subscriptionGroupServerRecords=650705]
@@ -1313,7 +1325,7 @@ class GARClient {
1313
1325
  workingNamespace = null,
1314
1326
  restrictNamespace = null,
1315
1327
  excludeNamespace = null,
1316
- includeDerived = false,
1328
+ excludeDerived = false,
1317
1329
  timeout = 10.0,
1318
1330
  subscriptionGroupServerKeys = 650704,
1319
1331
  subscriptionGroupServerRecords = 650705,
@@ -1329,13 +1341,13 @@ class GARClient {
1329
1341
  if (Array.isArray(topicList)) recordFilter.topic_list = topicList;
1330
1342
  if (Array.isArray(classList)) recordFilter.class_list = classList;
1331
1343
  if (workingNamespace != null) recordFilter.working_namespace = workingNamespace;
1332
- if (restrictNamespace != null) recordFilter.restrict_namespace = restrictNamespace;
1333
- if (excludeNamespace != null) recordFilter.exclude_namespace = excludeNamespace;
1344
+ if (restrictNamespace != null) recordFilter.restrict_namespace = typeof restrictNamespace === 'string' ? [restrictNamespace] : restrictNamespace;
1345
+ if (excludeNamespace != null) recordFilter.exclude_namespace = typeof excludeNamespace === 'string' ? [excludeNamespace] : excludeNamespace;
1334
1346
  if (keyFilter != null) recordFilter.key_filter_regex = keyFilter;
1335
1347
  if (excludeKeyFilter != null) recordFilter.exclude_key_filter_regex = excludeKeyFilter;
1336
1348
  if (topicFilter != null) recordFilter.topic_filter_regex = topicFilter;
1337
1349
  if (excludeTopicFilter != null) recordFilter.exclude_topic_filter_regex = excludeTopicFilter;
1338
- if (includeDerived) recordFilter.include_derived = includeDerived;
1350
+ if (excludeDerived) recordFilter.exclude_derived = excludeDerived;
1339
1351
  if (Array.isArray(historyTypes)) recordFilter.history_types = historyTypes;
1340
1352
 
1341
1353
  const resultContainer = { };
@@ -1393,11 +1405,13 @@ class GARClient {
1393
1405
  null,
1394
1406
  null,
1395
1407
  null,
1396
- true,
1408
+ false,
1409
+ false,
1397
1410
  false,
1398
1411
  'g::deployment::Server',
1399
1412
  null,
1400
1413
  null,
1414
+ null,
1401
1415
  subscriptionGroupServerRecords,
1402
1416
  );
1403
1417
  };
@@ -1441,11 +1455,13 @@ class GARClient {
1441
1455
  null,
1442
1456
  null,
1443
1457
  null,
1444
- true,
1458
+ false,
1459
+ false,
1445
1460
  false,
1446
1461
  'g::deployment::RecordFilter',
1447
1462
  null,
1448
1463
  null,
1464
+ null,
1449
1465
  subscriptionGroupServerKeys,
1450
1466
  );
1451
1467
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgar",
3
- "version": "4.0.5",
3
+ "version": "4.3.0",
4
4
  "description": "A Javascript client for the GAR protocol",
5
5
  "type": "module",
6
6
  "main": "dist/gar.umd.js",