All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- security fixes: run
npm audit fix --force
(updated devDeps only)
- security fixes: run
npm audit fix
- 08ae778 remove typescript from prepublishonly
- package-lock.json out-of-sync with package.json
- security fixes: Run npm audix fix
- security fix: Updated package-lock.json and yarn.lock. Read more: ZacharyRSmith#82
- security fix: Updated package-lock.json and yarn.lock. Read more: ZacharyRSmith#80
- expose history action to this.props.when function. Read more: ZacharyRSmith#78
- Enhanced README.md
- security fix: Updated package.json
- Updated package.json
- Enhanced README.md
- security fix: build(deps): bump https-proxy-agent from 2.2.1 to 2.2.4
- Flow
- Made Flow easier to consume
- Clarified README.md
- TypeScript callback parameters to before* properties
- peerDependency ver of "react-router-dom" from "^4.2.2" to "4.x - 5"
- README.md to reduce number of people who run into context-binding issues
- Flow typing
- "Warning: A history supports only one prompt at a time" - by moving unblock assign to compodentDidMount
- Typescript hated a semicolon
- Typescript default export type
- allowGoBack: bool prop (use goBack method instead of push when navigating back -- !! NOTE WELL !! it will always navigate back only 1 item, even when it should navigate back more items. read more: ZacharyRSmith#30)
- Typescript typings
- Typescript typings
- Note in README.md that BrowserHistory is supported, but not HashHistory
- Demo to README.md
- Only set state if mounted
- README.md example
- doc disableNative on README.md
- update: devDeps
- Implements prop for disabling native browser confirmation
- Update test script.
- Only call when once from the block function.
- Make prevUserAction an instance instead of module property
- use entire location when navigation is confirmed
- Improve README
- include package-lock.json in the repo
- make afterConfirm, afterCancel callable
- Make react-router-dom an external dependency
- Update README
- When action is
"POP"
, push ( We cannot know the correct history entry to pop to without using memory history - (https://github.com/ReactTraining/history#properties).)
- props.when can be a function taking (crntLocation, nextLocation)
- props.beforeCancel()
- props.beforeConfirm()
- props.afterCancel()
- props.afterConfirm()
- tool: eslint
- Handle history.pop()/history.goBack() correctly
- build did not reflect src code
- Access fresh props in history.block()'s callback
- this.props.renderIfNotActive
- build did not reflect src code
- package.json
- Confirm navigation away from site
- doc: Important caveat
- this project's useable existence
- why?