Skip to content

Goldberry 2026.3

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 14:20
· 1 commit to master since this release

Goldberry adds a rich-text editor, optional spell checking, SVG rendering, and
camera and microphone capture. This release also expands CSS and replaces
the bundled media engine.

Breaking changes

Dependencies and native libraries

  • Replace each goldberry-media::ffmpeg-<target> dependency with
    goldberry-media::natives-<target>. Remove ffmpeg-sources. The new
    classifiers carry libgoldberry-media and its layout stamp. If you supplied
    a library through goldberry.media.libdir, rebuild it from this version's
    sources and point the property at the new install directory. Use
    :media:nativesBuild in build scripts that called :media:ffmpegBuild.
    Rebuild native images with matching classifiers.
  • libgoldberry now requires ABI 30 (ABI 18 in 2026.2). Update the
    goldberry-natives classifier jars alongside the BOM. Rebuild any custom
    library loaded with goldberry.native.library.
  • The bundled engine reads Matroska/WebM, MP4, Ogg, FLAC, WAV and MP3. Convert AVI files
    to a supported container before opening them. PlayerStatus reports the
    selected decoder's name where it used to report ffmpeg. Update code that
    matches decoder names or assumes the old capability lists.
  • Remove uses of SampleFormat.ffmpegSuffix() and
    goldberry.media.ffmpegLog. To use an installed FFmpeg executable as a
    fallback, set goldberry.media.ffmpeg to its path. Media Foundation is
    enabled by default on Windows and can be disabled with
    goldberry.media.mediaFoundation=false.

Java API

  • Goldberry.run() closes remaining windows and releases the backend when it
    returns. Open fresh windows for a later run.
  • Easing is a sealed interface with CubicBezier, Steps and
    PiecewiseLinear. Migrate enum-specific code to Easing.BUILT_IN,
    cssName() or a type switch. The built-in curve constants remain.
  • Trays.show returns Optional<ShownTray>. Update declarations that hold
    the result. Implement BackendTray.rows(List<TrayItem>) in custom backends.
    Implement the two Host.shortcut overloads accepting Repeat in custom
    hosts. Repeat.FIRE preserves the existing repeat policy.
  • State.context() is now a protected final method. Rename any method of
    the same signature in a subclass and use the inherited context while
    mounted.
  • Replace Paragraph.isBidiApproximate() with isBidirectional(). Where
    the direction is needed, use directionAt(offset) or directionality().
    Use the rendered leaf for the semantics that RichText exposed directly.
  • Box now takes Overflow followed by Presence where its long
    constructors took boolean elevated followed by Overflow. Use
    Presence.NORMAL or set its z-index. The fluent elevated(true) form
    still works. ComputedStyle stores overflowX and overflowY. Construct
    it with its factories and withers. textDecoration() returns
    TextDecorations; use textDecoration().lines() for the old set.
  • Background.layers() and BackgroundParser.images(…) return
    List<CssImage>. Match GradientLayer where you need gradients only.
    The containing-block helpers take the Border instead of padding
    Insets. StyleResolver.positionMatters takes two SiblingPosition
    values in place of four integers.
  • Use EditHistory<TextEdit> for a plain editor. An exhaustive
    EditHistory.Kind switch must handle FORMATTING.
  • Recompile record patterns against the current shapes. This affects
    Attributes (dragOut and spelling), Dragging (platform),
    RichText and Run, SpanPaint and MarkStyle, Slider (marks),
    ListView (sections), WebViewSpec (userAgent) and HtmlView
    (styles). Check patterns over Canvas, Compositing, Typography,
    TextFlow, Transform, Corners, Decoration, Box.Text,
    HitTest.Region, the CSS selector, stylesheet and animation records,
    and the background and gradient records. Previous constructor overloads
    remain where documented.
  • Update exhaustive switches that use changed enums or sealed types,
    including Cursor, TextAlign, Selector.PseudoClass,
    Selector.Combinator, PseudoElement, Overflow,
    Transitions.Animatable, Role, Length, MediaCondition,
    Structural, Gradient, GradientLayer, ImageSource and
    ToolkitLabel.
  • For custom media providers, DecoderRequest adds hardware.
    Honour softwareOnly() when opening a provider that can use hardware.
    MediaInfo adds chapters; a QuickTime chapter track is reported there
    instead of as a subtitle. Adapt patterns over Track, TrackParams.Video
    and VideoFrame to their current components. Use with… methods for
    PlayerStatus, whose canonical constructor now also takes looping.
    A wrapper around MediaIO should forward the new readAhead(long)
    method. Check switches over PixelFormat and Transport.Glyph.
  • Icon uses value equality. If distinct instances must remain separate
    keys, choose identity-based storage explicitly.

