Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.9: fix prerelease -> prerelease upgrades + dep updates #784

Merged
merged 3 commits into from Aug 15, 2018

Conversation

vikaspotluri123
Copy link
Member

  • allow upgrades from prerelease -> prerelease (i.e. Ghost 2.0.0-rc.1 -> Ghost 2.0.0-rc.2)
  • Dependency upgrades

if (err.message.match(/No valid versions found/) && semver.major(currentVersion) !== semver.major(pkg.version)) {
// CASE: you are on v2 prerelease, and want to upgrade to the next prerelease
if (err.message.match(/No valid versions found/) &&
(semver.major(currentVersion) !== semver.major(pkg.version) || semver.prerelease(pkg.version))

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@coveralls
Copy link

coveralls commented Aug 15, 2018

Coverage Status

Coverage remained the same at 99.599% when pulling 14b6a75 on vikaspotluri123:1.9 into 6150707 on TryGhost:1.9.

@vikaspotluri123
Copy link
Member Author

I'm not sure what changed in eslint to require only the bin folder to be globbed 😕 I tested that the other folders were being linted by adding a syntax error to a file, and everything else is being picked up properly 🤷‍♂️

@kirrg001
Copy link
Contributor

You have jumped to a major version of eslint?

@vikaspotluri123
Copy link
Member Author

Yes, since the migration guide didn't seem to have any changes that would impact the CLI

no issue

The following packages have (partially) been held back:

got - got v9 drops support for node v6 so we have to stay on got v8
rxjs - had migration issues for us in past upgrade attempts
cli-table3 - the release on github is 0.5.0; not upgrading to be safe
yargs - only upgraded semver minor since 1.9 is an important release
validator - not upgrading for now
no issue

- Updated edgecase logic to allow eg. Ghost 2.0.0-rc.1 to Ghost 2.0.0-rc.2
- Added tests to ensure e.g. Ghost 2.0.0-rc.1 to Ghost 2.0.0.
- Previously, attempting to update ghost when in a prerelease could cause the CLI to incorrectly determine your instance is up to date
no issue

eslint was complaining that no files matched bin, so updated the command
to use the bin/* glob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants