dicom-curate 0.35.0 → 0.36.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.md CHANGED
@@ -113,6 +113,31 @@ It is also possible to use S3-compatible buckets as input or output locations.
113
113
  Consult `OrganizeOptions` for further details. Please note that this feature is only
114
114
  available if you have the `@aws-sdk/client-s3` package installed.
115
115
 
116
+ ### Matching S3 ETags across uploaders
117
+
118
+ When uploading to S3, you can set `uploadPartSize` on the output S3
119
+ options to control the ETag S3 assigns to the written object:
120
+
121
+ ```ts
122
+ const options: OrganizeOptions = {
123
+ // other options are skipped
124
+ outputEndpoint: {
125
+ bucketName: 'my-bucket',
126
+ region: 'us-east-1',
127
+ // Bodies <= 5 MB: single PUT, S3 returns a plain-MD5 ETag.
128
+ // Bodies > 5 MB: multipart, S3 returns a composite "<md5>-<N>" ETag.
129
+ uploadPartSize: 5 * 1024 * 1024,
130
+ },
131
+ }
132
+ ```
133
+
134
+ This matches the ETag convention produced by any S3 client that uses
135
+ `@aws-sdk/lib-storage` at the same `partSize`, making cross-bucket
136
+ "equal bytes ⇒ equal ETag" comparisons well-defined.
137
+
138
+ When `uploadPartSize` is omitted, all uploads go through a single PUT
139
+ regardless of body size and S3 always returns a plain-MD5 ETag.
140
+
116
141
  This library can now automatically skip writing (or uploading) mapped files if the provided
117
142
  "previous" input file attributes match the record you pass in the `fileInfoIndex` property:
118
143