From 3e11169b2e92a3b30ebefc0bf837531d17892da4 Mon Sep 17 00:00:00 2001 From: jobo322 Date: Sat, 4 May 2024 09:11:15 -0500 Subject: [PATCH 1/2] fix: update dependencies --- .eslintrc.yml | 2 ++ package.json | 16 ++++++++-------- rollup.config.js => rollup.config.mjs | 4 ++-- src/index.js | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) rename rollup.config.js => rollup.config.mjs (77%) diff --git a/.eslintrc.yml b/.eslintrc.yml index f40ac5c..f4ab74d 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,3 +1,5 @@ extends: cheminfo parserOptions: sourceType: module +env: + jest: true diff --git a/package.json b/package.json index e9eccaf..e63c522 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/rollup.config.js b/rollup.config.mjs similarity index 77% rename from rollup.config.js rename to rollup.config.mjs index cfcc325..fc9a05c 100644 --- a/rollup.config.js +++ b/rollup.config.mjs @@ -2,6 +2,6 @@ export default { input: 'src/index.js', output: { file: 'lib/index.js', - format: 'cjs' - } + format: 'cjs', + }, }; diff --git a/src/index.js b/src/index.js index dad414f..f690b26 100644 --- a/src/index.js +++ b/src/index.js @@ -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) { From 36f321b68d677d13488d7664165ed2be2532ab68 Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Sun, 5 May 2024 19:10:14 +0200 Subject: [PATCH 2/2] test: use LTS node version for testing --- .github/workflows/nodejs.yml | 2 -- package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 0ea7496..12c81fa 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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]' diff --git a/package.json b/package.json index e63c522..6025f1c 100644 --- a/package.json +++ b/package.json @@ -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": {