GPU

  • RenderPass.target() and PipelineSpec.targetFormat() return
    Optional because a pass can draw depth alone. Pass an Optional
    format to the constructor or use PipelineSpec.builder.
  • Update record patterns over PipelineSpec, DepthTarget and
    Canvas3d for stencilTest, clearStencil and renderScale. Check
    exhaustive switches over TextureFormat, TextureUsage,
    BufferUsage, BlendMode, RenderTarget and GpuResource.
    Sampled textures cannot simultaneously use GRAPHICS_STORAGE_READ.
    When render scale differs from 1, use the actual target dimensions.
  • RayTracer.device() returns RayTracing.Available. Match
    RayTracing.Hardware or RayTracing.Software when the tier matters.
    Handle RayTracingMode.SOFTWARE in exhaustive switches and pass a
    GpuDevice to open that tier.
  • MAILBOX and IMMEDIATE can present beyond the display rate. Set
    Window.frameCap if you used goldberry.backend.vsync=false while
    relying on the display limit. Account for PACING in exhaustive switches
    over the HUD's readings.

Markup

  • The inflater rejects unread properties, such as row gap=8,
    radio selected= or step current=. Move CSS values to the stylesheet
    and remove unread attributes. Set .unread(UnreadPolicy.WARN) temporarily
    if migrating several documents.
  • rich-text, run and rich-input are built-in names. The optional
    vector and capture modules also register svg-view, camera-view,
    level-meter, waveform-view and spectrum-view. Rename conflicting
    custom factories or deliberately shadow the built-in with replace.

Icons

  • The bundled icons are Lucide 1.54.0 (2026.2 had 0.469.0). Icon.bundled and
    Icons.bind throw NoSuchElementException for a removed or renamed name, and
    Icon.find answers empty. Removed: the brand marks chrome, codepen,
    codesandbox, dribbble, facebook, figma, framer, github, gitlab,
    instagram, linkedin, pocket, slack, trello, twitch, twitter,
    youtube, and rail-symbol; ship them as the application's own icons.
    Renamed, old name first: album → square-bookmark, align-center →
    text-align-center, align-justify → text-align-justify, align-left →
    text-align-start, align-right → text-align-end, angry → face-angry,
    annoyed → face-expressionless, badge-help → badge-question-mark,
    book-marked → book-bookmark, building-2 → building-complex,
    circle-help → circle-question-mark, file-audio and file-audio-2 →
    file-headphone, file-badge-2 → file-badge, file-check-2 →
    file-check-corner, file-code-2 → file-code-corner, file-json →
    file-braces, file-json-2 → file-braces-corner, file-key-2 →
    file-key, file-lock-2 → file-lock, file-minus-2 → file-minus-corner,
    file-plus-2 → file-plus-corner, file-question → file-question-mark,
    file-search-2 → file-search-corner, file-type-2 → file-type-corner,
    file-video → file-play, file-video-2 → file-video-camera,
    file-volume-2 → file-signal, file-warning → file-exclamation-point,
    file-x-2 → file-x-corner, filter → funnel, filter-x → funnel-x,
    fingerprint → fingerprint-pattern, flip-horizontal →
    square-centerline-dashed-horizontal, flip-horizontal-2 →
    triangles-centerline-dashed-horizontal, flip-vertical →
    square-centerline-dashed-vertical, flip-vertical-2 →
    triangles-centerline-dashed-vertical, frown → face-slightly-frowning,
    grab → hand-grab, history → rotate-ccw-clock, indent-decrease →
    list-indent-decrease, indent-increase → list-indent-increase, laugh →
    face-grinning, letter-text → text-initial, mail-question →
    mail-question-mark, meh → face-neutral, message-circle-question →
    message-circle-question-mark, podcast → mic-signal, shield-question →
    shield-question-mark, smile → face-slightly-smiling, smile-plus →
    face-slightly-smiling-plus, text → text-align-start, text-select →
    square-dashed-text, trash-2 → trash, waves → waves-horizontal,
    wrap-text → text-wrap.

