Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api/v1.7.0 #117

Merged
merged 16 commits into from
Jan 15, 2025
Merged

Api/v1.7.0 #117

merged 16 commits into from
Jan 15, 2025

Conversation

CogentRedTester
Copy link
Owner

@CogentRedTester CogentRedTester commented Dec 21, 2024

  • Bump version number.
  • Allow browse_directory to be used without opening the browser.
  • Switch version field to api_version to reduce confusion.
  • Deprecate version.
  • Switch addons over to use new field name.
  • Update mpv-v0. 31 branch to read api_version field.
  • Add coroutine.queue from API v1.5.0 #80
  • Add api_version field to keybinds to unify the APIs (started in API v1.5.0 #80).
  • Fix regression with cache.
  • Add support for mp.input when evaluating expressions.

Resolves #95

This uses the new coroutine.queue method. Note that this does subtly
change the behaviour of directory scanning; scanning now always occurs
asynchronously even if all of the parsers are synchronous.
This allows for optional API version checking to be added to custom
keybinds, which have been implicitly relying on the addon API
for some time.
This should pre-empt any problems with 2-digit version numbers.
The cache now stores the state values in a weak table.

A history array and a travertsal stack are used to lock some
directories into the cache.
CogentRedTester added a commit that referenced this pull request Jan 15, 2025
This should never have been here, addons should need to explicitly
provide a version number.
CogentRedTester added a commit that referenced this pull request Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remember last open directory
1 participant