Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 2.77 KB

0.33.md

File metadata and controls

60 lines (34 loc) · 2.77 KB

Upgrade 0.32 to 0.33

Change startupjs and all @startupjs/* dependencies in your package.json to ^0.33.

BREAKING CHANGES

  • remove global wrapper Portal.Provider from App or Layout`s and use now ui plugin for app

    import { registerPlugins } from '@startupjs/plugin'
    import { uiAppPlugin } from '@startupjs/ui'
    
    ...
    
    registerPlugins({
      '@startupjs/app': [
        [uiAppPlugin, { defaultEnable: true }]
      ]
    })
  • bump peer dependency react-native-svg to ^12.1.0 (packages that requires the module - @startupjs/ui, @startupjs/bundler, startupjs/bundler)

  • add react-native-tab-view to dependency of your project if you are using @startupjs/ui

  • add text-encoding-polyfill@^0.6.7 to dependency of your project if you are using @startupjs/auth-local package

  • add @react-native-async-storage/async-storage@^1.13.2 to dependency of your project if you are using @startupjs/auth package

  • add react-native-restart@^0.0.22 to dependency of your project if you are using one of the @startupjs/auth, @startupjs/app, startupjs/app packages

  • startupjs/auth no longer requires lodash package

  • startupjs/auth onAfterUserCreationHook now takes object with userId in first param and req in second param

  • if you are using startupjs/auth-google, replace @react-native-community/google-signin (deprecated) dependency of your project with @react-native-google-signin/google-signin

  • modules that using ESM modules are now automatically force compiled and you can remove all startupjs dependencies and their peer dependencies from forceCompileModules of webpack configs (check package.json of module that you are using and if module have type: module then you can remove it from forceCompileModules)

  • @startupjs/auth-common: createAuthButton is no longer needed, jsx is used for the new api micro frontend

  • @startupjs/auth-local -> LoginForm: onChangeAuthPage rename to onChangeSlide

  • @startupjs/auth-local -> LoginForm: remove config property, use properties, validateSchema, renderActions properties instead

  • @startupjs/auth-local -> RecoverForm: onChangeAuthPage rename to onChangeSlide

  • @startupjs/auth-local -> RegisterForm: onChangeAuthPage rename to onChangeSlide

  • @startupjs/auth-local -> RegisterForm: remove config property, use properties, validateSchema, renderActions properties instead

  • @startupjs/auth-local -> ResetPasswordForm: onChangeAuthPage rename to onChangeSlide

  • @startupjs/auth: remove SuccessRedirect component

  • @startupjs/auth -> AuthForm: onChangeAuthPage rename to onChangeSlide

  • @startupjs/auth -> AuthForm: remove configs, use jsx to write forms

  • @startupjs/auth -> AuthForm: remove initSlide, use properties slide instead