Skip to content

chore(release): version packages - #143

Merged
NSchatz merged 1 commit into
mainfrom
changeset-release/main
Nov 30, 2026
Merged

NSchatz merged 1 commit into
mainfrom
changeset-release/main

Conversation

@NSchatz

@NSchatz NSchatz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@cosyte/cli@0.2.0

Minor Changes

  • c7ce5e2: cosyte now runs on the 0.2 lines of @cosyte/hl7, @cosyte/fhir and @cosyte/ccda, with @cosyte/transform 0.3 and the @cosyte/deid and @cosyte/mllp releases that accept them, so a FHIR parse warning is now { code, position: { expression } } with no severity, and every code those libraries pass through carries their prefix.

    What a caller must change: read each row of the table below against the scripts, jq filters and programs that consume cosyte output, the cosyte-mcp tool results, or parseFormat and validateFormat from the programmatic API. HL7 v2, X12, ASTM, NCPDP, DICOM and C-CDA output keeps its shape; only the codes named in the second table change.

    What changes Before After How to find it
    Each entry of warnings in cosyte parse output for a FHIR resource, in a parse --ndjson record, in the MCP parse result, and from parseFormat("fhir", ...) { "code", "severity", "expression" } { "code", "position": { "expression" } }, the shape every other format's warnings have a jq filter or a program reading .warnings[].severity or .warnings[].expression on FHIR input
    The severity of a cosyte validate finding that comes from reading a FHIR resource (not from validateResource), in the stderr line, in --json, in the MCP validate result, and from validateFormat information for some codes, such as the decimal precision warning always warning; the verdict and the exit code are unchanged, since neither severity fails it grep -rn 'information' near a check on validate output, or jq '.findings[] | select(.severity == "information")'
    A code passed through from @cosyte/hl7, in warnings[].code, findings[].code, the parenthesized code after CLI_PARSE_FAILED, and a failed record's error an unprefixed name, such as NO_MSH_SEGMENT the same name with HL7_ in front: HL7_NO_MSH_SEGMENT grep -rnE '"[A-Z][A-Z0-9]*(_[A-Z0-9]+)+"' in the code that reads HL7 v2 output
    A code passed through from @cosyte/fhir, in the same places MALFORMED_JSON, CODE_INVALID, INVARIANT_VIOLATED, DECIMAL_PRECISION_AT_RISK FHIR_MALFORMED_JSON, FHIR_CODE_INVALID, FHIR_INVARIANT_VIOLATED, FHIR_DECIMAL_PRECISION_AT_RISK the same grep, in the code that reads FHIR output
    A code passed through from @cosyte/ccda, in the same places an unprefixed name, such as NOT_WELL_FORMED_XML the same name with CCDA_ in front: CCDA_NOT_WELL_FORMED_XML the same grep, in the code that reads C-CDA output
    An MLLP stream with a start byte (VT) inside a frame, read by cosyte parse or cosyte inspect exit 0: the bytes before the second VT dropped with an MLLP_TRAILING_BYTES framing warning, and the message after it read exit 65, CLI_PARSE_FAILED with (MLLP_PAYLOAD_CONTAINS_VT): the frame is refused whole and nothing in it is read a script that expects exit 0 or a nonzero warningCount from inspect on such a stream

    Each library's own changelog lists every renamed code. The ones the cosyte docs and examples use:

    Library Before After
    @cosyte/hl7 NO_MSH_SEGMENT, MSH_TOO_SHORT, INVALID_ENCODING_CHARACTERS, EMPTY_INPUT HL7_NO_MSH_SEGMENT, HL7_MSH_TOO_SHORT, HL7_INVALID_ENCODING_CHARACTERS, HL7_EMPTY_INPUT
    @cosyte/fhir MALFORMED_JSON, CODE_INVALID, INVARIANT_VIOLATED, DECIMAL_PRECISION_AT_RISK, UNKNOWN_ELEMENT, CARDINALITY_MIN FHIR_MALFORMED_JSON, FHIR_CODE_INVALID, FHIR_INVARIANT_VIOLATED, FHIR_DECIMAL_PRECISION_AT_RISK, FHIR_UNKNOWN_ELEMENT, FHIR_CARDINALITY_MIN
    @cosyte/ccda NOT_WELL_FORMED_XML, MISSING_DOSE_QUANTITY CCDA_NOT_WELL_FORMED_XML, CCDA_MISSING_DOSE_QUANTITY
    @cosyte/mllp MLLP_TRAILING_BYTES on a VT inside a frame MLLP_PAYLOAD_CONTAINS_VT

    The CLI_* codes, the exit codes, the commands and their flags are unchanged. An install of this release takes the 0.2 lines of @cosyte/hl7, @cosyte/fhir and @cosyte/ccda and nothing older, so a project that also depends on one of them directly moves it to 0.2 in the same change.

@NSchatz
NSchatz merged commit 9bf8cba into main Nov 30, 2026
25 checks passed
@NSchatz
NSchatz deleted the changeset-release/main branch November 30, 2026 04:17
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.

1 participant