Skip to content

Commit

Permalink
chore: bump @std/semver from 0.224.3 to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and hasundue committed Aug 7, 2024
1 parent 8ac9146 commit ec9b132
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ async function getPackageUpdate(
const versions = await getVersions(dep);
const semvers = mapNotNullish(versions, SemVer.tryParse);

const locked = SemVer.tryParse(dep.locked);
const locked = dep.locked ? SemVer.tryParse(dep.locked) : undefined;
const range = SemVer.parseRange(dep.constraint);

const constrainted = SemVer.maxSatisfying(
semvers.filter((it) => SemVer.greaterThan(it, locked ?? SemVer.MIN)),
locked ? semvers.filter((it) => SemVer.greaterThan(it, locked)) : semvers,
range,
);

Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@std/fs": "jsr:@std/fs@^1.0.0",
"@std/jsonc": "jsr:@std/jsonc@^1.0.0",
"@std/path": "jsr:@std/path@^1.0.0",
"@std/semver": "jsr:@std/semver@^0.224.3",
"@std/semver": "jsr:@std/semver@^1.0.0",
"@std/streams": "jsr:@std/streams@^1.0.0",
"@std/testing": "jsr:@std/testing@^0.225.0",
"dedent": "npm:dedent@^1.5.3"
Expand Down
8 changes: 4 additions & 4 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec9b132

Please sign in to comment.