Skip to content

Commit 86e04d4

Browse files
revert(tui): downgrade opentui to 0.4.3 (anomalyco#37582)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
1 parent 45cd8d7 commit 86e04d4

4 files changed

Lines changed: 29 additions & 32 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.

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)