Skip to content

Commit

Permalink
deps: bump dependencies (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth authored Nov 20, 2024
1 parent 367a42c commit 5d05917
Show file tree
Hide file tree
Showing 8 changed files with 1,078 additions and 1,248 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import configs from '@opvious/eslint-plugin';

export default [
...configs,
];
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@
"repository": "github:opvious/highs.ts",
"author": "Opvious Engineering <oss@opvious.io>",
"license": "Apache-2.0",
"type": "module",
"scripts": {
"clean": "pnpm -r -F !. run clean && rm -rf node_modules out",
"fix": "prettier --write 'packages/*/*.ts' 'packages/*/{src,test}/**/*.ts' && pnpm run lint --fix",
"lint": "eslint 'packages/*/*.ts' 'packages/*/{src,test}/**/*.ts'",
"test": "pnpm -r run test run --coverage && rm -rf out/coverage && mkdir -p out/coverage && for p in packages/*; do if [ -d \"$p/out/coverage\" ]; then cp -r \"$p/out/coverage\" out/coverage/\"${p#*/}\"; fi; done"
},
"devDependencies": {
"@opvious/eslint-plugin": "^0.1.28",
"@opvious/prettier-typescript": "^0.1.28",
"@opvious/tsconfig": "^0.1.28",
"@types/node": "^18.11.18",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^8.51.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"prettier": "^3.2.5",
"ts-essentials": "^10.0.0",
"typescript": "^5.2.2",
"vitest": "^1.6.0"
"@opvious/eslint-plugin": "^0.9.1",
"@opvious/prettier-typescript": "^0.9.1",
"@opvious/tsconfig": "^0.9.1",
"@types/node": "^18.19.64",
"@vitest/coverage-v8": "^2.1.5",
"eslint": "^9.15.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"ts-essentials": "^10.0.3",
"typescript": "^5.6.3",
"vitest": "^2.1.5"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand Down
2 changes: 1 addition & 1 deletion packages/highs-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"optionalDependencies": {
"cmake-js": "^7.3.0",
"node-addon-api": "^8.0.0"
"node-addon-api": "^8.2.2"
},
"devDependencies": {
"tmp-promise": "^3.0.3"
Expand Down
10 changes: 5 additions & 5 deletions packages/highs-solver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"watch": "tsc -b -w src test"
},
"dependencies": {
"@opvious/stl-errors": "^0.22.28",
"@opvious/stl-telemetry": "^0.22.28",
"@opvious/stl-utils": "^0.22.28",
"@opvious/stl-errors": "^0.26.2",
"@opvious/stl-telemetry": "^0.26.2",
"@opvious/stl-utils": "^0.26.2",
"highs-addon": "workspace:*",
"tail": "^2.2.6",
"tmp-promise": "^3.0.3"
Expand All @@ -43,8 +43,8 @@
"@opentelemetry/api": "^1.8.0"
},
"devDependencies": {
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/api": "^1.9.0",
"@types/tail": "^2.2.3",
"inlinable": "^0.3.3"
"inlinable": "^0.3.4"
}
}
6 changes: 3 additions & 3 deletions packages/highs-solver/src/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Tail} from 'tail';

const iterationHeaderPattern = /^\s*Proc\. InQueue.*$/;
const iterationDataPattern =
// eslint-disable-next-line max-len

/^\s+\w?\s+\d+\s+\d+\s+\d+\s+\S+\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+\d+\s+\d+\s+(\d+)\s+\S+\s*$/;
const reportHeaderPattern = /^Solving report$/;

Expand Down Expand Up @@ -91,6 +91,6 @@ function parseNumber(arg: string): number {
return arg === 'inf'
? Infinity
: arg.endsWith('%')
? +arg.slice(0, -1) / 100
: +arg;
? +arg.slice(0, -1) / 100
: +arg;
}
1 change: 0 additions & 1 deletion packages/highs-solver/src/solver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ export class Solver {
): addon.Solver[M] extends (...args: any) => infer R ? R : never {
const {delegate} = this;
try {
// eslint-disable-next-line @typescript-eslint/ban-types
return (delegate[method] as Function).bind(delegate)(...args);
} catch (cause) {
throw errors.nativeMethodFailed(method, cause);
Expand Down
Loading

0 comments on commit 5d05917

Please sign in to comment.