Skip to content

Prepare for newer semver versions, bring index._ and index.js in sync#154

Merged
artemp merged 2 commits intomapnik:gh-pagesfrom
mstock:minor-improvements
Feb 13, 2020
Merged

Prepare for newer semver versions, bring index._ and index.js in sync#154
artemp merged 2 commits intomapnik:gh-pagesfrom
mstock:minor-improvements

Conversation

@mstock
Copy link
Copy Markdown
Contributor

@mstock mstock commented Feb 3, 2020

I noticed that newer versions (>= v7.0.0) of semver have dropped support for calling it as semver(<version>) while version ^5.1.0, that is currently referenced in package.json, seems to support semver.parse(<version>) already, and that index.js is not in sync with index._ anymore. This pull request should fix these two issues.

It seems that newer versions (>= v7.0.0) of the semver module have
dropped support for calling it as semver(<version>), so switching to
semver.parse(<version>) makes the code ready for a future upgrade to
a more current version of the semver module.
This brings the versionRefs list in sync with the versions list again.
@mstock
Copy link
Copy Markdown
Contributor Author

mstock commented Feb 13, 2020

The suggested change in this PR is using an approach that is similar to one in the patch in the slightly newer issue #155, which is already used in the Debian package of mapnik-reference.

@mstock mstock requested a review from springmeyer February 13, 2020 10:18
@artemp artemp merged commit 06460d6 into mapnik:gh-pages Feb 13, 2020
@artemp artemp mentioned this pull request Feb 13, 2020
@mstock
Copy link
Copy Markdown
Contributor Author

mstock commented Feb 13, 2020

Thanks :)!

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.

2 participants