Skip to content

Commit 731a4fb

Browse files
author
sword
committed
Merge remote-tracking branch 'upstream/dev' into fix/web-new-session-empty-projects
2 parents f4b8983 + 3476e6b commit 731a4fb

5 files changed

Lines changed: 33 additions & 36 deletions

File tree

bun.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/hashes.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"nodeModules": {
3-
"x86_64-linux": "sha256-zAftZieWR0hWQQVkhEa826iueHaRnKxtyRodhNb+Apc=",
4-
"aarch64-linux": "sha256-cTG+gB7CuiFgaYHSFbzXaXUI1C2kiugV3B9rUDRUwlg=",
5-
"aarch64-darwin": "sha256-ap4Xv5ZliourkI4mcD0ktbzSI88jb4oVBv5mMK3WdUs=",
6-
"x86_64-darwin": "sha256-NGRJMMnaMNrf3FkcYwr5PcfVm5thhlNLGIeMmAK0MeE="
3+
"x86_64-linux": "sha256-XWoSYsV18a5uvjM3KuyGQWiFAtcCV0ij8brOLuFOW+g=",
4+
"aarch64-linux": "sha256-50cI0CuzzMRO8vznPxTHRhgHirE7siOg6AmyKLhZ2oo=",
5+
"aarch64-darwin": "sha256-5JpSBNyKqiB+gOrkxMNWyWGWLdNlbEiirA56GDhAS4E=",
6+
"x86_64-darwin": "sha256-X1r9aOSEdMUqWtqa4a/tBK2nRSwIWfKOwqJfpFknhII="
77
}
88
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"@octokit/rest": "22.0.0",
4141
"@hono/standard-validator": "0.2.0",
4242
"@hono/zod-validator": "0.4.2",
43-
"@opentui/core": "0.4.5",
44-
"@opentui/keymap": "0.4.5",
45-
"@opentui/solid": "0.4.5",
43+
"@opentui/core": "0.4.3",
44+
"@opentui/keymap": "0.4.3",
45+
"@opentui/solid": "0.4.3",
4646
"@tanstack/solid-virtual": "3.13.32",
4747
"@shikijs/stream": "4.2.0",
4848
"ulid": "3.0.1",

packages/plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"zod": "catalog:"
2828
},
2929
"peerDependencies": {
30-
"@opentui/core": ">=0.4.5",
31-
"@opentui/keymap": ">=0.4.5",
32-
"@opentui/solid": ">=0.4.5"
30+
"@opentui/core": ">=0.4.3",
31+
"@opentui/keymap": ">=0.4.3",
32+
"@opentui/solid": ">=0.4.3"
3333
},
3434
"peerDependenciesMeta": {
3535
"@opentui/core": {

script/upgrade-opentui.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,21 +160,18 @@ async function fixKnownLockfileIssues() {
160160
if (stale.length === 0) return []
161161
if (stale.some((item) => !item.entry.startsWith("opentui-spinner/@opentui/"))) return []
162162

163-
const lines = txt.split("\n")
164-
const spinnerEntry = /^ "(opentui-spinner\/@opentui\/[^"]+)": \[.*\],\r?$/
165-
const removed = lines
166-
.map((line) => line.match(spinnerEntry)?.[1])
163+
const removed = txt
164+
.split("\n")
165+
.map((line) => line.match(/^ "(opentui-spinner\/@opentui\/[^\"]+)": /)?.[1])
167166
.filter((item): item is string => item !== undefined)
168167

169168
if (removed.length === 0) return []
170169

171-
// Bun separates package records with a blank line, so remove each record's separator with it.
172170
await Bun.write(
173171
lockfile,
174-
lines
175-
.filter(
176-
(line, index) => !spinnerEntry.test(line) && !(line.trim() === "" && spinnerEntry.test(lines[index - 1] ?? "")),
177-
)
172+
txt
173+
.split("\n")
174+
.filter((line) => !line.match(/^ "opentui-spinner\/@opentui\//))
178175
.join("\n"),
179176
)
180177
return removed

0 commit comments

Comments
 (0)