Skip to content

Releases: kkjdaniel/gogeek

2.0.0

04 Nov 01:38

Choose a tag to compare

Breaking Changes in v2.0

Client-Based Architecture

All Query functions now require a *Client instance as the first parameter.

Before (v1):
import "github.com/kkjdaniel/gogeek/thing"

games, err := thing.Query([]int{13, 12, 3})

After (v2):
import "github.com/kkjdaniel/gogeek/v2/thing"

client := gogeek.NewClient()
games, err := thing.Query(client, []int{13, 12, 3})

Migration Steps:

  1. Update import paths from github.com/kkjdaniel/gogeek to github.com/kkjdaniel/gogeek/v2
  2. Create a client instance with client := gogeek.NewClient()
  3. Pass the client as the first parameter to all Query functions

Authentication Support:

// With API key
client := gogeek.NewClient(gogeek.WithAPIKey("your-key"))
// With cookie
client := gogeek.NewClient(gogeek.WithCookie("cookie-string"))

1.5.0

15 Sep 23:15

Choose a tag to compare

New Features

  • Forum List

Improvements

  • Forum Pagination

1.4.0

19 May 15:50

Choose a tag to compare

New Features

  • Family Query

Improvements

  • Error constants for easier error handling and management.

Fixes

  • Fixes statistic de-structuring - this is a breaking change (although it was arguably broken before).
  • Username escaping
  • Various request fixes

1.3.0

28 Apr 01:31

Choose a tag to compare

Improvements

  • Improve XML Pre-processing
  • Search Parameters
  • Error Handling

1.2.1

28 Apr 00:35

Choose a tag to compare

Fixes

  • Statistics not being resolved on thing query.

1.2.0

26 Apr 22:24

Choose a tag to compare

Improvements

XML Sanitization: Added preprocessing for malformed XML responses from the BGG API

  • Automatically fixes unescaped ampersands in game titles and descriptions
  • Removes illegal XML control characters
  • Makes responses more reliably parseable

1.1.0

26 Apr 00:37

Choose a tag to compare

New Features

  • Complete collection filtering API with all BGG parameters
  • Retry mechanism for handling 202 status responses

Improvements

  • Enhanced test coverage for collection options