Skip to content

Commit

Permalink
fix: update dependencies (#15)
Browse files Browse the repository at this point in the history
* fix: update dependencies

* test: use LTS node version for testing

---------

Co-authored-by: Luc Patiny <luc@patiny.com>
  • Loading branch information
jobo322 and lpatiny authored May 5, 2024
1 parent a3d3911 commit 0db2c54
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extends: cheminfo
parserOptions:
sourceType: module
env:
jest: true
2 changes: 0 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ jobs:
nodejs:
# Documentation: https://github.com/zakodium/workflows#nodejs-ci
uses: zakodium/workflows/.github/workflows/nodejs.yml@nodejs-v1
with:
node-version-matrix: '[12, 14, 16]'
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"prepack": "npm run compile",
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-only && npm run eslint",
"test": "npm run test-only && npm run eslint && npm run prettier",
"test-only": "jest --coverage"
},
"repository": {
Expand All @@ -32,15 +32,15 @@
},
"homepage": "https://github.com/mljs/regression-exponential#readme",
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
"eslint": "^8.10.0",
"eslint-config-cheminfo": "^7.2.2",
"jest": "^27.5.1",
"prettier": "^2.5.1",
"rollup": "^2.69.0"
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"eslint": "^8.56.0",
"eslint-config-cheminfo": "^9.2.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rollup": "^4.17.2"
},
"dependencies": {
"ml-regression-base": "^2.1.6",
"ml-regression-simple-linear": "^2.0.3"
"ml-regression-base": "^3.0.0",
"ml-regression-simple-linear": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export default {
input: 'src/index.js',
output: {
file: 'lib/index.js',
format: 'cjs'
}
format: 'cjs',
},
};
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseRegression, {
checkArrayLength,
maybeToPrecision,
} from 'ml-regression-base';
import SimpleLinearRegression from 'ml-regression-simple-linear';
import { SimpleLinearRegression } from 'ml-regression-simple-linear';

export default class ExponentialRegression extends BaseRegression {
constructor(x, y) {
Expand Down

0 comments on commit 0db2c54

Please sign in to comment.