histropediajs 1.6.0 → 1.6.2

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/index.d.ts CHANGED
@@ -121,7 +121,12 @@ export type DateParts = {
121
121
  millisecond?: number;
122
122
  };
123
123
 
124
- /** General date input that can include precision. */
124
+ /**
125
+ * General date input that can include precision.
126
+ * Omitted precision is inferred from the smallest supplied time component (including zero).
127
+ * Without time components it defaults to day, even for year-only or year/month objects.
128
+ * Explicit precision always overrides inference.
129
+ */
125
130
  export type DateInput = DateParts & { precision?: Precision };
126
131
 
127
132
  /**
@@ -207,6 +212,9 @@ export interface DmyConstructor {
207
212
  new (value: Dmy): DmyInstance;
208
213
  readonly prototype: DmyInstance;
209
214
  getByDayOfYear(year: number, dayOfYear: number): DmyInstance;
215
+ /** Period helpers take internal astronomical years (0 = 1 BCE), after any input shift.
216
+ * Decades group historical tens digits; boundary buckets are 9 through 1 BCE and 1 through 9 CE.
217
+ */
210
218
  CreateAsStartOfPeriod(date: Dmy, precision?: Precision): DmyInstance;
211
219
  CreateAsEndOfPeriod(date: Dmy, precision?: Precision): DmyInstance;
212
220
  CreateAsExclusiveEndOfPeriod(date: Dmy, precision?: Precision): DmyInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histropediajs",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "JavaScript library for rendering interactive zoomable timelines in HTML5 canvas.",
5
5
  "main": "./dist/histropedia.esm.js",
6
6
  "module": "./dist/histropedia.esm.js",
@@ -76,7 +76,7 @@
76
76
  "license": "SEE LICENSE IN LICENSE",
77
77
  "devDependencies": {
78
78
  "@eslint/js": "^9.34.0",
79
- "@vitest/coverage-v8": "^3.2.4",
79
+ "@vitest/coverage-v8": "^4.1.11",
80
80
  "eslint": "^9.34.0",
81
81
  "eslint-plugin-import": "^2.32.0",
82
82
  "eslint-plugin-simple-import-sort": "^12.1.1",
@@ -87,7 +87,7 @@
87
87
  "prettier": "^3.6.2",
88
88
  "typescript": "6.0.3",
89
89
  "vite": "^7.0.4",
90
- "vitest": "^3.2.4"
90
+ "vitest": "^4.1.11"
91
91
  },
92
92
  "lint-staged": {
93
93
  "**/*.{js,mjs,cjs}": [