Skip to content

Releases: nightmarlin/pokeapi

v1.0.2: spellcheck part two

Choose a tag to compare

@nightmarlin nightmarlin released this 26 May 17:21
3d129a7

also removes list-pokedexs (holdover from attempt to maintain mis-spelled identifiers, before deciding against it)

marks v1.0.1 as retracted

v1.0.0: API Stability Guarantee

Choose a tag to compare

@nightmarlin nightmarlin released this 26 May 16:42
fd599f5

PokéAPI is ready to Go!

v1.0.0 and v1.0.1 contained a number of spelling mistakes due to automatic code generation. These have been resolved in v1.0.2

v1.0.2 is considered feature-complete - all further changes will be backwards compatible1.

This package provides a wrapper around the PokéAPI project. It features strong types, a built-in cache, idiomatic client usage, and helpful error wrappers.

  1. As the rangefunc package is still experimental, github.com/nightmarlin/pokeapi/iterator.NewSeq is not covered by this guarantee. Once the package is updated to go 1.23, this will be marked as stable. ↩

v0.3.0

v0.3.0 Pre-release
Pre-release

Choose a tag to compare

@nightmarlin nightmarlin released this 19 May 01:53
5c9e1b5

improvements for more generic use cases! Resources have been renamed to ResourceNames, and have been granted extra type information, allowing you to call List on them and get a concrete type back!

Thanks to this, we now have resource-scoped iterators - a simpler way of using pagination if you just want to iterate through the list. Also added an example of how to use an iterator, and a Seq2 rangefunc implementation for those who feel ✨ fancy ✨.

v0.2.0

v0.2.0 Pre-release
Pre-release

Choose a tag to compare

@nightmarlin nightmarlin released this 18 May 19:45
913382e

Rewrites the caching strategy to be Significantly Simpler - while I had fun with the Tx-like implementations, they were over-complicated and made testing a nightmare!

All changes

  • caching strategy changed from Tx-like approach to a loadOnMiss func(context.Context) (any, error) system
  • doc improvements
  • errors now only store the status code
  • added TTL support to the LRU cache

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@nightmarlin nightmarlin released this 15 May 21:24
097671f

Contains the entire pokeapi client. Mostly set in stone, with the notable exception of github.com/nightmarlin/pokeapi/sprites - this package will likely change when I work out how best to represent the sprite tree structure.