@prezly/theme-kit-core 8.0.1 → 8.0.2

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.
@@ -7,7 +7,7 @@ exports.RECORDS_LIMIT = void 0;
7
7
  exports.createSharedMemoryCache = createSharedMemoryCache;
8
8
  /* eslint-disable @typescript-eslint/no-use-before-define */
9
9
 
10
- var RECORDS_LIMIT = exports.RECORDS_LIMIT = 10000;
10
+ var RECORDS_LIMIT = exports.RECORDS_LIMIT = 1000;
11
11
  var GC_PROBABILITY = 1 / 100;
12
12
  var CACHE = new Map();
13
13
  function createSharedMemoryCache() {
@@ -1,3 +1,3 @@
1
1
  import type { Cache } from './type';
2
- export declare const RECORDS_LIMIT = 10000;
2
+ export declare const RECORDS_LIMIT = 1000;
3
3
  export declare function createSharedMemoryCache(prefix?: string): Cache;
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-use-before-define */
2
2
 
3
- export var RECORDS_LIMIT = 10000;
3
+ export var RECORDS_LIMIT = 1000;
4
4
  var GC_PROBABILITY = 1 / 100;
5
5
  var CACHE = new Map();
6
6
  export function createSharedMemoryCache() {
@@ -35,7 +35,7 @@ describe('createSharedMemoryCache', () => {
35
35
  }
36
36
 
37
37
  // Write 10% more records, 10 times to trigger CG
38
- for (var repeat = 0; repeat < 10; repeat += 1) {
38
+ for (var repeat = 0; repeat < 100; repeat += 1) {
39
39
  for (var _i2 = _memory.RECORDS_LIMIT; _i2 < _memory.RECORDS_LIMIT * 1.1; _i2 += 1) {
40
40
  cache.set("record-".concat(_i2), "value-".concat(_i2), 0);
41
41
  }
@@ -33,7 +33,7 @@ describe('createSharedMemoryCache', () => {
33
33
  }
34
34
 
35
35
  // Write 10% more records, 10 times to trigger CG
36
- for (var repeat = 0; repeat < 10; repeat += 1) {
36
+ for (var repeat = 0; repeat < 100; repeat += 1) {
37
37
  for (var _i2 = RECORDS_LIMIT; _i2 < RECORDS_LIMIT * 1.1; _i2 += 1) {
38
38
  cache.set("record-".concat(_i2), "value-".concat(_i2), 0);
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/theme-kit-core",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Data layer and utility library for developing Prezly themes with JavaScript",
5
5
  "main": "build/index.mjs",
6
6
  "types": "build/index.d.ts",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "3068afdd286035a4d0cf106ca25070114a779b25"
73
+ "gitHead": "cb10692ae9481a746c3e1b30a685518f071a0bc6"
74
74
  }