From ec9b1329354804c787e7899e4e05109480cef3d0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:04:20 +0000 Subject: [PATCH] chore: bump @std/semver from 0.224.3 to 1.0.1 --- core/updates.ts | 4 ++-- deno.json | 2 +- deno.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/updates.ts b/core/updates.ts index c9bf5bef..51ae6dd9 100644 --- a/core/updates.ts +++ b/core/updates.ts @@ -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, ); diff --git a/deno.json b/deno.json index 394bef83..556f1910 100644 --- a/deno.json +++ b/deno.json @@ -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" diff --git a/deno.lock b/deno.lock index c64b2f5e..bc187f1e 100644 --- a/deno.lock +++ b/deno.lock @@ -50,7 +50,7 @@ "jsr:@std/path@^0.221.0": "jsr:@std/path@0.221.0", "jsr:@std/path@^1.0.0": "jsr:@std/path@1.0.2", "jsr:@std/path@^1.0.2": "jsr:@std/path@1.0.2", - "jsr:@std/semver@^0.224.3": "jsr:@std/semver@0.224.3", + "jsr:@std/semver@^1.0.0": "jsr:@std/semver@1.0.1", "jsr:@std/streams@0.221.0": "jsr:@std/streams@0.221.0", "jsr:@std/streams@^1.0.0": "jsr:@std/streams@1.0.0", "jsr:@std/testing@^0.225.0": "jsr:@std/testing@0.225.3", @@ -262,8 +262,8 @@ "@std/path@1.0.2": { "integrity": "a452174603f8c620bd278a380c596437a9eef50c891c64b85812f735245d9ec7" }, - "@std/semver@0.224.3": { - "integrity": "7bb34b5ad46de2c0c73de0ca3e30081ef64b4361f66abd57c84ff1011c6a1233" + "@std/semver@1.0.1": { + "integrity": "f0c9b41b70e27e8cdfe9252b486c55a727d66ead72625e0fa1aae75f45ca15e1" }, "@std/streams@0.221.0": { "integrity": "47f2f74634b47449277c0ee79fe878da4424b66bd8975c032e3afdca88986e61", @@ -527,7 +527,7 @@ "jsr:@std/fs@^1.0.0", "jsr:@std/jsonc@^1.0.0", "jsr:@std/path@^1.0.0", - "jsr:@std/semver@^0.224.3", + "jsr:@std/semver@^1.0.0", "jsr:@std/streams@^1.0.0", "jsr:@std/testing@^0.225.0", "npm:@conventional-commits/parser@^0.4.1",