Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Releases: fusionjs/fusion-plugin-csrf-protection

v2.0.1

18 Mar 23:48
a0246aa
Compare
Choose a tag to compare

Changelog

No pull requests in this release

v2.0.1-0

18 Mar 20:51
2f33e6e
Compare
Choose a tag to compare
v2.0.1-0 Pre-release
Pre-release

Changelog

Highlighted Changes

  • Move eslint-plugin-jest to devDeps (#173)

Other Changes

  • Update dependency fusion-core to ^1.10.2 (#171)
  • Update dependency flow-bin to ^0.91.0 (#170)
  • Update dependency eslint-plugin-prettier to v3.0.1 (#169)
  • Update dependency flow-bin to ^0.89.0 (#168)
  • Update dependency fusion-core to ^1.10.1 (#166)
  • Upgrade dependencies (#165)

v2.0.0

13 Nov 18:08
22a1ce6
Compare
Choose a tag to compare

Changelog

Highlighted Changes

  • Update dependencies and types for flow@0.85 (#161)

v2.0.0-0

02 Nov 02:31
Compare
Choose a tag to compare
v2.0.0-0 Pre-release
Pre-release

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

18 Sep 00:20
e8ad075
Compare
Choose a tag to compare

Changelog

No pull requests in this release

v1.0.7-0

12 Sep 20:19
83c229f
Compare
Choose a tag to compare
v1.0.7-0 Pre-release
Pre-release

Changelog

Highlighted Changes

  • Fix flow 0.80.0 error in verifyExpiry (#143)

v1.0.6

07 Sep 22:58
a9a62f9
Compare
Choose a tag to compare

Changelog

No pull requests in this release

v1.0.6-1

01 Sep 04:48
d7536eb
Compare
Choose a tag to compare
v1.0.6-1 Pre-release
Pre-release

Changelog

  • Upgrade dependencies and fix new flow error (#139)
  • Update dependency sinon to v6 (#135)

v1.0.5

21 Aug 06:23
d434d0f
Compare
Choose a tag to compare

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

27 Jul 00:06
4048ed0
Compare
Choose a tag to compare

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)