@cubedelement.com/realty-investor-timeline 5.5.0 → 5.5.1

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,3 +1,10 @@
1
+ ## [5.5.1](https://github.com/kvernon/realty-investor-timeline/compare/v5.5.0...v5.5.1) (2026-01-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * boundary, date ([#73](https://github.com/kvernon/realty-investor-timeline/issues/73)) ([1ce43db](https://github.com/kvernon/realty-investor-timeline/commit/1ce43db993397760d2e41e207481f7999158282a))
7
+
1
8
  # [5.5.0](https://github.com/kvernon/realty-investor-timeline/compare/v5.4.0...v5.5.0) (2025-12-21)
2
9
 
3
10
 
@@ -5,7 +5,9 @@ const getNextExpire = (current, cacheExpireDate, advanceInMonths) => {
5
5
  if (!current) {
6
6
  return cacheExpireDate;
7
7
  }
8
- return new Date(Date.UTC(current.getUTCFullYear(), current.getUTCMonth() + advanceInMonths, 1));
8
+ const date = new Date(Date.UTC(current.getUTCFullYear(), current.getUTCMonth(), 1));
9
+ date.setUTCMonth(date.getUTCMonth() + advanceInMonths);
10
+ return date;
9
11
  };
10
12
  class ValueCache {
11
13
  renewalInMonths;
@@ -181,7 +181,7 @@ class LedgerCollection {
181
181
  return [];
182
182
  }
183
183
  const boundary = year ? this.filter((li) => li.dateMatchesYear(year)) : this.filter();
184
- if (!boundary) {
184
+ if (!boundary || boundary.length === 0) {
185
185
  return [];
186
186
  }
187
187
  const collection = [];
@@ -7,7 +7,7 @@ exports.cloneDateUtc = void 0;
7
7
  * @param [datePredicate]
8
8
  */
9
9
  function cloneDateUtc(date, datePredicate) {
10
- const result = new Date(Date.parse(date.toUTCString()));
10
+ const result = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1));
11
11
  result.setUTCDate(1);
12
12
  result.setUTCHours(0);
13
13
  result.setUTCMinutes(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubedelement.com/realty-investor-timeline",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "A way to determine if and when your expenses would be covered",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",