mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-15 21:29:23 +00:00
KeymanWeb has long had `keyman.build` and `keyman.version`. Neither of these properties expose the full version string, and consumers are forced to manipulate them to get a partial version string. This change deprecates both these properties, and introduces a new `keyman.versionInfo` property, which returns an object with all the version information, most importantly `full`. Update documentation and add a unit test for this, following the unit test pattern established throughout Keyman of a unit test filename matching the implementation class. The `KeymanEngineBase` class is a little difficult to instantiate so this unit test module currently has a minimal instantiation which provides enough to fulfill the one included test. Test-bot: skip
587 B
587 B
| title |
|---|
| version (deprecated) |
Summary
Returns the major and minor components of the KeymanWeb version (major.minor.patch) as a string.
Syntax
keyman.version
Type
string
Access
Read only
Return Value
The major and minor components of the version, e.g. if the version is "18.0.249", then returns "18.0".
Description
This function is deprecated; to get the full KeymanWeb version string, use keyman.versionInfo.
History
19.0: deprecated