Skip to content

Commit febd077

Browse files
authored
feat(deps): Update dependencies 2024.06.25 (#26)
1 parent 35cb8dd commit febd077

File tree

11 files changed

+2255
-2371
lines changed

11 files changed

+2255
-2371
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
nodejs: [18, 19, 20, 21]
18+
nodejs: [18, 19, 20, 21, 22]
1919

2020
steps:
2121
- uses: actions/checkout@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.0.0
1+
22.3.0

.yarn/releases/yarn-4.1.1.cjs

Lines changed: 0 additions & 893 deletions
This file was deleted.

.yarn/releases/yarn-4.3.1.cjs

Lines changed: 894 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ plugins:
99
path: .yarn/plugins/@yarnpkg/plugin-engines.cjs
1010
spec: "https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js"
1111

12-
yarnPath: .yarn/releases/yarn-4.1.1.cjs
12+
yarnPath: .yarn/releases/yarn-4.3.1.cjs

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
],
1616
"main": "./dist/main.js",
1717
"types": "./dist/main.d.ts",
18-
"engines": {
19-
"node": ">=18"
20-
},
2118
"files": [
2219
"dist/",
2320
"src/",
2421
"register.js"
2522
],
23+
"engines": {
24+
"node": ">=18"
25+
},
2626
"scripts": {
2727
"build": "tsc -p tsconfig.prod.json",
2828
"check": "yarn compile && yarn lint && yarn test",
@@ -31,29 +31,29 @@
3131
"release": "semantic-release",
3232
"test": "NODE_ENV=test mocha"
3333
},
34-
"packageManager": "yarn@4.1.1",
34+
"packageManager": "yarn@4.3.1",
3535
"dependencies": {
36-
"@babel/core": "^7.24.4",
37-
"@babel/register": "^7.23.7",
36+
"@babel/core": "^7.24.7",
37+
"@babel/register": "^7.24.6",
3838
"babel-plugin-module-resolver": "^5.0.2",
3939
"dot-prop-immutable": "^2.1.1",
40-
"ts-pattern": "^5.1.1"
40+
"ts-pattern": "^5.2.0"
4141
},
4242
"devDependencies": {
4343
"@assertive-ts/core": "^2.1.0",
4444
"@eslint/compat": "^1.1.0",
4545
"@eslint/eslintrc": "^3.1.0",
4646
"@eslint/js": "^9.5.0",
47-
"@react-native/babel-preset": "^0.74.81",
47+
"@react-native/babel-preset": "^0.74.84",
4848
"@stylistic/eslint-plugin": "^2.2.2",
49-
"@testing-library/react-native": "^12.4.5",
49+
"@testing-library/react-native": "^12.5.1",
5050
"@types/babel__core": "^7.20.5",
5151
"@types/babel__register": "^7.17.3",
5252
"@types/eslint__eslintrc": "^2.1.1",
5353
"@types/eslint__js": "^8.42.3",
54-
"@types/mocha": "^10.0.6",
55-
"@types/node": "^20.12.7",
56-
"@types/react": "^18.3.1",
54+
"@types/mocha": "^10.0.7",
55+
"@types/node": "^20.14.8",
56+
"@types/react": "^18.3.3",
5757
"@types/react-test-renderer": "^18.3.0",
5858
"@types/sinon": "^17.0.3",
5959
"eslint": "^9.5.0",
@@ -66,17 +66,17 @@
6666
"eslint-plugin-react": "^7.34.3",
6767
"eslint-plugin-sonarjs": "^1.0.3",
6868
"globals": "^15.6.0",
69-
"mocha": "^10.4.0",
69+
"mocha": "^10.5.0",
7070
"react": "18.3.1",
71-
"react-native": "^0.74.0",
72-
"react-native-svg": "^15.2.0",
71+
"react-native": "^0.74.2",
72+
"react-native-svg": "^15.3.0",
7373
"react-test-renderer": "^18.3.1",
74-
"semantic-release": "^23.0.8",
74+
"semantic-release": "^24.0.0",
7575
"semantic-release-yarn": "^3.0.2",
76-
"sinon": "^17.0.1",
76+
"sinon": "^18.0.0",
7777
"ts-node": "^10.9.2",
78-
"tslib": "^2.6.2",
79-
"typescript": "^5.4.5",
78+
"tslib": "^2.6.3",
79+
"typescript": "^5.5.2",
8080
"typescript-eslint": "^7.14.1"
8181
},
8282
"peerDependencies": {

src/lib/Components/AccessibilityInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { noop } from "../../helpers/commons";
33

44
export const AccessibilityInfoMock = {
5-
addEventListener: noop,
5+
addEventListener: (): unknown => ({ remove: noop }),
66
announceForAccessibility: noop,
77
isAccessibilityServiceEnabled: noop,
88
isBoldTextEnabled: noop,

src/lib/Components/Linking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { noop } from "../../helpers/commons";
22

33
export const LinkingMock = {
4-
addEventListener: noop,
4+
addEventListener: (): unknown => ({ remove: noop }),
55
canOpenURL: (): Promise<boolean> => Promise.resolve(true),
66
getInitialURL: (): Promise<void> => Promise.resolve(),
77
openSettings: noop,

src/lib/Core/NativeModules.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ export const NativeModulesMock = {
4242
},
4343
ImageLoader: {
4444
getSize: () => Promise.resolve([320, 240]),
45+
getSizeWithHeaders: () => Promise.resolve({ height: 222, width: 333 }),
4546
prefetchImage: noop,
47+
prefetchImageWithMetadata: noop,
48+
queryCache: noop,
4649
},
4750
ImageViewManager: {
4851
getSize: (_uri: string, success: CB) => process.nextTick(() => success(320, 240)),

src/lib/polyfills.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
import "@react-native/js-polyfills/error-guard";
33

4+
global.IS_REACT_ACT_ENVIRONMENT = true;
5+
// Suppress the `react-test-renderer` warnings until New Architecture and legacy
6+
// mode are no longer supported by React Native.
7+
// @ts-expect-error type not defined
8+
global.IS_REACT_NATIVE_TEST_ENVIRONMENT = true;
9+
410
Object.defineProperties(global, {
511
__DEV__: {
612
configurable: true,

0 commit comments

Comments
 (0)