Closed yiiqii closed 2 months ago
The modifications across several plugin packages centralize version comparison logic through the use of a namespace import (EFFECTS
) from the @galacean/effects
library. This improves consistency and simplifies maintenance by ensuring all version checks reference the same source.
Files/Directories | Change Summary |
---|---|
plugin-packages/alipay-downgrade/src/index.ts |
Updated import to use EFFECTS namespace; changed version comparison to use EFFECTS.version . |
plugin-packages/editor-gizmo/src/index.ts |
Updated import to use EFFECTS namespace; changed version comparison to use EFFECTS.version . |
plugin-packages/model/src/index.ts |
Updated import to use EFFECTS namespace; changed version comparison to use EFFECTS.version . |
plugin-packages/orientation-transformer/src/index.ts |
Updated import to use EFFECTS namespace; changed version comparison to use EFFECTS.version . |
plugin-packages/spine/src/index.ts |
Updated import to use EFFECTS namespace for version ; changed version comparison to use EFFECTS.version . |
The code stood tall, as changes flew,
EFFECTS
took reign, a name we knew.
Versions aligned, bugs would flee,
Fromalipay
tospine
, in sync to be free.
Hopping through code, with joyous glee,
A rabbit saw, what code could be.
✨🎩✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
EFFECTS.version
for consistency.These changes enhance the maintainability and consistency of the codebase, ensuring more reliable version checks across various plugins.