Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eslint 8.57.0 → 9.5.0 (major) #157

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
860 changes: 406 additions & 454 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@nx/js": "^19.0.1",
"@nx/js": "^19.3.2",
"chai": "^5.1.0",
"eslint": "^8.57.0",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"mocha": "^10.4.0",
"prettier": "^3.2.5",
"tsx": "^4.7.3",
"typescript": "^5.4.5",
"ws": "^8.17.1",
"nx": "^19.0.0"
"nx": "^19.3.2"
},
"eslintConfig": {
"root": true,
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-remote-cli",
"version": "1.12.2",
"version": "1.12.3",
"description": "Run Mocha tests somewhere - get reporting elsewhere",
"type": "module",
"main": "dist/index.js",
Expand Down Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"chalk": "^5.3.0",
"debug": "^4.3.1",
"mocha-remote-server": "1.12.2",
"mocha-remote-server": "1.12.3",
"yargs": "^17.7.2"
},
"engines": {
Expand All @@ -55,7 +55,7 @@
"@types/commander": "^2.12.2",
"@types/debug": "^4.1.5",
"@types/yargs": "^17.0.32",
"mocha-remote-client": "1.12.2"
"mocha-remote-client": "1.12.3"
},
"eslintConfig": {
"parserOptions": {
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-remote-client",
"version": "1.12.2",
"version": "1.12.3",
"description": "Run Mocha tests somewhere - get reporting elsewhere",
"scripts": {
"build": "rollup -c",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"debug": "^4.3.4",
"fast-equals": "^5.0.1",
"mocha-remote-common": "1.12.2",
"mocha-remote-common": "1.12.3",
"mocha": "10.4.0",
"ws": "^8.17.1"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/combined/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-remote",
"version": "1.12.2",
"version": "1.12.3",
"description": "Run Mocha tests somewhere - get reporting elsewhere",
"main": "index.js",
"types": "index.d.ts",
Expand All @@ -25,9 +25,9 @@
"bugs": "https://github.com/kraenhansen/mocha-remote/issues",
"license": "ISC",
"dependencies": {
"mocha-remote-cli": "1.12.2",
"mocha-remote-client": "1.12.2",
"mocha-remote-server": "1.12.2"
"mocha-remote-cli": "1.12.3",
"mocha-remote-client": "1.12.3",
"mocha-remote-server": "1.12.3"
},
"eslintConfig": {
"env": {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-remote-common",
"version": "1.12.2",
"version": "1.12.3",
"description": "All common code and types shared between the Mocha Remote server and client",
"scripts": {
"build": "tsc -p tsconfig.build.json",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-remote-react-native",
"version": "1.12.2",
"version": "1.12.3",
"description": "React Native components providing a UI for the Mocha Remote Client",
"type": "module",
"main": "dist/index.js",
Expand All @@ -12,7 +12,7 @@
"build": "tsc"
},
"dependencies": {
"mocha-remote-client": "1.12.2"
"mocha-remote-client": "1.12.3"
},
"peerDependencies": {
"react-native": "*",
Expand Down
19 changes: 14 additions & 5 deletions packages/react-native/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,20 @@ export function MochaRemoteProvider({ children, tests, title = `React Native on
const client = new Client({
title,
async transformFailure(_, err) {
// TODO: Remove the two `as any` once https://github.com/facebook/react-native/pull/43566 gets released
const stack = parseErrorStack(err.stack as any);
const symbolicated = await symbolicateStackTrace(stack) as any;
err.stack = framesToStack(err, symbolicated.stack);
return err;
try {
// TODO: Remove the two `as any` once https://github.com/facebook/react-native/pull/43566 gets released
const stack = parseErrorStack(err.stack as any);
const symbolicated = await symbolicateStackTrace(stack) as any;
err.stack = framesToStack(err, symbolicated.stack);
return err;
} catch (symbolicateError) {
if (symbolicateError instanceof Error && symbolicateError.message === 'Bundle was not loaded from Metro.') {
// Just return the original error, if bundle isn't served from Metro
return err;
} else {
throw symbolicateError;
}
}
},
tests(context) {
// Adding an async hook before each test to allow the UI to update
Expand Down
4 changes: 2 additions & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocha-remote-server",
"version": "1.12.2",
"version": "1.12.3",
"description": "Run Mocha tests somewhere - get reporting elsewhere",
"scripts": {
"build": "tsc -p tsconfig.build.json",
Expand Down Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"debug": "^4.3.4",
"flatted": "^3.3.1",
"mocha-remote-common": "1.12.2",
"mocha-remote-common": "1.12.3",
"ws": "^8.17.1"
},
"peerDependencies": {
Expand Down
Loading