@hkdigital/lib-sveltekit 0.1.72 → 0.1.73

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.
@@ -479,33 +479,36 @@ export default class IndexedDbCache {
479
479
  const db = await this.dbPromise;
480
480
  let removedCount = 0;
481
481
 
482
- // Step 1: Remove expired entries first
483
- const expiredRemoved = await this._removeExpiredEntries(
484
- this.cleanupBatchSize / 2
485
- );
486
- removedCount += expiredRemoved;
487
-
488
- // If we have a lot of expired entries, focus on those first
489
- if (expiredRemoved >= this.cleanupBatchSize / 2) {
490
- this.cleanupState.inProgress = false;
491
- this.cleanupState.lastRun = now;
492
- this.cleanupState.totalRemoved += removedCount;
493
-
494
- // Schedule next cleanup step immediately
495
- this._scheduleCleanup();
496
- return;
497
- }
498
-
499
- // Step 2: Remove old entries if we're over size/age limits
500
- const remainingBatch = this.cleanupBatchSize - expiredRemoved;
501
- if (remainingBatch > 0) {
502
- const oldRemoved = await this._removeOldEntries(remainingBatch);
503
- removedCount += oldRemoved;
504
- }
505
-
506
- // Update cleanup state
507
- this.cleanupState.lastRun = now;
508
- this.cleanupState.totalRemoved += removedCount;
482
+ //
483
+ // DISABLE UNTIL FIXED!!!
484
+ //
485
+ // // Step 1: Remove expired entries first
486
+ // const expiredRemoved = await this._removeExpiredEntries(
487
+ // this.cleanupBatchSize / 2
488
+ // );
489
+ // removedCount += expiredRemoved;
490
+
491
+ // // If we have a lot of expired entries, focus on those first
492
+ // if (expiredRemoved >= this.cleanupBatchSize / 2) {
493
+ // this.cleanupState.inProgress = false;
494
+ // this.cleanupState.lastRun = now;
495
+ // this.cleanupState.totalRemoved += removedCount;
496
+
497
+ // // Schedule next cleanup step immediately
498
+ // this._scheduleCleanup();
499
+ // return;
500
+ // }
501
+
502
+ // // Step 2: Remove old entries if we're over size/age limits
503
+ // const remainingBatch = this.cleanupBatchSize - expiredRemoved;
504
+ // if (remainingBatch > 0) {
505
+ // const oldRemoved = await this._removeOldEntries(remainingBatch);
506
+ // removedCount += oldRemoved;
507
+ // }
508
+
509
+ // // Update cleanup state
510
+ // this.cleanupState.lastRun = now;
511
+ // this.cleanupState.totalRemoved += removedCount;
509
512
 
510
513
  // If we removed entries in this batch, schedule another cleanup
511
514
  if (removedCount > 0) {
@@ -65,7 +65,7 @@ export function generateViewportBasedSpacing(values: number[]): {
65
65
  * (base, UI, or heading). Each style includes a scaled font size and
66
66
  * line height.
67
67
  *
68
- * @param {{[key: string]: TextStyleSizes}} configs
68
+ * @param {{[key: string]: TextStyleSizes}} sizes
69
69
  * Set of text sizes to generate styles for
70
70
  *
71
71
  * @param {'base' | 'ui' | 'heading'} category
@@ -94,7 +94,9 @@ export function generateViewportBasedSpacing(values: number[]): {
94
94
  * // ['calc(24px * var(--scale-text-base))', { lineHeight: 1.4 }]
95
95
  * // }
96
96
  */
97
- export function generateTextStyles(sizes: any, category: "base" | "ui" | "heading"): {
97
+ export function generateTextStyles(sizes: {
98
+ [key: string]: TextStyleSizes;
99
+ }, category: "base" | "ui" | "heading"): {
98
100
  [key: string]: [string, {
99
101
  lineHeight: number;
100
102
  }];
@@ -105,7 +105,7 @@ export function generateViewportBasedSpacing(values) {
105
105
  * (base, UI, or heading). Each style includes a scaled font size and
106
106
  * line height.
107
107
  *
108
- * @param {{[key: string]: TextStyleSizes}} configs
108
+ * @param {{[key: string]: TextStyleSizes}} sizes
109
109
  * Set of text sizes to generate styles for
110
110
  *
111
111
  * @param {'base' | 'ui' | 'heading'} category
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"