@cosyte/synth 0.1.3 → 0.1.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +28 -24
  3. package/dist/astm/index.cjs +109 -84
  4. package/dist/astm/index.cjs.map +1 -1
  5. package/dist/astm/index.d.cts +4 -3
  6. package/dist/astm/index.d.ts +4 -3
  7. package/dist/astm/index.mjs +109 -84
  8. package/dist/astm/index.mjs.map +1 -1
  9. package/dist/ccda/index.cjs +24 -2
  10. package/dist/ccda/index.cjs.map +1 -1
  11. package/dist/ccda/index.d.cts +5 -4
  12. package/dist/ccda/index.d.ts +5 -4
  13. package/dist/ccda/index.mjs +24 -2
  14. package/dist/ccda/index.mjs.map +1 -1
  15. package/dist/deid/index.cjs +98 -47
  16. package/dist/deid/index.cjs.map +1 -1
  17. package/dist/deid/index.d.cts +4 -3
  18. package/dist/deid/index.d.ts +4 -3
  19. package/dist/deid/index.mjs +98 -47
  20. package/dist/deid/index.mjs.map +1 -1
  21. package/dist/{example-codes-88f3_bQZ.d.cts → example-codes-4RnyF7bV.d.cts} +2 -1
  22. package/dist/{example-codes-88f3_bQZ.d.ts → example-codes-4RnyF7bV.d.ts} +2 -1
  23. package/dist/fhir/index.cjs +33 -2
  24. package/dist/fhir/index.cjs.map +1 -1
  25. package/dist/fhir/index.d.cts +4 -3
  26. package/dist/fhir/index.d.ts +4 -3
  27. package/dist/fhir/index.mjs +33 -2
  28. package/dist/fhir/index.mjs.map +1 -1
  29. package/dist/hl7/index.cjs +33 -3
  30. package/dist/hl7/index.cjs.map +1 -1
  31. package/dist/hl7/index.d.cts +4 -3
  32. package/dist/hl7/index.d.ts +4 -3
  33. package/dist/hl7/index.mjs +33 -3
  34. package/dist/hl7/index.mjs.map +1 -1
  35. package/dist/index.cjs +3 -3
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +13 -8
  38. package/dist/index.d.ts +13 -8
  39. package/dist/index.mjs +3 -3
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/ncpdp/index.cjs +57 -14
  42. package/dist/ncpdp/index.cjs.map +1 -1
  43. package/dist/ncpdp/index.d.cts +3 -2
  44. package/dist/ncpdp/index.d.ts +3 -2
  45. package/dist/ncpdp/index.mjs +57 -14
  46. package/dist/ncpdp/index.mjs.map +1 -1
  47. package/dist/{providers-DcPrqmp5.d.cts → providers-B48qUwHU.d.cts} +2 -1
  48. package/dist/{providers-DcPrqmp5.d.ts → providers-B48qUwHU.d.ts} +2 -1
  49. package/dist/{quirk-DmqYw3Vk.d.ts → quirk-BCSs1jPt.d.cts} +3 -2
  50. package/dist/{quirk-CilFUhwX.d.cts → quirk-BfObsiWV.d.ts} +3 -2
  51. package/dist/x12/index.cjs +82 -33
  52. package/dist/x12/index.cjs.map +1 -1
  53. package/dist/x12/index.d.cts +3 -2
  54. package/dist/x12/index.d.ts +3 -2
  55. package/dist/x12/index.mjs +82 -33
  56. package/dist/x12/index.mjs.map +1 -1
  57. package/package.json +29 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosyte/synth",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Deterministic, seedable synthetic healthcare test fixtures for Node.js and TypeScript: HL7 v2, FHIR R4 and US Core, C-CDA, X12, NCPDP, and ASTM, spec-clean by construction and never real PHI.",
5
5
  "keywords": [
6
6
  "synth",
@@ -166,40 +166,39 @@
166
166
  "pre-commit": "pnpm phi-scan --staged"
167
167
  },
