querysub 0.483.0 → 0.484.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.483.0",
3
+ "version": "0.484.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -390,6 +390,7 @@ class ValidStateComputer {
390
390
 
391
391
  for (let pathValue of valueGroup) {
392
392
  let prevValidState = prevValidStates.get(pathValue);
393
+ /* We used to log these values until 2026 June 28th 6:30 am
393
394
  if (valid && prevValidState === false) {
394
395
  console.info(`Accepting value that was previously rejected`, {
395
396
  path: pathValue.path,
@@ -411,10 +412,21 @@ class ValidStateComputer {
411
412
  timeIdFull: pathValue.time,
412
413
  });
413
414
  }
414
-
415
+ */
415
416
  // IMPORTANT! This means if it didn't previously exist and it's presently rejected, we count that as a change, as it this is going from undefined to false. This is actually very useful, as a lot of places want to know if a write is rejected, so they can display it in the UI for the developer.
416
417
  if (valid === prevValidState) continue;
417
418
 
419
+ // NOTE: We might remove this logging later as it's pretty heavy, but right now we still have bugs somewhere here.
420
+ {
421
+ console.info(`Changed valid state ${JSON.stringify(prevValidState)} to ${JSON.stringify(valid)}`, {
422
+ path: pathValue.path,
423
+ timeId: pathValue.time.time,
424
+ timeIdFull: pathValue.time,
425
+ valid,
426
+ prevValidState,
427
+ });
428
+ }
429
+
418
430
  changed.push(pathValue);
419
431
 
420
432
  // NOTE: This should be the only place we set it, and the read-only flag is only for us to prevent anyone from setting it.