This release adds support for a JavaScript module entry point. If you are using a bundler like webpack this will be used automatically and you do not need to make any changes.
Usage is described in the readme. In short you can import any of the primary classes like so:
import {
Menu,
Cart,
Product,
Discount
} from '@yumbrands/sdk';
If you are using native browser modules you'll need to set the path to your local dist/sdk.mjs
file such as this:
import { ... } from './node_modules/@yumbrands/sdk/dist/sdk.mjs';