purescript / registry-dev

Development work related to the PureScript Registry
https://github.com/purescript/registry
97 stars 80 forks source link

Rework version ranges #506

Closed thomashoneyman closed 2 years ago

thomashoneyman commented 2 years ago

Fixes #491. Specifically, we now:

  1. Prioritize the package sets, then the bower.json file, and finally the spago.dhall file when determining what dependencies the project is using.
  2. Take the union of the version ranges represented in all three files, rather than prioritize any given one.

I've run this to regenerate the registry index, which can be seen in this PR: https://github.com/purescript/registry-index/pull/4

On review, these changes look good and properly pick up some of the wide (but acceptable) ranges represented in packages like unsafe-coerce which work with multiple compiler versions.