Skip to content

[FEATURE] Version info in non-browser environments #1174

@astraldev

Description

@astraldev

What

It would be great to populate the globals in all runtimes, i.e node & browser with version info so that module builders can create backward compatible changes that support multiple versions of animejs?

Provide a code example of what the feature should look like

Something like this

AnimeJS.__version__

Describe alternatives you've considered

Other than checking variable signatures, like isArray, or is number or so, doesn't seem like any API is exposed for it, apart from the version info in browser environment

Additional context

Still for the nuxt anime integration package I am trying to build.

https://github.com/astraldev/nanime

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions