@real-router/memory-plugin 0.3.2 → 0.3.3

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,6 +7,17 @@ interface MemoryContext {
7
7
  historyIndex: number;
8
8
  }
9
9
  interface MemoryPluginOptions {
10
+ /**
11
+ * Maximum number of entries retained in the in-memory history stack.
12
+ *
13
+ * @description
14
+ * When set, the oldest entries are dropped once the stack grows past this
15
+ * length. The sentinel value `0` disables trimming (unlimited). Negatives,
16
+ * `NaN`, `±Infinity`, and fractional numbers are rejected at factory time
17
+ * with a `TypeError`.
18
+ *
19
+ * @default 1000
20
+ */
10
21
  maxHistoryLength?: number;
11
22
  }
12
23
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/types.ts","../../src/factory.ts","../../src/index.ts"],"mappings":";;;KAEY,eAAA;AAAA,UAEK,aAAA;EACf,SAAA,EAAW,eAAA;EACX,YAAA;AAAA;AAAA,UAGe,mBAAA;EACf,gBAAA;AAAA;;;iBCHc,mBAAA,CACd,OAAA,GAAS,mBAAA,GACR,aAAA;;;;YCAS,YAAA;IACR,MAAA,GAJa,aAAA;EAAA;AAAA;AAAA;EAAA,UASL,MAAA;IACR,IAAA;IACA,OAAA;IACA,EAAA,GAAK,KAAA;IACL,SAAA;IACA,YAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/types.ts","../../src/factory.ts","../../src/index.ts"],"mappings":";;;KAEY,eAAA;AAAA,UAEK,aAAA;EACf,SAAA,EAAW,eAAA;EACX,YAAA;AAAA;AAAA,UAGe,mBAAA;EAPU;AAE3B;;;;;;;;;AAKA;EAYE,gBAAA;AAAA;;;iBCdc,mBAAA,CACd,OAAA,GAAS,mBAAA,GACR,aAAA;;;;YCAS,YAAA;IACR,MAAA,GAJa,aAAA;EAAA;AAAA;AAAA;EAAA,UASL,MAAA;IACR,IAAA;IACA,OAAA;IACA,EAAA,GAAK,KAAA;IACL,SAAA;IACA,YAAA;EAAA;AAAA"}
@@ -7,6 +7,17 @@ interface MemoryContext {
7
7
  historyIndex: number;
8
8
  }
9
9
  interface MemoryPluginOptions {
10
+ /**
11
+ * Maximum number of entries retained in the in-memory history stack.
12
+ *
13
+ * @description
14
+ * When set, the oldest entries are dropped once the stack grows past this
15
+ * length. The sentinel value `0` disables trimming (unlimited). Negatives,
16
+ * `NaN`, `±Infinity`, and fractional numbers are rejected at factory time
17
+ * with a `TypeError`.
18
+ *
19
+ * @default 1000
20
+ */
10
21
  maxHistoryLength?: number;
11
22
  }
12
23
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/types.ts","../../src/factory.ts","../../src/index.ts"],"mappings":";;;KAEY,eAAA;AAAA,UAEK,aAAA;EACf,SAAA,EAAW,eAAA;EACX,YAAA;AAAA;AAAA,UAGe,mBAAA;EACf,gBAAA;AAAA;;;iBCHc,mBAAA,CACd,OAAA,GAAS,mBAAA,GACR,aAAA;;;;YCAS,YAAA;IACR,MAAA,GAJa,aAAA;EAAA;AAAA;AAAA;EAAA,UASL,MAAA;IACR,IAAA;IACA,OAAA;IACA,EAAA,GAAK,KAAA;IACL,SAAA;IACA,YAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/types.ts","../../src/factory.ts","../../src/index.ts"],"mappings":";;;KAEY,eAAA;AAAA,UAEK,aAAA;EACf,SAAA,EAAW,eAAA;EACX,YAAA;AAAA;AAAA,UAGe,mBAAA;EAPU;AAE3B;;;;;;;;;AAKA;EAYE,gBAAA;AAAA;;;iBCdc,mBAAA,CACd,OAAA,GAAS,mBAAA,GACR,aAAA;;;;YCAS,YAAA;IACR,MAAA,GAJa,aAAA;EAAA;AAAA;AAAA;EAAA,UASL,MAAA;IACR,IAAA;IACA,OAAA;IACA,EAAA,GAAK,KAAA;IACL,SAAA;IACA,YAAA;EAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/memory-plugin",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "commonjs",
5
5
  "description": "In-memory history engine for Real-Router — non-browser environments and benchmarks",
6
6
  "main": "./dist/cjs/index.js",
@@ -46,7 +46,7 @@
46
46
  "sideEffects": false,
47
47
  "dependencies": {
48
48
  "@real-router/core": "^0.50.0",
49
- "@real-router/types": "^0.34.0"
49
+ "@real-router/types": "^0.34.1"
50
50
  },
51
51
  "scripts": {
52
52
  "test": "vitest",
package/src/types.ts CHANGED
@@ -8,6 +8,17 @@ export interface MemoryContext {
8
8
  }
9
9
 
10
10
  export interface MemoryPluginOptions {
11
+ /**
12
+ * Maximum number of entries retained in the in-memory history stack.
13
+ *
14
+ * @description
15
+ * When set, the oldest entries are dropped once the stack grows past this
16
+ * length. The sentinel value `0` disables trimming (unlimited). Negatives,
17
+ * `NaN`, `±Infinity`, and fractional numbers are rejected at factory time
18
+ * with a `TypeError`.
19
+ *
20
+ * @default 1000
21
+ */
11
22
  maxHistoryLength?: number;
12
23
  }
13
24