From 20ee0f5f3faa16879eb43bdb5b7454b2dc6a0cd6 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 30 Oct 2021 12:21:54 -0400 Subject: [PATCH] start 2.5 major version --- .build.json | 33 ++++++----------------------- .npmignore | 2 -- CHANGELOG.md | 3 ++- demo/benchmark/browser.html | 2 +- demo/facematch/facematch.js | 2 +- demo/facematch/node-match-worker.js | 8 +++---- demo/facematch/node-match.js | 10 ++++----- demo/multithread/index.js | 2 +- demo/typescript/index.js | 2 +- demo/typescript/index.ts | 2 +- package.json | 5 ++--- src/tfjs/types.ts | 5 ++--- test/browser.html | 2 +- tfjs/tf-custom.ts | 10 ++++----- tsconfig.json | 2 +- 15 files changed, 32 insertions(+), 58 deletions(-) diff --git a/.build.json b/.build.json index 459b55ab..e5c619de 100644 --- a/.build.json +++ b/.build.json @@ -112,13 +112,13 @@ "external": ["@tensorflow", "fs", "os", "buffer", "util"] }, { - "name": "tfjs/browser/esm/bundle", + "name": "tfjs/browser/esm/custom", "platform": "browser", + "target": "esnext", "format": "esm", - "input": "tfjs/tf-browser.ts", + "input": "tfjs/tf-custom.ts", "output": "dist/tfjs.esm.js", - "minify": false, - "sourcemap": true, + "sourcemap": false, "external": ["fs", "os", "buffer", "util"] }, { @@ -134,31 +134,10 @@ { "name": "human/browser/esm/bundle", "platform": "browser", + "target": "esnext", "format": "esm", "input": "src/human.ts", "output": "dist/human.esm.js", - "minify": true, - "sourcemap": true, - "external": ["fs", "os", "buffer", "util"] - }, - - { - "name": "tfjs/browser/esm/custom", - "platform": "browser", - "target": "esnext", - "format": "esm", - "input": "tfjs/tf-custom.ts", - "output": "dist/tfjs.esm.js", - "sourcemap": false, - "external": ["fs", "os", "buffer", "util"] - }, - { - "name": "human/browser/esm/custom", - "platform": "browser", - "target": "esnext", - "format": "esm", - "input": "src/human.ts", - "output": "dist/human.custom.esm.js", "sourcemap": true, "minify": false, "external": ["fs", "os", "buffer", "util"], @@ -174,7 +153,7 @@ "output": "demo/typescript/index.js", "sourcemap": true, "minify": false, - "external": ["*/human.custom.esm.js"] + "external": ["*/human.esm.js"] } ] }, diff --git a/.npmignore b/.npmignore index 64c274ec..e0b54f43 100644 --- a/.npmignore +++ b/.npmignore @@ -4,5 +4,3 @@ samples typedoc test wiki -dist/tfjs.esm.js -dist/tfjs.esm.js.map diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d5039af..58872da9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,9 @@ ## Changelog -### **HEAD -> main** 2021/10/28 mandic00@live.com +### **HEAD -> main** 2021/10/29 mandic00@live.com +- fix firefox bug ### **2.4.3** 2021/10/28 mandic00@live.com diff --git a/demo/benchmark/browser.html b/demo/benchmark/browser.html index 2df0d892..8f464d1f 100644 --- a/demo/benchmark/browser.html +++ b/demo/benchmark/browser.html @@ -26,7 +26,7 @@