diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2eeebad..3590971 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: main pull_request: workflow_call: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 54b4f79..2e1f68e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -5,8 +5,6 @@ on: branches: main pull_request: branches: main - schedule: - - cron: 23 2 * * 0 concurrency: group: codeql-${{ github.ref_name }} diff --git a/.nvmrc b/.nvmrc index 24c71f3..55bb086 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -21.5.0 +21.6.1 diff --git a/package.json b/package.json index dc0ad82..c2141a9 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,10 @@ "license": "MIT", "keywords": [ "react-native", + "testing", "test", - "mocks" + "mocks", + "mock" ], "main": "./dist/main.js", "types": "./dist/main.d.ts", @@ -32,7 +34,6 @@ "packageManager": "yarn@4.0.2", "dependencies": { "@babel/core": "^7.23.9", - "@babel/preset-react": "^7.23.3", "@babel/register": "^7.23.7", "@react-native/babel-preset": "^0.73.20", "babel-plugin-module-resolver": "^5.0.0", @@ -45,7 +46,7 @@ "@types/babel__register": "^7.17.3", "@types/eslint": "^8.56.2", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.7", + "@types/node": "^20.11.8", "@types/react": "^18.2.48", "@types/react-test-renderer": "^18.0.7", "@types/sinon": "^17.0.3", @@ -72,5 +73,17 @@ "peerDependencies": { "react": ">=18.2.0", "react-native": ">=0.73.1" + }, + "peerDependenciesMeta": { + "react": { + "optional": false + }, + "react-native": { + "optional": false + } + }, + "publishConfig": { + "access": "public", + "provenance": true } } diff --git a/yarn.lock b/yarn.lock index e09a39c..ac6bded 100644 --- a/yarn.lock +++ b/yarn.lock @@ -752,7 +752,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-display-name@npm:^7.0.0, @babel/plugin-transform-react-display-name@npm:^7.23.3": +"@babel/plugin-transform-react-display-name@npm:^7.0.0": version: 7.23.3 resolution: "@babel/plugin-transform-react-display-name@npm:7.23.3" dependencies: @@ -763,17 +763,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-development@npm:^7.22.5": - version: 7.22.5 - resolution: "@babel/plugin-transform-react-jsx-development@npm:7.22.5" - dependencies: - "@babel/plugin-transform-react-jsx": "npm:^7.22.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 36bc3ff0b96bb0ef4723070a50cfdf2e72cfd903a59eba448f9fe92fea47574d6f22efd99364413719e1f3fb3c51b6c9b2990b87af088f8486a84b2a5f9e4560 - languageName: node - linkType: hard - "@babel/plugin-transform-react-jsx-self@npm:^7.0.0": version: 7.23.3 resolution: "@babel/plugin-transform-react-jsx-self@npm:7.23.3" @@ -796,7 +785,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx@npm:^7.0.0, @babel/plugin-transform-react-jsx@npm:^7.22.15, @babel/plugin-transform-react-jsx@npm:^7.22.5": +"@babel/plugin-transform-react-jsx@npm:^7.0.0": version: 7.23.4 resolution: "@babel/plugin-transform-react-jsx@npm:7.23.4" dependencies: @@ -811,18 +800,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-pure-annotations@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/plugin-transform-react-pure-annotations@npm:7.23.3" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.22.5" - "@babel/helper-plugin-utils": "npm:^7.22.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 9ea3698b1d422561d93c0187ac1ed8f2367e4250b10e259785ead5aa643c265830fd0f4cf5087a5bedbc4007444c06da2f2006686613220acf0949895f453666 - languageName: node - linkType: hard - "@babel/plugin-transform-runtime@npm:^7.0.0": version: 7.23.9 resolution: "@babel/plugin-transform-runtime@npm:7.23.9" @@ -912,22 +889,6 @@ __metadata: languageName: node linkType: hard -"@babel/preset-react@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/preset-react@npm:7.23.3" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.22.5" - "@babel/helper-validator-option": "npm:^7.22.15" - "@babel/plugin-transform-react-display-name": "npm:^7.23.3" - "@babel/plugin-transform-react-jsx": "npm:^7.22.15" - "@babel/plugin-transform-react-jsx-development": "npm:^7.22.5" - "@babel/plugin-transform-react-pure-annotations": "npm:^7.23.3" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: ef6aef131b2f36e2883e9da0d832903643cb3c9ad4f32e04fb3eecae59e4221d583139e8d8f973e25c28d15aafa6b3e60fe9f25c5fd09abd3e2df03b8637bdd2 - languageName: node - linkType: hard - "@babel/preset-typescript@npm:^7.13.0": version: 7.23.3 resolution: "@babel/preset-typescript@npm:7.23.3" @@ -2007,12 +1968,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^20.11.7": - version: 20.11.7 - resolution: "@types/node@npm:20.11.7" +"@types/node@npm:*, @types/node@npm:^20.11.8": + version: 20.11.8 + resolution: "@types/node@npm:20.11.8" dependencies: undici-types: "npm:~5.26.4" - checksum: ff0428c093987f1f6e3400b91450077cf006d7f0e4ff316e20636218562c53761565ceb06bd7a161badf46e6884d78b554c7b1c3a7717cf5cb8c97f461ecd754 + checksum: 09aceafd6f2a0aa4b22081cd23e66193cf9032f627cf30b94db76a16cbce9e758fa6e9cc118c46678b9520764d1915d89be5d5df5049b2dcf1d5f79e3a350586 languageName: node linkType: hard @@ -6834,7 +6795,6 @@ __metadata: dependencies: "@assertive-ts/core": "npm:^2.0.0" "@babel/core": "npm:^7.23.9" - "@babel/preset-react": "npm:^7.23.3" "@babel/register": "npm:^7.23.7" "@react-native/babel-preset": "npm:^0.73.20" "@testing-library/react-native": "npm:^12.4.3" @@ -6842,7 +6802,7 @@ __metadata: "@types/babel__register": "npm:^7.17.3" "@types/eslint": "npm:^8.56.2" "@types/mocha": "npm:^10.0.6" - "@types/node": "npm:^20.11.7" + "@types/node": "npm:^20.11.8" "@types/react": "npm:^18.2.48" "@types/react-test-renderer": "npm:^18.0.7" "@types/sinon": "npm:^17.0.3" @@ -6870,6 +6830,11 @@ __metadata: peerDependencies: react: ">=18.2.0" react-native: ">=0.73.1" + peerDependenciesMeta: + react: + optional: false + react-native: + optional: false languageName: unknown linkType: soft