yarn outdated do not show new beta versions

Created on 27 Nov 2016  路  6Comments  路  Source: yarnpkg/yarn

Do you want to request a feature or report a bug?

bug

What is the current behavior?

yarn outdated do not show package new beta versions.

$ yarn outdated                                                                                                     
yarn outdated v0.17.9
Done in 2.10s.

$ npm outdated                                                                                                      
Package                            Current         Wanted  Latest
webpack-dev-server           2.1.0-beta.11  2.1.0-beta.12  1.16.2

package.json

...
"devDependencies": {
  "webpack-dev-server": "^2.1.0-beta.11",
}

What is the expected behavior?

Yarn should show outdated beta versions.

cat-bug

Most helpful comment

Seems like it's already fixed. @farwayer Could you please try the master version - does it work correctly?

All 6 comments

@farwayer please read this: https://www.npmjs.com/package/semver#prerelease-tags

What do you mean? 2.1.0-beta.12 satisfies range. So package should be marked as outdated.

$ semver -r ^2.1.0-beta.11  2.1.0-beta.12                                                                              
2.1.0-beta.12

@farwayer My bad. You are right. We check if the dependency is old. Where as we should check if it satisfies.

Seems like it's already fixed. @farwayer Could you please try the master version - does it work correctly?

@DenisGorbachev You are correct. Fixed in latest master.

screenshot 2016-11-28 16 57 35

Works like a charm!

Was this page helpful?
0 / 5 - 0 ratings