Skip to content

v4.0.0

Choose a tag to compare

@mertushka mertushka released this 15 Dec 22:11
· 94 commits to main since this release
edf8030

What's Changed

Breaking Change

Please follow the new imports after upgrading from v3.x.x

CommonJS Module Usage Example

const HaxballJS = require('haxball.js').default;

ESM Module Usage Example

import HaxballJS from 'haxball.js';

Config

Configurations moved from HBInit.

Old:

HBInit({
    ...
    proxy: "http://1.1.1.1:80",
});

New:

HaxballJS({ proxy: "http://1.1.1.1:80", }).then((HBInit) => {...});

Full Changelog: 3.2.1...v4.0.0