querysub 0.353.0 → 0.355.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.353.0",
3
+ "version": "0.355.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",
@@ -2497,7 +2497,7 @@ registerPeriodic(function logWatcherTypes() {
2497
2497
  }
2498
2498
  let sorted = sort(Array.from(counts.entries()), x => -x[1].count);
2499
2499
 
2500
- console.log(`${formatNumber(allWatchers.size)} watchers | ${formatNumber(sorted.length)} types`);
2500
+ console.log(`${formatNumber(allWatchers.size)} watchers | ${formatNumber(sorted.length)} types | remember, components have 3 watchers`);
2501
2501
  // Log the top 5
2502
2502
  for (let [type, countObj] of sorted.slice(0, 5)) {
2503
2503
  let countText = `${formatPercent(countObj.count / allWatchers.size)} (${formatNumber(countObj.count)})`;
@@ -307,6 +307,7 @@ type InlineFunction = {
307
307
  isInlineFunction?: true;
308
308
  }
309
309
  /** Used to set a flag on a function which will cause it to render inline, which means it will be evaluated immediately, the same as if you called a function.
310
+ TODO: You should be able to call this flag on the component class, and it should then set something on the prototype, so that when we see it, we immediately call the render function with the props. That way, it's much much easier to just make an existing component render inline.
310
311
  */
311
312
  export function setInlineRenderFlag(fnc: InlineFunction) {
312
313
  fnc.isInlineFunction = true;