diff --git a/CHANGELOG.md b/CHANGELOG.md index 58872da9..44a04115 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,9 @@ ## Changelog -### **HEAD -> main** 2021/10/29 mandic00@live.com +### **HEAD -> main** 2021/10/30 mandic00@live.com +- build and docs cleanup - fix firefox bug ### **2.4.3** 2021/10/28 mandic00@live.com diff --git a/README.md b/README.md index b6a45224..4c67864f 100644 --- a/README.md +++ b/README.md @@ -310,8 +310,8 @@ For more info, see [**Configuration Details**](https://github.com/vladmandic/hum


`Human` library is written in `TypeScript` [4.4](https://www.typescriptlang.org/docs/handbook/intro.html) -Conforming to `JavaScript` [ECMAScript version 2020](https://www.ecma-international.org/ecma-262/11.0/index.html) standard -Build target is `JavaScript` [EMCAScript version 2018](https://262.ecma-international.org/9.0/) +Conforming to latest `JavaScript` [ECMAScript version 2021](https://262.ecma-international.org/) standard +Build target is `JavaScript` [EMCAScript version 2020](https://262.ecma-international.org/11.0/)
diff --git a/package.json b/package.json index 7d5b172e..c3d23bd4 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "scripts": { "start": "node --no-warnings demo/nodejs/node.js", "dev": "build --profile development", - "build": "rimraf test/build.log && build --profile production", + "build": "rimraf test/build.log && build --profile production && cp src/tfjs/tfjs.esm.d.ts types/dist/", "test": "node --no-warnings --unhandled-rejections=strict --trace-uncaught test/node.js", "lint": "eslint src demo test", "scan": "npx auditjs@latest ossi --dev --quiet" @@ -73,7 +73,7 @@ "@vladmandic/pilogger": "^0.3.3", "canvas": "^2.8.0", "dayjs": "^1.10.7", - "esbuild": "^0.13.11", + "esbuild": "^0.13.12", "eslint": "8.1.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-html": "^6.2.0", diff --git a/src/tfjs/tfjs.esm.d.ts b/src/tfjs/tfjs.esm.d.ts new file mode 100644 index 00000000..91200e44 --- /dev/null +++ b/src/tfjs/tfjs.esm.d.ts @@ -0,0 +1,19 @@ +/// + +export declare const version: { + 'tfjs-core': string; + 'tfjs-backend-cpu': string; + 'tfjs-backend-webgl': string; + 'tfjs-data': string; + 'tfjs-layers': string; + 'tfjs-converter': string; + tfjs: string; +}; +export * from '@tensorflow/tfjs-core'; +export * from '@tensorflow/tfjs-converter'; +export * from '@tensorflow/tfjs-data'; +// export * from "@tensorflow/tfjs-layers"; +// export * from "@tensorflow/tfjs-backend-cpu"; +// export * from "@tensorflow/tfjs-backend-wasm"; +// export * from "@tensorflow/tfjs-backend-webgl"; +export {};