This release fixes some of the high priority bugs.
- Add missing End of Dragons item type
JadeTechModuleasGw2Sharp.WebApi.V2.Models.ItemJadeTechModulefor pattern matching (#127 by @dlamkins) - Add missing End of Dragons item type
PowerCoreasGw2Sharp.WebApi.V2.Models.ItemPowerCorefor pattern matching (#127 by @dlamkins)
- Fix an ArgumentException when embedding Gw2Sharp in a single executable (#125 by @Taschenbuch)
- Fix docs to clarify that the
/v2/account/progressionendpoint also requires the unlcoks permission (#124 by @Taschenbuch) - From now on, every missing class type that's used for polymorphic deserializing will not throw a JsonException with the message "Unsupported type <type>" anymore (for example with item types) (#120, #128)
This is a small bugfix for a typo in the /v2/raids endpoint, causing a 404.
This is a small bugfix for the caching component.
- Fix separate item caching for bulk endpoints where the request headers that may produce different responses, were not taken into account (#119, #121)
This includes a small fix for the Icon property on skills, which can be null.
This release is a small feature update for End of Dragons and a forgotten name property in the equipment tab response.
- Add
Nameproperty toGw2Sharp.WebApi.V2.Models.CharacterEquipmentTabSlot(#115)
- Add support for the Skiff and the Siege Turtle mount enums (#114 by @TheMrMilchmann)
- Testing against .NET Core 2.1 has been removed as this version has been end of life for quite some time now. Instead, testing against .NET 6 has now been added. This doesn't have any impact for any consumers of Gw2Sharp. (#111)
This is a hotfix release that actually includes the Mumble Link additions as listed in v1.6.0.
This release includes support for a couple of additional customizations:
- Ability to change the API hostname(s) in case you want to run a proxy API server (see the documentation for more information)
- Ability to change the Mumble Link reader for mocking, or to use a different method and/or source for Mumble Link
- Add support for custom Mumble Link readers (#110)
- Add
MumbleClientReaderFactoryproperty toGw2Sharp.IConnectionthat constructs a new Mumble Link reader that implementsGw2Sharp.Mumble.IGw2MumbleClientReader - .NET 5 and up:
SupportedOSPlatformAttributes have been moved around to support these changes - The following structs that are used in the reader have been made public:
Gw2Sharp.Mumble.Gw2LinkedMem,Gw2Sharp.Mumble.Gw2ContextandGw2Sharp.Mumble.Models.UiState
- Add
This release contains one small addition to make changing the request timeout easier.
This release focuses on the new account progression addition, introduced on 28 September 2021.
- Add
/v2/account/progression(#101, #103) - Mark
/v2/account/luckas deprecated (progression is the replacement) (#102, #103)
Note: All deprecations in version 1.x will be removed in version 2.0. Make sure that you update the references.
This release includes a single addition to the WvW match endpoints, which is the ability to request a match by world id for the following endpoints:
/v2/wvw/matches/v2/wvw/matches/overview/v2/wvw/matches/scores/v2/wvw/matches/stats
This release focuses on the new legendary armory addition, introduced in the game on 13 July 2021, along with some minor bug fixes.
- Add
/v2/account/legendaryarmory(#86) - Add
/v2/legendaryarmory(#86) - Apply schema changes of 2021-07-15 that updates the equipment location type (
Gw2Sharp.WebApi.V2.Models.ItemEquipmentLocationType) to includeEquippedFromLegendaryArmoryandLegendaryArmoryfor/v2/characters,/v2/characters/:id,/v2/characters/:id/equipmentand/v2/characters/:id/equipmenttabs(#91)
- Due to an oversight,
Gw2Sharp.WebApi.V2.Clients.CharactersIdClientdidn't properly exposeEquipmentPvpthat was made available with the previous schema update, which is corrected along with the latest schema update (#91) - Failing responses that don't have a JSON body now have the correct exception type based on the HTTP status code (was always
UnexpectedStatusExceptionbefore, instead of e.g.ServerErrorExceptionfor a 500) (#89) - The version reported in the user agent is now the correct version (file version instead of assembly version) (#88)
- .NET 5 is explicitly targeted in order to make use of the cross-platform attributes (#90)
- We are using this to warn users when accessing the Mumble Link client on a non-Windows platform (this is only supported when your project targets .NET 5 or higher)
This release applies the schema changes of 2021-04-06, which has moved the PvP equipment details to the proper equipment tabs information.
- Move
EquipmentPvpfromGw2Sharp.WebApi.V2.Models.CharactertoGw2Sharp.WebApi.V2.Models.CharacterEquipmentTabSlot(#85).- This deprecates
EquipmentPvpfromGw2Sharp.WebApi.V2.Models.Characterand will finally be removed from Gw2Sharp starting from version 2.0 - This makes
EquipmentPvpalso available under the/v2/characters/:id/equipmenttabssub-endpoint, which can be reached fromGw2Client.WebApi.V2.Characters[id].EquipmentTabs
- This deprecates
Gw2Sharp can now be considered feature complete.
Happy new year everyone 🎆
Let's celebrate 2021 with the first non-prerelease version of Gw2Sharp!
Despite this being a major version increment, there have been no public facing code changes compared to 0.12.0; your code should still compile without any issues.
Given that we have reached version 1, I'm changing the way how the versioning works.
Previously, when Gw2Sharp was still in version 0.x.y, any breaking change would increment the minor number and any non-breaking change would increment the patch number.
Now, starting with version 1, Gw2Sharp will follow semver properly.
Breaking changes will increment the major version.
Non-breaking additions will increment the minor version.
Non-breaking fixes will increment the patch version.
- System.Text.Json has been updated to 5.0.0 with some additional internal changes to support the transition from 4.7.1
After 2 years of development, this version marks a milestone for Gw2Sharp.
It is now feature complete, with thanks to @werdes for setting up WvW support that I have postponed for quite a while.
What does this mean for the future for Gw2Sharp? Well, there is at least one additional thing I still want to finish, and that's updating the System.Text.Json dependency to version 5. Once I've finished that, Gw2Sharp 1.0.0 is around the corner, and it's pretty much done until ArenaNet adds additional endpoints or makes additional changes to the API.
Besides feature completing Gw2Sharp, this version also includes a major update regarding caching support as mentioned in 0.11.1. This is a breaking change, but it will make caching more reliable (#71). All interfaces and built-in caching classes have been overhauled. In short, the focus was to only support strings and raw byte arrays, instead of generic types that have to be converted back and forth between C# objects and JSON strings.
Ironically, while the classes themselves have had their generic types removed, the cache objects are actually more generic since they support the raw responses instead of being bound to C# types.
Heads up: If you've been using the ArchiveCacheMethod, keep in mind that 0.12.0 uses a new file structure and will fully clear the archive if it detects that the archive isn't in the structure it expects it to be.
If you decide to revert to an older Gw2Sharp version, you may experience exceptions if you don't delete the archive manually before using it.
Please do not report those issues as they will not be worked on.
If you haven't implemented your own caching method(s), you should have no issues updating.
- Breaking:
Gw2Sharp.WebApi.Caching.CacheItem<T>has been removed - Breaking:
Gw2Sharp.WebApi.Caching.CacheItemno longer implementsIEquatable<CacheItem>since it's no longer used internally - Breaking: Since the generic version of
Gw2Sharp.WebApi.Caching.CacheItemhas been removed, the actual data can now be retrieved with the propertiesRawItemorStringItem, depending if it's a raw byte array or a string (accessing the wrong property will throw anInvalidOperationException) Gw2Sharp.WebApi.Caching.CacheItemhas additional propertiesStatus,TypeandStatusCode- The enums
Gw2Sharp.WebApi.Caching.CacheItemStatusandGw2Sharp.WebApi.Caching.CacheItemTypehave been added to support the previous mentioned properties - Breaking: In
Gw2Sharp.WebApi.Caching.ICacheMethod(and their derivativesBaseCacheMethod,ArchiveCacheMethod,MemoryCacheMethodandNullCacheMethod), the methodsTryGetAsync,SetAsync,SetManyAsync,GetOrUpdateAsyncandGetOrUpdateManyAsynchave been changed to non-generic versions of themselves andCacheItem - Breaking: In
Gw2Sharp.WebApi.Caching.ICacheMethod(and their derivativesBaseCacheMethod,ArchiveCacheMethod,MemoryCacheMethodandNullCacheMethod), the methodsSetAsync,GetOrUpdateAsyncandGetOrUpdateManyAsynchave had their signature changed to strip out redundant parameters that are now included inCacheItem - Breaking: The internal ZIP file structure used in
Gw2Sharp.WebApi.Caching.ArchiveCacheMethodhas been changed to support the caching changes, bumping it from no versioning to version 1
- Breaking: The constant
CACHE_STATE_HEADERinGw2Sharp.WebApi.Http.HttpResponseInfohas been removed in favor of having a dedicated cache state property on various classes, instead of injecting it through a custom Gw2Sharp header - Breaking:
Gw2Sharp.WebApi.Http.IHttpResponseStreamandGw2Sharp.WebApi.Http.IWebApiResponsehave the additional propertyCacheState - Breaking: The constructors of
Gw2Sharp.WebApi.Http.HttpResponseInfo,Gw2Sharp.WebApi.Http.HttpResponseStream,Gw2Sharp.WebApi.Http.WebApiResponseandGw2Sharp.WebApi.V2.ApiV2HttpResponseInfohave been modified to accept theCacheStateparameter
- Add
/v2/wvw/abilities(#80 by @werdes) - Add
/v2/wvw/matches(#80 by @werdes) - Add
/v2/wvw/matches/overview(#80) - Add
/v2/wvw/matches/scores(#80) - Add
/v2/wvw/matches/stats(#80) - Add
/v2/wvw/objectives(#80 by @werdes) - Add
/v2/wvw/ranks(#80 by @werdes) - Add
/v2/wvw/upgrades(#80 by @werdes) - Add
AttributeAdjustmentproperty to various item related models (Gw2Sharp.WebApi.V2.Models.ItemArmorDetails,Gw2Sharp.WebApi.V2.Models.ItemBackDetails,Gw2Sharp.WebApi.V2.Models.ItemTrinketDetails,Gw2Sharp.WebApi.V2.Models.ItemUpgradeComponentDetails,Gw2Sharp.WebApi.V2.Models.ItemWeaponDetails) (#70, #84)
- Fix caching with an archive backing file (
ArchiveCacheMethod) where it cannot (de)serialize the data (#72)
- Fix
LegendTypeto start with 1 instead of 14 (#73)
While the ArchiveCacheMethod should be fixed for now, the upcoming version 0.12.0 will introduce an overhaul for all caching methods that will make them more reliable.
This patch update should be regarded as an intermediate fix before that happens, without introducing breaking changes.
This release includes the most breaking changes in Gw2Sharp so far in order to support middleware, which is a major change in how Gw2Sharp handles requests. If you're only using the surface API in Gw2Sharp, the impact will be very low. However, if you've been implementing some of the interfaces yourself in order to change Gw2Sharp's functionality, please review the changes listed for this release below to see how much you've been impacted.
By default, three middleware classes are enabled: CacheMiddleware, RequestSplitterMiddleware and ExceptionMiddleware.
You can configure the middleware used when creating a Connection through the Middleware property.
This property is an IList, and the order of execution follows the order of the list.
This means that the first middleware that's in the list will be executed first, and the last middleware will be executed last.
For more information, please check the middleware documentation.
- Breaking:
Gw2Sharp.WebApi.Caching.ICacheMethod(and its implementersBaseCacheMethod,ArchiveCacheMethod,MemoryCacheMethod) andGw2Sharp.WebApi.Caching.CacheItemhave had their keys changed from theobjecttype to thestringtype Gw2Sharp.WebApi.Http.HttpResponseInfo(that is set on all API return types as theHttpResponseInfoproperty) now includes an additional property calledCacheStatethat indicates whether the request was served from cache or from the live API server (please be aware of the current limitations).
- Breaking:
Gw2Sharp.WebApi.V2.Models.Profession.SkillsByPaletteis now using aIReadOnlyDictionary<int, int>instead ofIDictionary<int, int> - Breaking:
Gw2Sharp.WebApi.V2.Clients.BaseEndpointClienthas had its generic parameter removed as it's no longer necessary - Breaking:
Gw2Sharp.WebApi.V2.Clients.IEndpointClienthas been changed to better expose the endpoint metadata (all its implementers, basically all endpoint clients, have been updated to reflect these changes as well) Gw2Sharp.WebApi.V2.Clients.EndpointBulkIdNameAttributehas been extended to support a different id name for the object in case it doesn't equal the id name of the query parameter (this is e.g. used in the middleware to split and merge responses and/or caching)- Breaking:
Gw2Sharp.WebApi.V2.Clients.EndpointPathParameterAttributehas been renamed toEndpointQueryParameterAttributeto indicate it's actually a query parameter and not a URL path - Breaking:
Gw2Sharp.WebApi.V2.Clients.IEndpointClientImplementationand its implementerEndpointClientImplementationhas been removed in favor of middleware - Breaking: All custom request exceptions listed in the
Gw2Sharp.WebApi.Httpnamespace have been moved into theGw2Sharp.WebApi.Exceptionsnamespace - All custom request exceptions have had their
ISerializableimplementation removed because it's too tedious to maintain for now - Two new types of bad requests have been added in
Gw2Sharp.WebApi.Exceptions:ListTooLongException: This will be thrown whenever the API request contains too many ids for the request to complete (this may happen when theRequestSplitterMiddlewareisn't used)PageOutOfRangeException: The will be thrown whenever a paged API request is done for a page that doesn't exist, a.k.a. is out of range
- Update
Gw2Sharp.WebApi.V2.Pvp.Seasons[id].Leaderboards[board][region]to support pagination (#55)
- Fix possible memory leak when using the archive memory cache in combination with binary data (a
MemoryStreamwas not being disposed) - Fix
KeyNotFoundExceptionwhen performing a many request with at least one (but not all) invalid id (#65, #66) - Fix
LegendTypeto start with 14 instead of 13 (#63) - Fail early when an access token is incorrectly formatted by throwing an
ArgumentExceptionduring constructing of theConnectionobject, and when setting it through theConnection.AccessTokenproperty (#62)
- Breaking:
Gw2Sharp.IConnectionno longer hasRequestAsync(...)since this functionality has been rewritten to support middleware - Breaking:
Gw2Sharp.IConnectionnow has the propertyIList<Gw2Sharp.WebApi.Middleware.IWebApiMiddleware>to configure the middleware - Breaking:
Gw2Sharp.WebApi.Http.HttpResponseInfohas had itsRawRequestHeadersproperty removed - Breaking:
Gw2Sharp.WebApi.Http.IHttpRequesthas been renamed toIWebApiRequest, its properties have been changed and moved into the propertyOptionsand the new methodExecuteAsync(...)has been added - Breaking: Following its interface,
Gw2Sharp.WebApi.Http.HttpRequesthas been renamed toWebApiRequestand its functionality has been adopted to the changes in the interface as well - Breaking:
Gw2Sharp.WebApi.Http.IHttpResponsehas been renamed toIWebApiResponseand no longer containsRequestHeaders, whileResponseHeadersis no longer read-only (to allow middleware to change them if necessary) and has the additional methodCopy(to allow middleware to copy a few properties by value into a new response object) - Breaking: Following its interface,
Gw2Sharp.WebApi.Http.HttpResponsehas been renamed toWebApiResponseand its functionality has been adopted to the changes in the interface as well - Breaking, but minimal impact unless you've been using some of the "public" internals provided by Gw2Sharp in your application:
- The following structs have been made readonly:
Gw2Sharp.Models.Coordinates2,Gw2Sharp.Models.Coordinates3,Gw2Sharp.Models.Size - All chat link structs that were in the namespace
Gw2Sharp.ChatLinks.Structshave been moved toGw2Sharp.ChatLinks.Internalto clarify that they are for internal use only - The
Gw2Sharp.Json.Converters.CompactMapConverterthat's used for endpoints that return objects with skill palettes has been changed to deserialize toIReadOnlyDictionary<K, V>instead ofIDictionary<K, V>
- The following structs have been made readonly:
- A bunch of internal code changes to conform ReSharper and Microsoft.CodeAnalysis.FxCopAnalyzers
- All methods that compare strings, parse strings or create strings from other types have been updated to make sure that they ignore the system locale
- Mount type 10 in Mumble Link doesn't redirect to
MountType.Noneanymore (#64)
- Add
/v2/skins - Add
/v2/specializations - Add
/v2/stories - Add
/v2/stories/seasons - Add
/v2/titles - Add
/v2/traits - Add
/v2/worlds
- Breaking:
Gw2Sharp.Models.MountSkinDyeSlothas been renamed toGw2Sharp.Models.SkinDyeSlot - Breaking:
Gw2Sharp.WebApi.V2.Clients.ILocalizedClientno longer accepts the object type as generic type parameter; it's now just an interface without any type parameters (#57, #61) - Breaking: Some internal reworkings of how the various endpoint clients are implemented; this includes the removal of the public
Gw2Sharp.IClientinterface (#61)
- Following up on version 0.9.5, the enum value
Gw2Sharp.WebApi.V2.Models.SkillWeaponType.Harpoonhas been removed in favor ofSpear
- Update MumbleLink to support new features (#58, #59):
- Process id
- Mount
- UI states: IsInCombat
- Add support for custom MumbleLink names through
IGw2MumbleClient[name](see documentation for more details)
- Add the following missing properties in
Gw2Sharp.WebApi.V2.Models.Skill:SpecializationDualAttunementSubSkills
- Change the following properties from
inttodouble:Gw2Sharp.WebApi.V2.Models.SkillFactComboFinisher.PercentGw2Sharp.WebApi.V2.Models.SkillFactPercent.PercentGw2Sharp.WebApi.V2.Models.SkillFactRecharge.Value
- Add missing property
ValueinGw2Sharp.WebApi.V2.Models.SkillFactPercent(although this seems to be a bug in the API) - Deprecate
Gw2Sharp.WebApi.V2.Models.SkillWeaponType.Harpoonin favor ofSpear(still no consistency between harpoons, spears, harpoon guns and spear guns) - Add missing enum
NoneinGw2Sharp.WebApi.V2.Models.AttributeType(which is apparently used for skills that apply barrier) - Add missing enums
ToolbeltandTransform1inGw2Sharp.WebApi.V2.Models.SkillSlot - Add missing enum
TransforminGw2Sharp.WebApi.V2.Models.SkillType
- Add missing skill fact type
StunBreakasGw2Sharp.WebApi.V2.Models.SkillFactStunBreakfor pattern matching - Fix parsing
Cache-Controlresponse headers where it would fail if the value is surrounded with quotes
- Exposed the raw JSON Mumble Link identity as
IGw2MumbleClient.RawIdentity
- When the Mumble Link identity contains an invalid JSON, it will no longer cause Gw2Sharp to throw a JsonException (this can happen when running multiple instances of Guild Wars 2 at the same time)
- Setting a custom user agent now properly sets a space inbetween that and the one set by Gw2Sharp
- Add missing enum
2v2Ranked(asTwoVTwoRanked) inGw2Sharp.WebApi.V2.Models.PvpRatingType(#53)
For this release, Gw2Sharp has swapped its JSON dependency from Newtonsoft.Json to System.Text.Json. This means that you can expect a performance increase (#48).
- Various web API endpoints have been extended to support enums as ids with automatic conversion to their API id type (#40, #41)
- To support this, the interface
Gw2Sharp.WebApi.V2.Clients.IBulkAliasExpandableClienthas been added Gw2Sharp.WebApi.V2.Clients.ILegendsClientnow implementsGw2Sharp.WebApi.V2.Clients.IBulkAliasExpandableClientand supports requestingGetAsyncandManyAsyncwithGw2Sharp.Models.LegendTypeas id typeGw2Sharp.WebApi.V2.Clients.IProfessionClientnow implementsGw2Sharp.WebApi.V2.Clients.IBulkAliasExpandableClientand supports requestingGetAsyncandManyAsyncwithGw2Sharp.Models.ProfessionTypeas id typeGw2Sharp.WebApi.V2.Clients.IRaceClientnow implementsGw2Sharp.WebApi.V2.Clients.IBulkAliasExpandableClientand supports requestingGetAsyncandManyAsyncwithGw2Sharp.Models.RaceTypeas id type
- To support this, the interface
- Breaking: The
Raceproperty in the Mumble Client is now of typeRaceTypeinstead ofstring(#40, #41) - Repeatedly requesting Mumble identity fields (or just requesting multiple) should be a bit faster now (#39, #42, #48, #50)
- Breaking:
Gw2Sharp.Models.Legendhas been renamed toGw2Sharp.Models.LegendType(#40, #41) - Breaking:
Gw2Sharp.Models.Professionhas been renamed toGw2Sharp.Models.ProfessionType(#40, #41) Gw2Sharp.Mumble.Models.Racehas been renamed toGw2Sharp.Models.RaceTypeand is now public instead of internal (#40, #41)
- Source Link is now supported (#46)
- Following up on version 0.8.0, the method
Gw2Sharp.WebApi.Caching.ICacheMethod.FlushAsynchas been removed in favor ofClearAsync(#31, #44) - Following up on version 0.8.0, the following pre-template APIs have been removed (#45):
/v2/characters/:id/skills/v2/characters/:id/specializations
- Fix API enum comparison with different character casings (#36)
- Fix struct size when creating the Mumble Link memory mapped file (#35)
- It was initialized with a struct size that was too small for Guild Wars 2 to write to, causing funky stuff
This release applies the schema changes of 2019-12-19, which includes the build and equipment template update from October 2019.
- Add
/v2/account/buildstorage - Add
/v2/account/buildstorage/active - Add
/v2/characters/:id/buildtabs - Add
/v2/characters/:id/buildtabs/active - Add
/v2/characters/:id/equipmenttabs - Add
/v2/characters/:id/equipmenttabs/active - Add
BuildStorageSlotsproperty to/v2/account - Add
BuildTabsUnlocked,ActiveBuildTabandBuildTabsproperties to/v2/characters/:id - Add
EquipmentTabsUnlocked,ActiveEquipmentTabandEquipmentTabsproperties to/v2/characters/:id - Add
Equipment[i].LocationandEquipment[i].Tabsproperties to/v2/characters/:id - Add
Codeproperty to/v2/legends - Add
CodeandSkillsByPaletteproperties to/v2/professions - Marked
/v2/characters/:id/skillsas deprecated - Marked
/v2/characters/:id/specializationsas deprecated - Marked
SkillsandSpecializationsproperties as deprecated
- Update MumbleLink to support new features (#33):
- UI states: DoesGameHaveFocus, IsCompetitiveMode, DoesAnyInputHaveFocus (not yet implemented in GW2)
GuidConverternow checks fornullwhen deserializing JSON objects (#28)- Breaking: Also changes the property
GuildinGw2Sharp.WebApi.V2.Models.Characterto be nullable
- Breaking: Also changes the property
- Breaking:
Gw2Sharp.WebApi.V2.Clients.IAuthenticatedClientno longer accepts the object type as generic type parameter; it's now just an interface without any type parameters - Breaking:
Gw2Sharp.WebApi.Caching.ICacheMethod.FlushAsynchas been renamed toClearAsyncto better indicate its purpose (#34) (all deprecations will be fully removed in 0.9.0+):FlushAsyncis marked as deprecated and is unused in Gw2Sharp from now on
The deprecated endpoints and properties can still be used for now. The API still provides the endpoints, and the properties have been implemented with backwards compatibility code on Gw2Sharp's end. However, it's advised to update as soon as possible, as these deprecations will be fully removed starting with the next major prerelease version 0.9.0.
Gw2Sharp has moved to the release version of .NET Core 3.0. This only means that .NET Core 3.0 is used for compiling, while .NET Standard 2.0 is still targeted. From now on, at least Visual Studio 2019 16.3 is required when working with the source code. This shouldn't impact any NuGet package users.
- System.IO.Compression has been removed as explicit dependency as it's already referenced from the framework
- Add
/v2/account/emotes - Add
/v2/emotes - Add
/v2/skills
- Update MumbleLink to support new features (#18):
- Current character selected specialization
- UI states: IsMapOpen, IsCompassTopRight, IsCompassRotationEnabled
- Compass size
- Compass rotation
- Player location map
- Map center
- Map scale
IHttpResponseStreamnow implementsIDisposablebecause it's assumed that it owns the stream that's passed in the constructor- GUID ids are converted to uppercase before being used in API request URLs (#22)
- Because of the introduction of the
Gw2MumbleClientthat implementsIDisposable(because it holds a reference to a memory mapped file that needs to be disposed),Gw2Clientnow implementsIDisposableas well and should be disposed accordingly
Note: This is a breaking change if you decide to start using the Mumble Link client, because it will only create disposable resources on the first call to.Update()in theGw2MumbleClient
- Fix
RecipesClientto correctly inherit fromBaseEndpointBulkClientinstead ofBaseEndpointBulkAllClient(/v2/recipesdoesn't support expanding all items at once, and this was incorrectly set on the implementation, the interface was correct) (#14 by @darthmaim)
- Breaking:
Gw2Sharp.WebApi.V2.Models.CharacterCraftingDisciplinehas had the type of its propertyDisciplinechanged fromstringtoApiEnum<CraftingDisciplineType> - Breaking:
Gw2Sharp.WebApi.V2.Models.MasteryLevelhas had the type of its propertyIconfixed fromstringtoRenderUrl - Breaking: Enum value
TwoHandedToyinGw2Sharp.WebApi.V2.Models.ItemWeaponTypehas had its name fixed toToyTwoHanded - Add
/v2/recipes - Add
/v2/recipes/search - Add missing enum
AgonyResistanceinGw2Sharp.WebApi.V2.Models.ItemAttributeType - Add missing enums
Currency,RandomUnlockandMountRandomUnlockinGw2Sharp.WebApi.V2.Models.ItemConsumableType - Add missing enum
ImmediateinGw2Sharp.WebApi.V2.Models.ItemContainerType - Add missing enum
FemaleinGw2Sharp.WebApi.V2.Models.ItemRestriction - Add missing enum
KeyinGw2Sharp.WebApi.V2.Models.ItemType - Add missing enums
SharedSlot,MinipetandMountSkininGw2Sharp.WebApi.V2.Models.ItemUnlockType - Add missing item type
KeyasGw2Sharp.WebApi.V2.Models.ItemKeyfor pattern matching
- Classes that implement
Gw2Sharp.WebApi.V2.Models.ICastableTypeto support polymorphism (e.g. various items from/v2/items) should no longer fail to deserialize withRenderUrlproperties (#12)
- The endpoint clients
Gw2Sharp.WebApi.V2.Clients.CommerceExchangeCoinsClientandGw2Sharp.WebApi.V2.Clients.CommerceExchangeGemsClientno longer inherit fromGw2Sharp.WebApi.V2.Clients.BaseEndpointBlobClientand instead inherit fromGw2Sharp.WebApi.BlobClient(they require the quantity to be given and cannot return a valid blob response without it)
- Change property
EmbleminGw2Sharp.WebApi.V2.Models.Guildto be nullable because the API might leave this property out (#10)
- Fix default instantiations of
ApiEnumandApiFlagsthat might causeInvalidCastExceptions when requesting data by removing the non-genericApiEnumandApiFlagsvariants (they were only used internally for easy casting when deserializing) (#10)
- Breaking:
Gw2Sharp.WebApi.V2.Models.GuildTeamhas had the type of its propertyLadderschanged fromPvpStatsLadderstoIReadOnlyDictionary<string, PvpStatsAggregate>(reason: the keys in this property of this endpoint (/v2/guild/:id/teams) are actually dynamic, just like the ones in/v2/pvp/stats) - Hitting the rate limit will now throw a
TooManyRequestsExceptioninstead ofUnexpectedStatusException(#8) - Fix guild id from not being used in guild endpoints (#9)
- Add
/v2/pvp/amulets - Add
/v2/pvp/games - Add
/v2/pvp/heroes - Add
/v2/pvp/ranks - Add
/v2/pvp/seasons - Add
/v2/pvp/seasons/:id/leaderboards - Add
/v2/pvp/seasons/:id/leaderboards/:board/:region - Add
/v2/pvp/standings - Add
/v2/pvp/stats - Add
/v2/quaggans - Add
/v2/quests - Add
/v2/races - Add
/v2/raids - Change
ICharactersIdClientto useIBlobClient<Character>in order to consistently acceptGetAsync()(/v2/characters/:id) - Change
IContinentsIdClientto useIBlobClient<Continent>in order to consistently acceptGetAsync()(/v2/continents/:continent_id) - Change
IContinentsFloorsIdClientto useIBlobClient<ContinentFloor>in order to consistently acceptGetAsync()(/v2/continents/:continent_id/floors/:floor_id) - Change
IContinentsFloorsRegionsIdClientto useIBlobClient<ContinentFloorRegion>in order to consistently acceptGetAsync()(/v2/continents/:id/floors/:floor_id/regions/:region_id) - Change
IContinentsFloorsRegionsMapsIdClientto useIBlobClient<ContinentFloorRegionMap>in order to consistently acceptGetAsync()(/v2/continents/:id/floors/:floor_id/regions/:region_id/maps/:map_id)
- Fix locale setting from being ignored when generating the cache id for cachable endpoints
- Breaking: The class
Gw2Sharp.WebApi.V2.Models.PvpStatsLaddershas been fully removed since it's no longer used - Breaking: The following properties have had their types changed from
DateTimetoDateTimeOffset:LastModifiedandCreatedinGw2Sharp.WebApi.V2.Models.AccountLastModifiedandCreatedinGw2Sharp.WebApi.V2.Models.CharacterLastModifiedandCreatedinGw2Sharp.WebApi.V2.Models.CharactersCoreCreatedinGw2Sharp.WebApi.V2.Models.CommerceTransactionCurrentCreatedandPurchasedinGw2Sharp.WebApi.V2.Models.CommerceTransactionHistoryTimeinGw2Sharp.WebApi.V2.Models.GuildLogJoinedinGw2Sharp.WebApi.V2.Models.GuildMemberStartedandEndedinGw2Sharp.WebApi.V2.Models.GuildTeamGameExpiresAtandIssuedAtinGw2Sharp.WebApi.V2.Models.SubTokenInfo
- Breaking: The following arguments have had their types changed from
DateTimetoDateTimeOffset:expireinGw2Sharp.WebApi.V2.Clients.ICreateSubtokenClient.Expires()expireinGw2Sharp.WebApi.V2.Clients.CreateSubtokenClient.Expires()
- Add render service which can be found under
IGw2WebApiClient.Render(right next toIGw2WebApiClient.V2) (#6) - Add
RenderUrltype to directly access download methods from the render client - Add
/v2/novelties - Add
/v2/outfits - Add
/v2/pets - Add
/v2/professions
- Add
ArchiveCacheMethodto support caching large blobs of data in a ZIP archive on disk (e.g. images from render)
- Breaking: Fix types of
Coordinates2.XandCoordinates2.Yfrom int to double
- Breaking: All web API v2 properties that are URLs have been changed from type
stringto typeGw2Sharp.WebApi.RenderUrl - Breaking:
Gw2Sharp.WebApi.Gw2WebApiClientcan no longer be instantiated directly; useGw2Sharp.Gw2Clientinstead - Breaking:
Gw2Sharp.WebApi.IConnectionandGw2Sharp.WebApi.Connectionhave been moved into the rootGw2Sharpnamespace - Breaking:
Gw2Sharp.WebApi.V2.Models.Maps.MapTypeandGw2Sharp.WebApi.V2.Models.Coordinates2have been moved into theGw2Sharp.Modelsnamespace - Breaking: A bunch of overloaded constructors of
Gw2Sharp.Connectionhave been simplified into one constructor with optional parameters - Breaking:
Gw2Sharp.IConnection.RequestAsynchas its signature changed to include a parameter of typeGw2Sharp.IGw2Client - Breaking: All custom JSON converters inside the
Gw2Sharp.WebApi.V2.Models.Convertersnamespace have been moved into theGw2Sharp.Json.Convertersnamespace - Breaking: All web API clients no longer have public constructors; access them through
Gw2Sharp.Gw2Clientinstead
- Following up on version 0.4.0, the methods
ICacheMethod.HasAsync,ICacheMethod.GetAsyncandICacheMethod.GetOrNullAsynchave been removed
- Fix memory cache garbage collection with keys other than a string causing InvalidCastExceptions
- Add
/v2/account/novelties - Add
/v2/characters/:id/quests - Add
/v2/mailcarriers - Add
/v2/mapchests - Add
/v2/maps - Add
/v2/masteries - Add
/v2/materials - Add
/v2/minis - Add
/v2/mounts/skills - Add
/v2/mounts/types - Add
/v2/worldbosses - Add
IColorsClient.Fur(/v2/colors)
- Fix
ApiEnum<T>.IsUnknowndetection when the API uses snake_case or camelCase enums instead of PascalCase - Add HTTP 401 responses as alias for
AuthorizationRequiredException - Add
Invalid access tokenerror response as alias forInvalidAccessTokenException - Authorization error responses are now matched case insensitive to their exception counterpart
- Prevent possible race condition and infinite loop when collecting garbage from old cache items (#3)
- Breaking: Various endpoint clients with child endpoint clients and/or extra parameters have had their virtual property setters removed; you can still override the property for customization however (reason: it's discouraged to call virtual methods or set virtual properties from a constructor in a non-sealed class)
- Breaking:
IGuildIdLogClient.ParamSinceand its implementationGuildIdLogClient.ParamSinceare no longer virtual and no longer have a public setter to follow convention of e.g.CreateSubtokenClient(useIGuildIdLogClient.Since(int? since)to set this parameter with the fluent design pattern) - Breaking: Since the settings in
IConnectionare only used interally, the.Connectionproperty ofIGw2WebApiClient,IGw2WebApiV2Clientand all endpoint clients have been either removed or are now marked as internal (#4) (if you still want to keep track of these settings, you should keep a reference to the instance yourself) - Most
Connectionproperties have a public setter to allow changes after object creation - Breaking:
ICacheMethodand its implementations received a small clean-up due to it being an overengineered interface (all deprecations will be fully removed in 0.5.0+):HasAsyncis marked as deprecated and is unused in Gw2Sharp from now onGetAsyncis marked as deprecated and is unused in Gw2Sharp from now onGetOrNullAsyncis marked as deprecated and is renamed toTryGetAsync(functionality is the same)
- Don't leak cached authenticated requests (#1)
- Use ConcurrentDictionary for MemoryCacheMethod for thread-safety (#2)
- Breaking: Update
/v2/accountand all subendpoints to a minimum schema version of2019-02-21T00:00:00.000Z - Breaking: Update
/v2/charactersand all subendpoints to schema version2019-02-21T00:00:00.000Z - Add
/v2/account/dailycrafting - Add
/v2/account/luck - Add
/v2/account/mapchests - Add
/v2/account/mounts/skins - Add
/v2/account/mounts/types - Add
/v2/account/worldbosses - Add
/v2/dailycrafting - Add
/v2/home/nodes
- Breaking: Remove
.GetWithResponseAsync(),.AllWithResponseAsync(),.IdsWithResponseAsync(),.ManyWithResponseAsync()and.PageWithResponseAsync()of all decendants ofIClient. Response information is now returned in theIApiV2Object.HttpResponseInfoproperty of the return objects of all respective*Async()methods). - Add support for the
Last-Modifiedheader (can be accessed inIApiV2Object.HttpResponseInfo)
- Breaking: In
IPaginatedClient<TObject>, thePageAsync(int page, CancellationToken cancellationToken, int pageSize)method has had its order of parameters changed toPageAsync(int page, int pageSize, CancellationToken cancellationToken).
- Breaking: Update
/v2/account/home/catsto schema version2019-03-22T00:00:00.000Z - Breaking: Update
/v2/achievements/dailyto schema version2019-05-16T00:00:00.000Z - Breaking: Update
/v2/achievements/daily/tomorrowto schema version2019-05-16T00:00:00.000Z - Breaking: Remove
/v2/catsin favor of/v2/home/cats - Add
/v2/createsubtoken - Add
/v2/tokeninfo
- Test release with support for a bunch of endpoints