From 8adb8f1ddb4842b32afe92a28a354408034889a3 Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Fri, 2 Feb 2024 10:01:06 +0100 Subject: [PATCH] feat!: update dependencies They were many breaking changes in most of the related packages and you should go to the corresponding repository to check the details. --- .eslintrc.yml | 2 ++ package.json | 36 ++++++++++++++++++------------------ src/index.js | 5 +++-- 3 files changed, 23 insertions(+), 20 deletions(-) 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 93569a4..d7c50cb 100644 --- a/package.json +++ b/package.json @@ -65,27 +65,27 @@ "ml-arrayxy-uniquex": "^1.0.2", "ml-bit-array": "^1.0.0", "ml-cart": "^2.1.1", - "ml-confusion-matrix": "^0.4.0", + "ml-confusion-matrix": "^2.0.0", "ml-cross-validation": "^1.3.0", - "ml-distance": "^3.0.0", + "ml-distance": "^4.0.1", "ml-distance-matrix": "^2.0.1", - "ml-fcnnls": "^1.1.1", + "ml-fcnnls": "^3.0.0", "ml-fnn": "^5.0.0", - "ml-gsd": "^10.1.2", + "ml-gsd": "^12.1.3", "ml-hash-table": "^1.0.0", "ml-hclust": "^3.1.0", "ml-kernel": "^3.0.0", - "ml-kmeans": "^5.0.0", + "ml-kmeans": "^6.0.0", "ml-knn": "^3.0.0", - "ml-levenberg-marquardt": "^4.1.0", - "ml-matrix": "^6.9.0", + "ml-levenberg-marquardt": "^4.1.3", + "ml-matrix": "^6.11.0", "ml-naivebayes": "^4.0.0", "ml-ngmca": "^1.0.0", "ml-pad-array": "^2.0.0", - "ml-pca": "^4.0.2", + "ml-pca": "^4.1.1", "ml-performance": "^0.2.0", - "ml-pls": "^4.1.1", - "ml-random": "^0.5.0", + "ml-pls": "^4.3.2", + "ml-random": "^1.0.1", "ml-random-forest": "^2.1.0", "ml-regression": "^5.0.0", "ml-savitzky-golay": "^5.0.0", @@ -95,14 +95,14 @@ "num-sort": "^3.0.0" }, "devDependencies": { - "@babel/plugin-transform-modules-commonjs": "^7.16.8", - "@types/jest": "^27.4.1", - "cheminfo-build": "^1.1.11", - "eslint": "^8.10.0", - "eslint-config-cheminfo": "^7.2.2", + "@babel/plugin-transform-modules-commonjs": "^7.23.3", + "@types/jest": "^29.5.12", + "cheminfo-build": "^1.2.0", + "eslint": "^8.56.0", + "eslint-config-cheminfo": "^9.1.1", "esm": "^3.2.25", - "jest": "^27.5.1", - "prettier": "^2.5.1", - "rollup": "^2.69.2" + "jest": "^29.7.0", + "prettier": "^3.2.4", + "rollup": "^4.9.6" } } diff --git a/src/index.js b/src/index.js index ce29380..c49e505 100644 --- a/src/index.js +++ b/src/index.js @@ -14,7 +14,8 @@ import { export { PCA } from 'ml-pca'; import * as HClust from 'ml-hclust'; export { HClust }; -export { default as KMeans } from 'ml-kmeans'; +import * as KMeans from 'ml-kmeans'; +export { KMeans }; // Supervised learning import * as NaiveBayes from 'ml-naivebayes'; @@ -23,7 +24,7 @@ export { default as KNN } from 'ml-knn'; export { PLS, KOPLS, OPLS, oplsNipals } from 'ml-pls'; import * as CrossValidation from 'ml-cross-validation'; export { CrossValidation }; -export { default as ConfusionMatrix } from 'ml-confusion-matrix'; +export { ConfusionMatrix } from 'ml-confusion-matrix'; export { DecisionTreeClassifier }; export { RandomForestClassifier };