Skip to content

Commit

Permalink
Upgrade semver package to v3 (close #297)
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Apr 4, 2022
1 parent a739cd2 commit c6195c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module esm.sh
go 1.16

require (
github.com/Masterminds/semver v1.5.0
github.com/Masterminds/semver/v3 v3.1.1
github.com/aws/aws-sdk-go v1.42.53
github.com/dgraph-io/ristretto v0.1.0
github.com/evanw/esbuild v0.14.25
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/aws/aws-sdk-go v1.42.53 h1:56T04NWcmc0ZVYFbUc6HdewDQ9iHQFlmS6hj96dRjJs=
Expand Down
4 changes: 2 additions & 2 deletions server/nodejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"esm.sh/server/storage"

"github.com/Masterminds/semver"
"github.com/Masterminds/semver/v3"
"github.com/ije/gox/utils"
)

Expand Down Expand Up @@ -337,7 +337,7 @@ func fetchPackageInfo(name string, version string) (info NpmPackage, err error)
var c *semver.Constraints
c, err = semver.NewConstraint(version)
if err != nil {
return
return fetchPackageInfo(name, "latest")
}
vs := make([]*semver.Version, len(h.Versions))
i := 0
Expand Down

0 comments on commit c6195c1

Please sign in to comment.