From c7484046a7a324b6b47b621d98ac66ed21c53602 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 28 Oct 2021 14:40:31 -0400 Subject: [PATCH] update tfjs --- CHANGELOG.md | 6 +++++- TODO.md | 1 + package.json | 10 ++++++---- src/tfjs/types.ts | 2 ++ 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c29d387a..cd35ab12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,15 @@ ## Changelog -### **2.4.2** 2021/10/27 mandic00@live.com +### **2.4.3** 2021/10/28 mandic00@live.com ### **origin/main** 2021/10/27 mandic00@live.com + +### **2.4.2** 2021/10/27 mandic00@live.com + +- add ts demo - switch from es2018 to es2020 for main build - switch to custom tfjs for demos diff --git a/TODO.md b/TODO.md index a7db2256..b489482f 100644 --- a/TODO.md +++ b/TODO.md @@ -3,6 +3,7 @@ ## Work in Progress - Switch to custom `tfjs` for main `human` ESM bundle +- Sort out incompatibility with latest `long.js` 5.0.0 due to CJS to ESM switch
diff --git a/package.json b/package.json index 630f9582..15ccf6ae 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "tensorflow" ], "devDependencies": { - "@tensorflow/tfjs": "^3.11.0", "@tensorflow/tfjs-backend-cpu": "^3.11.0", "@tensorflow/tfjs-backend-wasm": "^3.11.0", "@tensorflow/tfjs-backend-webgl": "^3.11.0", @@ -64,8 +63,9 @@ "@tensorflow/tfjs-core": "^3.11.0", "@tensorflow/tfjs-data": "^3.11.0", "@tensorflow/tfjs-layers": "^3.11.0", - "@tensorflow/tfjs-node": "^3.11.0", "@tensorflow/tfjs-node-gpu": "^3.11.0", + "@tensorflow/tfjs-node": "^3.11.0", + "@tensorflow/tfjs": "^3.11.0", "@types/node": "^16.11.6", "@typescript-eslint/eslint-plugin": "^5.2.0", "@typescript-eslint/parser": "^5.2.0", @@ -74,19 +74,21 @@ "canvas": "^2.8.0", "dayjs": "^1.10.7", "esbuild": "^0.13.10", - "eslint": "8.1.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-html": "^6.2.0", "eslint-plugin-import": "^2.25.2", "eslint-plugin-json": "^3.1.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.1", - "long": "^5.0.0", + "eslint": "8.1.0", + "long": "4", "node-fetch": "^3.0.0", "rimraf": "^3.0.2", "seedrandom": "^3.0.5", "tslib": "^2.3.1", "typedoc": "0.22.7", "typescript": "4.4.4" + }, + "dependencies": { } } diff --git a/src/tfjs/types.ts b/src/tfjs/types.ts index e4d8fd47..85a227e6 100644 --- a/src/tfjs/types.ts +++ b/src/tfjs/types.ts @@ -16,3 +16,5 @@ export { GraphModel } from '@tensorflow/tfjs-converter/dist/index'; * @external */ export { Long } from 'long'; +// import Long from 'long'; +// export { Long };