Skip to content

fix(itk-wasm): spell TimeVaryingVelocityField parameterizations with the y - #1592

Merged
thewtex merged 1 commit into
InsightSoftwareConsortium:mainfrom
vboussot:fix/transform-parameterizations-spelling
Aug 25, 2026
Merged

fix(itk-wasm): spell TimeVaryingVelocityField parameterizations with the y#1592
thewtex merged 1 commit into
InsightSoftwareConsortium:mainfrom
vboussot:fix/transform-parameterizations-spelling

Conversation

@vboussot

Copy link
Copy Markdown
Collaborator

The TransformParameterizations table in packages/core/typescript/itk-wasm/src/interface-types/transform-parameterizations.ts spelled two entries TimeVaringVelocityField and GaussianSmoothingOnUpdateTimeVaringVelocityField, both as key and as value. Everywhere else the name carries the y: JSONTransformParameterizationEnum in include/itkTransformJSON.h, the C++ class names the serializer matches on (TimeVaryingVelocityFieldTransform, GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform), and the Python itkwasm.TransformParameterizations enum. A TypeScript consumer comparing transformParameterization against any of those never matched these two entries.

This corrects the four spellings and adds test/node/interface-types/transform-parameterizations-test.js, which checks that every value is its own key and that the two time-varying entries match the ITK class names.

The C++ side never emitted the misspelled strings (it writes from the enum in itkTransformJSON.h), so no reader needs to accept the old spelling. The two keys change name in the TypeScript API for callers that referenced TransformParameterizations.TimeVaringVelocityField directly.

Verified locally: tsc build, ava on the new test and transform-type-test.js (6 passed), standard and ts-standard clean.

Closes #1591

…the y

The TransformParameterizations table spelled two entries
TimeVaringVelocityField and GaussianSmoothingOnUpdateTimeVaringVelocityField,
both as key and as value. Everywhere else the name carries the y: the
JSONTransformParameterizationEnum in itkTransformJSON.h, the C++ class names
the serializer matches on, and the Python itkwasm TransformParameterizations
enum. A TypeScript consumer comparing transformParameterization against any
of those never matched these two entries.

Correct the four spellings and add a test that every value is its own key
and that the two time-varying entries match the ITK class names.

Closes InsightSoftwareConsortium#1591
@thewtex
thewtex merged commit 89122ba into InsightSoftwareConsortium:main Aug 25, 2026
67 of 74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TransformParameterizations spells two entries TimeVaringVelocityField, missing the y

2 participants