Versions
How the runtime is versioned, and what changed.
Current runtime: 0.2.0.
Rules
- The script has one address without a version, /swidget/swidget.js. Each release replaces the file.
- The version is named in the first line of the file and in window.sWidget.version. The changes below list what each version changed.
- Each version also has an ES module, swidget.esm.js, beside swidget.js. It exports the same widgets and mount API and draws nothing until it is called.
- Each release adds 0.0.1; version numbers that contain a 3 or a 4 are skipped.
Changes
0.2.0
- Pickup point picker: the chosen place is written into the named form field.
- Signed-in orders: the sign-in window opens during the click, so Safari and iOS no longer block it.
- Guest orders: cancel a shipment, download its label, and My shipments; countries are chosen from a list.
- New script tag attributes: data-locale, data-theme, data-accent and data-input-name.
- window.sWidget with mount, unmount, destroy, scan and on; snippets added later are drawn too.
- Refusals are named in the console and in the swidget:error event.
- CSS custom properties, ::part names and a dark theme.
- Focus stays in place while the widget redraws; groups, labels and required fields are marked for assistive technology; pickup points are a keyboard list.
- One address without a version, /swidget/swidget.js, and the ES module swidget.esm.js.
0.1.0
- First release: tracking, quote, shipping order (guest or signed in) and pickup point picker.
License: Superroute SDK License