File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 57
57
"chalk" : " 5.4.1"
58
58
},
59
59
"devDependencies" : {
60
- "@eslint/js" : " ^9.31 .0" ,
60
+ "@eslint/js" : " ^9.30 .0" ,
61
61
"@types/node" : " ^24.0.13" ,
62
- "@typescript-eslint/eslint-plugin" : " ^8.36 .0" ,
62
+ "@typescript-eslint/eslint-plugin" : " ~8.35 .0" ,
63
63
"@typescript-eslint/parser" : " *" ,
64
64
"@vitest/coverage-v8" : " latest" ,
65
65
"eslint" : " 9.31.0" ,
Original file line number Diff line number Diff line change @@ -100,8 +100,18 @@ function displayResults(dependencyInfos: DependencyInfo[]): void {
100
100
status = chalk . cyan ( 'LATEST TAG' ) ;
101
101
versionInfo = `${ dep . currentVersion } → ${ chalk . cyan ( dep . latestVersion ) } (actual latest version)` ;
102
102
} else if ( ! / ^ \d + \. \d + \. \d + / . test ( dep . currentVersion ) ) {
103
- status = chalk . blue ( 'VERSION RANGE' ) ;
104
- versionInfo = `${ dep . currentVersion } → ${ chalk . cyan ( dep . latestVersion ) } (latest available)` ;
103
+ // Check if the version range matches the latest version
104
+ const isRangeUpToDate = ! isVersionOutdated ( {
105
+ current : dep . currentVersion ,
106
+ latest : dep . latestVersion ,
107
+ } ) ;
108
+ if ( isRangeUpToDate ) {
109
+ status = chalk . green ( 'UP TO DATE' ) ;
110
+ versionInfo = dep . currentVersion ;
111
+ } else {
112
+ status = chalk . blue ( 'VERSION RANGE' ) ;
113
+ versionInfo = `${ dep . currentVersion } → ${ chalk . cyan ( dep . latestVersion ) } (latest available)` ;
114
+ }
105
115
} else if ( dep . isOutdated ) {
106
116
const updateTypeColor = {
107
117
major : chalk . yellow ,
You can’t perform that action at this time.
0 commit comments