@real-router/memory-plugin 0.3.1 → 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.
- package/dist/cjs/index.d.ts +11 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/esm/index.d.mts +11 -0
- package/dist/esm/index.d.mts.map +1 -1
- package/package.json +3 -3
- package/src/types.ts +11 -0
package/dist/cjs/index.d.ts
CHANGED
|
@@ -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
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -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
|
package/dist/esm/index.d.mts.map
CHANGED
|
@@ -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;
|
|
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.
|
|
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",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"homepage": "https://github.com/greydragon888/real-router",
|
|
46
46
|
"sideEffects": false,
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@real-router/core": "^0.
|
|
49
|
-
"@real-router/types": "^0.34.
|
|
48
|
+
"@real-router/core": "^0.50.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
|
|