@pixagram/lacerta-db 0.12.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/index.js +15 -9
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Production Library
2
+ * LacertaDB V0.11.1 - Production Library
3
3
  * @module LacertaDB
4
- * @version 0.12.0
4
+ * @version 0.11.1
5
5
  * @license MIT
6
6
  * @author Pixagram SA
7
7
  */
@@ -27,19 +27,25 @@ import TurboSerial from "@pixagram/turboserial";
27
27
  import TurboBase64 from "@pixagram/turbobase64";
28
28
 
29
29
  // Default TurboSerial configuration (overridable via LacertaDB constructor)
30
- // Tuned for cache/entity-store workloads: plain JSON objects, no circular refs,
31
- // no property descriptors, no internal compression (Document-level compression
32
- // is a separate opt-in via options.compressed).
30
+ //
31
+ // IMPORTANT: compression, preservePropertyDescriptors, and shareArrayBuffers
32
+ // affect the BINARY WIRE FORMAT of serialized data. Changing them breaks
33
+ // deserialization of all existing documents. Only change these if you also
34
+ // migrate all stored data.
35
+ //
36
+ // Safe to change without migration:
37
+ // detectCircular — only affects serialization behavior (throws vs infinite loop)
38
+ // memoryPoolSize — only affects memory allocation
33
39
  const TURBO_SERIAL_DEFAULTS = {
34
- compression: false,
35
- preservePropertyDescriptors: false,
40
+ compression: true,
41
+ preservePropertyDescriptors: true,
36
42
  deduplication: false,
37
43
  simdOptimization: true,
38
44
  detectCircular: false,
39
- shareArrayBuffers: false,
45
+ shareArrayBuffers: true,
40
46
  allowFunction: false,
41
47
  serializeFunctions: false,
42
- memoryPoolSize: 65536
48
+ memoryPoolSize: 65536 * 4
43
49
  };
44
50
 
45
51
  // ========================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixagram/lacerta-db",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Lacerta-DB is a Javascript IndexedDB Database for Web Browsers. Simple, Fast, Secure.",
5
5
  "devDependencies": {
6
6
  "@babel/core": "^7.23.6",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@pixagram/turbobase64": "~0.0.2",
18
- "@pixagram/turboserial": "~0.2.0"
18
+ "@pixagram/turboserial": "~0.2.1"
19
19
  },
20
20
  "build": {},
21
21
  "author": "Affolter Matias",