1.3.3 • Published 3 months ago

@usermaven/sdk-js v1.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Usermaven JavaScript SDK (usermaven.js)

Usermaven.js is a JavaScript SDK for Usermaven.

Capabilities

  • Autocapturing via autocapture, capture_pageview, properties_string_max_length and property_blacklist options.

Maintainers Guide

This section is indented only for package maintainers.

Building and local debug

  • ATTENTION: Use yarn for everything except publishing
  • To spin off a local development server run yarn devserver, then open http://localhost:8081
  • yarn test runs Playwright test
  • yarn build builds both npm package and lib.js browser bundle
  • npm publish --public to publish the package (change version in package.json manually). You need to run npm login with your personal npmjs account beforehand (make sure you have access to Usermaven team)
  • In order to check usermaven sdk locally.
    • cd dist/npm --- navigate to npm directory
    • npm link --- creates a symbolic link to be accessed globally
    • cd ../../__tests__/sdk/ --- navigate to sdk test project
    • npm i --- install npm dependencies
    • npm link @usermaven/sdk-js --- use npm package locally whose symlink is just published
    • npm start --- start the application and monitor events

Checking Cross Domain Session locally

Setup a custom domain and sub-domain locally to test cross domain session persistence.

sudo nano /etc/hosts

Add the following lines in the hosts file

127.0.0.1       localhost.com
127.0.0.1       app.localhost.com

You will be able to access the domains at localhost domain and localhost sub-domain

Publishing new version

  • Login with your personal credentials with npm login
  • Run yarn install && yarn build && yarn test && npm publish --access public
1.3.3

3 months ago

1.3.2

3 months ago

1.3.1

4 months ago

1.2.8

4 months ago

1.3.0

4 months ago

1.2.7

5 months ago

1.2.6

5 months ago

1.2.5

7 months ago

1.2.4

9 months ago

1.2.3

11 months ago

1.2.2

12 months ago

1.2.0

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.2.1

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago