Skip to content

Commit

Permalink
upgrade all dependencies
Browse files Browse the repository at this point in the history
replace react-native-cookies with new package
  • Loading branch information
ruddell committed Apr 13, 2020
1 parent 71907ac commit 75205b3
Show file tree
Hide file tree
Showing 6 changed files with 533 additions and 415 deletions.
2 changes: 1 addition & 1 deletion boilerplate/app/modules/login/login.sagas.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Platform } from 'react-native'
import { authorize } from 'react-native-app-auth'
<%_ } _%>
<%_ if (props.authType === 'oauth2') { _%>
import CookieManager from 'react-native-cookies'
import CookieManager from '@react-native-community/cookies'
<%_ } _%>

import LoginActions from './login.reducer'
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/app/shared/services/api.js.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// a library to wrap and simplify api calls
import apisauce from 'apisauce'
<%_ if (props.authType === 'session' || props.authType === 'uaa') { _%>
import CookieManager from 'react-native-cookies'
import CookieManager from '@react-native-community/cookies'
<%_ } _%>

import AppConfig from '../../config/app-config'
Expand Down
22 changes: 11 additions & 11 deletions boilerplate/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"postinstall": "patch-package"
},
"dependencies": {
"@react-native-community/async-storage": "1.8.1",
"@react-native-community/async-storage": "1.9.0",
"apisauce": "1.1.1",
"format-json": "1.0.3",
"identity-obj-proxy": "3.0.0",
Expand All @@ -36,10 +36,10 @@
"redux-persist": "6.0.0",
"redux-saga": "1.1.3",
"reduxsauce": "1.1.2",
"react-native-navigation": "6.3.2",
"react-native-navigation": "6.4.0",
"seamless-immutable": "7.1.4",
<%_ if (props.authType === 'session' || props.authType === 'uaa' || props.authType === 'oauth2') { _%>
"react-native-cookies": "3.3.0",
"@react-native-community/cookies": "2.0.8",
<%_ } _%>
<%_ if (props.websockets) { _%>
"stompjs": "2.3.3",
Expand All @@ -49,33 +49,33 @@
"tcomb-form-native": "0.6.20"
},
"devDependencies": {
"@storybook/addons": "5.3.17",
"@storybook/react-native": "5.3.17",
"@storybook/theming": "5.3.17",
"@storybook/addons": "5.3.18",
"@storybook/react-native": "5.3.18",
"@storybook/theming": "5.3.18",
"babel-preset-env": "1.7.0",
"buffer": "5.5.0",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.2",
"eslint-config-prettier": "6.10.1",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-prettier": "3.1.3",
"ignite-jhipster": "<%= props.packageVersion %>",
<%_ if (!props.skipCommitHook) { _%>
"lint-staged": "10.0.9",
"lint-staged": "10.1.3",
<%_ } _%>
<%_ if (props.authType === 'oauth2') { _%>
"react-native-app-auth": "5.1.1",
<%_ } _%>
<%_ if (props.detox) { _%>
"detox": "16.0.2",
"detox": "16.2.0",
"mocha": "7.1.1",
<%_ } _%>
"mockery": "2.1.0",
"react-dom": "16.8.6",
"prettier": "2.0.2",
"prettier": "2.0.4",
"reactotron-react-native": "5.0.0",
"reactotron-redux": "3.1.3",
"reactotron-redux-saga": "4.2.3",
"patch-package": "6.2.1",
"patch-package": "6.2.2",
"rimraf": "3.0.2"
},
<%_ if (!props.skipCommitHook) { _%>
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/test/setup.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jest
return { Navigation: { showModal: jest.fn((url) => { return [] }) } }
})
<%_ if (props.authType === 'session' || props.authType === 'uaa' || props.authType === 'oauth2') { _%>
.mock('react-native-cookies', () => {
.mock('@react-native-community/cookies', () => {
return { get: jest.fn((url) => { return [] }), clearAll: jest.fn((url) => { return [] }) }
})
<%_ } _%>
Expand Down
Loading

0 comments on commit 75205b3

Please sign in to comment.