Skip to content

Releases: devrnt/react-use-intercom

v0.2.0

21 May 17:19
Compare
Choose a tag to compare

Changes

If you previously used custom attributes:
Pass your custom attributes to the customAttributes property in the boot and/or update method from useIntercom.
Remark - you should pass you raw custom attributes, that means snake cased. In other words how you pass them to customAttributes is how Intercom will receive them (snake cased).

Example

const { boot, update } = useIntercom();

boot({ 
 name: 'Russo',
 // Intercom will receive the raw key, so don't use camel casing here. 
 // Intercom wants their keys snake cased
 customAttributes: { custom_attribute_key: 'hi there' }
});

update({ 
 name: 'Ossur',
 // Intercom will receive the raw key, so don't use camel casing here. 
 // Intercom wants their keys snake cased
 customAttributes: { custom_attribute_key: 'bye there' }
});

Commits

  • Merge pull request #23 from devrnt/development 0c8f1e4
  • chore: upgrade typescript and cypress 6c31430
  • Merge branch 'development' of github.com:devrnt/react-use-intercom into development ea60b8e
  • Merge pull request #20 from devrnt/dependabot/npm_and_yarn/cypress-4.6.0 dbab06e
  • docs: update intercom props in readme 82561f2
  • Merge pull request #18 from devrnt/dependabot/npm_and_yarn/typescript-3.9.3 f928980
  • docs: add snyk badge to readme aa0fcd9
  • Merge pull request #22 from devrnt/development a016397
  • Merge pull request #21 from devrnt/fix/custom-attributes 566bcf5
  • docs: add intercom props section bb7bc71
  • chore: increase delay in visitor id test 34c955b
  • test: add e2e mapper tests 4fa0efc
  • fix: pass custom attribute to intercom b26aba4
  • chore: prepare playground for mapper tests 0c99edb
  • chore: add custom attribute to data attributes 8ea0daf
  • chore(deps-dev): bump cypress from 4.5.0 to 4.6.0 360d7f3
  • chore(deps-dev): bump typescript from 3.9.2 to 3.9.3 ad4beb8
  • Merge pull request #15 from devrnt/development 7eddfe9
  • Merge pull request #14 from devrnt/feature/error-handling 48b26b5
  • chore: improve error logging in intercom provider 7d84437
  • docs: add tour playground in readme 34528ad
  • chore: update tour id in playground 27764a7
  • Merge pull request #12 from devrnt/development 90177ed
  • Merge pull request #10 from devrnt/docs/playground-tour 032c2c0
  • chore: add page with intercom tour in playground 03c6630
  • Merge pull request #9 from devrnt/test/provider-callbacks 15ceccb
  • test: add provider with event callbacks 11eb162
  • chore: update cypress base url 9c7d80d
  • chore: add provider with events in example 56b9c7e
  • chore: update context listener types 98e0bd5
  • chore: add release script d3df88b
  • chore: add bundlesize script 2ac4791
  • chore: add homepage in package ad2f8fc

v0.1.2...v0.2.0

v0.1.2

18 May 10:39
Compare
Choose a tag to compare
  • chore: update package info 23525d0
  • docs: update playground url 18c8d90
  • docs: update feature request template 29015c8
  • docs: update bug report template 2e3f4e9
  • docs: add playground url to readme 5985bb1
  • chore: add working example playground 535fb4d
  • chore: add deploy to github page workflow 086c6c9

v0.1.1...v0.1.2