Skip to content

Commit

Permalink
chore: upgrade packages (#23)
Browse files Browse the repository at this point in the history
* chore: upgrade packages

* refactor: fix lint errors

* chore: add react-native to peer deps
  • Loading branch information
gao-sun authored Apr 19, 2024
1 parent 054d4e9 commit 4cdb42a
Show file tree
Hide file tree
Showing 6 changed files with 2,112 additions and 1,433 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@
"@commitlint/config-conventional": "^18.6.1",
"@commitlint/types": "^18.6.1",
"husky": "^9.0.11"
},
"pnpm": {
"overrides": {
"@expo/config>semver@^7": "^7.6.0",
"@expo/image-utils>semver@^7": "^7.6.0"
}
}
}
16 changes: 8 additions & 8 deletions packages/rn-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
"@expo/metro-runtime": "~3.1.3",
"@logto/rn": "workspace:^",
"@react-native-async-storage/async-storage": "^1.22.0",
"expo": "~50.0.6",
"expo": "~50.0.17",
"expo-crypto": "^12.8.1",
"expo-secure-store": "^12.8.1",
"expo-status-bar": "~1.11.1",
"expo-web-browser": "^12.8.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.73.4",
"react-native": "0.73.7",
"react-native-web": "~0.19.6"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@silverhand/eslint-config": "^5.0.0",
"@silverhand/eslint-config-react": "^5.0.0",
"@babel/core": "^7.24.4",
"@silverhand/eslint-config": "^6.0.1",
"@silverhand/eslint-config-react": "^6.0.2",
"@types/react": "~18.2.45",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"stylelint": "^16.2.1",
"typescript": "^5.1.3"
"stylelint": "^15.0.0",
"typescript": "^5.4.5"
},
"eslintConfig": {
"extends": "@silverhand/react"
Expand Down
20 changes: 10 additions & 10 deletions packages/rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
"prepack": "pnpm build && pnpm test"
},
"devDependencies": {
"@babel/preset-env": "^7.23.9",
"@silverhand/eslint-config": "^5.0.0",
"@silverhand/eslint-config-react": "^5.0.0",
"@silverhand/ts-config": "^5.0.0",
"@silverhand/ts-config-react": "^5.0.0",
"@babel/preset-env": "^7.24.4",
"@silverhand/eslint-config": "^6.0.1",
"@silverhand/eslint-config-react": "^6.0.2",
"@silverhand/ts-config": "^6.0.0",
"@silverhand/ts-config-react": "^6.0.0",
"@types/react": "~18.2.45",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"stylelint": "^16.2.1",
"typescript": "^5.3.3",
"vitest": "^1.3.0"
"stylelint": "^15.0.0",
"typescript": "^5.4.5",
"vitest": "^1.5.0"
},
"eslintConfig": {
"extends": "@silverhand/react"
Expand All @@ -63,6 +63,6 @@
"expo-crypto": "^12.8.0",
"expo-secure-store": "^12.8.1",
"expo-web-browser": "^12.8.2",
"react-native": "0.73.4"
"react-native": ">=0.73.4 <1"
}
}
1 change: 1 addition & 0 deletions packages/rn/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class LogtoClient extends StandardLogtoClient {
case 'sign-out': {
break;
}
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check -- just in case
default: {
throw new LogtoNativeClientError('navigation_purpose_not_supported');
}
Expand Down
8 changes: 2 additions & 6 deletions packages/rn/src/polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
/* eslint-disable @silverhand/fp/no-mutation, @typescript-eslint/no-unnecessary-condition */
import { btoaPolyfill, atobPolyfill } from 'js-base64';

if (!global.btoa) {
global.btoa = btoaPolyfill;
}
global.btoa ||= btoaPolyfill;

if (!global.atob) {
global.atob = atobPolyfill;
}
global.atob ||= atobPolyfill;
/* eslint-enable @silverhand/fp/no-mutation, @typescript-eslint/no-unnecessary-condition */
Loading

0 comments on commit 4cdb42a

Please sign in to comment.