Releases: AckeeCZ/petrus
Releases · AckeeCZ/petrus
v7.0.0
v6.0.0
@ackee/[email protected]
-
✅ Migration to TS – strict mode
-
🎉 Setup typedoc → Auto generated Wiki with API interfaces
-
✨ Usage example avail. within codesandbox & integrate codesandbox to CI
-
♻️ Extend
PetrusError
withtype: PetrusErrorType
andoriginalError: Error
props & exportPetrusErrorType
enum andisPetrusError(error: any): boolean
util. Example -
💥 replace
reducerKey
withselector
function so developer can place petrus reducer at arbitrary depth and path in redux store.import { configure } from '@ackee/petrus'; configure({ - reducerKey: 'auth', + selector: state => state.auth, })
-
💥 No more generics at
configure
method. If you want override internal interfaces (PetrusAppRootState
,PetrusUser
,PetrusCredentials
,PetrusTokens
), you can achieve it like this:declare module '@ackee/petrus' { interface ConfigurePetrusAppRootState { value: RootState; } interface ConfigurePetrusUser { value: AuthUser; } interface ConfigurePetrusCredentials { value: Credentials; } interface ConfigurePetrusTokens { value: Tokens; } }