Releases
This page describes the changes in each Hive Axyl JavaScript SDK version by feature, starting from the latest version. Always check the pre-update notes and the common changes. For the rest, check only the features your app uses.
Supported environments
These are the supported environments for the Hive Axyl JavaScript SDK. They are based on the latest version.
| Browser | Minimum version |
|---|---|
| Chrome, Edge | 93 |
| Firefox | 92 |
| Safari, iOS Safari | 15.4 |
- You must serve your web app over HTTPS. During development, you can also use
localhost. - All browsers on iOS use WebKit, so iOS 15.4 or later is required.
- Firefox versions earlier than 133 ignore fetch
keepalive. Logs are sent, but the transfer may be canceled when the tab is closed. - For details, see Supported browsers.
Provided packages
The JavaScript SDK is provided as a single npm package (@com2usplatform/hiveaxyl), and feature modules are imported by path within the package. Modules you do not register are not included in the app bundle.
| Feature | Module | Import path |
|---|---|---|
| Common | Core | @com2usplatform/hiveaxyl |
| Account and authentication | auth, token | @com2usplatform/hiveaxyl/auth, @com2usplatform/hiveaxyl/token |
| Payment | payment | @com2usplatform/hiveaxyl/payment |
| Mailbox | mailbox | @com2usplatform/hiveaxyl/mailbox |
| Service access control | service | @com2usplatform/hiveaxyl/service |
| Coupon | coupon | @com2usplatform/hiveaxyl/coupon |
| Analytics | analytics | @com2usplatform/hiveaxyl/analytics |
| TCB Connector | tcb | @com2usplatform/hiveaxyl/tcb |
- Apps without a build tool use the
<script>bundle (dist/hiveaxyl-sdk.iife.js), and the globalHiveAxylSDKcontainscreateAxyland all modules. - For features not supported on the web, see Supported features.
Versions and updates
JavaScript SDK versions are incremented separately from Unity SDK versions, so the same number does not mean the same changes. The Unity SDK version that serves as the basis for the server APIs and behavior rules is listed in the changes for each version.
The JavaScript SDK contains all modules in one package, so you do not need to match versions across modules.
How to update
When you upgrade the SDK version, follow the steps below.
1. Check the notes before updating
Read all the notes for each version, from the version after the one you currently use up to the version you are updating to. For versions without notes, you do not need to modify your code.
2. Change the package version
Change both the version in the src of the <script> tag and the integrity hash to the values for the new version. Note that if you do not change the hash, the browser does not load the script. The address and integrity value for the new version are in "<script> tag values" of each version below. For how to calculate them yourself, see Load with a <script> tag.
For {version}, enter an exact version such as 1.0.1, and do not use a range or latest.
3. Copy the recipes again
The login and payment recipes (login.ts, payment.ts) and the callback page are code that you copy into your project, so they do not change when you update the package. If the changes in the new version include recipes, compare the new version's files with your app's copies and apply the changes.
1.0.1
Release date: 2026-11-26
This is the first official release of the Hive Axyl JavaScript SDK. It is a TypeScript SDK for browser (H5) web apps, and it calls the same server APIs as Hive Axyl Unity SDK 1.0 with the same rules.
New features
Common
createAxyl({ appId, clientId, modules })creates an SDK instance that contains only the registered modules, and each instance keeps its own session.- Every call returns one of
success,outcome,unknownOutcome, orfailure. It does not throw exceptions because of network, server, or browser problems. - After a
401response, the SDK refreshes the token automatically, and retries idempotent requests with increasing intervals. You can cancel each call with anAbortSignal. - Access tokens past their expiration time are refreshed before a request and in
session.getAccessToken(). - Receive session events (
change,expire,tokenrefresh,storagefallback) withsession.on(). - Check whether an instance has been disposed, without exceptions, with
isDisposed(). - You can specify a
loggerincreateAxyl. Fields that may contain sensitive values are masked before they are passed. - Tokens are kept only in memory. The app receives only the access token through
session.getAccessToken()and does not receive the refresh token.
Account and authentication
- Provides popup login
auth.openSignInPopup()and page-redirect loginauth.startRedirectSignIn()andauth.completeRedirectSignIn(). - Checks for in-app browsers and iframes with
detectEnvironment().
Payment
- Provides the payment window
payment.openPaymentWindow().
Feature modules
- The feature modules
auth,token,service,mailbox,coupon,analytics,payment, andtcbare imported by path.
Package
- The npm package
@com2usplatform/hiveaxylcontains ES modules, CommonJS, and type declarations. - A
<script>bundle that defines the globalHiveAxylSDKis also provided. - The example repository provides the login and payment recipes, recipe usage examples, the popup login callback page, and integration guides.
<script> tag values
These are the address and integrity value to use when you load 1.0.1 with a <script> tag.
Behavior that differs from the Unity SDK
The server APIs, result types, retries, and token refresh rules are the same as in Unity SDK 1.0, but some behaviors differ because of the web environment. For details, see Differences from the Unity SDK.
Supported environments
These are the browsers and minimum versions that can use 1.0.1.
| Browser | Minimum version |
|---|---|
| Chrome, Edge | 93 |
| Firefox | 92 |
| Safari, iOS Safari | 15.4 |
If you are using the Hive Axyl JavaScript SDK for the first time, start with Step 1. Create app information. For how to use each feature, see the following.