1.22.1 • Published 10 months ago

@getkoala/browser v1.22.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
10 months ago

Koala SDK

Running locally

To start watching files for changes and run a dev server:

yarn dev

You can now navigate to 127.0.0.1:8080 to test your changes. If you wish to automatically open the html page:

yarn dev --open

Versions of the SDK

We push two versions of the sdk: the standalone version and the umd version. The "standalone" version is what typically ships to browsers via CDN and self-installs. The umd version attaches to the window object as well (in a browser environment) but must be manually initialized:

// if the umd script is loaded from CDN directly in the browser, you can find the module attached to `window.KoalaSDK`:
window.KoalaSDK.load({ project })

// or if you import it when using a bundler:
import * as KoalaSDK from '@getkoala/browser'
KoalaSDK.load({ project })

To test the standalone version, you can yarn dev and navigate to http://localhost:8080/standalone.html?project=cardi-b

Deploying the Koala SDK

Requirements

  • aws cli - follow the latest docs on installing the AWS CLI. Once installed, make sure you've configured it via aws configure.

The Koala SDK is hosted on S3, and fronted by a Cloudflare Worker that acts as our CDN. To push a new version to S3:

yarn deploy

It will push the latest build into the koala-sdk/latest bucket, as well as an immutable bucket associated with the current git sha: e.g. koala-sdk/e1b323d

1.21.0

10 months ago

1.22.0

10 months ago

1.22.1

10 months ago

1.20.1

11 months ago

1.20.0

11 months ago

1.15.0

12 months ago

1.12.3

1 year ago

1.14.0

12 months ago

1.12.2

1 year ago

1.13.0

1 year ago

1.12.1

1 year ago

1.17.0

11 months ago

1.16.1

12 months ago

1.16.0

12 months ago

1.12.0

1 year ago

1.11.2

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago

1.9.0

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.0

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.2.0

3 years ago