- Switched from Newtonsoft.Json to System.Text.Json for serialization
IAsyncEnumerable
support for paging available in methodsGetAllNamedResourcesAsync<T>
andGetAllApiResourcesAsync<T>
- Updated
Move
model to include new property:learned_by_pokemon
: #43
- Updated
Pokemon
model to include new property:front_shiny
: #41
- Add support for endpoints respecting case sensitivity for named parameters: #39
- Made property
PokemonSpecies.CaptureRate
andPokemonSpecies.BaseHappiness
nullable
- Made property
Pokemon.BaseExperience
nullable: #37
This is the same release as 3.0.5. Use 3.0.7 instead.
- Updated
Pokemon
model to include new properties for historical and alternate form sprites: #33
- Ensure HTTP responses are only processed after the content of the request has been read, instead of just the headers: #29
- Updated dependencies
- Bump test project to .Net 6.0
- Updated
Pokemon
model to include new property:past_types
- Updated
PokemonSpecies
model to include new properties:IsLegendary
,IsMythical
- Code cleanup and small performance improvements
PokeApiClient
constructor that accepts anHttpClient
instance; for use with theIHttpClientFactory
interface- Updated test dependencies
- All classes under the
PokeApiNet.Models
namespace were moved toPokeApiNet
- Namespace
PokeApiNet.Models
has been removed
- Support for .Net Standard 2.1
- Updated dependencies
- Class
PokeApiClient
moved namespace; wasPokeApiNet.Data
nowPokeApiNet
- Namespace
PokeApiNet.Data
has been removed - Method
PokeApiClient.ClearCache<T>
was renamed toPokeApiClient.ClearResourceCache<T>
- Stricter constraints on type parameters for
PokeApiClient.GetResourceAsync<T>(string)
andPokeApiClient.GetResourceAsync<T>(string, CancellationToken)
- Resource lists are now cached automatically (closes #10)
- Resource list caches can be cleared via
PokeApiClient.ClearResourceListCache
and typed overload for more granular clearing