Repository navigation
fix(deps): take astm, dicom, ncpdp, terminology and x12 at 0.2 and keep fmt canonical - #140
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@cosyte/astm,@cosyte/dicom,@cosyte/ncpdp,@cosyte/terminologyand@cosyte/x12at^0.2.0(lockfile updated).cosyte fmtpasses{ normalize: true }to the ASTM record serializer and to the NCPDP Telecom and SCRIPT serializers, so it keeps writing the canonical form.fmtof an ASTM input with a nonstandard field delimiter writes the canonical delimiters;fmtof a Telecom input with an empty field before a segment separator writes the canonical fixture; two SCRIPT inputs that differ only in tag whitespace format alike.test/sibling-releases.test.tsfor those five packages move to 0.2.0.Why
In 0.2 the ASTM, NCPDP and DICOM serializers write a parsed message back as it was read unless asked for
{ normalize: true }.fmtexists to write the canonical form, so without the option it would silently stop normalizing. The other packages' 0.2 changes touch nothing this package calls, apart from the code strings a parse failure passes through on stderr, which the changeset lists. Exit codes andCLI_*codes do not change.Proof
normalizechange removed fromsrc/core/parsers.ts(3 failed, 61 passed intest/formats.test.ts) and pass with it.pnpm typecheck,lint,format:check,phi-scan,test:coverage(828 passed),build,attw,smoke,check:no-emdash,check:no-internal-refs,check:readme,check:claude-card,check:catalog,check:process,check:docs-content,check:docs-reference,typecheck:examples,lint:examples,examples,phi-scan:examples,test:perf.npm installof the packed tarball into an empty directory outside the repo: exit 0.Choices
fmtasks fornormalize: trueon all three NCPDP and ASTM serializer calls, SCRIPT included, because the command's documented purpose is the canonical form.parseDicomcalls keepBuffer.from(bytes): aBufferis aUint8Array, which 0.2 accepts.@cosyte/deidstill declares these three parsers as 0.1 peers, so an install gets 0.1 copies for it beside the 0.2 copies this package uses. Left as it is.