From 66e1f34c3970c17974d5e91dcda2d56cd5dca71a Mon Sep 17 00:00:00 2001
From: James Simone <16430727+jamessimone@users.noreply.github.com>
Date: Thu, 2 Jul 2026 18:49:55 -0400
Subject: [PATCH 1/2] Fixes #769
---
README.md | 4 ++--
package.json | 2 +-
plugins/ExtraCodeCoverage/README.md | 4 ++--
rollup/core/classes/RollupDateLiteral.cls | 20 ++++++++++++--------
rollup/core/classes/RollupLogger.cls | 2 +-
sfdx-project.json | 16 +++++++---------
6 files changed, 25 insertions(+), 23 deletions(-)
diff --git a/README.md b/README.md
index bdcc7594..71820016 100644
--- a/README.md
+++ b/README.md
@@ -24,11 +24,11 @@ As well, don't miss [the Wiki](../../wiki), which includes even more info for co
## Deployment & Setup
-
+
-
+
diff --git a/package.json b/package.json
index 50c953a8..cf5bc71e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "apex-rollup",
- "version": "1.7.41",
+ "version": "1.7.42",
"description": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
"repository": {
"type": "git",
diff --git a/plugins/ExtraCodeCoverage/README.md b/plugins/ExtraCodeCoverage/README.md
index 305da611..d951b1d3 100644
--- a/plugins/ExtraCodeCoverage/README.md
+++ b/plugins/ExtraCodeCoverage/README.md
@@ -1,11 +1,11 @@
# Extra Code Coverage
-
+
-
+
diff --git a/rollup/core/classes/RollupDateLiteral.cls b/rollup/core/classes/RollupDateLiteral.cls
index 7feb2ac5..2b97dbb6 100644
--- a/rollup/core/classes/RollupDateLiteral.cls
+++ b/rollup/core/classes/RollupDateLiteral.cls
@@ -691,8 +691,9 @@ public without sharing abstract class RollupDateLiteral {
*/
private virtual class LastQuarterLiteral extends RollupDateLiteral {
public LastQuarterLiteral() {
- this.ref = getRelativeDatetime(this.getLastQuarterStart(), START_TIME);
- this.bound = offsetToFirstDay(getRelativeDatetime(this.ref.addMonths(3).addDays(-1).date(), END_TIME));
+ Date lastQuarterStart = this.getLastQuarterStart();
+ this.ref = getRelativeDatetime(lastQuarterStart, START_TIME);
+ this.bound = offsetToFirstDay(getRelativeDatetime(lastQuarterStart.addMonths(3).addDays(-1), END_TIME));
}
protected virtual Date getLastQuarterStart() {
@@ -705,8 +706,9 @@ public without sharing abstract class RollupDateLiteral {
*/
private virtual class ThisQuarterLiteral extends RollupDateLiteral {
public ThisQuarterLiteral() {
- this.ref = getRelativeDatetime(this.getThisQuarterStart(), START_TIME);
- this.bound = offsetToFirstDay(getRelativeDatetime(this.ref.addMonths(3).addDays(-1).date(), END_TIME));
+ Date thisQuarterStart = this.getThisQuarterStart();
+ this.ref = getRelativeDatetime(thisQuarterStart, START_TIME);
+ this.bound = offsetToFirstDay(getRelativeDatetime(thisQuarterStart.addMonths(3).addDays(-1), END_TIME));
}
protected virtual Date getThisQuarterStart() {
@@ -719,8 +721,9 @@ public without sharing abstract class RollupDateLiteral {
*/
private virtual class NextQuarterLiteral extends RollupDateLiteral {
public NextQuarterLiteral() {
- this.ref = getRelativeDatetime(this.getNextQuarterDate(), START_TIME);
- this.bound = offsetToFirstDay(getRelativeDatetime(this.ref.addMonths(3).addDays(-1).date(), END_TIME));
+ Date nextQuarterStart = this.getNextQuarterDate();
+ this.ref = getRelativeDatetime(nextQuarterStart, START_TIME);
+ this.bound = offsetToFirstDay(getRelativeDatetime(nextQuarterStart.addMonths(3).addDays(-1), END_TIME));
}
protected virtual Date getNextQuarterDate() {
@@ -750,8 +753,9 @@ public without sharing abstract class RollupDateLiteral {
private class NQuartersAgoLiteral extends RollupDateLiteral {
protected override void setDynamicValue(String num) {
Integer quarterRange = Integer.valueOf(num);
- this.ref = getRelativeDatetime(Date.newInstance(System.today().year(), getCurrentQuarterStartMonth(), 1).addMonths(-quarterRange * 3), START_TIME);
- this.bound = offsetToFirstDay(getRelativeDatetime(this.ref.addMonths(3).addDays(-1).date(), END_TIME));
+ Date relativeQuarterStart = Date.newInstance(System.today().year(), getCurrentQuarterStartMonth(), 1).addMonths(-quarterRange * 3);
+ this.ref = getRelativeDatetime(relativeQuarterStart, START_TIME);
+ this.bound = offsetToFirstDay(getRelativeDatetime(relativeQuarterStart.addMonths(3).addDays(-1), END_TIME));
}
}
diff --git a/rollup/core/classes/RollupLogger.cls b/rollup/core/classes/RollupLogger.cls
index 547cc115..b59361a2 100644
--- a/rollup/core/classes/RollupLogger.cls
+++ b/rollup/core/classes/RollupLogger.cls
@@ -2,7 +2,7 @@
global without sharing virtual class RollupLogger implements ILogger {
@TestVisible
// this gets updated via the pipeline as the version number gets incremented
- private static final String CURRENT_VERSION_NUMBER = 'v1.7.41';
+ private static final String CURRENT_VERSION_NUMBER = 'v1.7.42';
private static final System.LoggingLevel FALLBACK_LOGGING_LEVEL = System.LoggingLevel.DEBUG;
private static final RollupPlugin PLUGIN = new RollupPlugin();
diff --git a/sfdx-project.json b/sfdx-project.json
index d504e4c4..19fe71a7 100644
--- a/sfdx-project.json
+++ b/sfdx-project.json
@@ -5,8 +5,8 @@
"package": "apex-rollup",
"path": "rollup",
"scopeProfiles": true,
- "versionName": "Summer 26 updates",
- "versionNumber": "1.7.41.0",
+ "versionName": "Date literal updates",
+ "versionNumber": "1.7.42.0",
"versionDescription": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
"releaseNotesUrl": "https://github.com/jamessimone/apex-rollup/releases/latest",
"unpackagedMetadata": {
@@ -69,12 +69,12 @@
"package": "Apex Rollup - Extra Code Coverage",
"versionDescription": "This plugin adds code coverage for Apex Rollup if you need additional code coverage for the base package",
"versionName": "Updating code coverage",
- "versionNumber": "0.0.29.0",
+ "versionNumber": "0.0.30.0",
"default": false,
"scopeProfiles": true,
"dependencies": [
{
- "package": "apex-rollup@1.7.38"
+ "package": "apex-rollup@1.7.42"
}
]
},
@@ -91,8 +91,8 @@
"Apex Rollup - Custom Logger@0.0.13": "04tKf000000syF7IAI",
"Apex Rollup - Custom Logger@0.0.14": "04tg7000000ClG5AAK",
"Apex Rollup - Extra Code Coverage": "0Ho6g000000GnCWCA0",
- "Apex Rollup - Extra Code Coverage@0.0.28": "04tg70000002W8fAAE",
"Apex Rollup - Extra Code Coverage@0.0.29": "04tg70000006DqbAAE",
+ "Apex Rollup - Extra Code Coverage@0.0.30": "04tg7000000EOqTAAW",
"Apex Rollup - Nebula Logger": "0Ho6g000000Gn8PCAS",
"Apex Rollup - Nebula Logger@0.0.7-0": "04t6g000008b0O7AAI",
"Apex Rollup - Nebula Logger@0.0.8-0": "04t6g000007zM6tAAE",
@@ -102,10 +102,8 @@
"Apex Rollup - Rollup Callback@0.0.3-0": "04t6g000008Sis0AAC",
"Nebula Logger - Core@4.14.4-optionally-auto-call-lightning-logger-lwc": "04t5Y0000015oRNQAY",
"apex-rollup": "0Ho6g000000TNcOCAW",
- "apex-rollup@1.7.37": "04tg700000037wDAAQ",
- "apex-rollup@1.7.38": "04tg70000005Bm1AAE",
- "apex-rollup@1.7.39": "04tg70000007hmbAAA",
"apex-rollup@1.7.40": "04tg7000000CG0zAAG",
- "apex-rollup@1.7.41": "04tg7000000CmfBAAS"
+ "apex-rollup@1.7.41": "04tg7000000CmfBAAS",
+ "apex-rollup@1.7.42": "04tg7000000EOorAAG"
}
}
From 4f9e4c17eb6d488096a5f36b4788e8f40a3082a4 Mon Sep 17 00:00:00 2001
From: GitHub Action Bot
Date: Thu, 2 Jul 2026 23:19:00 +0000
Subject: [PATCH 2/2] Bumping package version from Github Action
---
README.md | 4 ++--
rollup-namespaced/README.md | 4 ++--
rollup-namespaced/sfdx-project.json | 7 ++++---
sfdx-project.json | 2 +-
4 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 71820016..668a8ab4 100644
--- a/README.md
+++ b/README.md
@@ -24,11 +24,11 @@ As well, don't miss [the Wiki](../../wiki), which includes even more info for co
## Deployment & Setup
-
+
-
+
diff --git a/rollup-namespaced/README.md b/rollup-namespaced/README.md
index 1ff28251..38028c14 100644
--- a/rollup-namespaced/README.md
+++ b/rollup-namespaced/README.md
@@ -18,12 +18,12 @@ For more info, see the base `README`.
## Deployment & Setup
-
+
-
+
diff --git a/rollup-namespaced/sfdx-project.json b/rollup-namespaced/sfdx-project.json
index 80f6862c..17cb1b25 100644
--- a/rollup-namespaced/sfdx-project.json
+++ b/rollup-namespaced/sfdx-project.json
@@ -4,8 +4,8 @@
"default": true,
"package": "apex-rollup-namespaced",
"path": "rollup-namespaced/source/rollup",
- "versionName": "Summer 26 updates",
- "versionNumber": "1.2.37.0",
+ "versionName": "Date literal updates",
+ "versionNumber": "1.2.38.0",
"versionDescription": "Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.",
"releaseNotesUrl": "https://github.com/jamessimone/apex-rollup/releases/latest",
"unpackagedMetadata": {
@@ -54,6 +54,7 @@
"apex-rollup-namespaced@1.2.34": "04tg70000005BndAAE",
"apex-rollup-namespaced@1.2.35": "04tg70000007ht3AAA",
"apex-rollup-namespaced@1.2.36": "04tg7000000CG7RAAW",
- "apex-rollup-namespaced@1.2.37": "04tg7000000CmldAAC"
+ "apex-rollup-namespaced@1.2.37": "04tg7000000CmldAAC",
+ "apex-rollup-namespaced@1.2.38": "04tg7000000EP09AAG"
}
}
diff --git a/sfdx-project.json b/sfdx-project.json
index 19fe71a7..8f0dffb3 100644
--- a/sfdx-project.json
+++ b/sfdx-project.json
@@ -104,6 +104,6 @@
"apex-rollup": "0Ho6g000000TNcOCAW",
"apex-rollup@1.7.40": "04tg7000000CG0zAAG",
"apex-rollup@1.7.41": "04tg7000000CmfBAAS",
- "apex-rollup@1.7.42": "04tg7000000EOorAAG"
+ "apex-rollup@1.7.42": "04tg7000000EOwvAAG"
}
}