Repository navigation
Releases
@vercel/board@0.64.0
Minor Changes
- 18ab59b: A sync can say which person on the board one of its platform users is:
personon a sync entry (slack({ adapter, person }, …), and the same ongithub(),linear(),chatSdk(), and a provider of your own) is a function from a platform user to that person's actor ID (vercel:user:u_abc123), or null for no one. The board asks it for the author of every event and shows the answer aspersonbeside the platform user, on a message'sauthor, on an event'sactor, and in the actors list. The message stays the platform user's, and nothing the person may do follows from it: it's the sync's word, which the board passes on. A sync function reads it assync.event.author.person, a middleware asauthor.person, andPOST /sync/importstakes it asauthor.person.
@vercel/board@0.63.0
Minor Changes
- a118679:
board({ api })says where requests for Vercel's API go: a route of your app that adds a token the API takes and passes each request on, by its https URL or, in a page, by its path. A page's handle isboard({ team, api: '/api/vercel' }), with nofetchto write and no credential in the browser: each request goes to/api/vercel/v1/messageboard/…by the page's ownfetch.listBoards({ api })takes the same. Withapi, the handle sends no credentials of its own, in Node too: the ones it finds there go only to Vercel's own API. A type that leavesfetchout ofBoardOptionsto pass a backend of its own leavesapiout too.
@vercel/board@0.62.0
Minor Changes
- 0af0a42: The inspector's page ships as source, to start a UI of your own from:
node_modules/@vercel/board/inspectorholds its React components, its state, and its stylesheet, and imports board only as an app can (@vercel/board,@vercel/board/access,@vercel/board/schemas). Copy the folder, install what it imports, and render<App team={team} />on a handle of yours, such asboard({ team, fetch })in a browser.vb inspectand@vercel/board/inspectserve the same files as before, built. - 5cce87f: Breaking: a thread can't be attached to a platform target by hand any more.
vb sync <message> <target>,sync(id, target)on a handle,POST /messages/:id/sync,vb post --sync, andsyncinpost()and in aPOST /messagesbody are removed. A thread syncs where the board's sync starts it (a mirrored channel, a sync function'sstart) or where it came in from, and nowhere else.vb sync <message> <target>now exits 2 and says a board syncs a channel,--syncis an unknown option, and the route is a 404. APOST /messagesbody that still carriessyncposts without it, as with any field the board doesn't know, so upgrade avbthat passes--syncalong with the board.vb sync <message>,sync(id),vb sync <channel> slack/vercel:#channel, andvb syncsare unchanged, and threads attached before stay synced. On Vercel's board, attaching worked only from the project that runs the sync, and a post with targets was refused for everyone.
Patch Changes
- 41dc3e5:
vb read <link>andlinked(url)find the thread a Slack link names on a board whose sync Vercel runs (vb sync <channel> slack/vercel:#channel). Only a sync in the caller's own deployment read a link before, so at a terminal a link to a mirrored channel's message was never found. The board now asks Vercel's API, which runs that sync, when its own deployment's sync finds nothing for the link: one request more on such a read. A sandboxed agent'svbmay ask it too. It takes Vercel's API answering the lookup: until it does, such a link is not found, as before. - 9620326:
vb sync <id>andsync(id)give Slack's link to a message's copy in a channel the board mirrors with a sync Vercel runs (vb sync <channel> slack/vercel:#channel). They gave the copy's Slack IDs only, since a link came from a sync in the caller's own deployment and from nowhere else. The link is Vercel's API's, which runs that sync: a target it gives no link for shows its IDs, as before.
@vercel/board@0.61.0
Minor Changes
- 6f59104:
vb inspectlists channels as the tree their paths make, and a group folds from its name.teams/web/deploysis#deploysunderweb, underteams, where it was a section calledteams/web. A folded group says how many channels it holds, or that one of them has something new. What you fold is remembered in that browser, for each board. - 5a25fc1:
vb inspectgoes to a channel by name.Cmd+KorCmd+P(Ctrloff a Mac) puts a field over the page, from wherever the caret is: type part of a channel's name, pick with the arrows, andEntergoes there. It finds the activity view, tasks, and settings too, and the search button at the top of the sidebar opens it. - cb8d33f: The files of a Slack message that a synced message links to come over with its preview, when the app can fetch them: each is copied to the board and named in the link's snapshot as
attachment,{ id, name, type, size }, beside its Slack link. Whoever reads the message reads the copy (vb download <id>), andvb readandvb inspectshow it as they show a message's own files. A message carries at most 10 files, its own and its links' copies together; a file past that, one over 25 MB, or one Slack won't hand to the app stays a link. A backend keeps the copy an import names in a link (snapshot.files[].attachment, an attachment ID) and serves it wherever the message is read: the conformance kit'ssyncgroup checks it.
Patch Changes
- 9fc1a10: A message link's preview that someone removed in Slack stayed on the board: Slack sends the removal as a change with the same text, which nothing read. The board now drops the link's snapshot and keeps
preview_removedin its place, whichvb readandvb inspectshow as nothing under the message, and it doesn't read the linked message itself. It stays that way through later edits, until Slack shows a preview again.
@vercel/board@0.60.0
Minor Changes
- a2fa414:
sandboxPolicy({ restOfHost: 'pass' })lets a sandbox reach the rest of the board's host. The policy refuses everything on that host that isn't a board route, which on the team's board closes the rest of Vercel's API too. With'pass', a request outside the board's own paths goes to the rules after the board's, yours or the ones Vercel Sandbox adds, and one that none claims reaches the host with nothing the policy adds. Under the board's paths, only the routes the policy hands get through, as before.
Patch Changes
- 2ea9a8d: When the CLI can't reach a board at all, it now says to check that the machine has network access to it (a sandbox may block it) before running it again, so a local restriction isn't mistaken for an outage.
@vercel/board@0.59.0
Minor Changes
- ee54710:
board({ id: 'brd_…' })picks one of a team's boards on Vercel's by its ID, in place ofname: every request names the board by that ID, so a rename never moves it.idandnameare one or the other, in the types and at runtime, andidtakes noensureorbackend. - 142ead2:
listBoards({ team })lists the team's boards your credentials may use in Vercel's API, every page of them, with the ID of its default board: whatvb listlists, for code that picks a board at runtime and opens it withboard({ name, ensure: false }). In Node it finds credentials and the team asboard()does; elsewhere, passteamand afetch.
@vercel/board@0.58.1
Patch Changes
- c546c3f: A Slack message an app posts with no user of its own, as it answers a slash command or through an incoming webhook, came in from
unknownunless it set a username. It now comes in under the app's name and picture: what the message says of the app, then Slack's record of the bot (bots.info, under theusers:readscope the sync already uses for names), then its bot ID. - fdf2702:
vb sync rm <sync>isvb sync remove <sync>: it was read as a channel namedrm. Every command that removes goes byrmtoo, as the Vercel CLI takes it for the commands it runs, sovercel board sync rmworks there.
@vercel/board@0.58.0
Minor Changes
- 988ff29: On Vercel's board, the board can run a sync itself, with no deployment of yours.
vb sync alerts slack/vercel:#alertsmirrors a Slack channel both ways through Vercel's Slack app, and ispendinguntil someone in that channel accepts it with the/vercel board sync accept <id>command its reason gives. Anyone in the channel can stop it with/vercel board sync stop <id>.vb syncslists them, each with its state and why it isn't running, andvb sync remove <id>stops one. A sync's request and its answer name the Slack app it goes through as a connector is named (slack: { app: 'slack/vercel', … }), so another app later is a new value there. The handle and the client havecreateSync,syncs, andremoveSync, overPOST /syncs,GET /syncs, andPOST /syncs/:id/remove; a board that runs none,local()among them, answers 501no_managed_sync.
Patch Changes
- c5b40f0:
tasks create <id>names every flag only a new thread takes in one error, andtasks create --helpmarks--label,--attach,--no-sync, and--idempotency-keyas for a new thread. - 9bafc4c:
vb tasks --helpshowsvb tasksas the way to list every channel's open tasks, and whenvb tasks <channel>names a channel the board doesn't have, its error offers that command beforevb channels. - 0da3882:
vb tasks runleaves a task its command settled itself (vb tasks complete "$BOARD_TASK",fail, orblock, as the same profile) as it is, and exits with the command's code, instead ofclaim_lostand exit 1. A command that settles its task and keeps working is no longer stopped at the next renewal. - 81d6039: On Vercel's board,
vb wait --re <id> --after <id>(and any wait or read after a message or a printed cursor) in a channel with a long history answers right away with what came after, instead of paging through the channel's whole feed a second at a time and timing out first. It goes on from the message's place among the feed's newest 100 changes, and a feed it still has to read from its oldest change is read without pausing between pages.
@vercel/board@0.57.1
Patch Changes
- 78c746a: On Vercel's board, an upload whose bytes aren't the image or video type its name says is now 422
attachment_type_mismatchinstead of the API's catch-allattachment_mismatch, and--attachnames the file:Can't attach after.png. Its name says image/png, but its bytes aren't that type. - d1b9813: On Vercel's board, a request names its board in its path, by the name
board({ name })or--namegives or as General for the team's default board, instead of asking for the board's ID first: every command, and every process's first call, makes one request fewer. A name the API knows no board for is answered 404 once, then found or made as before.whoamistill prints the board's URL by its ID. - 274c403:
board --helpnameschannels createin full where it says a channel can be made before its first post, instead ofcreate, which isn't a command. - a88693f:
vb editandvb schedulerefuse an unquoted message of more than one word, aspostandreplydo, instead of saving only its first word. A trailingk=voneditpoints atvb label. - e61b7c4: A request Vercel's API refuses because the login's token expired, as a long
waitoutlives an access token, now asks for the login again and goes once more, which refreshes it, instead of failing. A token it still won't take fails withlogin_requiredand "The board didn't accept your credentials: they expired or were revoked.", pointing atvercel login, instead ofpermission_deniedand a grant to ask for. The SDK raises it asinvalid_token. - dac920a:
grants create --github(and--add-github,--remove-github) takes a repository's numeric ID as well asowner/repo, so a grant can name a repository no project of the team links, as Vercel's API asks for one, instead of only through--file. - 4d9dc67: The Inspector's composer attaches a file dropped on it, with the same size and count limits as one pasted or picked. A drag that carries no files, like selected text, is left to the text box.
- 3d6de64: The Inspector sends on a page served over plain http to a host other than localhost, as
vb serve --tailscaleserves one. Such a page has nocrypto.randomUUIDorcrypto.subtle, so Send did nothing. A handle now hashes in plain JavaScript and makes random IDs fromcrypto.getRandomValueswhere WebCrypto's aren't there. - 9589fcc: The Inspector shows only the answer to what you're looking at now: a sync inbox, or the pending or all schedules, that answers after you switched away no longer replaces the rows of the tab you switched to.
- 30bb0e1: The Inspector keeps a thread's messages in reach when it has many pending schedules: the facts above them take at most a third of the screen and scroll on their own, and each schedule is one line, cut with an ellipsis, with its whole text on hover and its cancel button kept.
- 69e7800: The Inspector's send-later form sends a repeat count as typed, so the board refuses
0,-2, or2.5the way the CLI does. Before,0became a schedule with no limit, and-2or2.5lost their sign or point and scheduled 2 or 25 sends. - 79300f1: The inspector's menus, context menus, popovers, and suggestions run on ui-sdk instead of Base UI, and look and work as before. An open menu no longer locks the page's scroll or makes the rest of it inert: a press outside only closes it. A context menu near the right edge opens beside the pointer, shifted to fit, instead of flipping to its left.
- 07ed06c:
vb tasks create --file --no-synckeeps every task of the plan on the board, except one that setsnoSyncitself. Refusing--label,--needs, or--forwith--filenames the key to set on each task in the plan instead, like"labels": {…}. - f7074c2:
vb read <id> --limit Nreads the thread's newest N replies, or with--afterthe first N after it, instead of ignoring--limitand printing the whole thread. The board already tooklimiton a thread read; the CLI now passes it. - f2812a0: On Vercel's board, a reply is one request instead of two:
vb replyandboard.reply()no longer read the message they answer before posting. The message's ID says its thread, and the post's own answer says its channel and who wrote it. A reply to a message that isn't there is stillmessage_not_found. - 8abff2e:
vb servenow sends a schedule that was pending when it stopped: on its first request after a restart it arms every pending schedule again, so one that came due while it was down sends once and a repeating one keeps going. Before, they stayednext dueforever. - a42b270: A local board (
vb serve,local()) works on Node 22.18 and 22.19, whichenginesallows: every write failed there withcolumn index out of rangefromnode:sqlite, which before 22.20 can't bind a statement that uses a numbered parameter twice. The tables now bind plain positional parameters. - c823ae5:
vb tasks create <channel> <text>takes--attach, aspostdoes, so a task's files go on its root instead of a separate reply. Making a task of a thread that's there, or of a plan (--file), refuses it: a plan's tasks take their files asattachments. - 167a64a: On Vercel's board, a range of a thread is one request instead of two:
vb read <thread> --after <id>,--limit, andboard.thread(id, { after, limit })no longer read the thread's first message apart. The range's own answer says the thread and its first message. An ID that is no message's is stillmessage_not_found. - 50717bc: On Vercel's board, a read of a thread is one request instead of two:
vb readandboard.thread()no longer read the message they're given before the thread's messages. The message's ID says its thread, and the messages' own answer says their channel. A range (--after,limit) is one request fewer too. An ID that is no message's is stillmessage_not_found.
@vercel/board@0.57.0
Minor Changes
-
479d038:
postgres({ blob })from@vercel/board/backend-postgreskeeps a board on Postgres (npm i pg): its log and its tables in one database, shared by every instance that serves it, and its files in the blob store it requires, so a board you host runs on serverless functions. It readsDATABASE_URL, or elsePOSTGRES_URL, unless you passconnectionStringor apgPool. Applynode_modules/@vercel/board/sql/postgres/schema.sqlto the database first, or passautoMigrate: trueto have the board apply it on its first call when the database doesn't have this release's: without either, a database without the tables fails the board's first call with 500no_store, which names the file.backend.tables()andbackend.migrate()say which schema the database has and apply this release's, for a setup page.vercelBlob()from@vercel/board/backend-postgres/blob-vercel(npm i @vercel/blob) is a private Vercel Blob store that takes files up to 100 MB, and anyBlobStore(putandget) works. Its timers run in the process, or on Vercel Queues withvercelQueues()from@vercel/board/backend-postgres/scheduler-vercelmounted asPOSTin a route of its own. It passes the whole conformance kit, sovbandvercel boardwork against it with--url.// app/api/board/[[...path]]/route.ts import { board } from '@vercel/board' import { postgres } from '@vercel/board/backend-postgres' import { vercelBlob } from '@vercel/board/backend-postgres/blob-vercel' import { vercelQueues } from '@vercel/board/backend-postgres/scheduler-vercel' export const scheduler = vercelQueues({ topic: 'board' }) export const team = board({ backend: postgres({ blob: vercelBlob(), scheduler }) }) export const GET = team.fetch, POST = team.fetch
// app/api/board-scheduler/route.ts export { scheduler as POST } from '@/app/api/board/[[...path]]/route'
// vercel.json { "functions": { "app/api/board-scheduler/route.ts": { "experimentalTriggers": [{ "type": "queue/v2beta", "topic": "board", "retryAfterSeconds": 30 }] } } }
-
2e8f3ba: Breaking: a grant changes with
POST /grants/:id/update, where it tookPATCH /grants/:id. The protocol uses GET and POST alone again, so a board mounted as the docs mount one (export const GET = team.fetch, POST = team.fetch) takes it: there,vb grants updateandupdateGrant()failed with a 405. Avborvercel boardfrom before this release gets a 404 changing a grant on a board on this one, and this release's gets one on an older board, so upgrade both. Your team's board in Vercel's API is unaffected. -
346a2af:
vb inspectshows a browser notification when a new post mentions you, as--mentions mematches: your ID or your handle, outside code, whichever profile the page posts as. Clicking it focuses the tab and opens the thread at that message. The page asks for permission on a click or keypress, and notifies in a background tab too. Edits, messages the page loaded with, and your own posts don't notify: what you write as yourself, and what you write in that tab as any profile.
Patch Changes
- 2432ec6: On Vercel's board, a request its gateway answers 502 or 504 goes again after a second, doubling each time, as a 503 does: reads always, and writes the API can tell it has seen. A
waitortailwhose long-poll hits a transient 502 keeps waiting instead of failing withVercel's API answered 502. - c0a15c4:
vb inspectkeeps a long label on a message to one line, cut off with an ellipsis at the message's width, instead of pushing the page wider. Hovering it shows the whole label, and clicking it still opens the label editor. - e291162: When a board refuses a profile (
--as,BOARD_PROFILE), the CLI says so in its headline (Can't claim task #2. The board doesn't take that profile.) with the board's rule under it, and--jsongivesinvalid_profileas itsreasoninstead ofinvalid_arguments. The http() and Vercel backends now refuse anas()profile withinvalid_profile, as a board does for anx-board-profileheader. The rule stays the board's: the CLI checks no profile itself. - 6d49814: A team whose SAML session lapsed now fails with
login_requiredand "Your team needs you to log in again.", pointing atvercel login, instead ofpermission_deniedand a grant to ask for. The SDK raises it asreauthentication_required. - 63f70a2: When a board refuses a task's result or reason as too long,
vb tasks complete,fail,block,cancel, andtasks run --resultsay so with the board's own words, and avb replyfor the full report in the task's thread, then the same verb again with a line or two. The limit stays the board's: the CLI checks no length itself. - 26428ed:
waitkeeps waiting through a board that's briefly unreachable or answers a 5xx, backing off aseventsdoes, instead of exiting withnetwork_error. A refusal (4xx, 501) still ends it, and an outage that lasts past its timeout is said, not reported as nothing matching.