feat: replace custom duration utils with qte library#90
Merged
adelrodriguez merged 1 commit intomainfrom Feb 19, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
63ab27d to
847fb84
Compare
This was referenced Feb 19, 2026
This was referenced Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Greptile Summary
This PR replaces custom duration utilities with the
qtelibrary, a specialized TypeScript package for time expressions. The custom implementation inpackages/utils/src/duration.ts(251 lines) has been removed along with its comprehensive test suite and session constants.Key Changes:
milliseconds()andseconds()functions from@init/utils/durationin favor ofms()andseconds()fromqteDurationInputtoTimeExpressionacross the codebaseSESSION_EXPIRES_IN,SESSION_UPDATE_AGE) with inline duration strings (seconds("30d"),seconds("15d"))qte@0.1.0as a dependency to 4 packages (api, backend, email, kv)@init/errordependency from@init/kvpackage (no longer needed without custom duration utilities)Confidence Score: 5/5
Important Files Changed
seconds("30d")andseconds("15d")calls using qteDurationInputtoTimeExpressionand function frommilliseconds()toms()seconds()function with inline duration stringsDurationInputtoTimeExpressionand function frommilliseconds()toms()TimeExpressionand usesseconds()functionFlowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Custom Duration Utils] -->|Removed| B[qte Library v0.1.0] B --> C[Auth Session Config] B --> D[Rate Limiting] B --> E[KV Client TTL] B --> F[Email Scheduling] C -->|seconds 30d| C1[apps/api auth.ts] C -->|seconds 15d| C2[packages/backend auth options] D -->|ms interval| D1[apps/api middleware.ts] E -->|seconds ttl| E1[packages/kv client.ts] F -->|ms sendAt| F1[packages/email client.ts] style A fill:#ff6b6b style B fill:#51cf66Last reviewed commit: 847fb84