Migrate v1.0.0 to v1.1.0
In version 1.1.0, we have made some changes to the API which may require you to update your code. Here are the changes:
- If you are using API directly. In responses, we changed the
stats
field toproperties
in the following endpoints:/p2e/players/@me/stats
/p2e/players/@me/resources
- If you have custom queries for user properties.
properties
field is now linear structure.- Old version:
{ "level": 1, "experience": 0, "properties": { "customProperty": "value" } }
- New version:
{ "$.level": 1, "$.experience": 0, "$.properties.customProperty": "value" }
- Old version:
- If you are using our libraries. Update libraries to the latest version to avoid any issues:
@scrimmage/utils
to1.1.0
@scrimmage/scrimlang
to1.1.0
@scrimmage/ui-toolkit
to0.1.0
@scrimmage/schemas
to1.4.0
Updated about 1 month ago