Skip to content

2.0.0

Compare
Choose a tag to compare
@SamSchiff SamSchiff released this 04 Jan 16:55
· 223 commits to master since this release
d136b26

2.0.0

Removed Functions:

  • agent.onContactPending has been removed. Please use contact.onPending instead.

New build system:

  • Make and gulp have been removed and Webpack has been added as the new build system.
  • Running npm run release will continue to produce both release/connect-streams.js and release/connect-streams-min.js and run tests.
  • npm run build-streams will now produce the same files without running any tests.
  • npm run test-mocha will just run tests and relies on the release files.
  • Every command that runs a gulp script has been removed.
  • See the README for more details

Bugs Fixed:

  • connect.onError now triggers. Previously, this api did not work at all. Please be aware that, if you have application logic within this function, its behavior has changed. See its entry in documentation.md for more details.
  • initCCP will no longer append additional embedded CCPs to the window when called multiple times. Please note that the use-case of initializing multiple CCPs with initCCP has never been supported by Streams, and this change has been added to prevent unpredictable behavior arising from such cases.

New Features:

    1. connect.core.onIframeRetriesExhausted: Streams now performs backoff while attempting to reload the iframed CCP. Previously, it would endlessly retry on each ACK TIMEOUT event (connect.EventType.ACK_TIMEOUT). Now, there are six retries, performed with exponential backoff. Once these six retries to load the embedded CCP are exhausted, no more retries will be attempted. You can subscribe a callback via the api: connect.core.onIframeRetriesExhausted to understand when the retries are exhausted, and take some action.