@fkui/logic 6.10.0 → 6.12.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.
package/lib/cjs/index.js CHANGED
@@ -2730,6 +2730,15 @@ class FDate {
2730
2730
  addYears(value) {
2731
2731
  return new FDate(this.value.add(value, "year"));
2732
2732
  }
2733
+ /**
2734
+ * Returns a new {@link FDate} object with the date before This one.
2735
+ *
2736
+ * @public
2737
+ * @since v6.12.0
2738
+ */
2739
+ previous() {
2740
+ return this.addDays(-1);
2741
+ }
2733
2742
  next() {
2734
2743
  return this.addDays(1);
2735
2744
  }
package/lib/esm/index.js CHANGED
@@ -2728,6 +2728,15 @@ class FDate {
2728
2728
  addYears(value) {
2729
2729
  return new FDate(this.value.add(value, "year"));
2730
2730
  }
2731
+ /**
2732
+ * Returns a new {@link FDate} object with the date before This one.
2733
+ *
2734
+ * @public
2735
+ * @since v6.12.0
2736
+ */
2737
+ previous() {
2738
+ return this.addDays(-1);
2739
+ }
2731
2740
  next() {
2732
2741
  return this.addDays(1);
2733
2742
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/logic",
3
- "version": "6.10.0",
3
+ "version": "6.12.0",
4
4
  "description": "Logic",
5
5
  "keywords": [
6
6
  "fkui",
@@ -61,11 +61,11 @@
61
61
  "watch": "rollup --config --watch"
62
62
  },
63
63
  "peerDependencies": {
64
- "@fkui/date": "^6.10.0"
64
+ "@fkui/date": "^6.12.0"
65
65
  },
66
66
  "engines": {
67
67
  "node": ">= 20",
68
68
  "npm": ">= 7"
69
69
  },
70
- "gitHead": "e9daf74232b7f96db6d4289338ad08c7bd6f61fa"
70
+ "gitHead": "fe2196dd13702045bf520240c52135a1b74ae2e3"
71
71
  }