Latest version doesn't mach remote version
See original GitHub issueHallo.
I found that the output returns always the same versions:
These two props return the correct values:
json['dist-tags']['latest']
json['dist-tags']['next']
example:
packageEntry.version 7.2.12
localVersionSemverRange 7.2.12
version 7.2.12
latest version 14.1.0
next version 14.1.0-rc.0
but script return:
{
name: '@angular/core',
author: 'angular',
licenseType: 'MIT',
link: 'git+https://github.com/angular/angular.git',
definedVersion: '7.2.12',
installedVersion: '7.2.12',
remoteVersion: '7.2.12',
comment: '7.2.12'
}
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
The remote version "~3" for function app "try-azure ... - GitHub
The remote version "~3" for function app "try-azure-functions" does not match your local version "~2". #2146.
Read more >GIT won't pull latest changes from remote - Stack Overflow
I cloned the repository into a new folder, logged into Bitbucket to get the latest commit hash and used git reset --hard [commit...
Read more >Git Reset Origin – How to Reset a Local Branch to Remote ...
Fetch the latest version of the code from the remote. Reset the local branch. Clean up files (optional). Save the Current State of...
Read more >Sync with a remote Git repository (fetch, pull, update) - JetBrains
In the Branches popup or in the Branches pane of the Version Control tool window, select a branch and choose Update from the...
Read more >git-remote Documentation - Git
Version 2.39.0 ▾ git-remote last updated in 2.39.0 ... If <oldurl> doesn't match any URL, an error occurs and nothing is changed.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What version information do you need? Most (all?) npm packages have a latest dist-tag (or at least it should be possible to find out, what is the highest number), but not all packages do have a next tag.
So I could agree that we should add a
latest version
field, probably as optional field, to keep backward compatibility. This would not give you the latest compatible version (as there is no range pattern, but at least the latest available version.How about that?
Solved by pr #105