@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 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 24.
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, over the source and the examples |
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
@@ -1,5 +1,5 @@
1
- import { S as SyntheticName, R as Rng, C as Corpus } from '../providers-DcPrqmp5.cjs';
2
- import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as QuirkRoundTripResult } from '../quirk-CilFUhwX.cjs';
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, type AstmCorpusKind, type AstmCorpusOptions, type AstmExampleTest, type AstmHeaderIdentity, type AstmOrder, type AstmPatient, type AstmQuirkCorpusOptions, type AstmQuirkKind, type AstmQuirkName, type AstmRoundTripResult, EXAMPLE_ASTM_TESTS, type GenerateAstmOptions, type GenerateAstmQuirkOptions, astmCorpus, astmFramedRoundTrip, astmHeaderIdentity, astmOrder, astmPatient, astmQuirkCorpus, astmQuirkProfile, astmQuirkRoundTrip, astmRoundTrip, generateAstmOrder, generateAstmQuirk, generateAstmResult, generateAstmResultFramed };
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 };
@@ -1,5 +1,5 @@
1
- import { S as SyntheticName, R as Rng, C as Corpus } from '../providers-DcPrqmp5.js';
2
- import { Q as QuirkDescriptor, S as SynthProfile, a as QuirkArtifact, b as QuirkRoundTripResult } from '../quirk-DmqYw3Vk.js';
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, type AstmCorpusKind, type AstmCorpusOptions, type AstmExampleTest, type AstmHeaderIdentity, type AstmOrder, type AstmPatient, type AstmQuirkCorpusOptions, type AstmQuirkKind, type AstmQuirkName, type AstmRoundTripResult, EXAMPLE_ASTM_TESTS, type GenerateAstmOptions, type GenerateAstmQuirkOptions, astmCorpus, astmFramedRoundTrip, astmHeaderIdentity, astmOrder, astmPatient, astmQuirkCorpus, astmQuirkProfile, astmQuirkRoundTrip, astmRoundTrip, generateAstmOrder, generateAstmQuirk, generateAstmResult, generateAstmResultFramed };
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 };