GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(tui): upgrade opentui to 0.4.5 (#37522) · ghchinoy/opencode@38989c5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bun.lock
  • package.json
  • packages/plugin
    • package.json
  • script
    • upgrade-opentui.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
+17-17Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+3-3Lines 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.3",
44-
"@opentui/keymap": "0.4.3",
45-
"@opentui/solid": "0.4.3",
43+
"@opentui/core": "0.4.5",
44+
"@opentui/keymap": "0.4.5",
45+
"@opentui/solid": "0.4.5",
4646
"@tanstack/solid-virtual": "3.13.32",
4747
"@shikijs/stream": "4.2.0",
4848
"ulid": "3.0.1",
Collapse file

‎packages/plugin/package.json‎

Copy file name to clipboardExpand all lines: packages/plugin/package.json
+3-3Lines 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.3",
31-
"@opentui/keymap": ">=0.4.3",
32-
"@opentui/solid": ">=0.4.3"
30+
"@opentui/core": ">=0.4.5",
31+
"@opentui/keymap": ">=0.4.5",
32+
"@opentui/solid": ">=0.4.5"
3333
},
3434
"peerDependenciesMeta": {
3535
"@opentui/core": {
Collapse file

‎script/upgrade-opentui.ts‎

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

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

168169
if (removed.length === 0) return []
169170

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

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.