@outliant/sunrise-utils 1.1.26 → 1.1.27

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
@@ -4,10 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [1.1.27](https://github.com/outliant/sunrise-utils/compare/1.1.26...1.1.27)
8
+
9
+ - critical path age color display fix utils #86azmbay5 [`#35`](https://github.com/outliant/sunrise-utils/pull/35)
10
+
7
11
  #### [1.1.26](https://github.com/outliant/sunrise-utils/compare/1.1.25...1.1.26)
8
12
 
13
+ > 27 March 2024
14
+
9
15
  - project critical path age column with sort and filter [`#34`](https://github.com/outliant/sunrise-utils/pull/34)
10
16
  - unit test [`72423f0`](https://github.com/outliant/sunrise-utils/commit/72423f0178f7b17d7c667675cf1ec96afe19002f)
17
+ - chore(release): 1.1.26 [`85f06fb`](https://github.com/outliant/sunrise-utils/commit/85f06fbb98f4acd9dc6df8a57e5f787a27d3419c)
11
18
 
12
19
  #### [1.1.25](https://github.com/outliant/sunrise-utils/compare/1.1.24...1.1.25)
13
20
 
@@ -3,7 +3,7 @@ const _ = require('lodash');
3
3
  const criticalPathAgeFilterScript = `
4
4
  try {
5
5
  if (doc.containsKey('critical_path.date_added') && !doc['critical_path.date_added'].empty) {
6
- def now = new Date().getTime();
6
+ def now = new Date().toInstant().toEpochMilli();
7
7
  def dateAdded = doc['critical_path.date_added'].value.millis;
8
8
  double ageDays = Math.floor((now - dateAdded)/(1000 * 3600 * 24));
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@outliant/sunrise-utils",
3
3
  "description": "Helper functions for project Sunrise",
4
- "version": "1.1.26",
4
+ "version": "1.1.27",
5
5
  "license": "ISC",
6
6
  "author": "Outliant",
7
7
  "main": "index.js",
@@ -1318,7 +1318,7 @@ describe('projectFilter/criticalPathAgeFilter', () => {
1318
1318
  const criticalPathAgeFilterScript = `
1319
1319
  try {
1320
1320
  if (doc.containsKey('critical_path.date_added') && !doc['critical_path.date_added'].empty) {
1321
- def now = new Date().getTime();
1321
+ def now = new Date().toInstant().toEpochMilli();
1322
1322
  def dateAdded = doc['critical_path.date_added'].value.millis;
1323
1323
  double ageDays = Math.floor((now - dateAdded)/(1000 * 3600 * 24));
1324
1324