How to dertermine the version of a PWA - intershop/intershop-pwa GitHub Wiki
Determining the version in the project source code
The used version of the Intershop PWA is easily determined if one has access to the according source code.
In this case the version can be found in the package.json
under the version
property.
The projects CHANGELOG.md
can also be helpful to determine the used Intershop PWA version if the version value in the package.json
is for example used for project specific versioning.
Determining the version in a deployed application
In case one needs to determine the version of a deployed Intershop PWA several ways are available depending on the version of the Intershop PWA itself.
Intershop PWA 1.1.0 introduced a small helper function that prints PWA version information on the browser console.
version()
Calling this function results in something similar like this:
Intershop PWA 0.28.0 introduced a specific pwa-version
meta tag in the HTML header that contains the PWA version information.
This is basically the place where the mentioned version()
function fetches the information from.
Intershop PWA version before 0.28.0 might be only identifiable by the used Angular version number that can be compared to the different PWA releases dependencies.
The version()
function itself can be found and adapted in the polyfills.ts
.