question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest version doesn't mach remote version

See original GitHub issue

Hallo.

I found that the output returns always the same versions:

image

These two props return the correct values:

json['dist-tags']['latest']
json['dist-tags']['next']

example: image

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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
BePo65commented, Jul 25, 2022

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?

0reactions
BePo65commented, Jul 31, 2022

Solved by pr #105

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found