Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Bump version to 29.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Aug 29, 2023
1 parent 9336ff0 commit 61e60d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/fl_model/configuration/config_typings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
]
Expand Down
4 changes: 2 additions & 2 deletions src/fl_model/configuration/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
3 changes: 2 additions & 1 deletion src/fl_model/configuration/target_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion src/fl_model/consts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

LATEST_API_VERSION = 28
LATEST_API_VERSION = 29

# infinity
oo = float('inf')
Expand Down

0 comments on commit 61e60d9

Please sign in to comment.