All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.13.2 (2023-04-23)
Note: Version bump only for package mincu-monorepo
2.13.1 (2023-04-23)
Note: Version bump only for package mincu-monorepo
2.13.0 (2023-04-22)
- react-demo-shared copyToken (e288e3e)
2.12.0 (2022-09-07)
- demo benchmark modal (27b34b6)
2.11.0 (2022-08-25)
2.10.3 (2022-08-24)
- mincu-network -> handleTokenExpired expired check (8375038)
2.10.2 (2022-08-23)
- workspace deps pin version (d89ccac)
2.10.1 (2022-08-19)
Note: Version bump only for package mincu-monorepo
2.10.0 (2022-08-19)
2.9.1 (2022-08-19)
Note: Version bump only for package mincu-monorepo
2.9.0 (2022-08-19)
- mincu-{core, event} -> orientation API (5e5467a)
- mincu-core -> makeProxyFromNativeFunc (78eacfc)
- mincu-react-demo-shared (0093880)
2.8.3 (2022-08-13)
- mincu-core call failed signature (9f9463b)
2.8.2 (2022-08-12)
- mincu-core fill interface (c29a122)
2.8.1 (2022-08-11)
- add example/vue-vite, remove vue-spa (0659af4)
- mincu-vanilla export Mincu interface (5b4d4df)
- upgrade deps (015efd2)
2.8.0 (2022-08-08)
- mincu-debug bin -> add v8-compile-cache (f65ebd1)
2.7.2 (2022-08-08)
Note: Version bump only for package mincu-monorepo
-
refactor
mincu-vanilla
exportsmincu
that include all variables frommincuCore
,networkModule
,uiModule
,dataModule
,eventModule
interface Mincu extends MincuCoreBase, DataModule, EventModule, NetWorkModule, UIModule {} export const mincu = Object.assign( {}, eventModule, dataModule, uiModule, networkModule, mincuCore ) as Mincu
import { mincu } from 'mincu-vanilla' // or import { mincu } from 'mincu-react'
-
feat
mincu-debug
integrated with mincu-chii (forked from chii) Withconnect()
import debug from 'mincu-debug'; debug.connect();
-
feat
mincu-data
add native storage supportimport data from 'mincu-data' data.storage.setItem('test', 'mincu v2.7') const got = await data.storage.getItem('test') console.log(got) // mincu v2.7
export declare class MincuStorage { getItem(key: string): Promise<any>; setItem(key: string, value: any): Promise<void>; removeItem(key: string): Promise<void>; remove(key: string): Promise<void>; reset(): Promise<void>; }
-
deprecated
mincu-network
remove axios as dependency for smaller bundle size, deprecatednetworkModule.fetch(...)
instead ofuseAxiosInterceptors(...)
class NetworkModule { /** * @deprecated * networkModule.useAxiosInterceptors is for your need */ fetch: any axiosInterceptors = () => ({ request: (config: AxiosRequestConfig) => { if (this.token) { config.headers.Authorization = this.getAuthorization(this.token) } return config }, response: (response: AxiosResponse) => response, error: this.handleTokenExpired, }) /** * @exmaple * const fetcher = axios.create() * networkModule.useAxiosInterceptors(fetcher) */ useAxiosInterceptors(axiosInstance: AxiosInstance) { const interceptors = this.axiosInterceptors() axiosInstance.interceptors.request.use(interceptors.request) axiosInstance.interceptors.response.use( interceptors.response, interceptors.error ) } }
- fix should build before release
-
feat 新增
<Ready />
组件,用法与<ReadySSR />
一致。以及他们的 fallback 参数增加了默认值:export const Fallback = () => ( <div style={{ height: '100vh', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', fontSize: 18 }} > <span>请在南大家园中打开😊</span> </div> )
- chores 升级依赖,添加 example/* 至 workspace
- fix mincu-hooks useReady
Error: reject is not a function
-
feat mincu-react 添加
ReadySSR
组件,封装了在 nextjs SSR 环境下使用 useAppReady 判断的逻辑,避免Unhandled Runtime Error: Hydration failed……
(参考 [vercel/next.js#35773]) 用法类似 react 的 Suspense,如:<ReadySSR fallback={<div>Loading...</div>}> <Component {...pageProps} /> </ReadySSR>
- breaking 迁移至 monorepo,原来的
mincu
包替换为mincu-react
,mincu-vanilla
等多个独立包 - feat mincu-debug 包,提供调试功能
- fix 修复 isReady 错误初始值的问题
- feat 增加 StatusBar 函数(5.3)
- fix 修复加载数据失败的问题
-
feat 添加 login 方法
-
feat 添加 useAppReady、useSafeArea 钩子
-
fix 添加默认 userData
- fix 修复端外蜜汁报错
-
feat 提供 api 文档
-
fix 优化类型定义
-
fix 修复
hooks
失效的问题
- feat initial