Implement custom command decorator and deprecate multi-version init() - #1
Merged
Merged
Conversation
This commit aims to rectify the following issues: 1. Test suite fails because `initV1()` and `initV2()` are no longer exported, and has been removed entirely. This commit aims to rectify this by changing the tests to use the unified `init()`, and; 2. Docs were not updated to reflect the removal of `initV1()` and `initV2()`. With the deprecation and removal of these functions, the following has been done consequently in this commit: - removed `initV1()`, then; - `initV2()` has been renamed to `init()`. In other words, in favor of new 2.X Scripts API version, `initV1()` has been removed entirely. Moreover, the addition of event decorators in commit faec67b provided more requirement in pushing things to Script API v2.X.
stirante
approved these changes
Sep 22, 2025
Member
|
Thanks! I should've ran the tests before release... |
Member
|
Changes released in 0.0.3! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
e2ad30a
This commit aims to rectify the following issues:
initV1()andinitV2()are no longer exported, and has been removed entirely. This commit aims to rectify this by changing the tests to use the unifiedinit(), and;initV1()andinitV2().With the deprecation and removal of these functions, the following has been done consequently in this commit:
initV1(), then;initV2()has been renamed toinit().In other words, in favor of new 2.X Scripts API version,
initV1()has been removed entirely.Moreover, the addition of event decorators in commit faec67b provided more requirement in pushing things to Script API v2.X.
b734363
Added the
@CustomCmddecorator for registering custom commands.