@cosyte/transform 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,34 @@ its public history at `0.0.x`, per the cosyte version ladder (`0.0.x` until firs
14
14
 
15
15
  ### Fixed
16
16
 
17
+ - **The exported `VERSION` constant said `"0.0.0"` on a package published as `0.0.4`, and the
18
+ documented install smoke test told an installer to print exactly that constant**
19
+ (`VERSION-CONSTANT-DRIFT`). Measured on the released tarball, not inferred from source:
20
+ `npm pack @cosyte/transform@0.0.4` yields a `dist/index.mjs`, `dist/index.cjs`, `dist/index.d.ts`
21
+ and `dist/index.d.cts` that all carry `"0.0.0"`. It is not one bad release: **every** version ever
22
+ published (`0.0.2`, `0.0.3`, `0.0.4`) ships `"0.0.0"`, so the wrong constant is live on the registry today
23
+ and stays wrong there until the next publish. The constant's own doc comment already claimed it
24
+ was "synced with `package.json#version` by the release tooling" while no such step existed: the
25
+ `version` script ran `changeset version` alone, which rewrites `package.json` and nothing else.
26
+ The fix is structural rather than a hand-bump, because a hand-bumped constant goes stale at the
27
+ very next release. `scripts/sync-version.mjs` (ported from `terminology#12`, `67f73db`, the commit
28
+ that added it there) rewrites the declaration from `package.json` and is wired into the `version` script
29
+ immediately after `changeset version`, so the bump and the constant land in the same
30
+ "Version Packages" commit. The drift guard is `test/sanity.test.ts`, which now compares the export
31
+ against `package.json` instead of asserting shape only; it fails on the unfixed tree
32
+ (`expected '0.0.0' to be '0.0.4'`), which is how it was checked for bite. The declaration also
33
+ gains the `: string` annotation the sync script keys on, which stops the published declaration
34
+ files leaking the literal type `"0.0.0"` into consumers' types (they did — both `dist/index.d.ts`,
35
+ which `exports["."].import.types` points at, and `dist/index.d.cts`).
36
+ This is a known repeat class in the suite: `@cosyte/astm@0.0.1` and `@cosyte/terminology@0.0.1`
37
+ shipped the same defect, the latter with the same install-smoke-test amplifier.
38
+ - **`docs-content/installation.md` claimed the package was "not yet published to npm"** and that
39
+ both peers were unpublished. The package is on the registry; `@cosyte/hl7` is too. The page now
40
+ says what is actually true and keeps the two halves together, because either half alone misleads:
41
+ the package **is** published **and** it **cannot be installed from npm**, because the
42
+ `@cosyte/fhir` peer is not on the registry. Measured today:
43
+ `npm install @cosyte/transform @cosyte/hl7 @cosyte/fhir` fails with `ERESOLVE`, `Could not resolve
44
+ dependency: peer @cosyte/fhir@">=0.0.0" from @cosyte/transform@0.0.4`.
17
45
  - **The PHI scanner read a symbolic link as clean on BOTH of its enumerating routes, so a link
18
46
  under a scan root pointing at a file full of PHI passed the commit gate**
19
47
  (`PHI-SCAN-SYMLINK-BLIND-ON-BOTH-ROUTES`; port of the graded fix in `terminology#37`, `5f81640`).
package/README.md CHANGED
@@ -34,6 +34,10 @@ npm install @cosyte/transform @cosyte/hl7 @cosyte/fhir
34
34
  `@cosyte/hl7` and `@cosyte/fhir` are **peer dependencies** — the transform maps between the models
35
35
  they own. Its own third-party runtime dependencies are **zero**.
36
36
 
37
+ **That command does not work yet.** This package is published, but `@cosyte/fhir` is not on the
38
+ registry, so npm fails with `ERESOLVE` and refuses to resolve that peer. Until it publishes, consume
39
+ this package from source or a workspace link.
40
+
37
41
  ## Convert a datatype
38
42
 
39
43
  ```ts
package/dist/index.cjs CHANGED
@@ -2647,7 +2647,7 @@ function toFhir(msg, opts = {}) {
2647
2647
  }
2648
2648
 
2649
2649
  // src/index.ts
2650
- var VERSION = "0.0.0";
2650
+ var VERSION = "0.0.5";
2651
2651
 
2652
2652
  exports.ADDRESS_TYPE_MAP = ADDRESS_TYPE_MAP;
2653
2653
  exports.ADDRESS_USE_MAP = ADDRESS_USE_MAP;