Installing thiss-ds-js
Install
Install via npm is straight-forward:
# npm install [--save] @theidentityselector/thiss-ds@<version>
The thiss-ds version to use will depend on the version of the persistence service that will be used. See the section on versions under the title “Using thiss-ds”.
The thiss-ds package supports both CommonJS-style and ES6 import aswell as old-school CDN delivery:
CommonJS:
var thiss = require("thiss-ds.js");
ES6-style
import {DiscoveryService} from "thiss-ds";
import {PersistenceService} from "thiss-ds";
CDN (thanks to unpkg.com)
<script src="//unpkg.com/browse/@theidentityselector/thiss-ds@<version>" />
NOTE: Pulling from unpkg does not work for version 2.1.52 as it depends on an outdated version of post-robot.