@wcstack/state 1.29.0 → 1.31.0
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/README.ja.md +142 -0
- package/README.md +142 -0
- package/dist/auto.min.js +1 -1
- package/dist/auto.min.js.map +1 -1
- package/dist/index.d.ts +50 -2
- package/dist/index.esm.js +466 -73
- package/dist/index.esm.js.map +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/parser.esm.js +6 -1
- package/package.json +1 -1
package/dist/parser.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ declare function getPathInfo(path: string): IPathInfo;
|
|
|
101
101
|
*/
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* このエントリの内部キャッシュ(PathInfo intern
|
|
104
|
+
* このエントリの内部キャッシュ(PathInfo intern・propPart/statePart のパース結果・フィルタ関数クロージャ)を全て捨てる。
|
|
105
105
|
*
|
|
106
106
|
* 言語サーバー等の**長時間プロセス専用**。編集中の中間パス(`user.n` 等)が
|
|
107
107
|
* 無制限キャッシュに恒久 intern されてメモリが単調増加するため、ドキュメント
|
package/dist/parser.esm.js
CHANGED
|
@@ -1231,6 +1231,10 @@ function parseFilterArgs(argsText) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
1233
|
const filterFnByKey = new Map();
|
|
1234
|
+
/** tooling 専用(parser.ts の clearParserCaches からのみ呼ぶ)。 */
|
|
1235
|
+
function clearFilterFnCacheForTooling() {
|
|
1236
|
+
filterFnByKey.clear();
|
|
1237
|
+
}
|
|
1234
1238
|
// format: filterName(arg1,arg2) or filterName
|
|
1235
1239
|
function parseFilters(filterTextList, filterIOType) {
|
|
1236
1240
|
const builtinFilters = builtinFiltersByFilterIOType[filterIOType];
|
|
@@ -1510,7 +1514,7 @@ function parseBindTextForEmbeddedNode(bindText) {
|
|
|
1510
1514
|
* (devtools の declared 正本化)は state 自身が pull API で答える。
|
|
1511
1515
|
*/
|
|
1512
1516
|
/**
|
|
1513
|
-
* このエントリの内部キャッシュ(PathInfo intern
|
|
1517
|
+
* このエントリの内部キャッシュ(PathInfo intern・propPart/statePart のパース結果・フィルタ関数クロージャ)を全て捨てる。
|
|
1514
1518
|
*
|
|
1515
1519
|
* 言語サーバー等の**長時間プロセス専用**。編集中の中間パス(`user.n` 等)が
|
|
1516
1520
|
* 無制限キャッシュに恒久 intern されてメモリが単調増加するため、ドキュメント
|
|
@@ -1522,6 +1526,7 @@ function clearParserCaches() {
|
|
|
1522
1526
|
clearPathInfoCacheForTooling();
|
|
1523
1527
|
clearPropPartCacheForTooling();
|
|
1524
1528
|
clearStatePartCacheForTooling();
|
|
1529
|
+
clearFilterFnCacheForTooling();
|
|
1525
1530
|
}
|
|
1526
1531
|
|
|
1527
1532
|
export { clearParserCaches, getPathInfo, parseBindTextForEmbeddedNode, parseBindTextsForElement };
|
package/package.json
CHANGED