This repository was archived by the owner on May 17, 2019. It is now read-only.
Releases: fusionjs/fusion-plugin-csrf-protection
Releases · fusionjs/fusion-plugin-csrf-protection
v2.0.1
v2.0.1-0
v2.0.0
v2.0.0-0
Changelog
Highlighted Changes
- Refactor to simplify csrf protection and expose enhancer API (#157)
Other Changes
- Implement CI for multiple node versions (#156)
- Update dependency eslint-plugin-prettier to v3 (#154)
- Update dependency eslint-plugin-flowtype to v3 (#153)
- Update uber/web-base-image Docker tag to v1.0.9 (#152)
- Update dependency flow-bin to ^0.83.0 (#151)
- Update dependency babel-eslint to v10 (#150)
- Update dependency flow-bin to ^0.81.0 (#148)
- Update uber/web-base-image Docker tag to v1.0.8 (#146)
Migration Guide
Update API to use enhancer pattern
This change updates the API from a plugin to an enhancer, and greatly simplifies the configuration.
The following tokens are removed:
CsrfExpireToken
FetchForCsrfToken
SessionToken
Instead of registering this plugin on the FetchToken
, you can now use this as an enhancer on the FetchToken
.
import CsrfProtection from 'fusion-plugin-csrf-protection';
-app.register(SessionToken, Session);
-app.register(FetchForCsrfToken, fetch);
-app.register(FetchToken, CsrfProtection);
-if (__BROWSER__) {
- app.register(FetchForCsrfToken, fetch);
-}
-app.register(CsrfExpireToken, 60 * 60 * 24);
+app.register(FetchToken, fetch);
+app.enhance(FetchToken, CsrfProtection)
NOTE: There will be a codemod released for this
v1.0.7
Changelog
No pull requests in this release
v1.0.7-0
v1.0.6
Changelog
No pull requests in this release
v1.0.6-1
v1.0.5
Changelog
Highlighted Changes
- Update error message (#123)
Other Changes
- Update dependency nyc to v12 (#134)
- Update dependency get-port to v4 (#133)
- Update dependency flow-bin to ^0.78.0 (#132)
- Update dependency @babel/preset-react to v7.0.0-rc.1 (#131)
- Update dependency eslint-plugin-cup to v2 (#130)
- Update dependency eslint-config-fusion to v4 (#129)
- Update dependency eslint to v5 (#128)
- Update uber/web-base-image Docker tag to v1.0.7 (#127)
- Update dependency flow-bin to ^0.77.0 (#126)
- Update dependency @babel/preset-react to v7.0.0-beta.55 (#122)
v1.0.4
Changelog
- Update dependency flow-bin to ^0.76.0 (#119)
- Update dependency eslint-plugin-prettier to v2.6.2 (#118)
- Update dependency @babel/preset-react to v7.0.0-beta.52 (#117)
- Update uber/web-base-image Docker tag to 1.0.6 (#116)
- Update dependency eslint-plugin-prettier to v2.6.1 (#115)
- Update dependency flow-bin to ^0.75.0 (#114)
- Update dependency @babel/preset-react to v7.0.0-beta.51 (#113)
- Update dependency eslint-config-fusion to v2 (#112)
- Update uber/web-base-image Docker tag to v1.0.5 (#111)
- Update dependency flow-bin to ^0.73.0 (#109)
- Update dependency @babel/preset-react to v7.0.0-beta.49 (#103)
- Fix Flow complaints (#108)