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:

  1. If you are using API directly. In responses, we changed the stats field to properties in the following endpoints:
    • /p2e/players/@me/stats
    • /p2e/players/@me/resources
  2. 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"
      }
      
  3. If you are using our libraries. Update libraries to the latest version to avoid any issues:
    • @scrimmage/utils to 1.1.0
    • @scrimmage/scrimlang to 1.1.0
    • @scrimmage/ui-toolkit to 0.1.0
    • @scrimmage/schemas to 1.4.0