@http-forge/core 0.2.2 → 0.2.4
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.md +14 -0
- package/dist/index.js +60 -60
- package/dist/index.mjs +60 -60
- package/dist/infrastructure/collection/collection-service.d.ts +7 -2
- package/dist/infrastructure/collection/folder-collection-loader.d.ts +1 -1
- package/dist/infrastructure/environment/environment-config-service.d.ts +12 -3
- package/dist/infrastructure/execution/collection-request-executor.d.ts +1 -1
- package/dist/types/types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- 📝 **JavaScript Scripting** - Pre-request and post-response scripts with full `pm.*` API (variables, assertions, execution flow, visualizer)
|
|
15
15
|
- 🔄 **Dynamic Variables** - Built-in generators: `{{$randomInt}}`, `{{$timestamp}}`, `{{$uuid}}`, `{{$guid}}`, etc.
|
|
16
16
|
- 🌍 **Environments** - Full variable scoping (globals, collection, environment, session, iterationData)
|
|
17
|
+
- 👁️ **File Watching** - Automatic reload on collection/environment file changes with notification callbacks
|
|
17
18
|
- 🍪 **Cookie Persistence** - Automatic cookie storage and reuse, `pm.cookies.jar()` and `.toObject()`
|
|
18
19
|
- 📊 **Test Assertions** - BDD-style testing with `pm.test()` (sync/async) and full Chai `expect()` chains
|
|
19
20
|
- 🔐 **CryptoJS** - Full crypto library: hash, HMAC, AES/DES/TripleDES, PBKDF2, encoding helpers
|
|
@@ -391,6 +392,9 @@ interface ForgeContainerOptions {
|
|
|
391
392
|
// History
|
|
392
393
|
enableHistory?: boolean; // Enable request history
|
|
393
394
|
maxHistoryEntries?: number; // Max history size
|
|
395
|
+
|
|
396
|
+
// File Watching
|
|
397
|
+
fileWatcherFactory?: IFileWatcherFactory; // Watch for collection/environment file changes
|
|
394
398
|
}
|
|
395
399
|
```
|
|
396
400
|
|
|
@@ -614,9 +618,11 @@ my-api/
|
|
|
614
618
|
requests/
|
|
615
619
|
login/
|
|
616
620
|
request.json
|
|
621
|
+
doc.md # Optional request documentation (Markdown)
|
|
617
622
|
users/
|
|
618
623
|
get-users/
|
|
619
624
|
request.json
|
|
625
|
+
doc.md
|
|
620
626
|
create-user/
|
|
621
627
|
request.json
|
|
622
628
|
```
|
|
@@ -637,6 +643,14 @@ MIT © Henry Huang
|
|
|
637
643
|
|
|
638
644
|
## 📝 Changelog
|
|
639
645
|
|
|
646
|
+
### 0.2.4 (File Watching & Request Documentation)
|
|
647
|
+
|
|
648
|
+
- ✅ **File watching for CollectionService** - Automatic reload and `onCollectionsChanged` callback when collection files change on disk
|
|
649
|
+
- ✅ **File watching for EnvironmentConfigService** - Automatic reload and `onEnvironmentsChanged` callback when environment JSON files change on disk
|
|
650
|
+
- ✅ **Request documentation (`doc.md`)** - Persist per-request Markdown documentation as `doc.md` alongside `request.json`
|
|
651
|
+
- ✅ **`doc` field on UnifiedRequest / CollectionRequest** - Optional `doc?: string` field for request documentation content
|
|
652
|
+
- ✅ **`fileWatcherFactory` bootstrap option** - Pass `IFileWatcherFactory` to enable file watching in both collection and environment services
|
|
653
|
+
|
|
640
654
|
### 0.2.0 (Postman API Parity)
|
|
641
655
|
|
|
642
656
|
- ✅ **Async `pm.test()` support** - Tests with async callbacks are properly awaited
|