From bf424c1c7d3b3c0bfb301d0c04a6aea98b1b95b8 Mon Sep 17 00:00:00 2001 From: Alex Bobrikovich Date: Tue, 28 Jun 2022 22:20:07 +0200 Subject: [PATCH] #15 Bump version to 1.4.0 (#17) * #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 --- .github/workflows/tests.yaml | 8 ++++---- Example.App.js | 2 -- Example.jest.config.js | 2 -- package.json | 4 ++-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c472b37..dbe32f0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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: @@ -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 @@ -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 diff --git a/Example.App.js b/Example.App.js index 88bb452..235a1e1 100644 --- a/Example.App.js +++ b/Example.App.js @@ -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 @@ -66,7 +65,6 @@ const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', - paddingTop: Constants.statusBarHeight, backgroundColor: '#ecf0f1', padding: 8, }, diff --git a/Example.jest.config.js b/Example.jest.config.js index 612e0ed..dd124aa 100644 --- a/Example.jest.config.js +++ b/Example.jest.config.js @@ -8,8 +8,6 @@ module.exports = { + "|react-native-modal" + "|react-native-webview" + "|react-native-animatable" - + "|expo-constants" - + "|@unimodules" + ")/)", ], } diff --git a/package.json b/package.json index 2e8e231..c226bc6 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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",