Skip to content

Commit

Permalink
#15 Bump version to 1.4.0 (#17)
Browse files Browse the repository at this point in the history
* #15 Bump version to 1.4.0

* Update react-test-renderer to 18.2.0

* Remove unimodules dependencies as non important

* Update react-shallow-renderer dependency on examples testing

* Add --runOnlyOnRootDependencies to check-peer-dependencies check
  • Loading branch information
CAMOBAP authored Jun 28, 2022
1 parent 3d3697a commit bf424c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
workflow_dispatch:

env:
TEST_APP_DEPS: react-native-modal react-native-webview expo-constants@^10.0.1 @unimodules/core @unimodules/react-native-adapter react-native-unimodules
TEST_APP_DEV_DEPS: typescript @babel/preset-env
TEST_APP_DEPS: react-native-modal react-native-webview
TEST_APP_DEV_DEPS: typescript @babel/preset-env react-shallow-renderer
RN_BUNDLE_ARGS: --entry-file index.js --platform android --dev false --bundle-output android/main.jsbundle --assets-dest android

jobs:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
working-directory: rnexample
- run: yarn test
working-directory: rnexample
- run: npx --yes check-peer-dependencies --yarn
- run: npx --yes check-peer-dependencies --yarn --runOnlyOnRootDependencies
working-directory: rnexample
test-npm:
needs: build
Expand All @@ -63,5 +63,5 @@ jobs:
working-directory: rnexample
- run: npm run test --testPathPattern __tests__/App.test.js
working-directory: rnexample
- run: npx --yes check-peer-dependencies --npm
- run: npx --yes check-peer-dependencies --npm --runOnlyOnRootDependencies
working-directory: rnexample
2 changes: 0 additions & 2 deletions Example.App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import { Text, View, StyleSheet, TouchableOpacity } from 'react-native';
import Constants from 'expo-constants';
import ConfirmHcaptcha from '@hcaptcha/react-native-hcaptcha';

// demo sitekey
Expand Down Expand Up @@ -66,7 +65,6 @@ const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingTop: Constants.statusBarHeight,
backgroundColor: '#ecf0f1',
padding: 8,
},
Expand Down
2 changes: 0 additions & 2 deletions Example.jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ module.exports = {
+ "|react-native-modal"
+ "|react-native-webview"
+ "|react-native-animatable"
+ "|expo-constants"
+ "|@unimodules"
+ ")/)",
],
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcaptcha/react-native-hcaptcha",
"version": "1.3.5",
"version": "1.4.0",
"description": "hCaptcha Library for React Native (both Android and iOS)",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -50,7 +50,7 @@
"react-native": "*",
"react-native-modal": "*",
"react-native-webview": "*",
"react-test-renderer": "^17.0.2"
"react-test-renderer": "^18.2.0"
},
"dependencies": {
"@babel/core": "^7.15.5",
Expand Down

0 comments on commit bf424c1

Please sign in to comment.