@cosyte/synth 0.1.3 → 0.1.4
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 +10 -0
- package/README.md +14 -14
- package/dist/astm/index.d.cts +4 -3
- package/dist/astm/index.d.ts +4 -3
- package/dist/ccda/index.cjs.map +1 -1
- package/dist/ccda/index.d.cts +5 -4
- package/dist/ccda/index.d.ts +5 -4
- package/dist/ccda/index.mjs.map +1 -1
- package/dist/deid/index.cjs.map +1 -1
- package/dist/deid/index.d.cts +4 -3
- package/dist/deid/index.d.ts +4 -3
- package/dist/deid/index.mjs.map +1 -1
- package/dist/{example-codes-88f3_bQZ.d.cts → example-codes-4RnyF7bV.d.cts} +2 -1
- package/dist/{example-codes-88f3_bQZ.d.ts → example-codes-4RnyF7bV.d.ts} +2 -1
- package/dist/fhir/index.d.cts +4 -3
- package/dist/fhir/index.d.ts +4 -3
- package/dist/hl7/index.cjs.map +1 -1
- package/dist/hl7/index.d.cts +4 -3
- package/dist/hl7/index.d.ts +4 -3
- package/dist/hl7/index.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/ncpdp/index.d.cts +3 -2
- package/dist/ncpdp/index.d.ts +3 -2
- package/dist/{providers-DcPrqmp5.d.cts → providers-B48qUwHU.d.cts} +2 -1
- package/dist/{providers-DcPrqmp5.d.ts → providers-B48qUwHU.d.ts} +2 -1
- package/dist/{quirk-DmqYw3Vk.d.ts → quirk-BCSs1jPt.d.cts} +3 -2
- package/dist/{quirk-CilFUhwX.d.cts → quirk-BfObsiWV.d.ts} +3 -2
- package/dist/x12/index.d.cts +3 -2
- package/dist/x12/index.d.ts +3 -2
- package/package.json +29 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b6ac062: Type declarations are now bundled by tsup 9; the JavaScript is unchanged and the bytes every seed
|
|
8
|
+
produces are unchanged. Each declaration file lists its type-only exports in a separate
|
|
9
|
+
`export type` statement and the shared declaration chunks have new file names. Every subpath
|
|
10
|
+
exports the same names with the same types as before. The source maps of the `hl7`, `ccda` and
|
|
11
|
+
`deid` subpaths embed source that was reformatted, with no change to the code.
|
|
12
|
+
|
|
3
13
|
## 0.1.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -358,7 +358,7 @@ isSyntheticNpi(safe.npi(rng)); // true, always a deliberately-invalid-Luhn NPI (
|
|
|
358
358
|
fed straight back in: each artifact re-parses with zero warnings.
|
|
359
359
|
- **Deterministic**, a hand-rolled seeded PRNG (`sfc32`/`splitmix32`); `Math.random` is lint-banned.
|
|
360
360
|
A seed determines the output, byte for byte, on the same parser versions, and CI compares those
|
|
361
|
-
bytes across Node 22 and
|
|
361
|
+
bytes across Node 22, 24, and 26.
|
|
362
362
|
- **Immutable**, generated artifacts and the `Corpus` result are deep-frozen.
|
|
363
363
|
- **Zero third-party runtime dependencies**, the parser peers are first-party Cosyte packages,
|
|
364
364
|
installed from npm for the tests; dual ESM + CJS, validated with `attw`.
|
|
@@ -402,19 +402,19 @@ Typo, link, and test fixes can go straight to a pull request.
|
|
|
402
402
|
|
|
403
403
|
**What a contribution has to clear**, every one of them a script this package declares:
|
|
404
404
|
|
|
405
|
-
| check | what it is
|
|
406
|
-
| ----------------------------- |
|
|
407
|
-
| `pnpm typecheck` | `tsc --noEmit`, strict
|
|
408
|
-
| `pnpm lint` | ESLint, at `--max-warnings=0`
|
|
409
|
-
| `pnpm format:check` | Prettier
|
|
410
|
-
| `pnpm phi-scan` | no patient-shaped value anywhere in a tracked file
|
|
411
|
-
| `pnpm test` | Vitest, including the synthetic-safety suites
|
|
412
|
-
| `pnpm test:coverage` | the coverage gate
|
|
413
|
-
| `pnpm build` | the dual ESM and CJS bundle
|
|
414
|
-
| `pnpm attw` | per-condition type resolution for consumers
|
|
415
|
-
| `pnpm run determinism:digest` | the bytes each seed produces, against the baseline
|
|
416
|
-
| `pnpm check:no-emdash` | the house punctuation rule
|
|
417
|
-
| `pnpm check:no-internal-refs` | no internal bookkeeping on the public surface
|
|
405
|
+
| check | what it is |
|
|
406
|
+
| ----------------------------- | ----------------------------------------------------- |
|
|
407
|
+
| `pnpm typecheck` | `tsc --noEmit`, strict (the examples: in `pnpm test`) |
|
|
408
|
+
| `pnpm lint` | ESLint, at `--max-warnings=0` |
|
|
409
|
+
| `pnpm format:check` | Prettier |
|
|
410
|
+
| `pnpm phi-scan` | no patient-shaped value anywhere in a tracked file |
|
|
411
|
+
| `pnpm test` | Vitest, including the synthetic-safety suites |
|
|
412
|
+
| `pnpm test:coverage` | the coverage gate |
|
|
413
|
+
| `pnpm build` | the dual ESM and CJS bundle |
|
|
414
|
+
| `pnpm attw` | per-condition type resolution for consumers |
|
|
415
|
+
| `pnpm run determinism:digest` | the bytes each seed produces, against the baseline |
|
|
416
|
+
| `pnpm check:no-emdash` | the house punctuation rule |
|
|
417
|
+
| `pnpm check:no-internal-refs` | no internal bookkeeping on the public surface |
|
|
418
418
|
|
|
419
419
|
New behavior needs a test beside it, and a change a consumer would notice needs a changeset
|
|
420
420
|
(`pnpm changeset`), whose summary becomes the changelog entry. A change to the bytes a seed produces
|
package/dist/astm/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SyntheticName, Rng, Corpus } from '../index.cjs';
|
|
2
|
+
import { QuirkDescriptor, SynthProfile, QuirkArtifact, QuirkRoundTripResult } from '../index.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Spec-clean ASTM (E1394 / CLSI LIS02) message generation: the `H`/`P`/`O`/`R`/`C`/`L` record report,
|
|
@@ -415,4 +415,5 @@ interface AstmCorpusOptions {
|
|
|
415
415
|
*/
|
|
416
416
|
declare function astmCorpus(options: AstmCorpusOptions): Corpus;
|
|
417
417
|
|
|
418
|
-
export { ASTM_ABNORMAL_FLAGS, ASTM_COMMENT_TEXT, ASTM_QUIRKS, ASTM_RESULT_STATUSES,
|
|
418
|
+
export { ASTM_ABNORMAL_FLAGS, ASTM_COMMENT_TEXT, ASTM_QUIRKS, ASTM_RESULT_STATUSES, EXAMPLE_ASTM_TESTS, astmCorpus, astmFramedRoundTrip, astmHeaderIdentity, astmOrder, astmPatient, astmQuirkCorpus, astmQuirkProfile, astmQuirkRoundTrip, astmRoundTrip, generateAstmOrder, generateAstmQuirk, generateAstmResult, generateAstmResultFramed };
|
|
419
|
+
export type { AstmCorpusKind, AstmCorpusOptions, AstmExampleTest, AstmHeaderIdentity, AstmOrder, AstmPatient, AstmQuirkCorpusOptions, AstmQuirkKind, AstmQuirkName, AstmRoundTripResult, GenerateAstmOptions, GenerateAstmQuirkOptions };
|
package/dist/astm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SyntheticName, Rng, Corpus } from '../index.js';
|
|
2
|
+
import { QuirkDescriptor, SynthProfile, QuirkArtifact, QuirkRoundTripResult } from '../index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Spec-clean ASTM (E1394 / CLSI LIS02) message generation: the `H`/`P`/`O`/`R`/`C`/`L` record report,
|
|
@@ -415,4 +415,5 @@ interface AstmCorpusOptions {
|
|
|
415
415
|
*/
|
|
416
416
|
declare function astmCorpus(options: AstmCorpusOptions): Corpus;
|
|
417
417
|
|
|
418
|
-
export { ASTM_ABNORMAL_FLAGS, ASTM_COMMENT_TEXT, ASTM_QUIRKS, ASTM_RESULT_STATUSES,
|
|
418
|
+
export { ASTM_ABNORMAL_FLAGS, ASTM_COMMENT_TEXT, ASTM_QUIRKS, ASTM_RESULT_STATUSES, EXAMPLE_ASTM_TESTS, astmCorpus, astmFramedRoundTrip, astmHeaderIdentity, astmOrder, astmPatient, astmQuirkCorpus, astmQuirkProfile, astmQuirkRoundTrip, astmRoundTrip, generateAstmOrder, generateAstmQuirk, generateAstmResult, generateAstmResultFramed };
|
|
419
|
+
export type { AstmCorpusKind, AstmCorpusOptions, AstmExampleTest, AstmHeaderIdentity, AstmOrder, AstmPatient, AstmQuirkCorpusOptions, AstmQuirkKind, AstmQuirkName, AstmRoundTripResult, GenerateAstmOptions, GenerateAstmQuirkOptions };
|