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

deps: bump dependencies #49

Merged
merged 2 commits into from
Nov 20, 2024
Merged
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
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 <[email protected]>",
"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 @@

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 @@
return arg === 'inf'
? Infinity
: arg.endsWith('%')
? +arg.slice(0, -1) / 100
: +arg;
? +arg.slice(0, -1) / 100

Check warning on line 94 in packages/highs-solver/src/monitor.ts

View check run for this annotation

Codecov / codecov/patch

packages/highs-solver/src/monitor.ts#L94

Added line #L94 was not covered by tests
: +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
Loading