vivth 1.5.5 → 1.5.7

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/README.md CHANGED
@@ -4722,7 +4722,7 @@ Console.log(
4722
4722
  * @param {string} [options.copyright]
4723
4723
  * @param {string} [options.tableOfContentTitle]
4724
4724
  * @param {number} [options.maxDebounceForGeneratingDocAndExport]
4725
- * - default `10_000`;
4725
+ * - default `1_000`;
4726
4726
  * @param {import('chokidar').ChokidarOptions} [options.chokidarOptions]
4727
4727
  * - ChokidarOptions;
4728
4728
  * @param {import('../typehints/AutoDocASOptions.mjs').AutoDocASOptions} [options.assemblyScriptOptions]
@@ -6229,7 +6229,6 @@ const esWatcherInstance = this.registerObjectWithAutoCleanup(
6229
6229
 
6230
6230
  ````js
6231
6231
  /**
6232
- * @preserve
6233
6232
  * @description
6234
6233
  * - extract unique string from ArrayString[];
6235
6234
  * - Takes an array/tuple type and returns a unique UNION of its elements.
@@ -6366,7 +6365,6 @@ const esWatcherInstance = this.registerObjectWithAutoCleanup(
6366
6365
 
6367
6366
  ```js
6368
6367
  /**
6369
- * @preserve
6370
6368
  * @description
6371
6369
  * - type helper to create decorator;
6372
6370
  * >- matches argument with host method;
@@ -6386,7 +6384,6 @@ const esWatcherInstance = this.registerObjectWithAutoCleanup(
6386
6384
 
6387
6385
  ```js
6388
6386
  /**
6389
- * @preserve
6390
6387
  * @description
6391
6388
  * - type helper to create decorator for monkeypatching class/instance method;
6392
6389
  * >- matches argument with host method;
@@ -6541,7 +6538,6 @@ const esWatcherInstance = this.registerObjectWithAutoCleanup(
6541
6538
 
6542
6539
  ```js
6543
6540
  /**
6544
- * @preserve
6545
6541
  * @description
6546
6542
  * - Drop the first N parameters from METHOD and return the rest;
6547
6543
  * @template {(...args: any[]) => any} METHOD
@@ -7105,7 +7101,6 @@ text.nodeValue = "hello world";
7105
7101
 
7106
7102
  ```js
7107
7103
  /**
7108
- * @preserve
7109
7104
  * @description
7110
7105
  * Validates whether a string follows the strict custom-element layout:
7111
7106
  * - Must contain a hyphen (-)
@@ -7126,7 +7121,6 @@ text.nodeValue = "hello world";
7126
7121
 
7127
7122
  ```js
7128
7123
  /**
7129
- * @preserve
7130
7124
  * @template {string} T
7131
7125
  * @typedef {import('../../../src/web/EnsureValidTag.mts').EnsureValidTag<T>} EnsureValidTag
7132
7126
  */
@@ -75,7 +75,7 @@ export class JSautoDOC implements VivthCleanup {
75
75
  * @param {string} [options.copyright]
76
76
  * @param {string} [options.tableOfContentTitle]
77
77
  * @param {number} [options.maxDebounceForGeneratingDocAndExport]
78
- * - default `10_000`;
78
+ * - default `1_000`;
79
79
  * @param {import('chokidar').ChokidarOptions} [options.chokidarOptions]
80
80
  * - ChokidarOptions;
81
81
  * @param {import('../typehints/AutoDocASOptions.mjs').AutoDocASOptions} [options.assemblyScriptOptions]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vivth",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "description": "library primitives",
5
5
  "devDependencies": {
6
6
  "@types/bun": "^1.3.3",
@@ -41,7 +41,7 @@ export class Derived extends Signal {
41
41
  *
42
42
  * count.value++;
43
43
  */
44
- constructor(derivedFunction, maxTimelapseBeingDebounced = undefined) {
44
+ constructor(derivedFunction, maxTimelapseBeingDebounced = 2_000) {
45
45
  super(undefined);
46
46
  new Effect(async (options) => {
47
47
  const currentValue = await derivedFunction(
@@ -106,7 +106,7 @@ export class JSautoDOC {
106
106
  * @param {string} [options.copyright]
107
107
  * @param {string} [options.tableOfContentTitle]
108
108
  * @param {number} [options.maxDebounceForGeneratingDocAndExport]
109
- * - default `10_000`;
109
+ * - default `1_000`;
110
110
  * @param {import('chokidar').ChokidarOptions} [options.chokidarOptions]
111
111
  * - ChokidarOptions;
112
112
  * @param {import('../typehints/AutoDocASOptions.mjs').AutoDocASOptions} [options.assemblyScriptOptions]
@@ -148,7 +148,7 @@ export class JSautoDOC {
148
148
  onLastGeneratedCallback = undefined,
149
149
  tableOfContentTitle = 'exported-api-and-type-list',
150
150
  copyright = '',
151
- maxDebounceForGeneratingDocAndExport = 10_000,
151
+ maxDebounceForGeneratingDocAndExport = 1_000,
152
152
  assemblyScriptOptions = undefined,
153
153
  chokidarOptions = undefined,
154
154
  jstsconfigs = undefined,
@@ -20,7 +20,9 @@ export const cleanPreserveTypedef = (sourceCode) => {
20
20
 
21
21
  return sourceCode.replace(jsDocRegex, (fullMatch, commentContent) => {
22
22
  if (commentContent.includes('@preserve')) {
23
- return fullMatch.replace(/@\[blank\]typedef/gi, '@typedef');
23
+ return fullMatch
24
+ .replace(/@\[blank\]typedef/gi, '@typedef')
25
+ .replace(/\s+\*\s*\@preserve/g, '');
24
26
  }
25
27
  return fullMatch;
26
28
  });
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @preserve
3
2
  * @description
4
3
  * - extract unique string from ArrayString[];
5
4
  * - Takes an array/tuple type and returns a unique UNION of its elements.
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @preserve
3
2
  * @description
4
3
  * - type helper to create decorator;
5
4
  * >- matches argument with host method;
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @preserve
3
2
  * @description
4
3
  * - type helper to create decorator for monkeypatching class/instance method;
5
4
  * >- matches argument with host method;
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @preserve
3
2
  * @description
4
3
  * - Drop the first N parameters from METHOD and return the rest;
5
4
  * @template {(...args: any[]) => any} METHOD
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @preserve
3
2
  * @template {string} T
4
3
  * @typedef {import('./EnsureValidTag.mts').EnsureValidTag<T>} EnsureValidTag
5
4
  */
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @preserve
3
2
  * @description
4
3
  * Validates whether a string follows the strict custom-element layout:
5
4
  * - Must contain a hyphen (-)