@cosyte/dates 0.1.2 → 0.1.3
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 +6 -0
- package/README.md +19 -4
- package/package.json +15 -10
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
> Work with the dates the @cosyte/* parsers give you, without losing what the wire actually said.
|
|
11
11
|
|
|
12
12
|
[](https://www.npmjs.com/package/@cosyte/dates)
|
|
13
|
-
[](https://github.com/cosyte/dates/actions/workflows/ci.yml)
|
|
14
|
+
[](https://github.com/cosyte/dates/blob/main/LICENSE)
|
|
15
15
|
[](https://nodejs.org)
|
|
16
16
|
|
|
17
17
|
Date and time utilities for the @cosyte/* healthcare parsers: precision-preserving conversion and validation that never guesses a timezone.
|
|
@@ -59,7 +59,7 @@ Not covered on the 0.1 line, and named so the boundary is not a surprise:
|
|
|
59
59
|
pnpm add @cosyte/dates
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Node.js 22 or later, tested on 22 and
|
|
62
|
+
Node.js 22 or later, tested on 22, 24, and 26. ESM only: this package ships no
|
|
63
63
|
CommonJS build, so `require()` will not load it.
|
|
64
64
|
|
|
65
65
|
It carries exactly one runtime dependency, [`temporal-polyfill`][polyfill],
|
|
@@ -188,6 +188,19 @@ than one nanosecond, an offset on a value that states no time of day, and any
|
|
|
188
188
|
zone abbreviation such as `CST` (they are ambiguous across regions, so an IANA
|
|
189
189
|
identifier or a numeric offset is required).
|
|
190
190
|
|
|
191
|
+
## Support
|
|
192
|
+
|
|
193
|
+
Questions and bug reports go in [GitHub issues](https://github.com/cosyte/dates/issues). Use
|
|
194
|
+
synthetic values only: a date of birth or an admission time from a real patient is PHI, so reduce a
|
|
195
|
+
report to made-up parts that reproduce it. For help with an integration, see our
|
|
196
|
+
[integration services](https://cosyte.com/integration-services).
|
|
197
|
+
|
|
198
|
+
## Security
|
|
199
|
+
|
|
200
|
+
Report a vulnerability privately, never in a public issue, and with no real patient data in it. Our
|
|
201
|
+
[security policy](https://github.com/cosyte/dates/security/policy) says how. A conversion that
|
|
202
|
+
silently moves a value, rather than refusing, is worth reporting that way.
|
|
203
|
+
|
|
191
204
|
## Contributing
|
|
192
205
|
|
|
193
206
|
Issues and pull requests are welcome at
|
|
@@ -198,4 +211,6 @@ needs one that pins the exact output rather than a shape.
|
|
|
198
211
|
|
|
199
212
|
## License
|
|
200
213
|
|
|
201
|
-
MIT, copyright Cosyte LLC. See [LICENSE](https://github.com/cosyte/dates/blob/main/LICENSE).
|
|
214
|
+
MIT, copyright Cosyte LLC. See [LICENSE](https://github.com/cosyte/dates/blob/main/LICENSE). The
|
|
215
|
+
standards this package names belong to their owners; see
|
|
216
|
+
[TRADEMARKS.md](https://github.com/cosyte/dates/blob/main/TRADEMARKS.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosyte/dates",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Date and time utilities for the @cosyte/* healthcare parsers: precision-preserving conversion and validation that never guesses a timezone.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Cosyte",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@arethetypeswrong/cli": "0.18.4",
|
|
56
56
|
"@changesets/cli": "2.31.0",
|
|
57
|
-
"@cosyte/eslint-config": "^0.1.
|
|
58
|
-
"@cosyte/prettier-config": "^0.1.
|
|
59
|
-
"@cosyte/script-utils": "^0.1.
|
|
60
|
-
"@cosyte/tsconfig": "^0.1.
|
|
61
|
-
"@cosyte/tsup-config": "^0.1.
|
|
62
|
-
"@cosyte/vitest-config": "^0.1.
|
|
57
|
+
"@cosyte/eslint-config": "^0.1.2",
|
|
58
|
+
"@cosyte/prettier-config": "^0.1.2",
|
|
59
|
+
"@cosyte/script-utils": "^0.1.4",
|
|
60
|
+
"@cosyte/tsconfig": "^0.1.2",
|
|
61
|
+
"@cosyte/tsup-config": "^0.1.2",
|
|
62
|
+
"@cosyte/vitest-config": "^0.1.2",
|
|
63
63
|
"@types/node": "22.20.1",
|
|
64
64
|
"@vitest/coverage-v8": "4.1.11",
|
|
65
65
|
"eslint": "10.9.1",
|
|
@@ -75,6 +75,11 @@
|
|
|
75
75
|
"build": "tsup",
|
|
76
76
|
"changeset": "changeset",
|
|
77
77
|
"typecheck": "tsc --noEmit",
|
|
78
|
+
"phi-scan": "cosyte-phi-scan",
|
|
79
|
+
"check:readme": "cosyte-readme",
|
|
80
|
+
"check:claude-card": "cosyte-claude-card",
|
|
81
|
+
"check:agent-notes": "cosyte-agent-notes",
|
|
82
|
+
"check:catalog": "cosyte-catalog",
|
|
78
83
|
"lint": "eslint . --max-warnings=0",
|
|
79
84
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,md}\" \"docs-content/**/*.{md,json}\" \"*.{ts,json,md,yml}\"",
|
|
80
85
|
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"scripts/**/*.{ts,mjs}\" \"examples/**/*.{ts,md}\" \"docs-content/**/*.{md,json}\" \"*.{ts,json,md,yml}\"",
|
|
@@ -83,10 +88,10 @@
|
|
|
83
88
|
"test:tz": "TZ=UTC vitest run && TZ=Pacific/Kiritimati vitest run",
|
|
84
89
|
"examples": "tsx scripts/run-examples.ts",
|
|
85
90
|
"clean": "rm -rf dist coverage .tmp dist-artifacts",
|
|
86
|
-
"attw": "
|
|
91
|
+
"attw": "cosyte-attw",
|
|
87
92
|
"pack:docs": "bash scripts/build-docs-artifacts.sh",
|
|
88
|
-
"check:no-emdash": "
|
|
89
|
-
"check:no-internal-refs": "
|
|
93
|
+
"check:no-emdash": "cosyte-no-emdash",
|
|
94
|
+
"check:no-internal-refs": "cosyte-internal-refs",
|
|
90
95
|
"version": "changeset version && prettier --write package.json CHANGELOG.md",
|
|
91
96
|
"release": "changeset publish"
|
|
92
97
|
}
|