@ubercode/dcmtk 0.16.1 → 1.0.0-rc.2
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 +2 -1
- package/dist/{DicomInstance-DGWB2mfD.d.ts → DicomInstance-BFFzieOp.d.ts} +8 -2
- package/dist/{DicomInstance-BGXtON9T.d.cts → DicomInstance-C0ntZyxC.d.cts} +8 -2
- package/dist/dicom.cjs +556 -21
- package/dist/dicom.cjs.map +1 -1
- package/dist/dicom.d.cts +2 -2
- package/dist/dicom.d.ts +2 -2
- package/dist/dicom.js +556 -22
- package/dist/dicom.js.map +1 -1
- package/dist/{index-D1msvaAt.d.cts → index-CCHr7MUH.d.cts} +1 -1
- package/dist/{index-C6dWOhHS.d.ts → index-DxjEslJ4.d.ts} +1 -1
- package/dist/index.cjs +574 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +573 -28
- package/dist/index.js.map +1 -1
- package/dist/servers.cjs +29979 -21
- package/dist/servers.cjs.map +1 -1
- package/dist/servers.d.cts +2 -2
- package/dist/servers.d.ts +2 -2
- package/dist/servers.js +29979 -22
- package/dist/servers.js.map +1 -1
- package/dist/tools.cjs +29979 -14
- package/dist/tools.cjs.map +1 -1
- package/dist/tools.d.cts +79 -2
- package/dist/tools.d.ts +79 -2
- package/dist/tools.js +29978 -16
- package/dist/tools.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @ubercode/dcmtk
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **RELEASE CANDIDATE** — the public API is frozen for 1.0. In production use. Breaking changes before
|
|
4
|
+
> 1.0 final would require a compelling reason and will be called out in the [changelog](CHANGELOG.md).
|
|
4
5
|
|
|
5
6
|
[](https://www.npmjs.com/package/@ubercode/dcmtk)
|
|
6
7
|
[](https://www.npmjs.com/package/@ubercode/dcmtk)
|
|
@@ -460,10 +460,16 @@ interface FileIOOptions {
|
|
|
460
460
|
}
|
|
461
461
|
/** Options for opening a DICOM file. Extends FileIOOptions with read-specific settings. */
|
|
462
462
|
interface DicomOpenOptions extends FileIOOptions {
|
|
463
|
-
/** Assume the specified character set when SpecificCharacterSet (0008,0005) is absent.
|
|
463
|
+
/** Assume the specified character set when SpecificCharacterSet (0008,0005) is absent. Accepts DICOM defined terms ('ISO_IR 100') or DCMTK-style aliases ('latin-1'). */
|
|
464
464
|
readonly charsetAssume?: string | undefined;
|
|
465
|
-
/** Fallback charset to
|
|
465
|
+
/** Fallback charset to decode with when the file's character set is unsupported or conversion fails. `'latin-1'` is recommended — it maps every byte 0x00-0xFF to a valid character, so decoding never fails. */
|
|
466
466
|
readonly charsetFallback?: string | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* Parse engine. `'js'` (default) parses in-process via {@link dicom2json}
|
|
469
|
+
* and automatically falls back to the DCMTK binaries when the JS parser
|
|
470
|
+
* fails; `'dcmtk'` uses the deprecated dcm2json binary path exclusively.
|
|
471
|
+
*/
|
|
472
|
+
readonly engine?: 'js' | 'dcmtk' | undefined;
|
|
467
473
|
}
|
|
468
474
|
|
|
469
475
|
/**
|
|
@@ -460,10 +460,16 @@ interface FileIOOptions {
|
|
|
460
460
|
}
|
|
461
461
|
/** Options for opening a DICOM file. Extends FileIOOptions with read-specific settings. */
|
|
462
462
|
interface DicomOpenOptions extends FileIOOptions {
|
|
463
|
-
/** Assume the specified character set when SpecificCharacterSet (0008,0005) is absent.
|
|
463
|
+
/** Assume the specified character set when SpecificCharacterSet (0008,0005) is absent. Accepts DICOM defined terms ('ISO_IR 100') or DCMTK-style aliases ('latin-1'). */
|
|
464
464
|
readonly charsetAssume?: string | undefined;
|
|
465
|
-
/** Fallback charset to
|
|
465
|
+
/** Fallback charset to decode with when the file's character set is unsupported or conversion fails. `'latin-1'` is recommended — it maps every byte 0x00-0xFF to a valid character, so decoding never fails. */
|
|
466
466
|
readonly charsetFallback?: string | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* Parse engine. `'js'` (default) parses in-process via {@link dicom2json}
|
|
469
|
+
* and automatically falls back to the DCMTK binaries when the JS parser
|
|
470
|
+
* fails; `'dcmtk'` uses the deprecated dcm2json binary path exclusively.
|
|
471
|
+
*/
|
|
472
|
+
readonly engine?: 'js' | 'dcmtk' | undefined;
|
|
467
473
|
}
|
|
468
474
|
|
|
469
475
|
/**
|