Added

  • rich-input supports marks, formatting, mentions and rich clipboard
    content. rich-text renders interactive or selectable styled runs.
  • Editable fields can check spelling through goldberry-spell. Load an
    application-supplied Hunspell dictionary and opt in with spellcheck.
  • goldberry-vector renders SVG in images and document views. svg-view
    uses its CSS colour for currentColor. Lottie and transparent WebM
    animations can use AnimationView.
  • goldberry-camera and goldberry-mic add capture, preview and audio
    analysis. Microphone widgets show level, waveform and spectrum.
  • The CSS subset adds modern selectors and nesting, cascade layers,
    container queries, math functions, richer colours and gradients, filters,
    per-corner radii, and OpenType controls. Paragraphs support bidirectional
    layout and justification. Markdown and HTML can hyphenate English prose.
  • Media adds chapters, HDR-to-SDR tone mapping, Theora and optional Vulkan
    Video decoding. A video view can also show pictures pushed by the app.
  • The GPU API adds texture types, compute, indirect draws, stencil tests,
    adjustable 3D render scale and hardware or software ray tracing. A
    RasterTexture can upload only damaged pixels, with mapped uploads on
    supported devices.
  • Desktop integration adds native drag-out, global shortcuts where the
    platform grants them, a system credential store, and single-instance
    activation. Lists can measure variable-height rows and pin section headers.
  • The published dev.goldberry.weave Gradle plugin prepares models for
    native image. Frame listeners, percentiles and captures support diagnostics.

Changed

  • The documentation uses a wider pane on desktop screens to give tables and
    code examples more room.
  • The body type scale is now 15 px over a 20 px line. Borders take layout
    room, and CSS dimensions use border-box by default. Review tightly sized
    controls and custom styles against the new metrics.
  • html-view applies its supported author styles by default. Set
    author-styles="ignored" or HtmlView.authorStyles(AuthorStyles.IGNORED)
    to restore theme-only rendering.
  • A field that checks spelling moves an unselected caret to the word under
    a secondary click. The menu fills suggestions when the checker answers.
  • Occluded or hidden windows pause animation-driven frames. Desktop
    power-saving mode caps animation at 30 fps. Many damaged regions can be
    merged into a shorter list instead of requesting a full repaint.

Fixed

  • Native Showcase images package the codecs and SVG renderer. Startup
    presents a frame before registering the tray. Asset downloads retry
    when a read stalls.
  • Embedded pages remain visible over Metal on macOS. Popup placement and
    focus keep text-field context menus usable on Wayland.
  • Text uses the appropriate fallback face, composes bidirectional runs in
    visual order and draws document emphasis with italic faces. Copying
    automatically hyphenated prose preserves the original string.
  • Reused decoder samples, media buffering and planar uploads now use the
    correct output lengths and staging data.

Install

Goldberry 2026.3 is on Maven Central under the group dev.goldberry, and needs JDK 25.

dependencies {
    implementation platform('dev.goldberry:goldberry-bom:2026.3')
    implementation 'dev.goldberry:goldberry'
    // The native library: one classifier per platform you run on.
    runtimeOnly 'dev.goldberry:goldberry-natives::linux-x64'
    runtimeOnly 'dev.goldberry:goldberry-natives::linux-aarch64'
    runtimeOnly 'dev.goldberry:goldberry-natives::macos-aarch64'
    runtimeOnly 'dev.goldberry:goldberry-natives::windows-x64'
}

Installing
lists the Maven coordinates and optional modules with their classifiers.

Downloads

The showcase, every widget in one application, as a GraalVM native image: one file
per platform, attached below. Unpack the tarballs; the .exe runs as it is.

Changelog: CHANGELOG.md