@http-forge/core 1.0.5 → 1.0.6

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.
@@ -42,6 +42,12 @@ export declare class FolderCollectionStore implements ICollectionStore {
42
42
  * one item does not re-scan the whole collection folder for every lookup.
43
43
  */
44
44
  private itemPathIndex;
45
+ /**
46
+ * Directory for serialized collection metadata caches. Lives inside the
47
+ * collections directory as `.cache/` so it is self-contained and already
48
+ * covered by the existing `.gitignore` (`.cache/`).
49
+ */
50
+ private cacheDir;
45
51
  /**
46
52
  * When true, `loadRequestFromDir` delegates to the light loader
47
53
  * (metadata only). Set only inside `loadAllLight()`; never left on.
@@ -93,6 +99,32 @@ export declare class FolderCollectionStore implements ICollectionStore {
93
99
  * Load a collection from a folder
94
100
  */
95
101
  private loadCollectionFromFolder;
102
+ /**
103
+ * Get the cache directory, creating it if needed.
104
+ */
105
+ private getCacheDir;
106
+ /**
107
+ * Get the cache file path for a collection.
108
+ */
109
+ private getCachePath;
110
+ /**
111
+ * Try to load a collection from cache. Returns undefined on miss/stale/corrupt.
112
+ * Uses collection.json's mtime as the freshness key.
113
+ */
114
+ private loadCollectionFromCache;
115
+ /**
116
+ * Collect item id → slug mappings from the in-memory tree.
117
+ */
118
+ private collectItemSlugs;
119
+ /**
120
+ * Write the collection cache asynchronously (fire-and-forget).
121
+ * Uses collection.json's mtime as the freshness key.
122
+ */
123
+ private saveCollectionToCacheAsync;
124
+ /**
125
+ * Invalidate (delete) the cache for a collection.
126
+ */
127
+ private invalidateCollectionCache;
96
128
  /**
97
129
  * Load items from a directory
98
130
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@http-forge/core",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Headless Postman-compatible API testing engine for Node.js, CI/CD, OpenAPI workflows, and HTTP Forge automation",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",