GeezerVison is showing github.com — docs(apexdoc): add since tags with release versions to all members by dschach · Pull Request #411 · dschach/salesforce-trigger-framework
Conversation
dschach
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Give every member in the Apex classes a @since tag whose value is the release version that first included it, so that the generated docs show when each method, property, and class came into the package.
Changes
-
Version 2 members: add @since to the 70 members that are new in version 2 and had no @since tag. Most are private fields, inner-class members of BypassRegistry and LoopCounterRegistry, and test members. No @author tags are added to them.
-
Version 1 members: add @since to the 113 members that are from version 1 and had no @since tag. No @author tags are added to them.
-
Dates to versions: replace the date in each of the 61 existing @since tags, in the member and class comments, with a release version. A tag with a change note, such as Return the handler, so that you can chain calls, gets the release of that change and keeps its text.
-
Inner classes: add the David Schach @author tag of the class comments to the 8 inner classes: BypassRegistry, LoopCounterRegistry, LoopCounter, and TriggerHandlerException in TriggerHandler, PermissionHandler in TriggerHandlerBypassPermissionTest, and TestHandlerException, TestHandler, and UntypedHandler in TriggerHandlerTest. The @since values of 7 of them already match the first release of each class. LoopCounter now has 2 @since tags: 1.0.0, the release that added it as LoopCount, and 1.5.1, the release that renamed it to LoopCounter. Each tag has a note that says what happened.
-
Bypass permission test: add the David Schach @author tag to the class comment of TriggerHandlerBypassPermissionTest, which had none. Its @since 2.1.0 is the release that added the class, so it stays.
-
Test handler overrides: add an ApexDoc comment with @since to the 9 overrides in TriggerHandlerTest.TestHandler, which had no comment.
-
Sample README: the pre-commit hook copied the new tags of AccountSampleTriggerHandler into sample-handler/README.md.
Behavior notes
Only ApexDoc comments change. No code and no signature changes. The only new @author tags are on the 8 inner classes and the class comment of TriggerHandlerBypassPermissionTest, and no other @author tag is added, removed, or changed. The docs/ site is not regenerated in this PR.
Each version comes from git history: the first release tag whose copy of the file holds the member, by name, parameter types, and enclosing class. A renamed member counts as new in the release that renamed it, so doShowDebug and doShowLimits get the release of the rename. LoopCounter is the exception: it has a tag for the release that added it and a tag for the rename. getHandlerName() gets the release in which it became protected.
The Kevin OHara line and the David Schach line in the class comments of TriggerHandler and TriggerHandlerTest now have the same @since value, because both dates are before the first release.
Test plan
-
npm run prettier:verify passes.
-
node scripts/sync-sample-code.mjs --check passes.
-
A scan of all 5 classes finds no member without @since and no @since value that is not a release version.
-
Compared with main, the diff adds an @author line only to the 8 inner classes and to the class comment of TriggerHandlerBypassPermissionTest, and it removes none.
-
The Apex tests run in CI.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Each member that is new in version 2 and had no `@author` and no `@since` tag now has both. The `@author` tag is written as the `@author` tag of its class, and the `@since` tag names the release that first included the member: 2.0.0 for 52 members and 2.1.0 for 18 members, in TriggerHandler, its 2 test classes, and the sample handler test.
Co-Authored-By: Claude <[email protected]>
…ns for all since values
Add a `@since` tag with the first release version to each version 1 member that had none, and replace each date in an existing `@since` tag, in the member and class comments, with a release version. A tag with a change note gets the release of that change, and the note text stays the same.
Co-Authored-By: Claude <[email protected]>
Add an ApexDoc comment with a `@since` tag to each of the 9 overrides in `TriggerHandlerTest.TestHandler`, which had no comment.
Co-Authored-By: Claude <[email protected]>
codecov
Bot
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8f310c2) to head (9bc5ded).
⚠️ Report is 11 commits behind head on main.
✅ All tests successful. No failed tests found.
Additional details and impacted files
@@ Coverage Diff @@
## main #411 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 339 339
=========================================
Hits 339 339
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.
🚀 New features to boost your workflow:
- 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The version 2 members keep their `@since` tags but get no `@author` tag of their own. The `@author` tags that the members had before this change stay.
Co-Authored-By: Claude <[email protected]>
Each of the 8 inner classes in TriggerHandler and its 2 test classes now has the David Schach `@author` tag of the class comments. Their `@since` values already match the first release of each class, so they stay.
Co-Authored-By: Claude <[email protected]>
…oop counter
The class comment of TriggerHandlerBypassPermissionTest gets the David Schach `@author` tag; its `@since 2.1.0` stays. The `LoopCounter` comment now has 2 `@since` tags: 1.0.0, when the class was added as `LoopCount`, and 1.5.1, when it was renamed to `LoopCounter`.
Co-Authored-By: Claude <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 12, 2026
dschach
added a commit
that referenced
this pull request
Nov 12, 2026
The documentation site is generated again before the next release, so the live site shows the ApexDoc changes of #411.
## Changes
- `npm run prepareApexDox` updated the pages that come from the README, the changelog, and the sample README, and it drew the 2 Mermaid diagrams of the home page again.
- ApexDox generated `docs/` again. The class pages now show the release versions in the `@since` tags, for example `1.1.0 Add andFinally()` in place of a date, and the `@author` tags of the inner classes.
- `npm run prettier` formatted the generated pages.
## Behavior notes
The live site changes only with the next release, which deploys `docs/` from the release tag and adds the markdown copies, llms.txt, and the toolbar.
## Test plan
- `npm run prettier:verify` passes.
- `npm run site:preview -- --build-only` builds the deployed site from this `docs/`: it writes the 9 markdown pages and llms.txt.
- The `TriggerHandler` page lists release versions, not dates, under Since.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|