Skip to content

v0.20.0

Choose a tag to compare

@tannevaled tannevaled released this 26 Oct 20:15
· 5 commits to main since this release
85d4b67

go-pdfkit/pdfkit v0.20.0

Changed (breaking for users of the widget bridge)

The go-widgets/toolkit bridge moves to the subpackage github.com/go-pdfkit/pdfkit/widget. Importing pdfkit no longer links the toolkit, and with it collab, richdoc, JPEG 2000 and JBIG2.

v0.19.0 v0.20.0
packages linked by import "github.com/go-pdfkit/pdfkit" 403 196
go-llmflow gateway binary (darwin/arm64, CGO_ENABLED=0 -trimpath) 42,110,114 bytes 39,790,834 bytes

deps_test.go fails if the root package's import graph reaches go-widgets/toolkit again.

Upgrading

v0.19 (pdfkit) v0.20 (pdfkit/widget)
p.AddWidget(root, rect, opts) widget.Add(p, root, rect, opts)
p.AddWidgetVector(root, rect, opts) widget.AddVector(p, root, rect, opts)
pdfkit.WidgetOptions widget.Options
pdfkit.DefaultWidgetScale widget.DefaultScale

The errors are exported as widget.ErrEmptyRect and widget.ErrNoFont. Nothing else changed.

No repository of the fleet calls the bridge. gorequires finds 8 repositories that require pdfkit, and their clones have no call.