From cd2db1de95cfb40ec373531baaa123311f7c4f0e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 04:09:17 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/parsers-0-2.md | 27 --------------------------- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ docs-content/api/src.md | 2 +- docs-content/installation.md | 2 +- package.json | 2 +- src/core/version.ts | 2 +- 6 files changed, 32 insertions(+), 31 deletions(-) delete mode 100644 .changeset/parsers-0-2.md diff --git a/.changeset/parsers-0-2.md b/.changeset/parsers-0-2.md deleted file mode 100644 index baf77f6..0000000 --- a/.changeset/parsers-0-2.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -"@cosyte/cli": minor ---- - -`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. diff --git a/CHANGELOG.md b/CHANGELOG.md index 0622b89..9590e40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## 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. + ## 0.1.15 ### Patch Changes diff --git a/docs-content/api/src.md b/docs-content/api/src.md index 2ce773d..c9537aa 100644 --- a/docs-content/api/src.md +++ b/docs-content/api/src.md @@ -1054,7 +1054,7 @@ The default, safe posture: no value ever reaches a secondary surface. ### VERSION -> `const` **VERSION**: `string` = `"0.1.15"` +> `const` **VERSION**: `string` = `"0.2.0"` The `@cosyte/cli` version. On the uniform `v0.0.x-until-first-alpha` ladder. diff --git a/docs-content/installation.md b/docs-content/installation.md index 1aaa57e..8fe5f31 100644 --- a/docs-content/installation.md +++ b/docs-content/installation.md @@ -87,7 +87,7 @@ you installed, the install is good: ```ts runnable import { VERSION } from "@cosyte/cli"; -VERSION; // => "0.1.15" +VERSION; // => "0.2.0" ``` The release tooling rewrites that value at each release, and the test suite compares it with the diff --git a/package.json b/package.json index ceae7c1..3a7222e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cosyte/cli", - "version": "0.1.15", + "version": "0.2.0", "description": "The Cosyte command line for Node.js and TypeScript: one command over HL7 v2, FHIR R4, X12, ASTM, NCPDP, C-CDA, DICOM, and MLLP, with HL7 v2 to FHIR conversion from transform, code mapping from terminology, and the cosyte-mcp MCP server for agents.", "keywords": [ "cli", diff --git a/src/core/version.ts b/src/core/version.ts index 341cf4f..0b87b8d 100644 --- a/src/core/version.ts +++ b/src/core/version.ts @@ -23,4 +23,4 @@ * console.log(`cosyte ${VERSION}`); * ``` */ -export const VERSION: string = "0.1.15"; +export const VERSION: string = "0.2.0";