@http-forge/core 0.4.3 → 0.4.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 CHANGED
@@ -549,6 +549,14 @@ Detects Postman format by `info._postman_id` and converts all five body modes:
549
549
 
550
550
  Auth types `bearer`, `basic`, and `apikey` are converted. Pre-request and test scripts (`prerequest`/`test` events) are imported as `scripts.preRequest`/`scripts.postResponse`. Folder hierarchy and item order are preserved.
551
551
 
552
+ The whole collection is built in memory and persisted with a single `saveCollection()`
553
+ call. `FolderCollectionStore.save()` writes sibling items and each request's
554
+ independent files (body, docs, scripts, schemas) in parallel and writes each
555
+ metadata file once; fresh imports skip stale-body cleanup and schema-existence
556
+ probes. Loaders read JSON via a `readJsonFileSafe` helper that silently skips
557
+ empty or half-written files, so a watcher reloading mid-import never throws
558
+ `Unexpected end of JSON input`.
559
+
552
560
  **Export** (`exportCollection(collectionId, filePath)`):
553
561
 
554
562
  Converts back to Postman v2.1 JSON. All body types round-trip correctly: `x-www-form-urlencoded` exports as `mode: "urlencoded"`, `form-data` as `mode: "formdata"`, `graphql` as `mode: "graphql"`, and `binary` as `mode: "binary"`.