Skip to content

Better error-handling and server-side support

Compare
Choose a tag to compare
@tdumitrescu tdumitrescu released this 21 Mar 23:34
· 666 commits to master since this release
  • Exceptions when decoding JSON now throw a real SyntaxError rather than a Plain Old JavaScript Object.
  • Loading the SDK and running basic operations (init, identify, track) no longer causes exceptions in non-browser environments (although it doesn't actually send tracking calls over the network). This is useful for allowing mixpanel-js code to run unmodified in contexts like server-side rendering and non-browser tests.