daymath 0.2.3 → 0.4.0

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 (4) hide show
  1. package/README.md +161 -9
  2. package/index.d.ts +43 -7
  3. package/index.js +575 -93
  4. package/package.json +21 -7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "daymath",
3
- "version": "0.2.3",
4
- "description": "Calendar date math (ISO 8601 day / PlainDate). date-fns-shaped. No time zones.",
3
+ "version": "0.4.0",
4
+ "description": "Calendar date math (ISO 8601 day / PlainDate). date-fns-shaped. No Date. No time zones.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "types": "./index.d.ts",
@@ -18,19 +18,29 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "test": "node --test test.js",
21
+ "lint": "oxlint -c oxlint.jsonc",
22
+ "lint:fix": "oxlint -c oxlint.jsonc --fix",
23
+ "typecheck": "tsc -p tsconfig.json",
24
+ "format": "oxfmt -c oxfmt.json index.js index.d.ts test.js scripts examples",
25
+ "format:check": "oxfmt -c oxfmt.json --check index.js index.d.ts test.js scripts examples",
21
26
  "test:coverage": "c8 --include=index.js --check-coverage --lines 100 --functions 100 --branches 100 --reporter=text --reporter=lcov node --test test.js",
27
+ "test:differential": "node scripts/differential.mjs",
28
+ "test:differential:quick": "node scripts/differential.mjs 2020 2030",
29
+ "test:runtimes": "node scripts/cross-runtime.mjs",
30
+ "test:runtimes:write": "node scripts/cross-runtime.mjs --write",
22
31
  "prepublishOnly": "npm run test:coverage",
23
32
  "publish:github": "node scripts/publish-github-packages.mjs"
24
33
  },
25
34
  "keywords": [
26
35
  "date",
27
36
  "calendar",
37
+ "civil-date",
28
38
  "plain-date",
29
- "temporal",
30
- "date-fns",
31
39
  "YYYY-MM-DD",
32
40
  "ISO-8601",
33
- "PlainDate"
41
+ "Temporal",
42
+ "PlainDate",
43
+ "date-fns"
34
44
  ],
35
45
  "author": "leemr",
36
46
  "license": "MIT",
@@ -47,9 +57,13 @@
47
57
  "temporal-polyfill": "^1.0.3"
48
58
  },
49
59
  "engines": {
50
- "node": ">=18"
60
+ "node": ">=20.19.0 <21 || >=22.12.0"
51
61
  },
52
62
  "devDependencies": {
53
- "c8": "^12.0.0"
63
+ "c8": "^12.0.0",
64
+ "date-fns": "4.4.0",
65
+ "oxfmt": "0.62.0",
66
+ "oxlint": "1.77.0",
67
+ "typescript": "7.0.2"
54
68
  }
55
69
  }