Skip to content

Versions

Each time the widget is improved, a new version is released. A version number has three parts, such as 0.5.3. The widget is published to a content delivery network (CDN), a service that serves files quickly from servers around the world, under https://widget.aidenvoice.com/<version>/. It is also published to npm, a store for developer packages, as @aiden-voice/widget.

The address you put in your page decides which version of the widget you get:

  • Exact versions, such as /v0.5.3/. Each one serves that single release, and it never changes. Early test releases, such as /v1.3.0-rc.1/, work the same way.
  • Minor aliases, written /vX.Y/, such as /v0.5/. An alias is a shortcut that always points to the newest stable release in that line. For example, /v1.3/ follows the newest 1.3.x.
  • Major aliases, written /vX/, such as /v0/. Each one points to the newest stable release in that major line. For example, /v1/ follows the newest 1.x.x.
  • /next/ serves the newest test release.

An alias moves to each new stable release in its line, so you get improvements without editing your page. Browsers may keep a copy of an alias for up to five minutes, so a new release can take a few minutes to reach visitors who loaded the widget recently.

The root, https://widget.aidenvoice.com/, shows a small page that describes this layout.

The code in Install the widget uses the /v0/ address:

<script src="https://widget.aidenvoice.com/v0/widget.iife.js"></script>

An address only exists once a matching stable release has shipped. Today’s newest stable release is in the 0.x line, so /v0/ exists and /v1/ does not. /v1/ will exist the day 1.0.0 ships. The newest stable release today is 0.10.8.

Only use an address you know exists. If it does not exist, the browser gets a “not found” answer, the widget never loads, and the chat button never appears. Do not use /v1/ before a 1.0.0 release.

Which style should you choose?

  • /v0/ follows new releases on its own. Choose it if you want improvements without editing your page. It follows every 0.x release, and a 0.x minor version, for example the step from 0.5 to 0.6, can contain breaking changes. If your site needs to stay stable, pin an exact version instead.
  • An exact version, such as /v0.5.3/. Choose it if you want nothing to change unless you decide so.
  • The npm package @aiden-voice/widget uses the same version numbers. Stable releases are published under the latest tag, so a plain install gets the newest stable release.
  • Test releases are published under the next tag. To try one, run pnpm add @aiden-voice/widget@next or npm install @aiden-voice/widget@next.
  • A release that is not the newest of its kind is published under the maintenance tag instead. An example is a fix for an older line, published after a newer stable release. This way an out-of-order release never changes what latest or next point to.