Skip to content

Commit fe86246

Browse files
authored
feat(deps): Update 2025.04.15 (#36)
1 parent c4c6a6c commit fe86246

File tree

16 files changed

+2789
-3846
lines changed

16 files changed

+2789
-3846
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
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, 22.6,]
18+
nodejs: [18, 19, 20, 21, 22, 23]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -27,4 +27,6 @@ jobs:
2727
- run: yarn build
2828
- run: yarn compile
2929
- run: yarn lint
30-
- run: yarn test
30+
- run: yarn test:ci
31+
env:
32+
NODE_OPTIONS: "${{ matrix.nodejs >= 20 && '--no-experimental-detect-module' }}"

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
node-version-file: .nvmrc
2727
cache: yarn
28+
- run: yarn install --immutable
2829
- uses: github/codeql-action/init@v3
2930
with:
3031
languages: javascript-typescript

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.6.0
1+
23.11.0

.yarn/releases/yarn-4.6.0.cjs

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

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 948 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.6.0.cjs
12+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ But what if you don't want to use Jest as your testing framework? What if you do
5454
- **react:** >=18.2.0
5555
- **react-native:** ">=0.73.2
5656

57-
> **NOTE:** Node.js [enabled the `--experimental-detect-module` flag](https://github.com/nodejs/node/releases/tag/v22.7.0) on v22.7.0 by default. This raises an issue when transforming Flow code with Babel, so we're not supporting v22.7+ until the flag remains experimental and all issues are resolved.
57+
> **NOTE:** Node.js [enabled the `--experimental-detect-module` flag](https://github.com/nodejs/node/releases/tag/v22.7.0) on v22.7.0 by default. This raises an issue when Node finds Flow code before even getting into Babel transforms. If you are using Node.js v20 or higher, it's recommended that you run your tests with `NODE_OPTIONS="--no-experimental-detect-module"` environment variable.
5858
5959
## Install
6060

eslint.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default eslintTs.config(
2828
sonarjs.configs.recommended,
2929
stylistic.configs.customize({
3030
braceStyle: "1tbs",
31-
flat: true,
3231
quotes: "double",
3332
semi: true,
3433
}),
@@ -169,9 +168,6 @@ export default eslintTs.config(
169168
curly: "error",
170169
eqeqeq: "error",
171170
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
172-
"import/default": "off",
173-
"import/named": "off",
174-
"import/namespace": "off",
175171
"import/newline-after-import": "error",
176172
"import/no-absolute-path": "error",
177173
"import/no-cycle": ["error", {
@@ -181,7 +177,6 @@ export default eslintTs.config(
181177
}],
182178
"import/no-duplicates": ["error", { "prefer-inline": true }],
183179
"import/no-import-module-exports": "error",
184-
"import/no-named-as-default-member": "off",
185180
"import/no-namespace": ["error", { ignore: ["eslint-plugin-import"] }],
186181
"import/no-relative-packages": "error",
187182
"import/no-unresolved": "error",
@@ -242,7 +237,6 @@ export default eslintTs.config(
242237
"sonarjs/different-types-comparison": "off",
243238
"sonarjs/function-return-type": "off",
244239
"sonarjs/no-duplicate-string": "off",
245-
"sonarjs/no-empty-function": "off",
246240
"sonarjs/no-extend-native": "off",
247241
"sonarjs/no-nested-functions": "off",
248242
"sonarjs/no-selector-parameter": "off",

package.json

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -51,62 +51,61 @@
5151
"./package.json"
5252
],
5353
"engines": {
54-
"node": ">=18 <=22.6"
54+
"node": ">=18"
5555
},
5656
"scripts": {
5757
"build": "vite build",
5858
"check": "yarn build && yarn compile && yarn lint && yarn test --run",
5959
"compile": "tsc",
6060
"lint": "eslint .",
6161
"release": "semantic-release",
62-
"test": "vitest"
62+
"test": "NODE_OPTIONS=\"--no-experimental-detect-module\" vitest",
63+
"test:ci": "vitest"
6364
},
64-
"packageManager": "yarn@4.5.3",
65+
"packageManager": "yarn@4.9.1",
6566
"dependencies": {
66-
"@babel/core": "^7.26.0",
67+
"@babel/core": "^7.26.10",
6768
"@babel/register": "^7.25.9",
68-
"babel-plugin-extension-resolver": "^1.0.12",
6969
"debug": "^4.4.0",
7070
"dot-prop-immutable": "^2.1.1",
7171
"rewiremock": "^3.14.5",
7272
"supports-color": "^10.0.0",
73-
"ts-pattern": "^5.6.0"
73+
"ts-pattern": "^5.7.0"
7474
},
7575
"devDependencies": {
7676
"@assertive-ts/core": "^2.1.0",
77-
"@eslint/js": "^9.17.0",
78-
"@react-native/babel-preset": "^0.76.5",
79-
"@stylistic/eslint-plugin": "^2.12.1",
80-
"@testing-library/react-native": "^12.9.0",
77+
"@eslint/js": "^9.24.0",
78+
"@react-native/babel-preset": "^0.79.1",
79+
"@stylistic/eslint-plugin": "^4.2.0",
80+
"@testing-library/react-native": "^13.2.0",
8181
"@types/babel__core": "^7.20.5",
8282
"@types/babel__register": "^7.17.3",
8383
"@types/debug": "^4.1.12",
84-
"@types/eslint__js": "^8.42.3",
85-
"@types/node": "^22.10.2",
86-
"@types/react": "^19.0.2",
87-
"@types/react-test-renderer": "^19.0.0",
88-
"@types/sinon": "^17.0.3",
89-
"eslint": "^9.17.0",
90-
"eslint-import-resolver-typescript": "^3.7.0",
84+
"@types/node": "^22.14.1",
85+
"@types/react": "^19.1.2",
86+
"@types/react-test-renderer": "^19.1.0",
87+
"@types/sinon": "^17.0.4",
88+
"eslint": "^9.24.0",
89+
"eslint-import-resolver-typescript": "^4.3.2",
9190
"eslint-plugin-import": "^2.31.0",
92-
"eslint-plugin-jsdoc": "^50.6.1",
93-
"eslint-plugin-perfectionist": "^4.4.0",
94-
"eslint-plugin-react": "^7.37.2",
95-
"eslint-plugin-sonarjs": "^3.0.1",
96-
"globals": "^15.14.0",
97-
"react": "19.0.0",
98-
"react-native": "^0.76.5",
99-
"react-native-svg": "^15.10.1",
100-
"react-test-renderer": "^19.0.0",
101-
"semantic-release": "^24.2.0",
91+
"eslint-plugin-jsdoc": "^50.6.9",
92+
"eslint-plugin-perfectionist": "^4.11.0",
93+
"eslint-plugin-react": "^7.37.5",
94+
"eslint-plugin-sonarjs": "^3.0.2",
95+
"globals": "^16.0.0",
96+
"react": "19.1.0",
97+
"react-native": "^0.79.1",
98+
"react-native-svg": "^15.11.2",
99+
"react-test-renderer": "^19.1.0",
100+
"semantic-release": "^24.2.3",
102101
"semantic-release-yarn": "^3.0.2",
103-
"sinon": "^19.0.2",
102+
"sinon": "^20.0.0",
104103
"tslib": "^2.8.1",
105-
"typescript": "^5.7.2",
106-
"typescript-eslint": "^8.18.2",
107-
"vite": "^6.0.5",
108-
"vite-plugin-dts": "^4.4.0",
109-
"vitest": "^2.1.8"
104+
"typescript": "^5.8.3",
105+
"typescript-eslint": "^8.30.1",
106+
"vite": "^6.2.6",
107+
"vite-plugin-dts": "^4.5.3",
108+
"vitest": "^3.1.1"
110109
},
111110
"peerDependencies": {
112111
"@react-native/babel-preset": ">=0.73.18",

src/helpers/nativeMethodsMock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const nativeMethodsMock: NativeMethods = {
2020
measure: noop,
2121
measureInWindow: noop,
2222
measureLayout: noop,
23-
refs: { },
2423
setNativeProps: noop,
2524
};
2625

0 commit comments

Comments
 (0)