Forum

Current B4W Version Number

09 June 2018 11:53
Hello @ll,

installed current npm version of b4w.
Browser-console states current version is 18.6 .

Shouldn't it be version 18.5 ?
Blog posts and npm repository page list the new version as 18.05 and 18.5.0 .
Although published in June 2018 (18, 6th month) - a consistent version numbering on either place would be helpful in future.
@ Emotional3D
09 June 2018 14:57
Yep, it's a bug. Will fix it.
You can fix it by patching the version.js with webpack. See how it is done in new webplayer:
config.module.rules.push(
            {
                test: /version\.js/,
                loader: 'string-replace-loader',
                query: {
                    multiple: [
                        { search: 'var TYPE = "DEBUG";', replace: 'var TYPE = "RELEASE";' },
                        { search: 'var DATE = null;', replace: 'var DATE = new Date('+date_str+');' },
                        { search: 'var VERSION = null;', replace: `var VERSION = [${parseInt(version[0])}, ${parseInt(version[1])}, ${parseInt(version[2])}] ;` },
                        { search: 'var PREVENT_CACHE = "_b4w_ver_";', replace: 'var PREVENT_CACHE = "_b4w_ver_' + version.join('_') + '_";' }
                    ]
                }
            })
Alexander (Blend4Web Team)
twitter
 
Please register or log in to leave a reply.