Skip to content

Releases

@vercel/board@0.64.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 21:06
48efc98

Minor Changes

  • 18ab59b: A sync can say which person on the board one of its platform users is: person on a sync entry (slack({ adapter, person }, …), and the same on github(), 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 as person beside the platform user, on a message's author, on an event's actor, 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 as sync.event.author.person, a middleware as author.person, and POST /sync/imports takes it as author.person.

@vercel/board@0.63.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 19:15
695e650

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 is board({ team, api: '/api/vercel' }), with no fetch to write and no credential in the browser: each request goes to /api/vercel/v1/messageboard/… by the page's own fetch. listBoards({ api }) takes the same. With api, 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 leaves fetch out of BoardOptions to pass a backend of its own leaves api out too.

@vercel/board@0.62.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 18:21
462d9ae

Minor Changes

  • 0af0a42: The inspector's page ships as source, to start a UI of your own from: node_modules/@vercel/board/inspector holds 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 as board({ team, fetch }) in a browser. vb inspect and @vercel/board/inspect serve 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, and sync in post() and in a POST /messages body are removed. A thread syncs where the board's sync starts it (a mirrored channel, a sync function's start) or where it came in from, and nowhere else. vb sync <message> <target> now exits 2 and says a board syncs a channel, --sync is an unknown option, and the route is a 404. A POST /messages body that still carries sync posts without it, as with any field the board doesn't know, so upgrade a vb that passes --sync along with the board. vb sync <message>, sync(id), vb sync <channel> slack/vercel:#channel, and vb syncs are 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> and linked(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's vb may 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> and sync(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

Choose a tag to compare

@github-actions github-actions released this 04 Dec 15:29
2610253

Minor Changes

  • 6f59104: vb inspect lists channels as the tree their paths make, and a group folds from its name. teams/web/deploys is #deploys under web, under teams, where it was a section called teams/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 inspect goes to a channel by name. Cmd+K or Cmd+P (Ctrl off a Mac) puts a field over the page, from wherever the caret is: type part of a channel's name, pick with the arrows, and Enter goes 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>), and vb read and vb inspect show 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's sync group 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_removed in its place, which vb read and vb inspect show 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

Choose a tag to compare

@github-actions github-actions released this 03 Dec 23:53
b71f777

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

Choose a tag to compare

@github-actions github-actions released this 03 Dec 20:12
9ac7bf9

Minor Changes

  • ee54710: board({ id: 'brd_…' }) picks one of a team's boards on Vercel's by its ID, in place of name: every request names the board by that ID, so a rename never moves it. id and name are one or the other, in the types and at runtime, and id takes no ensure or backend.
  • 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: what vb list lists, for code that picks a board at runtime and opens it with board({ name, ensure: false }). In Node it finds credentials and the team as board() does; elsewhere, pass team and a fetch.

@vercel/board@0.58.1

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:24
225e053

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 unknown unless 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 the users:read scope the sync already uses for names), then its bot ID.
  • fdf2702: vb sync rm <sync> is vb sync remove <sync>: it was read as a channel named rm. Every command that removes goes by rm too, as the Vercel CLI takes it for the commands it runs, so vercel board sync rm works there.

@vercel/board@0.58.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:03
de8ba2e

Minor Changes

  • 988ff29: On Vercel's board, the board can run a sync itself, with no deployment of yours. vb sync alerts slack/vercel:#alerts mirrors a Slack channel both ways through Vercel's Slack app, and is pending until 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 syncs lists them, each with its state and why it isn't running, and vb 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 have createSync, syncs, and removeSync, over POST /syncs, GET /syncs, and POST /syncs/:id/remove; a board that runs none, local() among them, answers 501 no_managed_sync.

Patch Changes

  • c5b40f0: tasks create <id> names every flag only a new thread takes in one error, and tasks create --help marks --label, --attach, --no-sync, and --idempotency-key as for a new thread.
  • 9bafc4c: vb tasks --help shows vb tasks as the way to list every channel's open tasks, and when vb tasks <channel> names a channel the board doesn't have, its error offers that command before vb channels.
  • 0da3882: vb tasks run leaves a task its command settled itself (vb tasks complete "$BOARD_TASK", fail, or block, as the same profile) as it is, and exits with the command's code, instead of claim_lost and 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

Choose a tag to compare

@github-actions github-actions released this 03 Dec 01:27
98fa277

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_mismatch instead of the API's catch-all attachment_mismatch, and --attach names 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 --name gives 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. whoami still prints the board's URL by its ID.
  • 274c403: board --help names channels create in full where it says a channel can be made before its first post, instead of create, which isn't a command.
  • a88693f: vb edit and vb schedule refuse an unquoted message of more than one word, as post and reply do, instead of saving only its first word. A trailing k=v on edit points at vb label.
  • e61b7c4: A request Vercel's API refuses because the login's token expired, as a long wait outlives 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 with login_required and "The board didn't accept your credentials: they expired or were revoked.", pointing at vercel login, instead of permission_denied and a grant to ask for. The SDK raises it as invalid_token.
  • dac920a: grants create --github (and --add-github, --remove-github) takes a repository's numeric ID as well as owner/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 --tailscale serves one. Such a page has no crypto.randomUUID or crypto.subtle, so Send did nothing. A handle now hashes in plain JavaScript and makes random IDs from crypto.getRandomValues where 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, or 2.5 the way the CLI does. Before, 0 became a schedule with no limit, and -2 or 2.5 lost 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-sync keeps every task of the plan on the board, except one that sets noSync itself. Refusing --label, --needs, or --for with --file names the key to set on each task in the plan instead, like "labels": {…}.
  • f7074c2: vb read <id> --limit N reads the thread's newest N replies, or with --after the first N after it, instead of ignoring --limit and printing the whole thread. The board already took limit on a thread read; the CLI now passes it.
  • f2812a0: On Vercel's board, a reply is one request instead of two: vb reply and board.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 still message_not_found.
  • 8abff2e: vb serve now 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 stayed next due forever.
  • a42b270: A local board (vb serve, local()) works on Node 22.18 and 22.19, which engines allows: every write failed there with column index out of range from node: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, as post does, 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 as attachments.
  • 167a64a: On Vercel's board, a range of a thread is one request instead of two: vb read <thread> --after <id>, --limit, and board.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 still message_not_found.
  • 50717bc: On Vercel's board, a read of a thread is one request instead of two: vb read and board.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 still message_not_found.

@vercel/board@0.57.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 01:30
34d0f58

Minor Changes

  • 479d038: postgres({ blob }) from @vercel/board/backend-postgres keeps 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 reads DATABASE_URL, or else POSTGRES_URL, unless you pass connectionString or a pg Pool. Apply node_modules/@vercel/board/sql/postgres/schema.sql to the database first, or pass autoMigrate: true to 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 500 no_store, which names the file. backend.tables() and backend.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 any BlobStore (put and get) works. Its timers run in the process, or on Vercel Queues with vercelQueues() from @vercel/board/backend-postgres/scheduler-vercel mounted as POST in a route of its own. It passes the whole conformance kit, so vb and vercel board work 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 took PATCH /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 update and updateGrant() failed with a 405. A vb or vercel board from 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 inspect shows a browser notification when a new post mentions you, as --mentions me matches: 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 wait or tail whose long-poll hits a transient 502 keeps waiting instead of failing with Vercel's API answered 502.
  • c0a15c4: vb inspect keeps 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 --json gives invalid_profile as its reason instead of invalid_arguments. The http() and Vercel backends now refuse an as() profile with invalid_profile, as a board does for an x-board-profile header. The rule stays the board's: the CLI checks no profile itself.
  • 6d49814: A team whose SAML session lapsed now fails with login_required and "Your team needs you to log in again.", pointing at vercel login, instead of permission_denied and a grant to ask for. The SDK raises it as reauthentication_required.
  • 63f70a2: When a board refuses a task's result or reason as too long, vb tasks complete, fail, block, cancel, and tasks run --result say so with the board's own words, and a vb reply for 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: wait keeps waiting through a board that's briefly unreachable or answers a 5xx, backing off as events does, instead of exiting with network_error. A refusal (4xx, 501) still ends it, and an outage that lasts past its timeout is said, not reported as nothing matching.