feat(java): add created_at support to ls-remote --json#7297
Merged
Conversation
Implement `_list_remote_versions_with_info()` for the Java backend to support release timestamps when using `mise ls-remote java --json`. The JavaMetadata struct now includes an optional `created_at` field. Currently the mise-java API doesn't expose this field, but the database has it - once the API is updated to include `created_at`, it will automatically appear in ls-remote output. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds infrastructure support for displaying release timestamps in mise ls-remote java --json output by implementing _list_remote_versions_with_info() and adding a created_at field to the JavaMetadata struct. The timestamps will automatically populate once the mise-java API is updated to include this field in its responses.
Key changes:
- Implemented
_list_remote_versions_with_info()method for the Java backend - Added optional
created_atfield toJavaMetadatastruct - Refactored
_list_remote_versions()to delegate to the new info method
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Hyperfine Performance
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.12.6 x -- echo |
21.1 ± 0.6 | 20.0 | 28.4 | 1.00 |
mise x -- echo |
22.1 ± 0.9 | 20.3 | 31.9 | 1.04 ± 0.05 |
mise env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.12.6 env |
20.7 ± 0.7 | 19.7 | 31.2 | 1.00 |
mise env |
21.3 ± 0.7 | 19.8 | 23.0 | 1.03 ± 0.05 |
mise hook-env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.12.6 hook-env |
20.9 ± 0.4 | 20.2 | 24.5 | 1.00 |
mise hook-env |
21.6 ± 0.5 | 20.2 | 23.2 | 1.03 ± 0.03 |
mise ls
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2025.12.6 ls |
17.7 ± 0.4 | 16.4 | 18.8 | 1.00 |
mise ls |
18.5 ± 0.5 | 17.3 | 19.9 | 1.05 ± 0.04 |
xtasks/test/perf
| Command | mise-2025.12.6 | mise | Variance |
|---|---|---|---|
| install (cached) | 112ms | 111ms | +0% |
| ls (cached) | 66ms | 67ms | -1% |
| bin-paths (cached) | 74ms | 74ms | +0% |
| task-ls (cached) | 451ms | 452ms | +0% |
jdx
pushed a commit
that referenced
this pull request
Dec 14, 2025
### 🚀 Features - **(java)** add created_at support to ls-remote --json by @jdx in [#7297](#7297) - **(ls-remote)** add created_at timestamps to ls-remote --json for more backends by @jdx in [#7295](#7295) - **(ls-remote)** add created_at timestamps to ls-remote --json for core plugins by @jdx in [#7294](#7294) - **(registry)** add --json flag to registry command by @jdx in [#7290](#7290) - **(ruby)** add created_at timestamps to ls-remote --json by @jdx in [#7296](#7296) ### 🐛 Bug Fixes - **(spm)** recursively update submodules after checkout by @JFej in [#7292](#7292) - prioritize raw task output over task_output setting by @skorfmann in [#7286](#7286) ### New Contributors - @skorfmann made their first contribution in [#7286](#7286) - @JFej made their first contribution in [#7292](#7292)
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.
Summary
_list_remote_versions_with_info()for the Java backend to support release timestampscreated_atfield toJavaMetadatastruct (optional)created_atBackground
The mise-java database already stores
created_atandmodified_attimestamps for each release, but these aren't currently exposed in the API response. This PR adds the infrastructure on the mise side so that once the API is updated to include the field, it will automatically work.API Investigation
Checked the mise-java repository:
sql/schema.sql) hascreated_atandmodified_atfieldsJvmDatastruct just needs to add the fieldTest plan
mise ls-remote java --jsonworks correctlynulluntil mise-java API is updated🤖 Generated with Claude Code
Note
Adds created_at timestamps to Java remote version listings by returning VersionInfo from a new _list_remote_versions_with_info and extending JavaMetadata.
_list_remote_versions_with_inforeturningVec<VersionInfo>(includesversionand optionalcreated_at)._list_remote_versionsto derive plain versions from this metadata.versionusingunique_by.created_atfield toJavaMetadataand propagate it intoVersionInfo.VersionInfofromcrate::backend.Written by Cursor Bugbot for commit 2294c2f. This will update automatically on new commits. Configure here.