diff --git a/docs/development/itk_js_to_itk_wasm_migration_guide.md b/docs/development/itk_js_to_itk_wasm_migration_guide.md index dd1a5c6d6..2bb0f739f 100644 --- a/docs/development/itk_js_to_itk_wasm_migration_guide.md +++ b/docs/development/itk_js_to_itk_wasm_migration_guide.md @@ -100,17 +100,17 @@ The following DICOM image IO functions have been migrated to the `@itk-wasm/dico The following image and mesh IO functions have been migrated to the `@itk-wasm/image-io` and `@itk-wasm/mesh-io` package. Their interface changed in some cases. -1. `readImageArrayBuffer` -> `readImageFile` -2. `readImageBlob` -> `readImageFile` +1. `readImageArrayBuffer` -> `readImage` +2. `readImageBlob` -> `readImage` 3. `readImageFileSeries` -> `readImageFileSeries` 4. `readImageHTTP` -> `readImageHttp` 5. `readImageLocalFile` -> `readImageNode` -6. `readMeshArrayBuffer` -> `readMeshFile` -7. `readMeshBlob` -> `readMeshFile` +6. `readMeshArrayBuffer` -> `readMesh` +7. `readMeshBlob` -> `readMesh` 8. `readMeshLocalFile` -> `readMeshNode` -9. `writeImageArrayBuffer` -> `writeImageFile` -10. `writeImageLocalFile` -> `writeImageFileNode` -11. `writeMeshArrayBuffer` -> `writeMeshFile` +9. `writeImageArrayBuffer` -> `writeImage` +10. `writeImageLocalFile` -> `writeImageNode` +11. `writeMeshArrayBuffer` -> `writeMesh` 12. `writeMeshLocalFile` -> `writeMeshNode` ### MeshToPolyData @@ -189,4 +189,4 @@ The `useCompression` argument is now last in `writeArrayBuffer`, `writeImageArra ## runPipeline -`runPipelineBrowser` was renamed to `runPipeline`. \ No newline at end of file +`runPipelineBrowser` was renamed to `runPipeline`. diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-image-array-buffer.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-image-array-buffer.ts index cfa423c13..37b5627ba 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-image-array-buffer.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-image-array-buffer.ts @@ -7,7 +7,7 @@ import ReadImageArrayBufferOptions from './read-image-array-buffer-options.js' * @deprecated Use readImageArrayBuffer from @itk-wasm/image-io instead */ async function readImageArrayBuffer (webWorker: Worker | null, arrayBuffer: ArrayBuffer, fileName: string, options?: ReadImageArrayBufferOptions | string): Promise { - throw new Error('readImageArrayBuffer is deprecated. Use readImageFile from @itk-wasm/image-io instead.') + throw new Error('readImageArrayBuffer is deprecated. Use readImage from @itk-wasm/image-io instead.') } export default readImageArrayBuffer diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-image-blob.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-image-blob.ts index daa43d1ec..e4cdc3b3d 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-image-blob.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-image-blob.ts @@ -7,7 +7,7 @@ import ReadImageArrayBufferOptions from './read-image-array-buffer-options.js' * @deprecated Use readImageBlob from @itk-wasm/image-io instead */ async function readImageBlob (webWorker: Worker | null, blob: Blob, fileName: string, options?: ReadImageArrayBufferOptions | string): Promise { - throw new Error('readImageBlob is deprecated. Use readImageFile from @itk-wasm/image-io instead.') + throw new Error('readImageBlob is deprecated. Use readImage from @itk-wasm/image-io instead.') } export default readImageBlob diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-image-file.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-image-file.ts index 47fc1844f..570edb414 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-image-file.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-image-file.ts @@ -5,10 +5,10 @@ import ReadImageResult from './read-image-result.js' import CastImageOptions from '../cast-image-options.js' /** - * @deprecated Use readImageFile from @itk-wasm/image-io instead + * @deprecated Use readImage from @itk-wasm/image-io instead */ async function readImageFile (webWorker: Worker | null, file: File, options?: CastImageOptions): Promise { - throw new Error('readImageFile is deprecated. Use readImageFile from @itk-wasm/image-io instead.') + throw new Error('readImageFile is deprecated. Use readImage from @itk-wasm/image-io instead.') } export default readImageFile diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-image-local-file.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-image-local-file.ts index 07ee1b958..3b93c76da 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-image-local-file.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-image-local-file.ts @@ -5,10 +5,10 @@ import Image from '../interface-types/image.js' import CastImageOptions from '../cast-image-options.js' /** - * @deprecated Use readImageFileNode from @itk-wasm/image-io instead + * @deprecated Use readImageNode from @itk-wasm/image-io instead */ async function readImageLocalFile (filePath: string, options?: CastImageOptions): Promise { - throw new Error('readImageLocalFile is deprecated. Use readImageFileNode from @itk-wasm/image-io instead.') + throw new Error('readImageLocalFile is deprecated. Use readImageNode from @itk-wasm/image-io instead.') } export default readImageLocalFile diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-array-buffer.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-array-buffer.ts index 85a6890dd..eed565a9f 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-array-buffer.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-array-buffer.ts @@ -6,7 +6,7 @@ import ReadMeshResult from './read-mesh-result.js' * @deprecated Use readMeshArrayBuffer from @itk-wasm/image-io instead */ async function readMeshArrayBuffer (webWorker: Worker | null, arrayBuffer: ArrayBuffer, fileName: string, mimeType: string): Promise { - throw new Error('readMeshArrayBuffer is deprecated. Use readMeshFile from @itk-wasm/mesh-io instead.') + throw new Error('readMeshArrayBuffer is deprecated. Use readMesh from @itk-wasm/mesh-io instead.') } export default readMeshArrayBuffer diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-blob.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-blob.ts index ea5622d02..87da9da06 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-blob.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-blob.ts @@ -6,7 +6,7 @@ import ReadMeshResult from './read-mesh-result.js' * @deprecated Use readMeshBlob from @itk-wasm/mesh-io instead */ async function readMeshBlob (webWorker: Worker | null, blob: Blob, fileName: string, mimeType: string): Promise { - throw new Error('readMeshBlob is deprecated. Use readMeshFile from @itk-wasm/mesh-io instead.') + throw new Error('readMeshBlob is deprecated. Use readMesh from @itk-wasm/mesh-io instead.') } export default readMeshBlob diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-file.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-file.ts index a1659392d..06f6732cd 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-file.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-file.ts @@ -3,10 +3,10 @@ import ReadMeshResult from './read-mesh-result.js' /** - * @deprecated Use readMeshFile from @itk-wasm/mesh-io instead + * @deprecated Use readMesh from @itk-wasm/mesh-io instead */ async function readMeshFile (webWorker: Worker | null, file: File): Promise { - throw new Error('readMeshFile is deprecated. Use readMeshFile from @itk-wasm/mesh-io instead.') + throw new Error('readMeshFile is deprecated. Use readMesh from @itk-wasm/mesh-io instead.') } export default readMeshFile diff --git a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-local-file.ts b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-local-file.ts index d3601b961..302ec1727 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-local-file.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/read-mesh-local-file.ts @@ -3,10 +3,10 @@ import Mesh from '../interface-types/mesh.js' /** - * @deprecated Use readMeshFileNode from @itk-wasm/mesh-io instead + * @deprecated Use readMeshNode from @itk-wasm/mesh-io instead */ async function readMeshLocalFile (filePath: string): Promise { - throw new Error('readMeshLocalFile is deprecated. Use readMeshFileNode from @itk-wasm/mesh-io instead.') + throw new Error('readMeshLocalFile is deprecated. Use readMeshNode from @itk-wasm/mesh-io instead.') } export default readMeshLocalFile diff --git a/packages/core/typescript/itk-wasm/src/deprecated/write-image-array-buffer.ts b/packages/core/typescript/itk-wasm/src/deprecated/write-image-array-buffer.ts index 638e17032..429815076 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/write-image-array-buffer.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/write-image-array-buffer.ts @@ -6,11 +6,11 @@ import WriteImageOptions from './write-image-options.js' import WriteArrayBufferResult from './write-array-buffer-result.js' /** - * @deprecated Use writeImageFile from @itk-wasm/image-io instead + * @deprecated Use writeImage from @itk-wasm/image-io instead */ async function writeImageArrayBuffer (webWorker: Worker | null, image: Image, fileName: string, options?: WriteImageOptions | string, useCompressionBackwardsCompatibility?: boolean ): Promise { - throw new Error('writeImageArrayBuffer is deprecated. Use writeImageFile from @itk-wasm/image-io instead.') + throw new Error('writeImageArrayBuffer is deprecated. Use writeImage from @itk-wasm/image-io instead.') } export default writeImageArrayBuffer diff --git a/packages/core/typescript/itk-wasm/src/deprecated/write-image-local-file.ts b/packages/core/typescript/itk-wasm/src/deprecated/write-image-local-file.ts index 9362cea26..a373e31af 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/write-image-local-file.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/write-image-local-file.ts @@ -5,11 +5,11 @@ import WriteImageOptions from './write-image-options.js' import Image from '../interface-types/image.js' /** - * @deprecated Use writeImageFileNode from @itk-wasm/image-io instead + * @deprecated Use writeImageNode from @itk-wasm/image-io instead */ async function writeImageLocalFile (image: Image, filePath: string, options?: WriteImageOptions | boolean ): Promise { - throw new Error('writeImageLocalFile is deprecated. Use writeImageFileNode from @itk-wasm/image-io instead.') + throw new Error('writeImageLocalFile is deprecated. Use writeImageNode from @itk-wasm/image-io instead.') } export default writeImageLocalFile diff --git a/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-array-buffer.ts b/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-array-buffer.ts index 166cdb7bb..a89377c41 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-array-buffer.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-array-buffer.ts @@ -6,10 +6,10 @@ import WriteArrayBufferResult from './write-array-buffer-result.js' import WriteMeshOptions from './write-mesh-options.js' /** - * @deprecated Use writeMeshFile from @itk-wasm/mesh-io instead + * @deprecated Use writeMesh from @itk-wasm/mesh-io instead */ async function writeMeshArrayBuffer (webWorker: Worker | null, mesh: Mesh, fileName: string, mimeType: string, options: WriteMeshOptions): Promise { - throw new Error('writeMeshArrayBuffer is deprecated. Use writeMeshFile from @itk-wasm/mesh-io instead.') + throw new Error('writeMeshArrayBuffer is deprecated. Use writeMesh from @itk-wasm/mesh-io instead.') } export default writeMeshArrayBuffer diff --git a/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-local-file.ts b/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-local-file.ts index d8efdc490..f1f744ab0 100644 --- a/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-local-file.ts +++ b/packages/core/typescript/itk-wasm/src/deprecated/write-mesh-local-file.ts @@ -5,10 +5,10 @@ import WriteMeshOptions from './write-mesh-options.js' import Mesh from '../interface-types/mesh.js' /** - * @deprecated Use writeMeshFileNode from @itk-wasm/mesh-io instead + * @deprecated Use writeMeshNode from @itk-wasm/mesh-io instead */ async function writeMeshLocalFile (mesh: Mesh, filePath: string, options: WriteMeshOptions): Promise { - throw new Error('writeMeshLocalFile is deprecated. Use writeMeshFileNode from @itk-wasm/mesh-io instead.') + throw new Error('writeMeshLocalFile is deprecated. Use writeMeshNode from @itk-wasm/mesh-io instead.') } export default writeMeshLocalFile