From 61e60d9e8a5ebc63f8326dc5ec79378ed3a96f7e Mon Sep 17 00:00:00 2001 From: Miguel Guthridge Date: Tue, 29 Aug 2023 15:45:00 +1000 Subject: [PATCH] Bump version to 29.0.0 --- pyproject.toml | 2 +- src/fl_model/configuration/config_typings.py | 2 ++ src/fl_model/configuration/schema.json | 4 ++-- src/fl_model/configuration/target_version.py | 3 ++- src/fl_model/consts.py | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d2c2c71..420c19e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fl-studio-api-stubs" -version = "28.2.2" +version = "29.0.0" description = "Module and function definitions and documentation for the FL Studio Python API" readme = "README.md" diff --git a/src/fl_model/configuration/config_typings.py b/src/fl_model/configuration/config_typings.py index c2017ed..07148c4 100644 --- a/src/fl_model/configuration/config_typings.py +++ b/src/fl_model/configuration/config_typings.py @@ -10,8 +10,10 @@ ApiVersion = Union[ int, + # Only need to add more here for major and minor updates (not bug fixes) Union[ Literal["latest"], + Literal["21.0.3"], Literal["20.9.2"], Literal["20.8.4"], ] diff --git a/src/fl_model/configuration/schema.json b/src/fl_model/configuration/schema.json index a9cad58..f74d199 100644 --- a/src/fl_model/configuration/schema.json +++ b/src/fl_model/configuration/schema.json @@ -29,8 +29,8 @@ "description": "The version of the FL Studio Python API that you are targeting, either as an FL Studio version or an API version. (number or string)", "type": ["integer", "string"], "anyOf": [ - {"type": "number", "minimum": 1, "maximum": 28}, - {"enum": ["latest", "20.9.2", "20.8.4"]} + {"type": "number", "minimum": 1, "maximum": 29}, + {"enum": ["latest", "21.0.3", "20.9.2", "20.8.4"]} ], "default": "latest" } diff --git a/src/fl_model/configuration/target_version.py b/src/fl_model/configuration/target_version.py index 7382328..eb16ba9 100644 --- a/src/fl_model/configuration/target_version.py +++ b/src/fl_model/configuration/target_version.py @@ -22,9 +22,10 @@ def processVersion(version: ApiVersion) -> int: if isinstance(version, int): return version + # Only need to add more here for major and minor updates (not bug fixes) mappings = { "latest": consts.LATEST_API_VERSION, - "21.0.0": 22, + "21.0.3": 28, "20.9.2": 20, "20.8.4": 15, } diff --git a/src/fl_model/consts.py b/src/fl_model/consts.py index 6d27e25..97bbb03 100644 --- a/src/fl_model/consts.py +++ b/src/fl_model/consts.py @@ -1,5 +1,5 @@ -LATEST_API_VERSION = 28 +LATEST_API_VERSION = 29 # infinity oo = float('inf')