Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@mitojs/shared

mitojs30MIT3.0.1TypeScript support: included

@mitojs/shared

mitojs, sdk, monitor

readme

@mitojs/shared

provider some common configuration,such as constants、enum for @mitojs

read the mito-doc to konw more info

changelog

@mitojs/wx-mini@3.1.0

Features

  • wx-mini: hijack tap event at uni app v3 (b7d0e55)

3.0.1 (2021-12-02)

Bug Fixes

  • utils/errorid: correct getRealPath (e242098)

Features

  • wx-mini: add options param in OnShareTimeline and OnShareAppMessage (d2ea0c2)
  • wx-mini: add silentPageOnShareAppMessage and silentPageOnShareTimeline (b0e51b4)

BREAKING CHANGES

wx-mini:

  • onShareAppMessage to pageOnShareAppMessage
  • onShareTimeline to pageOnShareTimeline
  • onTabItemTap to pageOnTabItemTap
  • onPageNotFound to appOnPageNotFound

3.0.0 (2021-10-08)

Features

  • add react ErrorBoundary component

  • collect Vue3 prop data when code error @mitojs/vue

  • multiple instances,more info click here

  • add wx-mini hooks:

    • pageOnLoad
    • pageOnUnload
  • add wx-mini options:

    • silentRequest
    • silentRoute
    • silentAppOnError
    • silentAppOnUnhandledRejection
    • silentAppOnPageNotFound

Documentation

BREAKING CHANGES

  • browser: the singleton change to multiple instances,more info click here

  • remove MITO.log and add MitoInstance.log

  • remove window.__MITO__ and replace to MitoInstance

  • ErrorTypes change: JAVASCRIPT_ERROR change to JAVASCRIPT

    LOG_ERROR change to LOG

    HTTP_ERROR change to HTTP

    VUE_ERROR change to VUE

    REACT_ERROR change to REACT

    RESOURCE_ERROR change to RESOURCE

    PROMISE_ERROR change to PROMISE

    ROUTE_ERROR change to ROUTE