Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions internal/server/content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestContentAPIAnswersTheHandshakeWithoutASession(t *testing.T) {
if !strings.Contains(body, `"api":0`) {
t.Errorf("body = %q, want the api generation", body)
}
if !strings.Contains(body, `"kit":["0.9.0","0.10.0","0.11.0","0.12.0","0.13.0","0.14.0","0.15.0"]`) {
if !strings.Contains(body, `"kit":["0.9.0","0.10.0","0.11.0","0.12.0","0.13.0","0.14.0","0.15.0","0.15.1"]`) {
t.Errorf("body = %q, want the kit versions served", body)
}
if !strings.Contains(body, `"gophenberg"`) {
Expand Down Expand Up @@ -358,7 +358,8 @@ func TestContentAPIAdvertisesTheTypesItServes(t *testing.T) {
if handshake.API != 0 {
t.Errorf("api = %d, want 0", handshake.API)
}
if !slices.Equal(handshake.Kit, []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0"}) {
want := []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.15.1"}
if !slices.Equal(handshake.Kit, want) {
t.Errorf("kit = %v, want the kit versions this release serves", handshake.Kit)
}
if len(handshake.Types) != 1 {
Expand Down
2 changes: 1 addition & 1 deletion internal/themehost/kit.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

// servedKits names the theme kit versions this release serves, oldest first.
var servedKits = []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0"}
var servedKits = []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.15.1"}

// ServedKits returns the theme kit versions this release serves.
func ServedKits() []string {
Expand Down
10 changes: 5 additions & 5 deletions internal/themehost/kit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ func TestServedKitsNamesWhatThisReleaseServes(t *testing.T) {

served := themehost.ServedKits()

if !slices.Equal(served, []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0"}) {
if !slices.Equal(served, []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.15.1"}) {
t.Errorf("ServedKits() = %v, want the kit versions this release serves", served)
}
if themehost.NewestKit() != "0.15.0" {
if themehost.NewestKit() != "0.15.1" {
t.Errorf("NewestKit() = %q, want the newest of them", themehost.NewestKit())
}
}

func TestAThemeOnEitherServedKitIsAccepted(t *testing.T) {
t.Parallel()

for _, declared := range []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0"} {
for _, declared := range []string{"0.9.0", "0.10.0", "0.11.0", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.15.1"} {
if !themehost.ServesKit(declared) {
t.Errorf("ServesKit(%q) = false, want a theme on a served kit accepted", declared)
}
}
for _, declared := range []string{"0.8.0", "0.10.3"} {
for _, declared := range []string{"0.8.0", "0.10.3", "0.15.2"} {
if themehost.ServesKit(declared) {
t.Errorf("ServesKit(%q) = true, want a kit this release cannot serve turned away", declared)
}
Expand All @@ -45,7 +45,7 @@ func TestServedKitsCannotBeChangedByACaller(t *testing.T) {

themehost.ServedKits()[0] = "9.9.9"

if themehost.NewestKit() != "0.15.0" {
if themehost.NewestKit() != "0.15.1" {
t.Errorf("NewestKit() = %q after a caller wrote to the returned slice", themehost.NewestKit())
}
}
Expand Down
3 changes: 2 additions & 1 deletion sdk/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ npm-style tag stays invisible to the Go toolchain, unlike a
`sdk/astro/vX.Y.Z` tag naming the directory as a module. Versions
through 0.8.0 shipped in step with Gophenberg under its `vX.Y.Z` tags.

## Unreleased
## [0.15.1] - 2026-10-13

### Changed

- A theme built on 0.15.1 needs Gophenberg 0.18.2 or newer.
- The kit parses blocks with `@wordpress/block-serialization-default-parser` 5.57.0.

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions sdk/astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ pnpm add @gophenberg/astro

Astro 7 is a peer dependency.

A site runs a theme only when its Gophenberg release serves the kit
version the theme was built on. See
[Theme compatibility](https://docs.gophenberg.org/themes/compatibility/).

## Use

Two files make an Astro project a theme.
Expand Down
2 changes: 1 addition & 1 deletion sdk/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gophenberg/astro",
"version": "0.15.0",
"version": "0.15.1",
"type": "module",
"license": "Apache-2.0",
"description": "Build a Gophenberg theme in Astro: routes, block rendering, and the theme contract.",
Expand Down
Loading