Skip to content

chore(deps): bump golang.design/x/clipboard from 0.8.0 to 0.10.0 - #49

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/golang.design/x/clipboard-0.10.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/golang.design/x/clipboard-0.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 29, 2026

Copy link
Copy Markdown

Bumps golang.design/x/clipboard from 0.8.0 to 0.10.0.

Release notes

Sourced from golang.design/x/clipboard's releases.

v0.10.0

FreeBSD gets native Wayland, the primary selection works under ext-data-control, and the docs are rewritten for the people reading them. No API changes: go get golang.design/x/clipboard@v0.10.0 is a drop-in upgrade from v0.9.0.

New

Native Wayland on FreeBSD (#173, #174). The pure-Go Wayland backend Linux uses now runs on FreeBSD too. Under a compositor that offers data-control, such as sway, Hyprland or KDE Plasma from FreeBSD packages, the clipboard no longer needs XWayland, and without XWayland it now works at all. Nothing to configure: when WAYLAND_DISPLAY is set and a data-control manager is advertised, Wayland is used; otherwise X11, as before.

It is tested in CI: a new job runs the whole test suite as a client of headless sway 1.12 in a FreeBSD VM, against wl-copy/wl-paste from FreeBSD packages. OpenBSD and NetBSD compile the same path, but it is untested there.

Fixed

The primary selection under ext-data-control (#175). FromPrimary() said the middle-click clipboard was unsupported under every compositor offering ext-data-control-v1, such as current sway, KWin and GNOME 49, although that protocol has had it since its first version. The backend was using the wlroots protocol's version rule for both. The new FreeBSD job found this: its sway prefers ext, while Ubuntu's older sway offers only the wlroots protocol.

Docs

README and package docs rewritten (#176). They now open with a quick start that compiles, followed by a platform table, a feature table, and one short section per task. Examples that no longer compiled against v0.9.0 are fixed, and so are function docs that had gone stale: Init no longer warns about libx11-dev and panics, and Read, WriteAll, FromPrimary and ErrNoData now describe the errors they actually return.

Thanks

Thanks to @​halcyon for asking for FreeBSD Wayland support in #173.

Full changelog: golang-design/clipboard@v0.9.0...v0.10.0

v0.9.0

The largest release this package has had: a breaking API change that makes failures visible and operations cancellable, four new capabilities, and a browser backend that the API change made possible.

Every open issue on the tracker is closed by this release.


⚠️ Breaking: context.Context in, error out

Read used to return nil for every kind of failure, so you could not tell an empty clipboard from a missing X server — the package even carried an internal debug flag whose only job was printing that difference to stderr. And a read could not be bounded: on X11 it might sit for five seconds with no way for you to say otherwise.

Every call that moves bytes now takes a context first and returns an error last.

before after
b := clipboard.Read(f) b, err := clipboard.Read(ctx, f)
ch := clipboard.Write(f, b) ch, err := clipboard.Write(ctx, f, b)
fs := clipboard.Formats() fs, err := clipboard.Formats(ctx)
v, err := clipboard.ReadAs(f, dec) v, err := clipboard.ReadAs(ctx, f, dec)

Init, Register and Watch are unchanged at the call site. Watch did change

... (truncated)

Commits
  • 8250de2 docs: rewrite the README and package docs for the reader (#176)
  • 0122d80 wayland: reach the primary selection through ext-data-control (#175)
  • 1c318c3 clipboard: use the native Wayland backend on FreeBSD (#173) (#174)
  • 725156d specs: word choice
  • c768c5d clipboard: add the browser backend (#64) (#172)
  • cc606a2 clipboard: take a context and return an error (v0.9.0) (#171)
  • abdddd7 x11: do not close the connection out from under the last reply (#170)
  • bbca04e clipboard: limit how many times a write is served (#22) (#169)
  • b4a0ae4 x11: do not wait on a selection nobody owns (#168)
  • 5f89cbb clipboard: reach the primary (middle-click) selection (#67) (#167)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [golang.design/x/clipboard](https://github.com/golang-design/clipboard) from 0.8.0 to 0.10.0.
- [Release notes](https://github.com/golang-design/clipboard/releases)
- [Commits](golang-design/clipboard@v0.8.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.design/x/clipboard
  dependency-version: 0.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Sep 29, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: dependencies, go. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants