Add support for additional tools and utilities with version fetching#27
Open
Ngha-Boris wants to merge 1 commit into
Open
Add support for additional tools and utilities with version fetching#27Ngha-Boris wants to merge 1 commit into
Ngha-Boris wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Add Version Fetching for Missing Open-Source & Proprietary Software
Summary
This PR adds dynamic version fetching for 50+ additional software packages, including both open-source projects (via GitHub API) and proprietary software (via Homebrew API). It also implements lazy loading to prevent performance degradation from excessive API calls.
Changes Made
1. Enhanced Version API (
src/app/api/versions/route.ts)New Helper Functions
staticVersion()- Returns hardcoded versions when no API is availablegithubReleases()- Enhanced to support custom tag filtersAdded Version Sources (50+ packages)
Open Source (GitHub):
2. Performance Optimization (
src/components/package-manager.tsx)Implemented Lazy Loading
handleVersionDropdownOpen()functionhasFetchedVersionsstate to prevent duplicate callsUpdated Dynamic Version List
Extended
dynamicVersionToolsarray to include all newly supported packages.3. App Definition Updates
Added
linuxCommandTemplateandmacosCommandTemplateto support version-specific installations:browsers.ts: brave, firefoxtools.ts: git, curl, zsh, oh-my-zshterminals.ts: alacritty, kitty, hyperutilities.ts: jq, htop, tmuxdatabases.ts: mysql, mariadbruntimes.ts: ruby, php, kotlin, nvmdata-science.ts: jupyter, tensorflow, pandas, numpy, matplotlibweb-servers.ts: apachecloud-clis.ts: aws-cli, azure-cliides.ts: vimBenefits
Testing
Technical Notes
per_page=10with filtering for stable releases only${VERSION},${VERSION_NO_V}, and${VERSION_MAJOR}placeholders