diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 6446165c6..5bd2d8eb3 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -1,4 +1,4 @@ -#### Features ๐Ÿ’ธ +#### Features ๐Ÿš€ - Formatting of d2 scripts is supported on the CLI with the `fmt` subcommand. [#292](https://github.com/terrastruct/d2/pull/292) diff --git a/ci/release/changelogs/template.md b/ci/release/changelogs/template.md index 131061b70..f3c0d2a77 100644 --- a/ci/release/changelogs/template.md +++ b/ci/release/changelogs/template.md @@ -1,4 +1,4 @@ -#### Features ๐Ÿ’ธ +#### Features ๐Ÿš€ #### Improvements ๐Ÿงน diff --git a/d2plugin/serve.go b/d2plugin/serve.go index e7ca429aa..75f1ae1a1 100644 --- a/d2plugin/serve.go +++ b/d2plugin/serve.go @@ -18,7 +18,7 @@ import ( // See implementation of d2plugin-dagre in the ./cmd directory. // // Also see execPlugin in exec.go for the d2 binary plugin protocol. -func Serve(p Plugin) func(context.Context, *xmain.State) error { +func Serve(p Plugin) xmain.RunFunc { return func(ctx context.Context, ms *xmain.State) (err error) { if len(ms.Opts.Flags.Args()) < 1 { return errors.New("expected first argument to plugin binary to be function name") diff --git a/go.mod b/go.mod index 6ac33f5bd..625de77ee 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 gonum.org/v1/plot v0.12.0 nhooyr.io/websocket v1.8.7 - oss.terrastruct.com/util-go v0.0.0-20221201191904-5edc89ce397b + oss.terrastruct.com/util-go v0.0.0-20221201194427-9e805badc3e7 rogchap.com/v8go v0.7.1-0.20221102201510-1f00b5007d95 ) diff --git a/go.sum b/go.sum index 22827dd80..05c425a09 100644 --- a/go.sum +++ b/go.sum @@ -798,8 +798,8 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -oss.terrastruct.com/util-go v0.0.0-20221201191904-5edc89ce397b h1:o8+5KfZpQyaw7uKcPIdc9HOqVjVDEdsPZpdRV1k0rmc= -oss.terrastruct.com/util-go v0.0.0-20221201191904-5edc89ce397b/go.mod h1:Fwy72FDIOOM4K8F96ScXkxHHppR1CPfUyo9+x9c1PBU= +oss.terrastruct.com/util-go v0.0.0-20221201194427-9e805badc3e7 h1:5nB0zdeI7c6esIT+guwB4PWxKl5dZMCsZE+jrcDCbzc= +oss.terrastruct.com/util-go v0.0.0-20221201194427-9e805badc3e7/go.mod h1:Fwy72FDIOOM4K8F96ScXkxHHppR1CPfUyo9+x9c1PBU= rogchap.com/v8go v0.7.1-0.20221102201510-1f00b5007d95 h1:r89YHVIWeQj/A3Nu6462eqARUECJlJkLRk36pfML1xA= rogchap.com/v8go v0.7.1-0.20221102201510-1f00b5007d95/go.mod h1:MxgP3pL2MW4dpme/72QRs8sgNMmM0pRc8DPhcuLWPAs= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=