168
168
  "devDependencies": {
169
- "@arethetypeswrong/cli": "0.18.4",
169
+ "@arethetypeswrong/cli": "0.18.5",
170
170
  "@changesets/cli": "2.31.0",
171
171
  "@cosyte/astm": "^0.1.1",
172
172
  "@cosyte/ccda": "^0.1.1",
173
173
  "@cosyte/deid": "^0.1.1",
174
- "@cosyte/eslint-config": "^0.1.2",
174
+ "@cosyte/eslint-config": "^0.1.4",
175
175
  "@cosyte/fhir": "^0.1.1",
176
176
  "@cosyte/hl7": "^0.1.1",
177
177
  "@cosyte/ncpdp": "^0.1.1",
178
178
  "@cosyte/prettier-config": "^0.1.2",
179
- "@cosyte/script-utils": "^0.1.4",
180
- "@cosyte/test-utils": "^0.1.2",
179
+ "@cosyte/process": "^0.1.7",
180
+ "@cosyte/script-utils": "^0.1.8",
181
+ "@cosyte/test-utils": "^0.1.3",
181
182
  "@cosyte/tsconfig": "^0.1.2",
182
- "@cosyte/tsup-config": "^0.1.2",
183
- "@cosyte/vitest-config": "^0.1.2",
183
+ "@cosyte/tsup-config": "^0.1.3",
184
+ "@cosyte/vitest-config": "^0.1.3",
184
185
  "@cosyte/x12": "^0.1.2",
185
186
  "@types/node": "^22.0.0",
186
- "@vitest/coverage-v8": "4.1.4",
187
- "eslint": "10.5.0",
188
- "fast-check": "3.23.2",
189
- "prettier": "3.8.3",
190
- "simple-git-hooks": "2.13.0",
191
- "tsup": "8.5.1",
192
- "tsx": "4.21.0",
187
+ "fast-check": "4.10.2",
188
+ "prettier": "3.9.10",
189
+ "simple-git-hooks": "2.14.0",
190
+ "tsx": "4.23.15",
193
191
  "typescript": "5.9.3",
194
- "vite": "7.3.6",
195
- "vitest": "4.1.4"
192
+ "vite": "8.3.6",
193
+ "vitest": "5.1.0"
196
194
  },
197
195
  "scripts": {
198
- "build": "tsup",
196
+ "build": "cosyte-process build",
199
197
  "changeset": "changeset",
200
- "typecheck": "tsc --noEmit && tsc --noEmit -p examples",
198
+ "typecheck": "cosyte-process typecheck",
201
199
  "phi-scan": "tsx scripts/phi-scan.ts",
202
- "check": "pnpm run check:test-selection",
200
+ "check": "pnpm run check:process && pnpm run check:test-selection",
201
+ "check:process": "cosyte-process check",
203
202
  "check:test-selection": "tsx scripts/check-test-selection.ts",
204
203
  "check:install": "node scripts/check-install.mjs",
205
204
  "check:determinism-window": "tsx scripts/determinism/check-window.ts",
@@ -208,25 +207,24 @@
208
207
  "oracle": "tsx scripts/oracle/run.ts",
209
208
  "acquire:oracle": "tsx scripts/oracle/acquire.ts",
210
209
  "check:no-emdash": "cosyte-no-emdash",
211
- "check:no-internal-refs": "bash scripts/check-no-internal-refs.sh",
212
- "check:agent-notes": "cosyte-agent-notes",
210
+ "check:no-internal-refs": "cosyte-internal-refs",
213
211
  "check:readme": "cosyte-readme",
214
212
  "check:claude-card": "cosyte-claude-card",
215
213
  "check:catalog": "cosyte-catalog",
216
- "lint": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\" --max-warnings=0 --no-error-on-unmatched-pattern",
217
- "lint:fix": "eslint \"src/**/*.ts\" \"scripts/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\" --fix --no-error-on-unmatched-pattern",
218
- "format": "prettier --write \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,json,md}\" \"*.{json,md,yml}\"",
219
- "format:check": "prettier --check \"src/**/*.{ts,md}\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,json,md}\" \"*.{json,md,yml}\"",
220
- "test": "vitest run",
221
- "test:watch": "vitest",
222
- "test:coverage": "vitest run --coverage",
223
- "test:fuzz": "vitest run test/property/seed-sweep.fuzz.property.test.ts",
214
+ "lint": "cosyte-process lint",
215
+ "lint:fix": "cosyte-process lint --fix",
216
+ "format": "cosyte-process format",
217
+ "format:check": "cosyte-process format --check",
218
+ "test": "cosyte-process test",
219
+ "test:watch": "cosyte-process test --watch",
220
+ "test:coverage": "cosyte-process test --coverage",
221
+ "fuzz": "vitest run test/property/seed-sweep.fuzz.property.test.ts",
224
222
  "examples": "tsx scripts/run-examples.ts",
225
223
  "smoke": "node scripts/smoke.mjs",
226
224
  "clean": "rm -rf dist coverage",
227
- "pack:docs": "bash scripts/build-docs-artifacts.sh",
225
+ "pack:docs": "cosyte-process pack-docs",
228
226
  "attw": "cosyte-attw",
229
- "version": "changeset version && node scripts/sync-version.mjs && prettier --write package.json CHANGELOG.md src/index.ts",
227
+ "version": "changeset version && cosyte-process sync-version && prettier --write package.json CHANGELOG.md src/index.ts",
230
228
  "release": "changeset publish"
231
229
  }
232
230
  }