diff --git a/.all-contributorsrc b/.all-contributorsrc index 63467c7311..b66aa0f055 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -231,6 +231,34 @@ "bug", "ideas" ] + }, + { + "login": "pedroteixeira", + "name": "Pedro Henriques dos Santos Teixeira", + "avatar_url": "https://avatars3.githubusercontent.com/u/14740?v=4", + "profile": "http://twitter.com/pedroteixeira", + "contributions": [ + "financial" + ] + }, + { + "login": "jamieowen", + "name": "Jamie Owen", + "avatar_url": "https://avatars3.githubusercontent.com/u/248957?v=4", + "profile": "http://jamieowen.com", + "contributions": [ + "bug" + ] + }, + { + "login": "rkesters", + "name": "Robert Kesteson", + "avatar_url": "https://avatars3.githubusercontent.com/u/5572145?v=4", + "profile": "https://github.com/rkesters", + "contributions": [ + "bug", + "code" + ] } ], "contributorsPerLine": 7, diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f9419ab04..7e282c6fc2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ on: push: branches: - develop - - master + - main paths: - "packages/**" - ".github/workflows/**" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 141588e232..25aa77066e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -314,7 +314,7 @@ If in doubt, please ask first... It has been [brought to my attention](https://github.com/thi-ng/umbrella/issues/154) (thanks to -@Bnaya) that exported `const enums` negatively interfere with some +[@Bnaya](https://github.com/Bnaya)) that exported `const enums` negatively interfere with some downstream workflows related to Babel transpilation and TypeScript's `isolatedModules` compilation feature. For that reason, that latter option is now enabled for all packages and exported `const enum`s are diff --git a/README.md b/README.md index 84866901cc..bb1ef6e5fd 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,13 @@ > the composer of. Geared towards versatility, not any specific type of music." > — [@loganpowell](https://twitter.com/logantpowell/status/1186334119812304901) via Twitter -Mono-repository for 142+ thi.ng TypeScript/ES6 projects, a wide +Mono-repository for 144+ thi.ng TypeScript/ES6 projects, a wide collection of largely data transformation oriented packages and building blocks for (non-exhaustive list of topics): +**Please visit [thi.ng](https://thi.ng) for additional information & topic based +search of packages relevant to your use cases...** + - Functional programming (composition, memoization, transducers, multi-methods) - Data structures & data transformations for wide range of use cases (list, sets, maps, joins, spatial indexing, clocks) @@ -111,6 +114,12 @@ fixes, feature requests, financial contributions etc.). You can find a fairly detailed overview for contributors here: [CONTRIBUTING.md](https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md). +**Note:** The default branch for this repo is `develop`. As of 2020-12-08, +we've also renamed `master` to the more suitable `main` branch. If you have +local clones, please follow the [advice & short instructions in this +article](https://www.hanselman.com/blog/easily-rename-your-git-default-branch-from-master-to-main) +to update your local version. + ## Projects +### Latest additions (2020-12-22) + +| Project | Version | Changelog | Description | +|---------------------------------------------|-------------------------------------------------------------------------------------------------------------------|------------------------------------------------|--------------------------------------------------| +| [`@thi.ng/fuzzy`](./packages/fuzzy) | [![version](https://img.shields.io/npm/v/@thi.ng/fuzzy.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy) | [changelog](./packages/fuzzy/CHANGELOG.md) | Fuzzy logic primitives & rule inference engine | +| [`@thi.ng/fuzzy-viz`](./packages/fuzzy-viz) | [![version](https://img.shields.io/npm/v/@thi.ng/fuzzy-viz.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy-viz) | [changelog](./packages/fuzzy-viz/CHANGELOG.md) | Visualization, instrumentation for @thi.ng/fuzzy | +| [`@thi.ng/vclock`](./packages/vclock) | [![version](https://img.shields.io/npm/v/@thi.ng/vclock.svg)](https://www.npmjs.com/package/@thi.ng/vclock) | [changelog](./packages/vclock/CHANGELOG.md) | Vector clock functions / comparators | + ### Fundamentals | Project | Version | Changelog | Description | @@ -135,6 +152,7 @@ feature or `develop` branches) --> | [`@thi.ng/ecs`](./packages/ecs) | [![version](https://img.shields.io/npm/v/@thi.ng/ecs.svg)](https://www.npmjs.com/package/@thi.ng/ecs) | [changelog](./packages/ecs/CHANGELOG.md) | Entity-Component System | | [`@thi.ng/equiv`](./packages/equiv) | [![version](https://img.shields.io/npm/v/@thi.ng/equiv.svg)](https://www.npmjs.com/package/@thi.ng/equiv) | [changelog](./packages/equiv/CHANGELOG.md) | Deep value equivalence checking | | [`@thi.ng/errors`](./packages/errors) | [![version](https://img.shields.io/npm/v/@thi.ng/errors.svg)](https://www.npmjs.com/package/@thi.ng/errors) | [changelog](./packages/errors/CHANGELOG.md) | Custom error types | +| [`@thi.ng/fuzzy`](./packages/fuzzy) | [![version](https://img.shields.io/npm/v/@thi.ng/fuzzy.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy) | [changelog](./packages/fuzzy/CHANGELOG.md) | Fuzzy logic primitives & rule inference engine | | [`@thi.ng/hex`](./packages/hex) | [![version](https://img.shields.io/npm/v/@thi.ng/hex.svg)](https://www.npmjs.com/package/@thi.ng/hex) | [changelog](./packages/hex/CHANGELOG.md) | Hex value formatters for U4-64 words | | [`@thi.ng/math`](./packages/math) | [![version](https://img.shields.io/npm/v/@thi.ng/math.svg)](https://www.npmjs.com/package/@thi.ng/math) | [changelog](./packages/math/CHANGELOG.md) | Assorted common math functions & utilities | | [`@thi.ng/memoize`](./packages/memoize) | [![version](https://img.shields.io/npm/v/@thi.ng/memoize.svg)](https://www.npmjs.com/package/@thi.ng/memoize) | [changelog](./packages/memoize/CHANGELOG.md) | Function memoization w/ customizable caching | @@ -146,7 +164,6 @@ feature or `develop` branches) --> | [`@thi.ng/random`](./packages/random) | [![version](https://img.shields.io/npm/v/@thi.ng/random.svg)](https://www.npmjs.com/package/@thi.ng/random) | [changelog](./packages/random/CHANGELOG.md) | Seedable PRNG implementations w/ unified API | | [`@thi.ng/strings`](./packages/strings) | [![version](https://img.shields.io/npm/v/@thi.ng/strings.svg)](https://www.npmjs.com/package/@thi.ng/strings) | [changelog](./packages/strings/CHANGELOG.md) | Higher-order string formatting utils | | [`@thi.ng/system`](./packages/system) | [![version](https://img.shields.io/npm/v/@thi.ng/system.svg)](https://www.npmjs.com/package/@thi.ng/system) | [changelog](./packages/system/CHANGELOG.md) | Minimal life cycle container for stateful app components | - ### Iterator, stream & sequence processing | Project | Version | Changelog | Description | @@ -236,6 +253,7 @@ feature or `develop` branches) --> | [`@thi.ng/color`](./packages/color) | [![version](https://img.shields.io/npm/v/@thi.ng/color.svg)](https://www.npmjs.com/package/@thi.ng/color) | [changelog](./packages/color/CHANGELOG.md) | Color conversions, gradients | | [`@thi.ng/dgraph-dot`](./packages/dgraph-dot) | [![version](https://img.shields.io/npm/v/@thi.ng/dgraph-dot.svg)](https://www.npmjs.com/package/@thi.ng/dgraph-dot) | [changelog](./packages/dgraph-dot/CHANGELOG.md) | Dependency graph -> Graphviz | | [`@thi.ng/dot`](./packages/dot) | [![version](https://img.shields.io/npm/v/@thi.ng/dot.svg)](https://www.npmjs.com/package/@thi.ng/dot) | [changelog](./packages/dot/CHANGELOG.md) | Graphviz DOM & export | +| [`@thi.ng/fuzzy-viz`](./packages/fuzzy-viz) | [![version](https://img.shields.io/npm/v/@thi.ng/fuzzy-viz.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy-viz) | [changelog](./packages/fuzzy-viz/CHANGELOG.md) | Visualization, instrumentation for @thi.ng/fuzzy | | [`@thi.ng/geom`](./packages/geom) | [![version](https://img.shields.io/npm/v/@thi.ng/geom.svg)](https://www.npmjs.com/package/@thi.ng/geom) | [changelog](./packages/geom/CHANGELOG.md) | 2D only geometry types & ops | | [`@thi.ng/geom-accel`](./packages/geom-accel) | [![version](https://img.shields.io/npm/v/@thi.ng/geom-accel.svg)](https://www.npmjs.com/package/@thi.ng/geom-accel) | [changelog](./packages/geom-accel/CHANGELOG.md) | Spatial indexing data structures | | [`@thi.ng/geom-api`](./packages/geom-api) | [![version](https://img.shields.io/npm/v/@thi.ng/geom-api.svg)](https://www.npmjs.com/package/@thi.ng/geom-api) | [changelog](./packages/geom-api/CHANGELOG.md) | Shared types & interfaces | @@ -402,6 +420,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
TBD

🐛 🤔 +
Pedro Henriques dos Santos Teixeira

💵 +
Jamie Owen

🐛 +
Robert Kesteson

🐛 💻 diff --git a/assets/fuzzy/fuzzy-matrix-dernoncourt.png b/assets/fuzzy/fuzzy-matrix-dernoncourt.png new file mode 100644 index 0000000000..c47e7fc85b Binary files /dev/null and b/assets/fuzzy/fuzzy-matrix-dernoncourt.png differ diff --git a/assets/fuzzy/strategy-viz.svg b/assets/fuzzy/strategy-viz.svg new file mode 100644 index 0000000000..6577f83712 --- /dev/null +++ b/assets/fuzzy/strategy-viz.svg @@ -0,0 +1 @@ +0.0010.006.27 \ No newline at end of file diff --git a/assets/fuzzy/temperature-lvar-2.svg b/assets/fuzzy/temperature-lvar-2.svg new file mode 100644 index 0000000000..0497163553 --- /dev/null +++ b/assets/fuzzy/temperature-lvar-2.svg @@ -0,0 +1 @@ +freezingcoldwarmhot0.00-20.0040.00 \ No newline at end of file diff --git a/examples/adaptive-threshold/package.json b/examples/adaptive-threshold/package.json index 3131f9e821..1890186542 100644 --- a/examples/adaptive-threshold/package.json +++ b/examples/adaptive-threshold/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/adaptive-threshold.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/adaptive-threshold/snowpack.config.js b/examples/adaptive-threshold/snowpack.config.js index b453cdcb2a..cb372dc5b2 100644 --- a/examples/adaptive-threshold/snowpack.config.js +++ b/examples/adaptive-threshold/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/adaptive-threshold", + baseUrl: "/umbrella/adaptive-threshold", }, }; diff --git a/examples/async-effect/package.json b/examples/async-effect/package.json index 02cc4e607a..463a8ebd8b 100644 --- a/examples/async-effect/package.json +++ b/examples/async-effect/package.json @@ -27,6 +27,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/async-effect/snowpack.config.js b/examples/async-effect/snowpack.config.js index 947542ffe9..92adba683f 100644 --- a/examples/async-effect/snowpack.config.js +++ b/examples/async-effect/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/async-effect", + baseUrl: "/umbrella/async-effect", }, }; diff --git a/examples/bitmap-font/package.json b/examples/bitmap-font/package.json index 985362ff7a..f880b6cef2 100644 --- a/examples/bitmap-font/package.json +++ b/examples/bitmap-font/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/bitmap-font.gif" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/bitmap-font/snowpack.config.js b/examples/bitmap-font/snowpack.config.js index 44f64dc948..c988e2dd6e 100644 --- a/examples/bitmap-font/snowpack.config.js +++ b/examples/bitmap-font/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/bitmap-font", + baseUrl: "/umbrella/bitmap-font", }, }; diff --git a/examples/canvas-dial/package.json b/examples/canvas-dial/package.json index d457e003ec..9611625641 100644 --- a/examples/canvas-dial/package.json +++ b/examples/canvas-dial/package.json @@ -38,6 +38,6 @@ "screenshot": "examples/canvas-dial.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/canvas-dial/snowpack.config.js b/examples/canvas-dial/snowpack.config.js index c11ebe5b7f..1d6144b2fa 100644 --- a/examples/canvas-dial/snowpack.config.js +++ b/examples/canvas-dial/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/canvas-dial", + baseUrl: "/umbrella/canvas-dial", }, }; diff --git a/examples/canvas-dial/src/dial.ts b/examples/canvas-dial/src/dial.ts index 552a189560..808c0af915 100644 --- a/examples/canvas-dial/src/dial.ts +++ b/examples/canvas-dial/src/dial.ts @@ -4,11 +4,7 @@ import { isString } from "@thi.ng/checks"; import { canvas2D } from "@thi.ng/hdom-components"; import { fitClamped } from "@thi.ng/math"; import type { Subscription } from "@thi.ng/rstream"; -import { - GestureEvent, - gestureStream, - GestureType, -} from "@thi.ng/rstream-gestures"; +import { GestureEvent, gestureStream } from "@thi.ng/rstream-gestures"; import { heading, sub2 } from "@thi.ng/vectors"; /** @@ -190,10 +186,7 @@ export const dial = (_opts: Partial) => { // configure stream to return scaled coords (devicePixelRatio) events = gestureStream(el, { scale: true }).subscribe({ next: (e) => { - if ( - e.type === GestureType.START || - e.type === GestureType.DRAG - ) { + if (e.type === "start" || e.type === "drag") { let theta = heading(sub2([], e.pos, [cx, cy])) - startTheta; if (theta < 0) theta += TAU; diff --git a/examples/cellular-automata/package.json b/examples/cellular-automata/package.json index 75a1d684db..bdf71b4b2c 100644 --- a/examples/cellular-automata/package.json +++ b/examples/cellular-automata/package.json @@ -30,6 +30,6 @@ "screenshot": "examples/cellular-automata.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/cellular-automata/snowpack.config.js b/examples/cellular-automata/snowpack.config.js index 01547e6d6a..b65c0841d0 100644 --- a/examples/cellular-automata/snowpack.config.js +++ b/examples/cellular-automata/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/cellular-automata", + baseUrl: "/umbrella/cellular-automata", }, }; diff --git a/examples/commit-table-ssr/package.json b/examples/commit-table-ssr/package.json index 9a08353cf6..60cc1a0051 100644 --- a/examples/commit-table-ssr/package.json +++ b/examples/commit-table-ssr/package.json @@ -13,7 +13,7 @@ }, "devDependencies": { "ts-node": "^9.1.0", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { "@thi.ng/api": "latest", diff --git a/examples/commit-table-ssr/webpack.config.js b/examples/commit-table-ssr/webpack.config.js index a026490e1d..fdd6630a8c 100644 --- a/examples/commit-table-ssr/webpack.config.js +++ b/examples/commit-table-ssr/webpack.config.js @@ -17,7 +17,5 @@ module.exports = { { test: /\.ts$/, use: "ts-loader" }, ], }, - node: { - process: false, - }, + node: false, }; diff --git a/examples/crypto-chart/package.json b/examples/crypto-chart/package.json index fd9b3c280f..12326718ee 100644 --- a/examples/crypto-chart/package.json +++ b/examples/crypto-chart/package.json @@ -43,6 +43,6 @@ "screenshot": "examples/crypto-chart.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/crypto-chart/snowpack.config.js b/examples/crypto-chart/snowpack.config.js index e19f406e35..72ff772ac9 100644 --- a/examples/crypto-chart/snowpack.config.js +++ b/examples/crypto-chart/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/crypto-chart", + baseUrl: "/umbrella/crypto-chart", }, }; diff --git a/examples/devcards/package.json b/examples/devcards/package.json index 1e8716ede5..e24a4bfc4d 100644 --- a/examples/devcards/package.json +++ b/examples/devcards/package.json @@ -28,6 +28,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/devcards/snowpack.config.js b/examples/devcards/snowpack.config.js index 7b31b1e56a..fb38b1237a 100644 --- a/examples/devcards/snowpack.config.js +++ b/examples/devcards/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/devcards", + baseUrl: "/umbrella/devcards", }, }; diff --git a/examples/ellipse-proximity/package.json b/examples/ellipse-proximity/package.json index ae376da13c..07373607df 100644 --- a/examples/ellipse-proximity/package.json +++ b/examples/ellipse-proximity/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/ellipse-proximity.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/ellipse-proximity/snowpack.config.js b/examples/ellipse-proximity/snowpack.config.js index 6114e0d69b..2c9edf289e 100644 --- a/examples/ellipse-proximity/snowpack.config.js +++ b/examples/ellipse-proximity/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/ellipse-proximity", + baseUrl: "/umbrella/ellipse-proximity", }, }; diff --git a/examples/fft-synth/package.json b/examples/fft-synth/package.json index 7d3a2ae2b7..948fb00a6a 100644 --- a/examples/fft-synth/package.json +++ b/examples/fft-synth/package.json @@ -41,6 +41,6 @@ "screenshot": "examples/fft-synth.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/fft-synth/snowpack.config.js b/examples/fft-synth/snowpack.config.js index 04e376bfc3..ffafd16725 100644 --- a/examples/fft-synth/snowpack.config.js +++ b/examples/fft-synth/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/fft-synth", + baseUrl: "/umbrella/fft-synth", }, }; diff --git a/examples/geom-convex-hull/package.json b/examples/geom-convex-hull/package.json index 9ee9d5ea24..6a1e66cd69 100644 --- a/examples/geom-convex-hull/package.json +++ b/examples/geom-convex-hull/package.json @@ -30,6 +30,6 @@ "screenshot": "examples/geom-convex-hull.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/geom-convex-hull/snowpack.config.js b/examples/geom-convex-hull/snowpack.config.js index 8d4fd4cb47..aec95f94bc 100644 --- a/examples/geom-convex-hull/snowpack.config.js +++ b/examples/geom-convex-hull/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/geom-convex-hull", + baseUrl: "/umbrella/geom-convex-hull", }, }; diff --git a/examples/geom-fuzz-basics/package.json b/examples/geom-fuzz-basics/package.json index 27617696c9..4347e95286 100644 --- a/examples/geom-fuzz-basics/package.json +++ b/examples/geom-fuzz-basics/package.json @@ -32,6 +32,6 @@ "screenshot": "geom/geom-fuzz.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/geom-fuzz-basics/snowpack.config.js b/examples/geom-fuzz-basics/snowpack.config.js index 6822cb8b32..9bc8ecfc0c 100644 --- a/examples/geom-fuzz-basics/snowpack.config.js +++ b/examples/geom-fuzz-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/geom-fuzz-basics", + baseUrl: "/umbrella/geom-fuzz-basics", }, }; diff --git a/examples/geom-knn/package.json b/examples/geom-knn/package.json index 3880705856..eb8cd40f82 100644 --- a/examples/geom-knn/package.json +++ b/examples/geom-knn/package.json @@ -36,6 +36,6 @@ "screenshot": "examples/geom-knn.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/geom-knn/snowpack.config.js b/examples/geom-knn/snowpack.config.js index 38ba861bf9..7da134d6f4 100644 --- a/examples/geom-knn/snowpack.config.js +++ b/examples/geom-knn/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/geom-knn", + baseUrl: "/umbrella/geom-knn", }, }; diff --git a/examples/geom-tessel/package.json b/examples/geom-tessel/package.json index 567995f000..4bea359252 100644 --- a/examples/geom-tessel/package.json +++ b/examples/geom-tessel/package.json @@ -36,6 +36,6 @@ "screenshot": "geom/tessel.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/geom-tessel/snowpack.config.js b/examples/geom-tessel/snowpack.config.js index 4529dc0772..b54403ecd0 100644 --- a/examples/geom-tessel/snowpack.config.js +++ b/examples/geom-tessel/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/geom-tessel", + baseUrl: "/umbrella/geom-tessel", }, }; diff --git a/examples/geom-voronoi-mst/package.json b/examples/geom-voronoi-mst/package.json index 9f4cb740db..11f841154c 100644 --- a/examples/geom-voronoi-mst/package.json +++ b/examples/geom-voronoi-mst/package.json @@ -41,6 +41,6 @@ "screenshot": "examples/geom-voronoi-mst.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/geom-voronoi-mst/snowpack.config.js b/examples/geom-voronoi-mst/snowpack.config.js index 8050f0f583..99c065d5ff 100644 --- a/examples/geom-voronoi-mst/snowpack.config.js +++ b/examples/geom-voronoi-mst/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/geom-voronoi-mst", + baseUrl: "/umbrella/geom-voronoi-mst", }, }; diff --git a/examples/gesture-analysis/package.json b/examples/gesture-analysis/package.json index 67572d0a57..8d60e1f79c 100644 --- a/examples/gesture-analysis/package.json +++ b/examples/gesture-analysis/package.json @@ -37,6 +37,6 @@ "screenshot": "examples/gesture-analysis.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/gesture-analysis/snowpack.config.js b/examples/gesture-analysis/snowpack.config.js index 31b9ba8238..390c23664d 100644 --- a/examples/gesture-analysis/snowpack.config.js +++ b/examples/gesture-analysis/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/gesture-analysis", + baseUrl: "/umbrella/gesture-analysis", }, }; diff --git a/examples/gesture-analysis/src/index.ts b/examples/gesture-analysis/src/index.ts index 8927544f42..dabb0dd130 100644 --- a/examples/gesture-analysis/src/index.ts +++ b/examples/gesture-analysis/src/index.ts @@ -3,11 +3,7 @@ import { identity } from "@thi.ng/compose"; import { polyline as gPolyline, resample, vertices } from "@thi.ng/geom"; import { circle, group, polyline, svg } from "@thi.ng/hiccup-svg"; import { fromIterable, merge, sync } from "@thi.ng/rstream"; -import { - GestureEvent, - gestureStream, - GestureType, -} from "@thi.ng/rstream-gestures"; +import { GestureEvent, gestureStream } from "@thi.ng/rstream-gestures"; import { comp, filter, @@ -116,10 +112,10 @@ const collectPath = () => { return (g: GestureEvent) => { console.log(g); switch (g.type) { - case GestureType.START: + case "start": pts = [g.pos]; break; - case GestureType.DRAG: + case "drag": pts.push(g.pos); break; } @@ -138,9 +134,7 @@ const gesture = merge({ // mouse & touch event stream attached to document.body // we're filtering out move & zoom events to avoid extraneous work gestureStream(document.body).transform( - filter( - (g) => g.type != GestureType.MOVE && g.type != GestureType.ZOOM - ), + filter((g) => !(g.type === "move" || g.type === "zoom")), map(collectPath()) ), ], diff --git a/examples/grid-iterators/package.json b/examples/grid-iterators/package.json index 61fa310a82..ebadb9e1a3 100644 --- a/examples/grid-iterators/package.json +++ b/examples/grid-iterators/package.json @@ -30,6 +30,6 @@ "screenshot": "examples/grid-iterators.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/grid-iterators/snowpack.config.js b/examples/grid-iterators/snowpack.config.js index 422503b7aa..562875b443 100644 --- a/examples/grid-iterators/snowpack.config.js +++ b/examples/grid-iterators/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/grid-iterators", + baseUrl: "/umbrella/grid-iterators", }, }; diff --git a/examples/hdom-basics/package.json b/examples/hdom-basics/package.json index 4836746491..0c42a00a13 100644 --- a/examples/hdom-basics/package.json +++ b/examples/hdom-basics/package.json @@ -20,6 +20,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-basics/snowpack.config.js b/examples/hdom-basics/snowpack.config.js index d1238ae89b..a9d86c3692 100644 --- a/examples/hdom-basics/snowpack.config.js +++ b/examples/hdom-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-basics", + baseUrl: "/umbrella/hdom-basics", }, }; diff --git a/examples/hdom-benchmark/package.json b/examples/hdom-benchmark/package.json index 98c784cc06..b21ab72de3 100644 --- a/examples/hdom-benchmark/package.json +++ b/examples/hdom-benchmark/package.json @@ -27,6 +27,6 @@ "screenshot": "examples/hdom-benchmark.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-benchmark/snowpack.config.js b/examples/hdom-benchmark/snowpack.config.js index c35ddf8a41..26738a9298 100644 --- a/examples/hdom-benchmark/snowpack.config.js +++ b/examples/hdom-benchmark/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-benchmark", + baseUrl: "/umbrella/hdom-benchmark", }, }; diff --git a/examples/hdom-benchmark2/package.json b/examples/hdom-benchmark2/package.json index 49f6d5a569..551e7dfd30 100644 --- a/examples/hdom-benchmark2/package.json +++ b/examples/hdom-benchmark2/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/hdom-benchmark2.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-benchmark2/snowpack.config.js b/examples/hdom-benchmark2/snowpack.config.js index 1d09027467..6876dbd776 100644 --- a/examples/hdom-benchmark2/snowpack.config.js +++ b/examples/hdom-benchmark2/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-benchmark2", + baseUrl: "/umbrella/hdom-benchmark2", }, }; diff --git a/examples/hdom-canvas-clock/package.json b/examples/hdom-canvas-clock/package.json index 73adbceef3..72bd0e3616 100644 --- a/examples/hdom-canvas-clock/package.json +++ b/examples/hdom-canvas-clock/package.json @@ -33,6 +33,6 @@ "screenshot": "examples/hdom-canvas-clock.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-canvas-clock/snowpack.config.js b/examples/hdom-canvas-clock/snowpack.config.js index 4fb1c0d83b..ef63005fca 100644 --- a/examples/hdom-canvas-clock/snowpack.config.js +++ b/examples/hdom-canvas-clock/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-canvas-clock", + baseUrl: "/umbrella/hdom-canvas-clock", }, }; diff --git a/examples/hdom-canvas-draw/package.json b/examples/hdom-canvas-draw/package.json index efd924d9af..5b004c6dc3 100644 --- a/examples/hdom-canvas-draw/package.json +++ b/examples/hdom-canvas-draw/package.json @@ -38,6 +38,6 @@ "screenshot": "examples/hdom-canvas-draw.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-canvas-draw/snowpack.config.js b/examples/hdom-canvas-draw/snowpack.config.js index cbff5a5f79..33f8f537f5 100644 --- a/examples/hdom-canvas-draw/snowpack.config.js +++ b/examples/hdom-canvas-draw/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-canvas-draw", + baseUrl: "/umbrella/hdom-canvas-draw", }, }; diff --git a/examples/hdom-canvas-draw/src/index.ts b/examples/hdom-canvas-draw/src/index.ts index adc86b2452..e916177905 100644 --- a/examples/hdom-canvas-draw/src/index.ts +++ b/examples/hdom-canvas-draw/src/index.ts @@ -1,11 +1,7 @@ import { canvas } from "@thi.ng/hdom-canvas"; import { HALF_PI, PI } from "@thi.ng/math"; import { CloseMode, StreamSync, sync, trigger } from "@thi.ng/rstream"; -import { - GestureEvent, - gestureStream, - GestureType, -} from "@thi.ng/rstream-gestures"; +import { GestureEvent, gestureStream } from "@thi.ng/rstream-gestures"; import { filter, map, @@ -49,8 +45,7 @@ const app = (main: StreamSync) => { // only interested in some gesture types filter( (e: GestureEvent) => - e.type === GestureType.START || - e.type === GestureType.DRAG + e.type === "start" || e.type === "drag" ), // get current mouse / touch position map((e) => e.pos), diff --git a/examples/hdom-canvas-particles/package.json b/examples/hdom-canvas-particles/package.json index a41a9f61b3..41c558d81e 100644 --- a/examples/hdom-canvas-particles/package.json +++ b/examples/hdom-canvas-particles/package.json @@ -38,6 +38,6 @@ "screenshot": "examples/hdom-canvas-particles.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-canvas-particles/snowpack.config.js b/examples/hdom-canvas-particles/snowpack.config.js index 69f8037d8c..b4e625b9a4 100644 --- a/examples/hdom-canvas-particles/snowpack.config.js +++ b/examples/hdom-canvas-particles/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-canvas-particles", + baseUrl: "/umbrella/hdom-canvas-particles", }, }; diff --git a/examples/hdom-canvas-shapes/package.json b/examples/hdom-canvas-shapes/package.json index a1ec771af9..577d04c531 100644 --- a/examples/hdom-canvas-shapes/package.json +++ b/examples/hdom-canvas-shapes/package.json @@ -48,6 +48,6 @@ "screenshot": "hdom-canvas/hdom-canvas-shapes-results.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-canvas-shapes/snowpack.config.js b/examples/hdom-canvas-shapes/snowpack.config.js index bdae2101cd..a9ba20b640 100644 --- a/examples/hdom-canvas-shapes/snowpack.config.js +++ b/examples/hdom-canvas-shapes/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-canvas-shapes", + baseUrl: "/umbrella/hdom-canvas-shapes", }, }; diff --git a/examples/hdom-dropdown-fuzzy/package.json b/examples/hdom-dropdown-fuzzy/package.json index 1b6347eaea..3145d57223 100644 --- a/examples/hdom-dropdown-fuzzy/package.json +++ b/examples/hdom-dropdown-fuzzy/package.json @@ -36,6 +36,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-dropdown-fuzzy/snowpack.config.js b/examples/hdom-dropdown-fuzzy/snowpack.config.js index 2a8c198265..0a0ad2f11a 100644 --- a/examples/hdom-dropdown-fuzzy/snowpack.config.js +++ b/examples/hdom-dropdown-fuzzy/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-dropdown-fuzzy", + baseUrl: "/umbrella/hdom-dropdown-fuzzy", }, }; diff --git a/examples/hdom-dropdown/package.json b/examples/hdom-dropdown/package.json index 88affe20e0..1f6e99faf2 100644 --- a/examples/hdom-dropdown/package.json +++ b/examples/hdom-dropdown/package.json @@ -25,6 +25,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-dropdown/snowpack.config.js b/examples/hdom-dropdown/snowpack.config.js index b1d2570e1a..50ffb687fb 100644 --- a/examples/hdom-dropdown/snowpack.config.js +++ b/examples/hdom-dropdown/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-dropdown", + baseUrl: "/umbrella/hdom-dropdown", }, }; diff --git a/examples/hdom-dyn-context/package.json b/examples/hdom-dyn-context/package.json index 4b25109106..d859436a1d 100644 --- a/examples/hdom-dyn-context/package.json +++ b/examples/hdom-dyn-context/package.json @@ -21,6 +21,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-dyn-context/snowpack.config.js b/examples/hdom-dyn-context/snowpack.config.js index 3ee559d3ea..579262bdd8 100644 --- a/examples/hdom-dyn-context/snowpack.config.js +++ b/examples/hdom-dyn-context/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-dyn-context", + baseUrl: "/umbrella/hdom-dyn-context", }, }; diff --git a/examples/hdom-elm/package.json b/examples/hdom-elm/package.json index 9da6294d81..f23f03559b 100644 --- a/examples/hdom-elm/package.json +++ b/examples/hdom-elm/package.json @@ -30,6 +30,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-elm/snowpack.config.js b/examples/hdom-elm/snowpack.config.js index eb3f15ed7f..4c7d85e28b 100644 --- a/examples/hdom-elm/snowpack.config.js +++ b/examples/hdom-elm/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-elm", + baseUrl: "/umbrella/hdom-elm", }, }; diff --git a/examples/hdom-inner-html/package.json b/examples/hdom-inner-html/package.json index 7ee106a877..e02daaddbf 100644 --- a/examples/hdom-inner-html/package.json +++ b/examples/hdom-inner-html/package.json @@ -20,6 +20,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-inner-html/snowpack.config.js b/examples/hdom-inner-html/snowpack.config.js index a05c78b688..72abbe9d86 100644 --- a/examples/hdom-inner-html/snowpack.config.js +++ b/examples/hdom-inner-html/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-inner-html", + baseUrl: "/umbrella/hdom-inner-html", }, }; diff --git a/examples/hdom-local-render/package.json b/examples/hdom-local-render/package.json index a4a5583045..0a17c02186 100644 --- a/examples/hdom-local-render/package.json +++ b/examples/hdom-local-render/package.json @@ -22,6 +22,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-local-render/snowpack.config.js b/examples/hdom-local-render/snowpack.config.js index 828fdbaee5..8c01e797f7 100644 --- a/examples/hdom-local-render/snowpack.config.js +++ b/examples/hdom-local-render/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-local-render", + baseUrl: "/umbrella/hdom-local-render", }, }; diff --git a/examples/hdom-localstate/package.json b/examples/hdom-localstate/package.json index 76628f6f58..8ea816382f 100644 --- a/examples/hdom-localstate/package.json +++ b/examples/hdom-localstate/package.json @@ -21,6 +21,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-localstate/snowpack.config.js b/examples/hdom-localstate/snowpack.config.js index c2f3e124e9..8ec4c1b67b 100644 --- a/examples/hdom-localstate/snowpack.config.js +++ b/examples/hdom-localstate/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-localstate", + baseUrl: "/umbrella/hdom-localstate", }, }; diff --git a/examples/hdom-skip-nested/package.json b/examples/hdom-skip-nested/package.json index 2c47a17602..8a29598859 100644 --- a/examples/hdom-skip-nested/package.json +++ b/examples/hdom-skip-nested/package.json @@ -20,6 +20,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-skip-nested/snowpack.config.js b/examples/hdom-skip-nested/snowpack.config.js index d6ede912e1..ab5e0f1700 100644 --- a/examples/hdom-skip-nested/snowpack.config.js +++ b/examples/hdom-skip-nested/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-skip-nested", + baseUrl: "/umbrella/hdom-skip-nested", }, }; diff --git a/examples/hdom-skip/package.json b/examples/hdom-skip/package.json index 8b931e11b0..3ab471b0e0 100644 --- a/examples/hdom-skip/package.json +++ b/examples/hdom-skip/package.json @@ -20,6 +20,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-skip/snowpack.config.js b/examples/hdom-skip/snowpack.config.js index 320ed35cc1..85c85307f1 100644 --- a/examples/hdom-skip/snowpack.config.js +++ b/examples/hdom-skip/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-skip", + baseUrl: "/umbrella/hdom-skip", }, }; diff --git a/examples/hdom-theme-adr-0003/package.json b/examples/hdom-theme-adr-0003/package.json index 974ce7691a..2142959a36 100644 --- a/examples/hdom-theme-adr-0003/package.json +++ b/examples/hdom-theme-adr-0003/package.json @@ -22,6 +22,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-theme-adr-0003/snowpack.config.js b/examples/hdom-theme-adr-0003/snowpack.config.js index 6b16ac994d..2425fb388f 100644 --- a/examples/hdom-theme-adr-0003/snowpack.config.js +++ b/examples/hdom-theme-adr-0003/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-theme-adr-0003", + baseUrl: "/umbrella/hdom-theme-adr-0003", }, }; diff --git a/examples/hdom-toggle/package.json b/examples/hdom-toggle/package.json index eeac50417c..bd90e93969 100644 --- a/examples/hdom-toggle/package.json +++ b/examples/hdom-toggle/package.json @@ -25,6 +25,6 @@ "screenshot": "examples/hdom-toggle.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-toggle/snowpack.config.js b/examples/hdom-toggle/snowpack.config.js index 9e16165900..8e8cec3ab6 100644 --- a/examples/hdom-toggle/snowpack.config.js +++ b/examples/hdom-toggle/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-toggle", + baseUrl: "/umbrella/hdom-toggle", }, }; diff --git a/examples/hdom-vscroller/package.json b/examples/hdom-vscroller/package.json index ef2cd7b870..85b9a556ac 100644 --- a/examples/hdom-vscroller/package.json +++ b/examples/hdom-vscroller/package.json @@ -22,6 +22,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hdom-vscroller/snowpack.config.js b/examples/hdom-vscroller/snowpack.config.js index 8b219cfdce..5f606aee30 100644 --- a/examples/hdom-vscroller/snowpack.config.js +++ b/examples/hdom-vscroller/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hdom-vscroller", + baseUrl: "/umbrella/hdom-vscroller", }, }; diff --git a/examples/hiccup-canvas-arcs/package.json b/examples/hiccup-canvas-arcs/package.json index 81806d8242..143f5cae1f 100644 --- a/examples/hiccup-canvas-arcs/package.json +++ b/examples/hiccup-canvas-arcs/package.json @@ -31,6 +31,6 @@ "screenshot": "examples/hiccup-canvas-arcs.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hiccup-canvas-arcs/snowpack.config.js b/examples/hiccup-canvas-arcs/snowpack.config.js index 2ba43400e2..bfae7649e3 100644 --- a/examples/hiccup-canvas-arcs/snowpack.config.js +++ b/examples/hiccup-canvas-arcs/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hiccup-canvas-arcs", + baseUrl: "/umbrella/hiccup-canvas-arcs", }, }; diff --git a/examples/hydrate-basics/package.json b/examples/hydrate-basics/package.json index e86c7b32f1..29ddd8622b 100644 --- a/examples/hydrate-basics/package.json +++ b/examples/hydrate-basics/package.json @@ -30,6 +30,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/hydrate-basics/snowpack.config.js b/examples/hydrate-basics/snowpack.config.js index 29a3893873..86724556c4 100644 --- a/examples/hydrate-basics/snowpack.config.js +++ b/examples/hydrate-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/hydrate-basics", + baseUrl: "/umbrella/hydrate-basics", }, }; diff --git a/examples/imgui-basics/package.json b/examples/imgui-basics/package.json index 2828d70a68..49418b451e 100644 --- a/examples/imgui-basics/package.json +++ b/examples/imgui-basics/package.json @@ -33,6 +33,6 @@ "screenshot": "examples/imgui-basics.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/imgui-basics/snowpack.config.js b/examples/imgui-basics/snowpack.config.js index 789074bbe8..d96ea5c4bf 100644 --- a/examples/imgui-basics/snowpack.config.js +++ b/examples/imgui-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/imgui-basics", + baseUrl: "/umbrella/imgui-basics", }, }; diff --git a/examples/imgui/package.json b/examples/imgui/package.json index e3bec5feb4..823932b0be 100644 --- a/examples/imgui/package.json +++ b/examples/imgui/package.json @@ -49,6 +49,6 @@ "screenshot": "imgui/imgui-all.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/imgui/snowpack.config.js b/examples/imgui/snowpack.config.js index 552281de88..6b6fa34d83 100644 --- a/examples/imgui/snowpack.config.js +++ b/examples/imgui/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/imgui", + baseUrl: "/umbrella/imgui", }, }; diff --git a/examples/interceptor-basics/package.json b/examples/interceptor-basics/package.json index 06edf0b8c5..a26bf5a205 100644 --- a/examples/interceptor-basics/package.json +++ b/examples/interceptor-basics/package.json @@ -28,6 +28,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/interceptor-basics/snowpack.config.js b/examples/interceptor-basics/snowpack.config.js index 6398dfcc79..fda9d54dae 100644 --- a/examples/interceptor-basics/snowpack.config.js +++ b/examples/interceptor-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/interceptor-basics", + baseUrl: "/umbrella/interceptor-basics", }, }; diff --git a/examples/interceptor-basics2/package.json b/examples/interceptor-basics2/package.json index c6bfb23184..43bfa63cbd 100644 --- a/examples/interceptor-basics2/package.json +++ b/examples/interceptor-basics2/package.json @@ -30,6 +30,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/interceptor-basics2/snowpack.config.js b/examples/interceptor-basics2/snowpack.config.js index 422a154b67..2c0d36d702 100644 --- a/examples/interceptor-basics2/snowpack.config.js +++ b/examples/interceptor-basics2/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/interceptor-basics2", + baseUrl: "/umbrella/interceptor-basics2", }, }; diff --git a/examples/iso-plasma/package.json b/examples/iso-plasma/package.json index d36945a687..3222b450d8 100644 --- a/examples/iso-plasma/package.json +++ b/examples/iso-plasma/package.json @@ -39,6 +39,6 @@ "screenshot": "geom/geom-isoline.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/iso-plasma/snowpack.config.js b/examples/iso-plasma/snowpack.config.js index 570bac1f9d..853d2e0f95 100644 --- a/examples/iso-plasma/snowpack.config.js +++ b/examples/iso-plasma/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/iso-plasma", + baseUrl: "/umbrella/iso-plasma", }, }; diff --git a/examples/json-components/package.json b/examples/json-components/package.json index 8577150eb4..bb7e2b6996 100644 --- a/examples/json-components/package.json +++ b/examples/json-components/package.json @@ -25,6 +25,6 @@ "screenshot": "examples/json-components.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/json-components/snowpack.config.js b/examples/json-components/snowpack.config.js index 72e53f993e..cd2194e485 100644 --- a/examples/json-components/snowpack.config.js +++ b/examples/json-components/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/json-components", + baseUrl: "/umbrella/json-components", }, }; diff --git a/examples/login-form/package.json b/examples/login-form/package.json index c89545a251..6570057ebe 100644 --- a/examples/login-form/package.json +++ b/examples/login-form/package.json @@ -26,6 +26,6 @@ "readme": true }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/login-form/snowpack.config.js b/examples/login-form/snowpack.config.js index 376e76cddb..a67b965820 100644 --- a/examples/login-form/snowpack.config.js +++ b/examples/login-form/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/login-form", + baseUrl: "/umbrella/login-form", }, }; diff --git a/examples/mandelbrot/.gitignore b/examples/mandelbrot/.gitignore index 0c5abcab62..e228563433 100644 --- a/examples/mandelbrot/.gitignore +++ b/examples/mandelbrot/.gitignore @@ -1,5 +1,6 @@ -.cache -out +build +dev node_modules yarn.lock -*.js +!snowpack.config.js +!*.d.ts \ No newline at end of file diff --git a/examples/mandelbrot/snowpack.config.js b/examples/mandelbrot/snowpack.config.js new file mode 100644 index 0000000000..2157b52521 --- /dev/null +++ b/examples/mandelbrot/snowpack.config.js @@ -0,0 +1,29 @@ +/** @type {import("snowpack").SnowpackUserConfig } */ +module.exports = { + mount: { + public: "/", + src: "/_dist_", + }, + plugins: [ + "@snowpack/plugin-typescript", + [ + "@snowpack/plugin-webpack", + { + extendConfig: (config) => { + config.node = { + process: false, + setImmediate: false, + util: "empty", + }; + return config; + }, + }, + ], + ], + installOptions: { + installTypes: true, + }, + buildOptions: { + baseUrl: "/umbrella/mandelbrot", + }, +}; diff --git a/examples/mandelbrot/src/index.ts b/examples/mandelbrot/src/index.ts index ac1a7d94c8..3cd6f75562 100644 --- a/examples/mandelbrot/src/index.ts +++ b/examples/mandelbrot/src/index.ts @@ -3,7 +3,7 @@ import { equiv } from "@thi.ng/equiv"; import { canvas2D } from "@thi.ng/hdom-components"; import { fit, mix } from "@thi.ng/math"; import { stream, Stream, sync, tunnel } from "@thi.ng/rstream"; -import { gestureStream, GestureType } from "@thi.ng/rstream-gestures"; +import { gestureStream } from "@thi.ng/rstream-gestures"; import { padLeft } from "@thi.ng/strings"; import { map } from "@thi.ng/transducers"; import { updateDOM } from "@thi.ng/transducers-hdom"; @@ -132,13 +132,13 @@ const app = () => { const _x2 = x2.deref()!; const _y2 = y2.deref()!; switch (e.type) { - case GestureType.START: + case "start": sel1.next(e.pos); break; - case GestureType.DRAG: + case "drag": sel2.next(e.pos); break; - case GestureType.END: { + case "end": { const p = sel1.deref(); if (!p || equiv(p, e.pos)) return; // compute target coord based on current zoom region @@ -166,7 +166,7 @@ const app = () => { newRender(ax, ay, bx, by); break; } - case GestureType.ZOOM: + case "zoom": updateZoom(e.zoom); break; default: diff --git a/examples/mandelbrot/webpack.worker.js b/examples/mandelbrot/webpack.worker.js index 9ec791aec9..a695663e3c 100644 --- a/examples/mandelbrot/webpack.worker.js +++ b/examples/mandelbrot/webpack.worker.js @@ -27,7 +27,5 @@ module.exports = { }, ], }, - node: { - process: false, - }, + node: false, }; diff --git a/examples/markdown/package.json b/examples/markdown/package.json index 5dbfaca078..4f0e17fb97 100644 --- a/examples/markdown/package.json +++ b/examples/markdown/package.json @@ -33,6 +33,6 @@ "screenshot": "examples/markdown-parser.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/markdown/snowpack.config.js b/examples/markdown/snowpack.config.js index f0bfed1a52..149fb125aa 100644 --- a/examples/markdown/snowpack.config.js +++ b/examples/markdown/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/markdown", + baseUrl: "/umbrella/markdown", }, }; diff --git a/examples/multitouch/package.json b/examples/multitouch/package.json index 2ba3cfdfbe..853dc6b679 100644 --- a/examples/multitouch/package.json +++ b/examples/multitouch/package.json @@ -33,6 +33,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/multitouch/snowpack.config.js b/examples/multitouch/snowpack.config.js index d2ccee4419..7240b138d6 100644 --- a/examples/multitouch/snowpack.config.js +++ b/examples/multitouch/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/multitouch", + baseUrl: "/umbrella/multitouch", }, }; diff --git a/examples/multitouch/src/index.ts b/examples/multitouch/src/index.ts index 03ac3fee54..91bb2ada52 100644 --- a/examples/multitouch/src/index.ts +++ b/examples/multitouch/src/index.ts @@ -19,7 +19,7 @@ const MTCanvas = memoize1((id: string) => { main.add(gestureStream(el), el.id); }, }; - return (attribs: any, gesture?: GestureEvent) => [ + return (attribs: any, gesture: GestureEvent = {}) => [ _canvas, { id, class: "bg-washed-yellow", ...attribs }, [ @@ -29,12 +29,12 @@ const MTCanvas = memoize1((id: string) => { ...mapcat( (i: GestureInfo) => [ ["circle", { stroke: "#333", fill: "none" }, i.start, 20], - ["circle", {}, i.pos, 20 * (gesture?.zoom || 1)], + ["circle", {}, i.pos, 20 * (gesture.zoom || 1)], i.start ? ["line", { stroke: "#333" }, i.start, i.pos] : null, ], - gesture?.active || [] + gesture.active || [] ), ], ]; diff --git a/examples/package-stats/package.json b/examples/package-stats/package.json index ac41156fc1..6b03edc49a 100644 --- a/examples/package-stats/package.json +++ b/examples/package-stats/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "ts-node": "^9.1.0", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { "@thi.ng/checks": "latest", diff --git a/examples/parse-playground/package.json b/examples/parse-playground/package.json index f856b32fc2..1176b2b3a3 100644 --- a/examples/parse-playground/package.json +++ b/examples/parse-playground/package.json @@ -45,6 +45,6 @@ "screenshot": "examples/parse-playground.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/parse-playground/snowpack.config.js b/examples/parse-playground/snowpack.config.js index e9b0e20090..2e897e86c3 100644 --- a/examples/parse-playground/snowpack.config.js +++ b/examples/parse-playground/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/parse-playground", + baseUrl: "/umbrella/parse-playground", }, }; diff --git a/examples/pixel-basics/package.json b/examples/pixel-basics/package.json index 40ceb65914..54815faa45 100644 --- a/examples/pixel-basics/package.json +++ b/examples/pixel-basics/package.json @@ -25,6 +25,6 @@ "screenshot": "pixel/pixel-basics.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/pixel-basics/snowpack.config.js b/examples/pixel-basics/snowpack.config.js index af66f4ffb7..ba8ca1532a 100644 --- a/examples/pixel-basics/snowpack.config.js +++ b/examples/pixel-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/pixel-basics", + baseUrl: "/umbrella/pixel-basics", }, }; diff --git a/examples/pointfree-svg/package.json b/examples/pointfree-svg/package.json index c90e563a45..8720e91c5e 100644 --- a/examples/pointfree-svg/package.json +++ b/examples/pointfree-svg/package.json @@ -17,7 +17,7 @@ }, "devDependencies": { "ts-node": "^9.1.0", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "thi.ng": { "online": false, diff --git a/examples/poisson-circles/package.json b/examples/poisson-circles/package.json index dbca07105f..223bdbd1e1 100644 --- a/examples/poisson-circles/package.json +++ b/examples/poisson-circles/package.json @@ -31,6 +31,6 @@ "screenshot": "poisson/poisson.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/poisson-circles/snowpack.config.js b/examples/poisson-circles/snowpack.config.js index e10517418f..3b4d2bda19 100644 --- a/examples/poisson-circles/snowpack.config.js +++ b/examples/poisson-circles/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/poisson-circles", + baseUrl: "/umbrella/poisson-circles", }, }; diff --git a/examples/poly-spline/package.json b/examples/poly-spline/package.json index 3d057db840..4cbb3de5ac 100644 --- a/examples/poly-spline/package.json +++ b/examples/poly-spline/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/poly-spline.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/poly-spline/snowpack.config.js b/examples/poly-spline/snowpack.config.js index 6b77db262b..a7ed3f0d4d 100644 --- a/examples/poly-spline/snowpack.config.js +++ b/examples/poly-spline/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/poly-spline", + baseUrl: "/umbrella/poly-spline", }, }; diff --git a/examples/porter-duff/package.json b/examples/porter-duff/package.json index 032a092efe..902228c663 100644 --- a/examples/porter-duff/package.json +++ b/examples/porter-duff/package.json @@ -25,6 +25,6 @@ "screenshot": "porter-duff/porter-duff2.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/porter-duff/snowpack.config.js b/examples/porter-duff/snowpack.config.js index d1de7753b8..aa72f433cf 100644 --- a/examples/porter-duff/snowpack.config.js +++ b/examples/porter-duff/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/porter-duff", + baseUrl: "/umbrella/porter-duff", }, }; diff --git a/examples/ramp-synth/package.json b/examples/ramp-synth/package.json index 688d0db6fc..aa28e70ab1 100644 --- a/examples/ramp-synth/package.json +++ b/examples/ramp-synth/package.json @@ -36,6 +36,6 @@ "screenshot": "examples/ramp-synth.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/ramp-synth/snowpack.config.js b/examples/ramp-synth/snowpack.config.js index f8635a7cc6..796d5a8043 100644 --- a/examples/ramp-synth/snowpack.config.js +++ b/examples/ramp-synth/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/ramp-synth", + baseUrl: "/umbrella/ramp-synth", }, }; diff --git a/examples/rdom-basics/package.json b/examples/rdom-basics/package.json index c75f2fd11c..8f56b9a059 100644 --- a/examples/rdom-basics/package.json +++ b/examples/rdom-basics/package.json @@ -32,6 +32,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rdom-basics/snowpack.config.js b/examples/rdom-basics/snowpack.config.js index 17aea3096c..41fba46900 100644 --- a/examples/rdom-basics/snowpack.config.js +++ b/examples/rdom-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rdom-basics", + baseUrl: "/umbrella/rdom-basics", }, }; diff --git a/examples/rdom-dnd/package.json b/examples/rdom-dnd/package.json index c5f8c5f9e2..433b69b43e 100644 --- a/examples/rdom-dnd/package.json +++ b/examples/rdom-dnd/package.json @@ -31,6 +31,6 @@ "screenshot": "examples/rdom-dnd.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rdom-dnd/snowpack.config.js b/examples/rdom-dnd/snowpack.config.js index 0deb860804..795733b09c 100644 --- a/examples/rdom-dnd/snowpack.config.js +++ b/examples/rdom-dnd/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rdom-dnd", + baseUrl: "/umbrella/rdom-dnd", }, }; diff --git a/examples/rdom-lissajous/package.json b/examples/rdom-lissajous/package.json index 24e826c470..f9946c991e 100644 --- a/examples/rdom-lissajous/package.json +++ b/examples/rdom-lissajous/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/rdom-lissajous.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rdom-lissajous/snowpack.config.js b/examples/rdom-lissajous/snowpack.config.js index f5ac4e1750..81d114db1a 100644 --- a/examples/rdom-lissajous/snowpack.config.js +++ b/examples/rdom-lissajous/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rdom-lissajous", + baseUrl: "/umbrella/rdom-lissajous", }, }; diff --git a/examples/rdom-search-docs/package.json b/examples/rdom-search-docs/package.json index 1ea1c5cd7c..80ed67afb7 100644 --- a/examples/rdom-search-docs/package.json +++ b/examples/rdom-search-docs/package.json @@ -37,6 +37,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rdom-search-docs/snowpack.config.js b/examples/rdom-search-docs/snowpack.config.js index d7e30c3e03..08c62b1602 100644 --- a/examples/rdom-search-docs/snowpack.config.js +++ b/examples/rdom-search-docs/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rdom-search-docs", + baseUrl: "/umbrella/rdom-search-docs", }, }; diff --git a/examples/rdom-svg-nodes/package.json b/examples/rdom-svg-nodes/package.json index d38f534bec..a41a167422 100644 --- a/examples/rdom-svg-nodes/package.json +++ b/examples/rdom-svg-nodes/package.json @@ -34,6 +34,6 @@ "screenshot": "examples/rdom-svg-nodes.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rdom-svg-nodes/snowpack.config.js b/examples/rdom-svg-nodes/snowpack.config.js index 0b79d25904..321cee70d6 100644 --- a/examples/rdom-svg-nodes/snowpack.config.js +++ b/examples/rdom-svg-nodes/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rdom-svg-nodes", + baseUrl: "/umbrella/rdom-svg-nodes", }, }; diff --git a/examples/rotating-voronoi/package.json b/examples/rotating-voronoi/package.json index f38e222e45..1df325edbe 100644 --- a/examples/rotating-voronoi/package.json +++ b/examples/rotating-voronoi/package.json @@ -54,6 +54,6 @@ "screenshot": "examples/rotating-voronoi.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rotating-voronoi/snowpack.config.js b/examples/rotating-voronoi/snowpack.config.js index b7007c300f..5af8be8bde 100644 --- a/examples/rotating-voronoi/snowpack.config.js +++ b/examples/rotating-voronoi/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rotating-voronoi", + baseUrl: "/umbrella/rotating-voronoi", }, }; diff --git a/examples/router-basics/package.json b/examples/router-basics/package.json index 719441ecc9..c7a20baf4a 100644 --- a/examples/router-basics/package.json +++ b/examples/router-basics/package.json @@ -34,6 +34,6 @@ "screenshot": "examples/router-basics.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/router-basics/snowpack.config.js b/examples/router-basics/snowpack.config.js index 5e2818643d..7c53328ecc 100644 --- a/examples/router-basics/snowpack.config.js +++ b/examples/router-basics/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/router-basics", + baseUrl: "/umbrella/router-basics", }, }; diff --git a/examples/rstream-dataflow/package.json b/examples/rstream-dataflow/package.json index 7664aa59b3..46fc724fbd 100644 --- a/examples/rstream-dataflow/package.json +++ b/examples/rstream-dataflow/package.json @@ -35,6 +35,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rstream-dataflow/snowpack.config.js b/examples/rstream-dataflow/snowpack.config.js index ff49999aad..92b7daa1e9 100644 --- a/examples/rstream-dataflow/snowpack.config.js +++ b/examples/rstream-dataflow/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rstream-dataflow", + baseUrl: "/umbrella/rstream-dataflow", }, }; diff --git a/examples/rstream-event-loop/package.json b/examples/rstream-event-loop/package.json index 6ed0bfc216..4fa01fcab8 100644 --- a/examples/rstream-event-loop/package.json +++ b/examples/rstream-event-loop/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/rstream-event-loop.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rstream-event-loop/snowpack.config.js b/examples/rstream-event-loop/snowpack.config.js index 8bb6b25589..09df02742d 100644 --- a/examples/rstream-event-loop/snowpack.config.js +++ b/examples/rstream-event-loop/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rstream-event-loop", + baseUrl: "/umbrella/rstream-event-loop", }, }; diff --git a/examples/rstream-grid/package.json b/examples/rstream-grid/package.json index fd954bf98b..8f9a508d08 100644 --- a/examples/rstream-grid/package.json +++ b/examples/rstream-grid/package.json @@ -45,6 +45,6 @@ "screenshot": "examples/rstream-grid.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rstream-grid/snowpack.config.js b/examples/rstream-grid/snowpack.config.js index 2e2f280f99..9e68ab9212 100644 --- a/examples/rstream-grid/snowpack.config.js +++ b/examples/rstream-grid/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rstream-grid", + baseUrl: "/umbrella/rstream-grid", }, }; diff --git a/examples/rstream-hdom/package.json b/examples/rstream-hdom/package.json index 80a24e5e86..af8531b9af 100644 --- a/examples/rstream-hdom/package.json +++ b/examples/rstream-hdom/package.json @@ -23,6 +23,6 @@ "process": false }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rstream-hdom/snowpack.config.js b/examples/rstream-hdom/snowpack.config.js index e85d7fa7be..c4be8d2fd7 100644 --- a/examples/rstream-hdom/snowpack.config.js +++ b/examples/rstream-hdom/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rstream-hdom", + baseUrl: "/umbrella/rstream-hdom", }, }; diff --git a/examples/rstream-spreadsheet/package.json b/examples/rstream-spreadsheet/package.json index da8f566c64..758cc505cc 100644 --- a/examples/rstream-spreadsheet/package.json +++ b/examples/rstream-spreadsheet/package.json @@ -48,6 +48,6 @@ "screenshot": "examples/rstream-spreadsheet.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/rstream-spreadsheet/snowpack.config.js b/examples/rstream-spreadsheet/snowpack.config.js index bfdbe21727..6393e31051 100644 --- a/examples/rstream-spreadsheet/snowpack.config.js +++ b/examples/rstream-spreadsheet/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/rstream-spreadsheet", + baseUrl: "/umbrella/rstream-spreadsheet", }, }; diff --git a/examples/scenegraph-image/package.json b/examples/scenegraph-image/package.json index 4f2e5ef122..aca4a3e2fe 100644 --- a/examples/scenegraph-image/package.json +++ b/examples/scenegraph-image/package.json @@ -41,6 +41,6 @@ "screenshot": "examples/scenegraph-image.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/scenegraph-image/snowpack.config.js b/examples/scenegraph-image/snowpack.config.js index 8be49694bd..4b95460d45 100644 --- a/examples/scenegraph-image/snowpack.config.js +++ b/examples/scenegraph-image/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/scenegraph-image", + baseUrl: "/umbrella/scenegraph-image", }, }; diff --git a/examples/scenegraph/package.json b/examples/scenegraph/package.json index 53c4ab3174..8aba0805a2 100644 --- a/examples/scenegraph/package.json +++ b/examples/scenegraph/package.json @@ -39,6 +39,6 @@ "screenshot": "examples/scenegraph.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/scenegraph/snowpack.config.js b/examples/scenegraph/snowpack.config.js index 3974526e07..bb70356cf6 100644 --- a/examples/scenegraph/snowpack.config.js +++ b/examples/scenegraph/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/scenegraph", + baseUrl: "/umbrella/scenegraph", }, }; diff --git a/examples/shader-ast-canvas2d/package.json b/examples/shader-ast-canvas2d/package.json index 2493cad8e8..eb220f828e 100644 --- a/examples/shader-ast-canvas2d/package.json +++ b/examples/shader-ast-canvas2d/package.json @@ -27,6 +27,6 @@ "screenshot": "shader-ast/shader-ast-01.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-ast-canvas2d/snowpack.config.js b/examples/shader-ast-canvas2d/snowpack.config.js index 71cbf59590..2b38993ba0 100644 --- a/examples/shader-ast-canvas2d/snowpack.config.js +++ b/examples/shader-ast-canvas2d/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-ast-canvas2d", + baseUrl: "/umbrella/shader-ast-canvas2d", }, }; diff --git a/examples/shader-ast-evo/package.json b/examples/shader-ast-evo/package.json index fd4b41d46f..660a44fdcb 100644 --- a/examples/shader-ast-evo/package.json +++ b/examples/shader-ast-evo/package.json @@ -37,6 +37,6 @@ "screenshot": "examples/shader-ast-evo.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-ast-evo/snowpack.config.js b/examples/shader-ast-evo/snowpack.config.js index 55c83af024..e28135b434 100644 --- a/examples/shader-ast-evo/snowpack.config.js +++ b/examples/shader-ast-evo/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-ast-evo", + baseUrl: "/umbrella/shader-ast-evo", }, }; diff --git a/examples/shader-ast-evo/src/index.ts b/examples/shader-ast-evo/src/index.ts index 1c93364085..39ab6406a0 100644 --- a/examples/shader-ast-evo/src/index.ts +++ b/examples/shader-ast-evo/src/index.ts @@ -1,4 +1,4 @@ -import { AST, ASTNode, ASTOpts, GeneType } from "@thi.ng/gp"; +import { AST, ASTNode, ASTOpts } from "@thi.ng/gp"; import { roundTo } from "@thi.ng/math"; import { IRandom, SYSTEM } from "@thi.ng/random"; import { @@ -115,7 +115,7 @@ const AST_OPTS: ASTOpts = { }; const transpile = (node: ASTNode): Term => - node.type === GeneType.OP + node.type === "op" ? node.op.apply(null, node.args.map(transpile)) : node.value; diff --git a/examples/shader-ast-noise/package.json b/examples/shader-ast-noise/package.json index 3c12fe13de..f6312754b4 100644 --- a/examples/shader-ast-noise/package.json +++ b/examples/shader-ast-noise/package.json @@ -28,6 +28,6 @@ "screenshot": "examples/shader-ast-noise.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-ast-noise/snowpack.config.js b/examples/shader-ast-noise/snowpack.config.js index 2e478138a3..c35c625d02 100644 --- a/examples/shader-ast-noise/snowpack.config.js +++ b/examples/shader-ast-noise/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-ast-noise", + baseUrl: "/umbrella/shader-ast-noise", }, }; diff --git a/examples/shader-ast-raymarch/package.json b/examples/shader-ast-raymarch/package.json index f57517b8dc..37a0bdc4ea 100644 --- a/examples/shader-ast-raymarch/package.json +++ b/examples/shader-ast-raymarch/package.json @@ -28,6 +28,6 @@ "screenshot": "shader-ast/shader-ast-raymarch.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-ast-raymarch/snowpack.config.js b/examples/shader-ast-raymarch/snowpack.config.js index b7f728c807..50ebc44be4 100644 --- a/examples/shader-ast-raymarch/snowpack.config.js +++ b/examples/shader-ast-raymarch/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-ast-raymarch", + baseUrl: "/umbrella/shader-ast-raymarch", }, }; diff --git a/examples/shader-ast-sdf2d/package.json b/examples/shader-ast-sdf2d/package.json index d4a0098763..2d5aa69d78 100644 --- a/examples/shader-ast-sdf2d/package.json +++ b/examples/shader-ast-sdf2d/package.json @@ -28,6 +28,6 @@ "screenshot": "examples/shader-ast-sdf2d.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-ast-sdf2d/snowpack.config.js b/examples/shader-ast-sdf2d/snowpack.config.js index d14c02ffa9..8b302362cd 100644 --- a/examples/shader-ast-sdf2d/snowpack.config.js +++ b/examples/shader-ast-sdf2d/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-ast-sdf2d", + baseUrl: "/umbrella/shader-ast-sdf2d", }, }; diff --git a/examples/shader-ast-tunnel/package.json b/examples/shader-ast-tunnel/package.json index 479077dc25..854cc06e6a 100644 --- a/examples/shader-ast-tunnel/package.json +++ b/examples/shader-ast-tunnel/package.json @@ -35,6 +35,6 @@ "screenshot": "examples/shader-ast-tunnel.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-ast-tunnel/snowpack.config.js b/examples/shader-ast-tunnel/snowpack.config.js index fe00fecc47..e3bc7c9fd4 100644 --- a/examples/shader-ast-tunnel/snowpack.config.js +++ b/examples/shader-ast-tunnel/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-ast-tunnel", + baseUrl: "/umbrella/shader-ast-tunnel", }, }; diff --git a/examples/shader-ast-workers/.gitignore b/examples/shader-ast-workers/.gitignore index 0c5abcab62..e228563433 100644 --- a/examples/shader-ast-workers/.gitignore +++ b/examples/shader-ast-workers/.gitignore @@ -1,5 +1,6 @@ -.cache -out +build +dev node_modules yarn.lock -*.js +!snowpack.config.js +!*.d.ts \ No newline at end of file diff --git a/examples/shader-ast-workers/snowpack.config.js b/examples/shader-ast-workers/snowpack.config.js new file mode 100644 index 0000000000..2352c0fbb2 --- /dev/null +++ b/examples/shader-ast-workers/snowpack.config.js @@ -0,0 +1,29 @@ +/** @type {import("snowpack").SnowpackUserConfig } */ +module.exports = { + mount: { + public: "/", + src: "/_dist_", + }, + plugins: [ + "@snowpack/plugin-typescript", + [ + "@snowpack/plugin-webpack", + { + extendConfig: (config) => { + config.node = { + process: false, + setImmediate: false, + util: "empty", + }; + return config; + }, + }, + ], + ], + installOptions: { + installTypes: true, + }, + buildOptions: { + baseUrl: "/umbrella/shader-ast-workers", + }, +}; diff --git a/examples/shader-ast-workers/webpack.worker.js b/examples/shader-ast-workers/webpack.worker.js new file mode 100644 index 0000000000..a695663e3c --- /dev/null +++ b/examples/shader-ast-workers/webpack.worker.js @@ -0,0 +1,31 @@ +module.exports = { + entry: "./src/worker.ts", + output: { + filename: "worker.js", + path: __dirname + "/public", + }, + resolve: { + extensions: [".ts", ".js"], + }, + module: { + rules: [ + { + test: /\.(png|jpg|gif)$/, + loader: "file-loader", + options: { name: "[path][hash].[ext]" }, + }, + { + test: /\.ts$/, + use: [ + { + loader: "ts-loader", + options: { + configFile: "tsconfig.worker.json", + }, + }, + ], + }, + ], + }, + node: false, +}; diff --git a/examples/shader-graph/package.json b/examples/shader-graph/package.json index eaf36b6330..88fbc21d2b 100644 --- a/examples/shader-graph/package.json +++ b/examples/shader-graph/package.json @@ -39,6 +39,6 @@ "screenshot": "examples/shader-graph.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/shader-graph/snowpack.config.js b/examples/shader-graph/snowpack.config.js index 88f67b623b..b4c3deb958 100644 --- a/examples/shader-graph/snowpack.config.js +++ b/examples/shader-graph/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/shader-graph", + baseUrl: "/umbrella/shader-graph", }, }; diff --git a/examples/shader-graph/src/index.ts b/examples/shader-graph/src/index.ts index adce8c9d11..f035eeb538 100644 --- a/examples/shader-graph/src/index.ts +++ b/examples/shader-graph/src/index.ts @@ -1,7 +1,7 @@ import { exposeGlobal, Nullable } from "@thi.ng/api"; import { ortho } from "@thi.ng/matrices"; import { fromRAF } from "@thi.ng/rstream"; -import { gestureStream, GestureType } from "@thi.ng/rstream-gestures"; +import { gestureStream } from "@thi.ng/rstream-gestures"; import { Node2D } from "@thi.ng/scenegraph"; import { $x, @@ -273,7 +273,7 @@ gestureStream(CTX.canvas, { minZoom: 0.1, maxZoom: 4, smooth: 0.05 }).subscribe( { next(e) { switch (e.type) { - case GestureType.START: + case "start": const info = ROOT.childForPoint(e.pos); this.sel = info ? info.node : CONTENT; this.startTheta = this.sel.rotate; @@ -282,7 +282,7 @@ gestureStream(CTX.canvas, { minZoom: 0.1, maxZoom: 4, smooth: 0.05 }).subscribe( copy(this.sel.translate) ); break; - case GestureType.DRAG: + case "drag": if (e.buttons == 2) { this.sel.rotate = this.startTheta + e.active[0].delta![0] * 0.01; @@ -294,7 +294,7 @@ gestureStream(CTX.canvas, { minZoom: 0.1, maxZoom: 4, smooth: 0.05 }).subscribe( } CONTENT.update(); break; - case GestureType.ZOOM: + case "zoom": CONTENT.scale = e.zoom; CONTENT.update(); } diff --git a/examples/soa-ecs/package.json b/examples/soa-ecs/package.json index 124c699ff2..6ad2163da9 100644 --- a/examples/soa-ecs/package.json +++ b/examples/soa-ecs/package.json @@ -44,6 +44,6 @@ "screenshot": "examples/soa-ecs-100k.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/soa-ecs/snowpack.config.js b/examples/soa-ecs/snowpack.config.js index 765eced3f5..371ac4bf9e 100644 --- a/examples/soa-ecs/snowpack.config.js +++ b/examples/soa-ecs/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/soa-ecs", + baseUrl: "/umbrella/soa-ecs", }, }; diff --git a/examples/stratified-grid/package.json b/examples/stratified-grid/package.json index ee1e299474..b4ec27ed50 100644 --- a/examples/stratified-grid/package.json +++ b/examples/stratified-grid/package.json @@ -31,6 +31,6 @@ "screenshot": "poisson/stratified-grid.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/stratified-grid/snowpack.config.js b/examples/stratified-grid/snowpack.config.js index 318ed0a9ee..6685ec646f 100644 --- a/examples/stratified-grid/snowpack.config.js +++ b/examples/stratified-grid/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/stratified-grid", + baseUrl: "/umbrella/stratified-grid", }, }; diff --git a/examples/svg-barchart/package.json b/examples/svg-barchart/package.json index d2c5fd4a6b..0238b81ec1 100644 --- a/examples/svg-barchart/package.json +++ b/examples/svg-barchart/package.json @@ -26,6 +26,6 @@ "screenshot": "examples/svg-barchart.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/svg-barchart/snowpack.config.js b/examples/svg-barchart/snowpack.config.js index 5466adb6ad..21ebdc0de4 100644 --- a/examples/svg-barchart/snowpack.config.js +++ b/examples/svg-barchart/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/svg-barchart", + baseUrl: "/umbrella/svg-barchart", }, }; diff --git a/examples/svg-particles/package.json b/examples/svg-particles/package.json index c907f23b20..41bba9030e 100644 --- a/examples/svg-particles/package.json +++ b/examples/svg-particles/package.json @@ -23,6 +23,6 @@ }, "thi.ng": {}, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/svg-particles/snowpack.config.js b/examples/svg-particles/snowpack.config.js index e46b4d2b07..3fb37abd6a 100644 --- a/examples/svg-particles/snowpack.config.js +++ b/examples/svg-particles/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/svg-particles", + baseUrl: "/umbrella/svg-particles", }, }; diff --git a/examples/svg-waveform/package.json b/examples/svg-waveform/package.json index 1f2af98afb..2de146f4e2 100644 --- a/examples/svg-waveform/package.json +++ b/examples/svg-waveform/package.json @@ -36,6 +36,6 @@ "screenshot": "examples/svg-waveform.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/svg-waveform/snowpack.config.js b/examples/svg-waveform/snowpack.config.js index 9a9f18026f..a1c408829d 100644 --- a/examples/svg-waveform/snowpack.config.js +++ b/examples/svg-waveform/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/svg-waveform", + baseUrl: "/umbrella/svg-waveform", }, }; diff --git a/examples/talk-slides/package.json b/examples/talk-slides/package.json index 5b55cf367b..1a850372f6 100644 --- a/examples/talk-slides/package.json +++ b/examples/talk-slides/package.json @@ -33,6 +33,6 @@ "screenshot": "examples/talk-slides.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/talk-slides/snowpack.config.js b/examples/talk-slides/snowpack.config.js index ed8dbf5a41..c0e7793712 100644 --- a/examples/talk-slides/snowpack.config.js +++ b/examples/talk-slides/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/talk-slides", + baseUrl: "/umbrella/talk-slides", }, }; diff --git a/examples/text-canvas/package.json b/examples/text-canvas/package.json index 6a1524fc96..3e0c96f55c 100644 --- a/examples/text-canvas/package.json +++ b/examples/text-canvas/package.json @@ -28,6 +28,6 @@ "screenshot": "examples/text-canvas.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/text-canvas/snowpack.config.js b/examples/text-canvas/snowpack.config.js index dea95ded68..07f95815cd 100644 --- a/examples/text-canvas/snowpack.config.js +++ b/examples/text-canvas/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/text-canvas", + baseUrl: "/umbrella/text-canvas", }, }; diff --git a/examples/todo-list/package.json b/examples/todo-list/package.json index 839206a090..578d230264 100644 --- a/examples/todo-list/package.json +++ b/examples/todo-list/package.json @@ -32,6 +32,6 @@ "screenshot": "examples/todo-list.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/todo-list/snowpack.config.js b/examples/todo-list/snowpack.config.js index f4fbd8ee77..d167a69a4c 100644 --- a/examples/todo-list/snowpack.config.js +++ b/examples/todo-list/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/todo-list", + baseUrl: "/umbrella/todo-list", }, }; diff --git a/examples/transducers-hdom/package.json b/examples/transducers-hdom/package.json index ae025221cc..f5792711d3 100644 --- a/examples/transducers-hdom/package.json +++ b/examples/transducers-hdom/package.json @@ -28,6 +28,6 @@ ] }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/transducers-hdom/snowpack.config.js b/examples/transducers-hdom/snowpack.config.js index cf15009c8a..aa04f2d479 100644 --- a/examples/transducers-hdom/snowpack.config.js +++ b/examples/transducers-hdom/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/transducers-hdom", + baseUrl: "/umbrella/transducers-hdom", }, }; diff --git a/examples/triple-query/package.json b/examples/triple-query/package.json index a8b0069be1..5b026dbb8e 100644 --- a/examples/triple-query/package.json +++ b/examples/triple-query/package.json @@ -41,6 +41,6 @@ "screenshot": "examples/triple-query.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/triple-query/snowpack.config.js b/examples/triple-query/snowpack.config.js index 800d272938..800284a6aa 100644 --- a/examples/triple-query/snowpack.config.js +++ b/examples/triple-query/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/triple-query", + baseUrl: "/umbrella/triple-query", }, }; diff --git a/examples/webgl-cube/package.json b/examples/webgl-cube/package.json index 5f09b4dff6..cb62e0c0e0 100644 --- a/examples/webgl-cube/package.json +++ b/examples/webgl-cube/package.json @@ -36,6 +36,6 @@ "screenshot": "examples/webgl-cube.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-cube/snowpack.config.js b/examples/webgl-cube/snowpack.config.js index 80a069a0a7..e150a34bc4 100644 --- a/examples/webgl-cube/snowpack.config.js +++ b/examples/webgl-cube/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-cube", + baseUrl: "/umbrella/webgl-cube", }, }; diff --git a/examples/webgl-cubemap/package.json b/examples/webgl-cubemap/package.json index 7b72b4c5f1..5123c55322 100644 --- a/examples/webgl-cubemap/package.json +++ b/examples/webgl-cubemap/package.json @@ -37,6 +37,6 @@ "screenshot": "examples/webgl-cubemap.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-cubemap/snowpack.config.js b/examples/webgl-cubemap/snowpack.config.js index 272173c640..d71d1caded 100644 --- a/examples/webgl-cubemap/snowpack.config.js +++ b/examples/webgl-cubemap/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-cubemap", + baseUrl: "/umbrella/webgl-cubemap", }, }; diff --git a/examples/webgl-grid/package.json b/examples/webgl-grid/package.json index 85c5a3d052..3da93715b6 100644 --- a/examples/webgl-grid/package.json +++ b/examples/webgl-grid/package.json @@ -39,6 +39,6 @@ "screenshot": "examples/webgl-grid.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-grid/snowpack.config.js b/examples/webgl-grid/snowpack.config.js index 6bdf2f25a1..337a3975f4 100644 --- a/examples/webgl-grid/snowpack.config.js +++ b/examples/webgl-grid/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-grid", + baseUrl: "/umbrella/webgl-grid", }, }; diff --git a/examples/webgl-msdf/package.json b/examples/webgl-msdf/package.json index 5daed837d1..0bf6634945 100644 --- a/examples/webgl-msdf/package.json +++ b/examples/webgl-msdf/package.json @@ -46,6 +46,6 @@ "screenshot": "examples/webgl-msdf.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-msdf/snowpack.config.js b/examples/webgl-msdf/snowpack.config.js index c1f0980412..42ee10cba9 100644 --- a/examples/webgl-msdf/snowpack.config.js +++ b/examples/webgl-msdf/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-msdf", + baseUrl: "/umbrella/webgl-msdf", }, }; diff --git a/examples/webgl-multipass/package.json b/examples/webgl-multipass/package.json index 118b9a94df..274091bf4c 100644 --- a/examples/webgl-multipass/package.json +++ b/examples/webgl-multipass/package.json @@ -26,6 +26,6 @@ "readme": true }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-multipass/snowpack.config.js b/examples/webgl-multipass/snowpack.config.js index 6abf0d57a3..1fb51aeb72 100644 --- a/examples/webgl-multipass/snowpack.config.js +++ b/examples/webgl-multipass/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-multipass", + baseUrl: "/umbrella/webgl-multipass", }, }; diff --git a/examples/webgl-shadertoy/package.json b/examples/webgl-shadertoy/package.json index 78a539290a..c1affe9806 100644 --- a/examples/webgl-shadertoy/package.json +++ b/examples/webgl-shadertoy/package.json @@ -27,6 +27,6 @@ "screenshot": "examples/webgl-shadertoy.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-shadertoy/snowpack.config.js b/examples/webgl-shadertoy/snowpack.config.js index 4b22fb5c72..c7aa7830ad 100644 --- a/examples/webgl-shadertoy/snowpack.config.js +++ b/examples/webgl-shadertoy/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-shadertoy", + baseUrl: "/umbrella/webgl-shadertoy", }, }; diff --git a/examples/webgl-ssao/package.json b/examples/webgl-ssao/package.json index 8550a7b208..5c04277ef7 100644 --- a/examples/webgl-ssao/package.json +++ b/examples/webgl-ssao/package.json @@ -40,6 +40,6 @@ "screenshot": "examples/webgl-ssao.jpg" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/webgl-ssao/snowpack.config.js b/examples/webgl-ssao/snowpack.config.js index 062270df56..f87d5f5124 100644 --- a/examples/webgl-ssao/snowpack.config.js +++ b/examples/webgl-ssao/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/webgl-ssao", + baseUrl: "/umbrella/webgl-ssao", }, }; diff --git a/examples/webgl-ssao/src/index.ts b/examples/webgl-ssao/src/index.ts index 1e6b1154ba..4875ae4e7c 100644 --- a/examples/webgl-ssao/src/index.ts +++ b/examples/webgl-ssao/src/index.ts @@ -202,10 +202,4 @@ const app = () => { ]; }; -const cancel = start(app()); - -if (import.meta.hot) { - import.meta.hot.accept(() => { - cancel(); - }); -} +start(app()); diff --git a/examples/wolfram/package.json b/examples/wolfram/package.json index 2c6001679b..19609effea 100644 --- a/examples/wolfram/package.json +++ b/examples/wolfram/package.json @@ -34,6 +34,6 @@ "screenshot": "examples/wolfram.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/wolfram/snowpack.config.js b/examples/wolfram/snowpack.config.js index 5d4f31dca7..4f6d5ee772 100644 --- a/examples/wolfram/snowpack.config.js +++ b/examples/wolfram/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/wolfram", + baseUrl: "/umbrella/wolfram", }, }; diff --git a/examples/xml-converter/package.json b/examples/xml-converter/package.json index 3010cc8163..790644fde7 100644 --- a/examples/xml-converter/package.json +++ b/examples/xml-converter/package.json @@ -38,6 +38,6 @@ "screenshot": "examples/xml-converter.png" }, "devDependencies": { - "@types/snowpack-env": "^2.3.2" + "@types/snowpack-env": "^2.3.3" } } diff --git a/examples/xml-converter/snowpack.config.js b/examples/xml-converter/snowpack.config.js index 0a75b08722..f2b713b742 100644 --- a/examples/xml-converter/snowpack.config.js +++ b/examples/xml-converter/snowpack.config.js @@ -24,6 +24,6 @@ module.exports = { installTypes: true, }, buildOptions: { - baseUrl: "/xml-converter", + baseUrl: "/umbrella/xml-converter", }, }; diff --git a/package.json b/package.json index 6ecc114fd0..f9a4dd155f 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,11 @@ "packages/*" ], "devDependencies": { - "@microsoft/api-documenter": "^7.11.3", - "@microsoft/api-extractor": "^7.12.0", + "@microsoft/api-documenter": "^7.12.1", + "@microsoft/api-extractor": "^7.12.1", "@snowpack/plugin-typescript": "^1.1.1", - "@snowpack/plugin-webpack": "^2.1.2", + "@snowpack/plugin-webpack": "^2.2.0", + "@types/snowpack-env": "^2.3.3", "benchmark": "^2.1.4", "file-loader": "^6.2.0", "gzip-size": "^6.0.0", @@ -16,24 +17,25 @@ "mocha": "^8.2.1", "nyc": "^15.1.0", "rimraf": "^3.0.2", - "rollup": "^2.34.1", + "rollup": "^2.35.1", "rollup-plugin-cleanup": "^3.2.1", - "snowpack": "^2.18.0", + "snowpack": "^2.18.5", "terser": "^5.5.1", - "ts-loader": "^8.0.11", - "typescript": "^4.1.2", - "webpack": "^4.44.1", - "webpack-cli": "^3.3.12" + "ts-loader": "^8.0.12", + "typescript": "^4.1.3", + "webpack": "^5.11.0", + "webpack-cli": "^4.2.0" }, "dependencies": { "@ygoe/msgpack": "^1.0.2" }, "scripts": { - "bootstrap": "lerna bootstrap", - "build": "yarn install && lerna -v && lerna bootstrap && lerna run build --sort", - "build:release": "yarn install && lerna -v && lerna bootstrap && lerna run build:release --sort", + "bootstrap": "yarn install && lerna -v && lerna bootstrap", + "build": "yarn bootstrap && lerna run build --sort", + "build:release": "yarn bootstrap && lerna run build:release --sort", "build:es6only": "lerna run clean && lerna run build:es6 --sort", "build:check": "lerna run build:check", + "clean": "lerna run clean", "cover": "lerna run cover", "doc": "lerna run doc", "doc:readme": "lerna run doc:readme", @@ -47,6 +49,6 @@ "tool:searchindex": "ts-node -P tools/tsconfig.json tools/src/build-search-index.ts" }, "resolutions": { - "typescript": "^4.1.2" + "typescript": "^4.1.3" } } diff --git a/packages/adapt-dpi/CHANGELOG.md b/packages/adapt-dpi/CHANGELOG.md index 15aba9c24f..be95a5bb35 100644 --- a/packages/adapt-dpi/CHANGELOG.md +++ b/packages/adapt-dpi/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.10...@thi.ng/adapt-dpi@1.0.11) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/adapt-dpi - - - - - -## [1.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.9...@thi.ng/adapt-dpi@1.0.10) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/adapt-dpi - - - - - -## [1.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.8...@thi.ng/adapt-dpi@1.0.9) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/adapt-dpi - - - - - -## [1.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.7...@thi.ng/adapt-dpi@1.0.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/adapt-dpi - - - - - -## [1.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.6...@thi.ng/adapt-dpi@1.0.7) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/adapt-dpi - - - - - -## [1.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.5...@thi.ng/adapt-dpi@1.0.6) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/adapt-dpi - - - - - -## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.4...@thi.ng/adapt-dpi@1.0.5) (2020-08-16) +## [1.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/adapt-dpi@1.0.11...@thi.ng/adapt-dpi@1.0.12) (2020-12-22) **Note:** Version bump only for package @thi.ng/adapt-dpi diff --git a/packages/adapt-dpi/package.json b/packages/adapt-dpi/package.json index 9880c0a85e..e108d48cda 100644 --- a/packages/adapt-dpi/package.json +++ b/packages/adapt-dpi/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/adapt-dpi", - "version": "1.0.11", + "version": "1.0.12", "description": "HDPI canvas adapter / styling utility", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/adjacency/CHANGELOG.md b/packages/adjacency/CHANGELOG.md index 62f905139e..b7c2e25397 100644 --- a/packages/adjacency/CHANGELOG.md +++ b/packages/adjacency/CHANGELOG.md @@ -3,89 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.66...@thi.ng/adjacency@0.1.67) (2020-12-07) +# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.67...@thi.ng/adjacency@0.2.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/adjacency +### Code Refactoring +* **adjacency:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([88edbe1](https://github.com/thi-ng/umbrella/commit/88edbe10ffe9ceb9f5e8494c9a60b8067a7d57d1)) +### BREAKING CHANGES -## [0.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.65...@thi.ng/adjacency@0.1.66) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.64...@thi.ng/adjacency@0.1.65) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.63...@thi.ng/adjacency@0.1.64) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.62...@thi.ng/adjacency@0.1.63) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.61...@thi.ng/adjacency@0.1.62) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.60...@thi.ng/adjacency@0.1.61) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.59...@thi.ng/adjacency@0.1.60) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.58...@thi.ng/adjacency@0.1.59) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.57...@thi.ng/adjacency@0.1.58) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/adjacency - - - - - -## [0.1.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.56...@thi.ng/adjacency@0.1.57) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/adjacency +* **adjacency:** replace DegreeType w/ type alias diff --git a/packages/adjacency/README.md b/packages/adjacency/README.md index 9845e5e261..7e0fc91ec6 100644 --- a/packages/adjacency/README.md +++ b/packages/adjacency/README.md @@ -42,7 +42,7 @@ yarn add @thi.ng/adjacency ``` -Package sizes (gzipped, pre-treeshake): ESM: 1.81 KB / CJS: 1.88 KB / UMD: 1.98 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.74 KB / CJS: 1.82 KB / UMD: 1.92 KB ## Dependencies diff --git a/packages/adjacency/package.json b/packages/adjacency/package.json index 61049d4f30..40ab2dbd25 100644 --- a/packages/adjacency/package.json +++ b/packages/adjacency/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/adjacency", - "version": "0.1.67", + "version": "0.2.0", "description": "Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs", "module": "./index.js", "main": "./lib/index.js", @@ -39,23 +39,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/vectors": "^4.8.2", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/vectors": "^4.8.3", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/bitfield": "^0.3.25", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/sparse": "^0.1.58" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/bitfield": "^0.3.26", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/sparse": "^0.1.59" }, "files": [ "*.js", diff --git a/packages/adjacency/src/api.ts b/packages/adjacency/src/api.ts index f171b55f38..6fc236ef1c 100644 --- a/packages/adjacency/src/api.ts +++ b/packages/adjacency/src/api.ts @@ -1,10 +1,6 @@ import type { Fn2, Pair } from "@thi.ng/api"; -export enum DegreeType { - IN, - OUT, - BOTH, -} +export type DegreeType = "in" | "out" | "both"; export interface IGraph { numEdges(): number; diff --git a/packages/adjacency/src/sparse.ts b/packages/adjacency/src/sparse.ts index 209109a3b7..e1dfc09cc9 100644 --- a/packages/adjacency/src/sparse.ts +++ b/packages/adjacency/src/sparse.ts @@ -1,6 +1,6 @@ import type { Pair } from "@thi.ng/api"; import { CSR } from "@thi.ng/sparse"; -import { DegreeType, IGraph } from "./api"; +import type { DegreeType, IGraph } from "./api"; export class AdjacencyMatrix extends CSR implements IGraph { static newEmpty(n: number, undirected = false) { @@ -96,21 +96,21 @@ export class AdjacencyMatrix extends CSR implements IGraph { * * @param deg - degree type */ - degreeMat(deg: DegreeType = DegreeType.OUT) { + degreeMat(deg: DegreeType = "out") { const res = CSR.empty(this.m); switch (deg) { - case DegreeType.OUT: + case "out": default: for (let i = this.m; --i >= 0; ) { res.setAt(i, i, this.nnzRow(i)); } break; - case DegreeType.IN: + case "in": for (let i = this.m; --i >= 0; ) { res.setAt(i, i, this.nnzCol(i)); } break; - case DegreeType.BOTH: + case "both": for (let i = this.m; --i >= 0; ) { res.setAt(i, i, this.nnzRow(i) + this.nnzCol(i)); } diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 109604e376..4314914208 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -3,31 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [6.13.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.13.3...@thi.ng/api@6.13.4) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/api - - - - - -## [6.13.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.13.2...@thi.ng/api@6.13.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/api - - - - - -## [6.13.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.13.1...@thi.ng/api@6.13.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/api - - - - - -## [6.13.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.13.0...@thi.ng/api@6.13.1) (2020-09-22) +## [6.13.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.13.4...@thi.ng/api@6.13.5) (2020-12-22) **Note:** Version bump only for package @thi.ng/api @@ -52,30 +28,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [6.12.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.12.2...@thi.ng/api@6.12.3) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/api - - - - - -## [6.12.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.12.1...@thi.ng/api@6.12.2) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/api - - - - - -## [6.12.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.12.0...@thi.ng/api@6.12.1) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/api - - - - - # [6.12.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.11.3...@thi.ng/api@6.12.0) (2020-07-28) diff --git a/packages/api/package.json b/packages/api/package.json index 0f74b95a04..7aa8221f97 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/api", - "version": "6.13.4", + "version": "6.13.5", "description": "Common, generic types, interfaces & mixins", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/arrays/CHANGELOG.md b/packages/arrays/CHANGELOG.md index 66a3be8452..0654915056 100644 --- a/packages/arrays/CHANGELOG.md +++ b/packages/arrays/CHANGELOG.md @@ -3,31 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.8.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.8.3...@thi.ng/arrays@0.8.4) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/arrays - - - - - -## [0.8.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.8.2...@thi.ng/arrays@0.8.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/arrays - - - - - -## [0.8.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.8.1...@thi.ng/arrays@0.8.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/arrays - - - - - -## [0.8.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.8.0...@thi.ng/arrays@0.8.1) (2020-09-22) +## [0.8.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.8.4...@thi.ng/arrays@0.8.5) (2020-12-22) **Note:** Version bump only for package @thi.ng/arrays @@ -57,22 +33,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.6.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.6.14...@thi.ng/arrays@0.6.15) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/arrays - - - - - -## [0.6.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.6.13...@thi.ng/arrays@0.6.14) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/arrays - - - - - # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.5.6...@thi.ng/arrays@0.6.0) (2020-03-28) diff --git a/packages/arrays/package.json b/packages/arrays/package.json index baaf6d69b0..6adee97f7a 100644 --- a/packages/arrays/package.json +++ b/packages/arrays/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/arrays", - "version": "0.8.4", + "version": "0.8.5", "description": "Array / Arraylike utilities", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/compare": "^1.3.20", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/random": "^2.1.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/compare": "^1.3.21", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/random": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/associative/CHANGELOG.md b/packages/associative/CHANGELOG.md index 235a9c9e9a..8ce196d0c8 100644 --- a/packages/associative/CHANGELOG.md +++ b/packages/associative/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [5.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.10...@thi.ng/associative@5.0.11) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.9...@thi.ng/associative@5.0.10) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.8...@thi.ng/associative@5.0.9) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.7...@thi.ng/associative@5.0.8) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.6...@thi.ng/associative@5.0.7) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.5...@thi.ng/associative@5.0.6) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.4...@thi.ng/associative@5.0.5) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.3...@thi.ng/associative@5.0.4) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/associative - - - - - -## [5.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.2...@thi.ng/associative@5.0.3) (2020-08-16) +## [5.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.11...@thi.ng/associative@5.0.12) (2020-12-22) **Note:** Version bump only for package @thi.ng/associative diff --git a/packages/associative/package.json b/packages/associative/package.json index a72eb0801b..5a59fda408 100644 --- a/packages/associative/package.json +++ b/packages/associative/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/associative", - "version": "5.0.11", + "version": "5.0.12", "description": "Alternative Map and Set implementations with customizable equality semantics & supporting operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib internal", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/compare": "^1.3.20", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2", + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/compare": "^1.3.21", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3", "tslib": "2.0.1" }, "files": [ diff --git a/packages/atom/CHANGELOG.md b/packages/atom/CHANGELOG.md index 7333bf0008..657a1a1dd6 100644 --- a/packages/atom/CHANGELOG.md +++ b/packages/atom/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [4.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.23...@thi.ng/atom@4.1.24) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.22...@thi.ng/atom@4.1.23) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.21...@thi.ng/atom@4.1.22) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.20...@thi.ng/atom@4.1.21) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.19...@thi.ng/atom@4.1.20) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.18...@thi.ng/atom@4.1.19) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.17...@thi.ng/atom@4.1.18) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/atom - - - - - -## [4.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.16...@thi.ng/atom@4.1.17) (2020-08-16) +## [4.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.24...@thi.ng/atom@4.1.25) (2020-12-22) **Note:** Version bump only for package @thi.ng/atom diff --git a/packages/atom/package.json b/packages/atom/package.json index 29f5dd0b84..1f812f1aa5 100644 --- a/packages/atom/package.json +++ b/packages/atom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/atom", - "version": "4.1.24", + "version": "4.1.25", "description": "Mutable wrappers for nested immutable values with optional undo/redo history and transaction support", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/paths": "^4.1.10", + "@thi.ng/api": "^6.13.5", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/paths": "^4.1.11", "tslib": "2.0.1" }, "files": [ diff --git a/packages/bench/CHANGELOG.md b/packages/bench/CHANGELOG.md index 515f838231..6b29997c57 100644 --- a/packages/bench/CHANGELOG.md +++ b/packages/bench/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.23...@thi.ng/bench@2.0.24) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.22...@thi.ng/bench@2.0.23) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.21...@thi.ng/bench@2.0.22) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.20...@thi.ng/bench@2.0.21) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.19...@thi.ng/bench@2.0.20) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.18...@thi.ng/bench@2.0.19) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.17...@thi.ng/bench@2.0.18) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/bench - - - - - -## [2.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.16...@thi.ng/bench@2.0.17) (2020-08-16) +## [2.0.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.24...@thi.ng/bench@2.0.25) (2020-12-22) **Note:** Version bump only for package @thi.ng/bench diff --git a/packages/bench/package.json b/packages/bench/package.json index bfbfc56b8d..ff9f85fa82 100644 --- a/packages/bench/package.json +++ b/packages/bench/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bench", - "version": "2.0.24", + "version": "2.0.25", "description": "Benchmarking utilities w/ optional statistics", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/bencode/CHANGELOG.md b/packages/bencode/CHANGELOG.md index e955cb00c0..cb528fffe6 100644 --- a/packages/bencode/CHANGELOG.md +++ b/packages/bencode/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.3.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.42...@thi.ng/bencode@0.3.43) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.41...@thi.ng/bencode@0.3.42) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.40...@thi.ng/bencode@0.3.41) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.39...@thi.ng/bencode@0.3.40) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.38...@thi.ng/bencode@0.3.39) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.37...@thi.ng/bencode@0.3.38) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.36...@thi.ng/bencode@0.3.37) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.35...@thi.ng/bencode@0.3.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/bencode - - - - - -## [0.3.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.34...@thi.ng/bencode@0.3.35) (2020-08-16) +## [0.3.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.43...@thi.ng/bencode@0.3.44) (2020-12-22) **Note:** Version bump only for package @thi.ng/bencode diff --git a/packages/bencode/package.json b/packages/bencode/package.json index 64323cd652..967d0df374 100644 --- a/packages/bencode/package.json +++ b/packages/bencode/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bencode", - "version": "0.3.43", + "version": "0.3.44", "description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support", "module": "./index.js", "main": "./lib/index.js", @@ -39,23 +39,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/transducers-binary": "^0.5.33" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/transducers-binary": "^0.6.0" }, "files": [ "*.js", diff --git a/packages/binary/CHANGELOG.md b/packages/binary/CHANGELOG.md index d969332d17..7f1b7aa559 100644 --- a/packages/binary/CHANGELOG.md +++ b/packages/binary/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.18...@thi.ng/binary@2.0.19) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.17...@thi.ng/binary@2.0.18) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.16...@thi.ng/binary@2.0.17) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.15...@thi.ng/binary@2.0.16) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.14...@thi.ng/binary@2.0.15) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.13...@thi.ng/binary@2.0.14) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.12...@thi.ng/binary@2.0.13) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/binary - - - - - -## [2.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.11...@thi.ng/binary@2.0.12) (2020-08-16) +## [2.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.19...@thi.ng/binary@2.0.20) (2020-12-22) **Note:** Version bump only for package @thi.ng/binary diff --git a/packages/binary/package.json b/packages/binary/package.json index 8dc76bc618..37ac3d1c0d 100644 --- a/packages/binary/package.json +++ b/packages/binary/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/binary", - "version": "2.0.19", + "version": "2.0.20", "description": "95+ assorted binary / bitwise operations, conversions, utilities", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/bitfield/CHANGELOG.md b/packages/bitfield/CHANGELOG.md index 8ff891f58e..f114c6857f 100644 --- a/packages/bitfield/CHANGELOG.md +++ b/packages/bitfield/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.3.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.24...@thi.ng/bitfield@0.3.25) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.23...@thi.ng/bitfield@0.3.24) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.22...@thi.ng/bitfield@0.3.23) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.21...@thi.ng/bitfield@0.3.22) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.20...@thi.ng/bitfield@0.3.21) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.19...@thi.ng/bitfield@0.3.20) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.18...@thi.ng/bitfield@0.3.19) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.17...@thi.ng/bitfield@0.3.18) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/bitfield - - - - - -## [0.3.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.16...@thi.ng/bitfield@0.3.17) (2020-08-16) +## [0.3.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.25...@thi.ng/bitfield@0.3.26) (2020-12-22) **Note:** Version bump only for package @thi.ng/bitfield diff --git a/packages/bitfield/package.json b/packages/bitfield/package.json index 3b383ece35..91729f2e02 100644 --- a/packages/bitfield/package.json +++ b/packages/bitfield/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bitfield", - "version": "0.3.25", + "version": "0.3.26", "description": "1D / 2D bit field implementations", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/strings": "^1.11.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/strings": "^1.11.3" }, "files": [ "*.js", diff --git a/packages/bitstream/CHANGELOG.md b/packages/bitstream/CHANGELOG.md index 0f46f2e8bb..0e9d154f3a 100644 --- a/packages/bitstream/CHANGELOG.md +++ b/packages/bitstream/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.28...@thi.ng/bitstream@1.1.29) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/bitstream - - - - - -## [1.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.27...@thi.ng/bitstream@1.1.28) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/bitstream - - - - - -## [1.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.26...@thi.ng/bitstream@1.1.27) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/bitstream - - - - - -## [1.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.25...@thi.ng/bitstream@1.1.26) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/bitstream - - - - - -## [1.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.24...@thi.ng/bitstream@1.1.25) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/bitstream - - - - - -## [1.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.23...@thi.ng/bitstream@1.1.24) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/bitstream - - - - - -## [1.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.22...@thi.ng/bitstream@1.1.23) (2020-08-16) +## [1.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.29...@thi.ng/bitstream@1.1.30) (2020-12-22) **Note:** Version bump only for package @thi.ng/bitstream diff --git a/packages/bitstream/package.json b/packages/bitstream/package.json index 109f7e63a6..d7c15c092a 100644 --- a/packages/bitstream/package.json +++ b/packages/bitstream/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bitstream", - "version": "1.1.29", + "version": "1.1.30", "description": "ES6 iterator based read/write bit streams with support for variable word widths", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/errors": "^1.2.24" + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 6f1c5f2bff..0ec3f151cd 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.62...@thi.ng/cache@1.0.63) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.61...@thi.ng/cache@1.0.62) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.60...@thi.ng/cache@1.0.61) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.59...@thi.ng/cache@1.0.60) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.58...@thi.ng/cache@1.0.59) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.57...@thi.ng/cache@1.0.58) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.56...@thi.ng/cache@1.0.57) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.55...@thi.ng/cache@1.0.56) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/cache - - - - - -## [1.0.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.54...@thi.ng/cache@1.0.55) (2020-08-16) +## [1.0.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.63...@thi.ng/cache@1.0.64) (2020-12-22) **Note:** Version bump only for package @thi.ng/cache diff --git a/packages/cache/package.json b/packages/cache/package.json index ba3470eb54..807e33a8d2 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/cache", - "version": "1.0.63", + "version": "1.0.64", "description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/checks/CHANGELOG.md b/packages/checks/CHANGELOG.md index 4832c7b477..9c12b2d2a8 100644 --- a/packages/checks/CHANGELOG.md +++ b/packages/checks/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.7.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.10...@thi.ng/checks@2.7.11) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/checks - - - - - -## [2.7.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.9...@thi.ng/checks@2.7.10) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/checks - - - - - -## [2.7.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.8...@thi.ng/checks@2.7.9) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/checks - - - - - -## [2.7.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.7...@thi.ng/checks@2.7.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/checks - - - - - -## [2.7.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.6...@thi.ng/checks@2.7.7) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/checks - - - - - -## [2.7.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.5...@thi.ng/checks@2.7.6) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/checks - - - - - -## [2.7.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.4...@thi.ng/checks@2.7.5) (2020-08-16) +## [2.7.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.11...@thi.ng/checks@2.7.12) (2020-12-22) **Note:** Version bump only for package @thi.ng/checks diff --git a/packages/checks/package.json b/packages/checks/package.json index 6574d464bf..f86c3e27c5 100644 --- a/packages/checks/package.json +++ b/packages/checks/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/checks", - "version": "2.7.11", + "version": "2.7.12", "description": "Collection of 50+ type, feature & value checks", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { "tslib": "2.0.1" diff --git a/packages/color/CHANGELOG.md b/packages/color/CHANGELOG.md index 8c5b849d02..a25e5fa81e 100644 --- a/packages/color/CHANGELOG.md +++ b/packages/color/CHANGELOG.md @@ -3,17 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.3.1...@thi.ng/color@1.3.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/color +# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.3.2...@thi.ng/color@2.0.0) (2020-12-22) +### Code Refactoring +* **color:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([17e2449](https://github.com/thi-ng/umbrella/commit/17e244969d2d39e17cdea739308928adc17d5392)) -## [1.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.3.0...@thi.ng/color@1.3.1) (2020-11-26) +### BREAKING CHANGES -**Note:** Version bump only for package @thi.ng/color +* **color:** replace ColorMode w/ type alias @@ -30,62 +30,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.17...@thi.ng/color@1.2.18) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/color - - - - - -## [1.2.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.16...@thi.ng/color@1.2.17) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/color - - - - - -## [1.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.15...@thi.ng/color@1.2.16) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/color - - - - - -## [1.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.14...@thi.ng/color@1.2.15) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/color - - - - - -## [1.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.13...@thi.ng/color@1.2.14) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/color - - - - - -## [1.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.12...@thi.ng/color@1.2.13) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/color - - - - - -## [1.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.11...@thi.ng/color@1.2.12) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/color - - - - - # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.1.21...@thi.ng/color@1.2.0) (2020-05-29) diff --git a/packages/color/README.md b/packages/color/README.md index 3cdc53cb2f..a8811f80dc 100644 --- a/packages/color/README.md +++ b/packages/color/README.md @@ -194,7 +194,7 @@ yarn add @thi.ng/color ``` -Package sizes (gzipped, pre-treeshake): ESM: 7.21 KB / CJS: 7.58 KB / UMD: 7.16 KB +Package sizes (gzipped, pre-treeshake): ESM: 7.08 KB / CJS: 7.44 KB / UMD: 7.00 KB ## Dependencies @@ -239,7 +239,7 @@ const b = col.parseCss("hsla(30,100%,50%,0.75)"); // route #3: convert() multi-method: CSS -> RGBA -> HSVA // (see convert.ts) -const c = col.convert("rgb(0,255,255)", col.ColorMode.HSVA, col.ColorMode.CSS); +const c = col.convert("rgb(0,255,255)", "hsv", "css"); // [ 0.4999999722222268, 0.9999990000010001, 1, 1 ] // route #4: direct conversion RGBA -> HSLA -> CSS @@ -249,7 +249,7 @@ col.hslaCss(col.rgbaHsla([], [1, 0.5, 0.5, 1])) // "hsl(0.00,100.00%,75.00%)" col.luminance(col.css("white")) -col.luminance(0xffffff, col.ColorMode.INT32) +col.luminance(0xffffff, "int") // 1 // apply color matrix (RGBA only) diff --git a/packages/color/package.json b/packages/color/package.json index 010e98d400..2c8beac3c0 100644 --- a/packages/color/package.json +++ b/packages/color/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/color", - "version": "1.3.2", + "version": "2.0.0", "description": "Array-based color ops, conversions, multi-color gradients, presets", "module": "./index.js", "main": "./lib/index.js", @@ -39,25 +39,25 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/compose": "^1.4.21", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/compose": "^1.4.22", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/color/src/api.ts b/packages/color/src/api.ts index 3e16ba0b00..8e8cc42673 100644 --- a/packages/color/src/api.ts +++ b/packages/color/src/api.ts @@ -1,6 +1,16 @@ import type { Tuple } from "@thi.ng/api"; import type { ReadonlyVec, Vec } from "@thi.ng/vectors"; -import type { ColorMode } from "./constants"; + +export type ColorMode = + | "rgb" + | "hcy" + | "hsv" + | "hsl" + | "hsi" + | "int" + | "css" + | "xyz" + | "ycbcr"; export type Color = Vec; export type ReadonlyColor = ReadonlyVec; diff --git a/packages/color/src/constants.ts b/packages/color/src/constants.ts index 1c9721d682..bf114b6e08 100644 --- a/packages/color/src/constants.ts +++ b/packages/color/src/constants.ts @@ -1,17 +1,5 @@ import { float, percent } from "@thi.ng/strings"; -export enum ColorMode { - RGBA, - HCYA, - HSVA, - HSLA, - HSIA, - INT32, - CSS, - XYZA, - YCBCRA, -} - // RGBA constants export const BLACK = Object.freeze([0, 0, 0, 1]); diff --git a/packages/color/src/convert.ts b/packages/color/src/convert.ts index a3cac44143..9abd2648d7 100644 --- a/packages/color/src/convert.ts +++ b/packages/color/src/convert.ts @@ -1,8 +1,13 @@ import type { Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; import { DEFAULT, defmulti } from "@thi.ng/defmulti"; import { illegalArgs } from "@thi.ng/errors"; -import type { Color, ColorConversion, IColor, ReadonlyColor } from "./api"; -import { ColorMode } from "./constants"; +import type { + Color, + ColorConversion, + ColorMode, + IColor, + ReadonlyColor, +} from "./api"; import { hcyaRgba } from "./hcya-rgba"; import { hsiaRgba } from "./hsia-rgba"; import { hslaCss } from "./hsla-css"; @@ -49,7 +54,7 @@ export function asCSS( mode: ColorMode ): string; export function asCSS(col: any, mode?: ColorMode) { - return convert(col, ColorMode.CSS, mode); + return convert(col, "css", mode); } export function asRGBA(col: IColor): Color; @@ -58,7 +63,7 @@ export function asRGBA( mode: ColorMode ): Color; export function asRGBA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.RGBA, mode); + return convert(col, "rgb", mode); } export function asHCYA(col: IColor): Color; @@ -67,7 +72,7 @@ export function asHCYA( mode: ColorMode ): Color; export function asHCYA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.HCYA, mode); + return convert(col, "hcy", mode); } export function asHSIA(col: IColor): Color; @@ -76,7 +81,7 @@ export function asHSIA( mode: ColorMode ): Color; export function asHSIA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.HSIA, mode); + return convert(col, "hsi", mode); } export function asHSLA(col: IColor): Color; @@ -85,7 +90,7 @@ export function asHSLA( mode: ColorMode ): Color; export function asHSLA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.HSLA, mode); + return convert(col, "hsl", mode); } export function asHSVA(col: IColor): Color; @@ -94,7 +99,7 @@ export function asHSVA( mode: ColorMode ): Color; export function asHSVA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.HSVA, mode); + return convert(col, "hsv", mode); } export function asXYZA(col: IColor): Color; @@ -103,7 +108,7 @@ export function asXYZA( mode: ColorMode ): Color; export function asXYZA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.XYZA, mode); + return convert(col, "xyz", mode); } export function asYCbCrA(col: IColor): Color; @@ -112,7 +117,7 @@ export function asYCbCrA( mode: ColorMode ): Color; export function asYCbCrA(col: any, mode?: ColorMode) { - return convert(col, ColorMode.YCBCRA, mode); + return convert(col, "ycbcr", mode); } const defConversion = ( @@ -131,147 +136,107 @@ const defConversions = ( toRGBA: ColorConversion, ...dest: ColorMode[] ) => { - defConversion(ColorMode.RGBA, src, (x: any) => toRGBA([], x)); + defConversion("rgb", src, (x: any) => toRGBA([], x)); dest.forEach((id) => - defConversion(id, src, (x: any) => - convert(toRGBA([], x), id, ColorMode.RGBA) - ) + defConversion(id, src, (x: any) => convert(toRGBA([], x), id, "rgb")) ); }; // CSS -defConversion(ColorMode.RGBA, ColorMode.CSS, (x: any) => parseCss(x)); - -[ - ColorMode.HCYA, - ColorMode.HSIA, - ColorMode.HSLA, - ColorMode.HSVA, - ColorMode.INT32, - ColorMode.XYZA, - ColorMode.YCBCRA, -].forEach((id) => - defConversion(id, ColorMode.CSS, (x: any) => - convert(parseCss(x), id, ColorMode.RGBA) - ) +defConversion("rgb", "css", (x: any) => parseCss(x)); + +([ + "hcy", + "hsi", + "hsl", + "hsv", + "int", + "xyz", + "ycbcr", +]).forEach((id) => + defConversion(id, "css", (x: any) => convert(parseCss(x), id, "rgb")) ); // Int -defConversions( - ColorMode.INT32, - int32Rgba, - ColorMode.HCYA, - ColorMode.HSIA, - ColorMode.HSLA, - ColorMode.HSVA, - ColorMode.XYZA, - ColorMode.YCBCRA -); +defConversions("int", int32Rgba, "hcy", "hsi", "hsl", "hsv", "xyz", "ycbcr"); -defConversion(ColorMode.CSS, ColorMode.INT32, (x: any) => int32Css(x)); +defConversion("css", "int", (x: any) => int32Css(x)); // HCYA -defConversions( - ColorMode.HCYA, - hcyaRgba, - ColorMode.CSS, - ColorMode.INT32, - ColorMode.HSLA, - ColorMode.HSVA, - ColorMode.XYZA, - ColorMode.YCBCRA -); +defConversions("hcy", hcyaRgba, "css", "int", "hsl", "hsv", "xyz", "ycbcr"); // HSIA defConversions( - ColorMode.HSIA, + "hsi", hsiaRgba, - ColorMode.CSS, - ColorMode.INT32, - ColorMode.HCYA, - ColorMode.HSLA, - ColorMode.HSVA, - ColorMode.XYZA, - ColorMode.YCBCRA + "css", + "int", + "hcy", + "hsl", + "hsv", + "xyz", + "ycbcr" ); // HSLA -defConversions( - ColorMode.HSLA, - hslaRgba, - ColorMode.HCYA, - ColorMode.HSIA, - ColorMode.INT32, - ColorMode.XYZA, - ColorMode.YCBCRA -); +defConversions("hsl", hslaRgba, "hcy", "hsi", "int", "xyz", "ycbcr"); -defConversion(ColorMode.CSS, ColorMode.HSLA, (x: any) => hslaCss(x)); +defConversion("css", "hsl", (x: any) => hslaCss(x)); -defConversion(ColorMode.HSVA, ColorMode.HSLA, (x: any) => hslaHsva([], x)); +defConversion("hsv", "hsl", (x: any) => hslaHsva([], x)); // HSVA -defConversions( - ColorMode.HSVA, - hsvaRgba, - ColorMode.HCYA, - ColorMode.HSIA, - ColorMode.INT32, - ColorMode.XYZA, - ColorMode.YCBCRA -); +defConversions("hsv", hsvaRgba, "hcy", "hsi", "int", "xyz", "ycbcr"); -defConversion(ColorMode.CSS, ColorMode.HSVA, (x: any) => hsvaCss(x)); +defConversion("css", "hsv", (x: any) => hsvaCss(x)); -defConversion(ColorMode.HSLA, ColorMode.HSVA, (x: any) => hsvaHsla([], x)); +defConversion("hsl", "hsv", (x: any) => hsvaHsla([], x)); // RGBA (<[ColorMode, ColorConversion][]>[ - [ColorMode.HCYA, rgbaHcya], - [ColorMode.HSIA, rgbaHsia], - [ColorMode.HSLA, rgbaHsla], - [ColorMode.HSVA, rgbaHsva], - [ColorMode.XYZA, rgbaXyza], - [ColorMode.YCBCRA, rgbaYcbcra], -]).forEach(([id, fn]) => - defConversion(id, ColorMode.RGBA, (x: any) => fn([], x)) -); + ["hcy", rgbaHcya], + ["hsi", rgbaHsia], + ["hsl", rgbaHsla], + ["hsv", rgbaHsva], + ["xyz", rgbaXyza], + ["ycbcr", rgbaYcbcra], +]).forEach(([id, fn]) => defConversion(id, "rgb", (x: any) => fn([], x))); -defConversion(ColorMode.CSS, ColorMode.RGBA, (x: any) => rgbaCss(x)); +defConversion("css", "rgb", (x: any) => rgbaCss(x)); -defConversion(ColorMode.INT32, ColorMode.RGBA, (x: any) => rgbaInt(x)); +defConversion("int", "rgb", (x: any) => rgbaInt(x)); // XYZA defConversions( - ColorMode.XYZA, + "xyz", xyzaRgba, - ColorMode.CSS, - ColorMode.HCYA, - ColorMode.HSIA, - ColorMode.HSLA, - ColorMode.HSVA, - ColorMode.INT32, - ColorMode.YCBCRA + "css", + "hcy", + "hsi", + "hsl", + "hsv", + "int", + "ycbcr" ); // YCbCr defConversions( - ColorMode.YCBCRA, + "ycbcr", ycbcraRgba, - ColorMode.CSS, - ColorMode.HCYA, - ColorMode.HSIA, - ColorMode.HSLA, - ColorMode.HSVA, - ColorMode.INT32, - ColorMode.XYZA + "css", + "hcy", + "hsi", + "hsl", + "hsv", + "int", + "xyz" ); diff --git a/packages/color/src/css.ts b/packages/color/src/css.ts index bdd1ad57e3..6ff35db131 100644 --- a/packages/color/src/css.ts +++ b/packages/color/src/css.ts @@ -1,6 +1,5 @@ import type { ICopy, IDeref } from "@thi.ng/api"; -import type { IColor } from "./api"; -import { ColorMode } from "./constants"; +import type { ColorMode, IColor } from "./api"; export const css = (col: string) => new CSS(col); @@ -12,7 +11,7 @@ export class CSS implements IColor, ICopy, IDeref { } get mode() { - return ColorMode.CSS; + return "css"; } copy() { diff --git a/packages/color/src/hcya.ts b/packages/color/src/hcya.ts index 9786d31ee0..30c899503e 100644 --- a/packages/color/src/hcya.ts +++ b/packages/color/src/hcya.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class HCYA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.HCYA; + return "hcy"; } copy() { diff --git a/packages/color/src/hsia.ts b/packages/color/src/hsia.ts index 8a1da88660..abfed2879e 100644 --- a/packages/color/src/hsia.ts +++ b/packages/color/src/hsia.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class HSIA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.HSIA; + return "hsi"; } copy() { diff --git a/packages/color/src/hsla.ts b/packages/color/src/hsla.ts index 4bbaecbb58..e49ad0dc4e 100644 --- a/packages/color/src/hsla.ts +++ b/packages/color/src/hsla.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class HSLA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.HSLA; + return "hsl"; } copy() { diff --git a/packages/color/src/hsva.ts b/packages/color/src/hsva.ts index 5086cbb281..bb3807f542 100644 --- a/packages/color/src/hsva.ts +++ b/packages/color/src/hsva.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class HSVA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.HSVA; + return "hsv"; } copy() { diff --git a/packages/color/src/int.ts b/packages/color/src/int.ts index 6b3ca21740..a808d24ed3 100644 --- a/packages/color/src/int.ts +++ b/packages/color/src/int.ts @@ -1,6 +1,5 @@ import type { ICopy, IDeref } from "@thi.ng/api"; -import type { IColor } from "./api"; -import { ColorMode } from "./constants"; +import type { ColorMode, IColor } from "./api"; /** * Returns new {@link Int32} wrapping given ARGB int. @@ -25,7 +24,7 @@ export class Int32 implements IColor, ICopy, IDeref { } get mode() { - return ColorMode.INT32; + return "int"; } copy() { diff --git a/packages/color/src/internal/acolor.ts b/packages/color/src/internal/acolor.ts index b9a56718c2..8618c842b7 100644 --- a/packages/color/src/internal/acolor.ts +++ b/packages/color/src/internal/acolor.ts @@ -1,8 +1,7 @@ import type { IDeref } from "@thi.ng/api"; import { EPS } from "@thi.ng/math"; import { eqDelta4, stridedValues } from "@thi.ng/vectors"; -import type { Color, IColor } from "../api"; -import type { ColorMode } from "../constants"; +import type { Color, ColorMode, IColor } from "../api"; export abstract class AColor implements IColor, IDeref { buf: Color; diff --git a/packages/color/src/luminance.ts b/packages/color/src/luminance.ts index 0647226262..df093ba5f6 100644 --- a/packages/color/src/luminance.ts +++ b/packages/color/src/luminance.ts @@ -1,7 +1,6 @@ import { DEFAULT, defmulti, MultiFn1O } from "@thi.ng/defmulti"; import { illegalArgs } from "@thi.ng/errors"; -import type { IColor, ReadonlyColor } from "./api"; -import { ColorMode } from "./constants"; +import type { ColorMode, IColor, ReadonlyColor } from "./api"; import { convert } from "./convert"; import { luminanceInt, luminanceRGB } from "./luminance-rgb"; @@ -22,12 +21,12 @@ export const luminance: MultiFn1O< : illegalArgs(`missing color mode`) ); -luminance.add(ColorMode.RGBA, (x: any) => luminanceRGB(x)); +luminance.add("rgb", (x: any) => luminanceRGB(x)); -luminance.add(ColorMode.INT32, (x: any) => +luminance.add("int", (x: any) => luminanceInt(typeof x === "number" ? x : x.deref()) ); luminance.add(DEFAULT, (x: any, mode) => - luminanceRGB(convert(x, ColorMode.RGBA, mode)) + luminanceRGB(convert(x, "rgb", mode)) ); diff --git a/packages/color/src/resolve.ts b/packages/color/src/resolve.ts index 2826109886..ffe2f36e63 100644 --- a/packages/color/src/resolve.ts +++ b/packages/color/src/resolve.ts @@ -1,6 +1,5 @@ import { isArrayLike, isNumber } from "@thi.ng/checks"; import type { ReadonlyColor } from "./api"; -import { ColorMode } from "./constants"; import { asCSS } from "./convert"; /** @@ -18,7 +17,7 @@ export const resolveAsCSS = (col: any) => isArrayLike(col) ? isNumber((col).mode) ? asCSS(col) - : asCSS(col, ColorMode.RGBA) + : asCSS(col, "rgb") : isNumber(col) - ? asCSS(col, ColorMode.INT32) + ? asCSS(col, "int") : col; diff --git a/packages/color/src/rgba.ts b/packages/color/src/rgba.ts index aad98760ee..b6b6f7d899 100644 --- a/packages/color/src/rgba.ts +++ b/packages/color/src/rgba.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class RGBA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.RGBA; + return "rgb"; } copy() { diff --git a/packages/color/src/xyza.ts b/packages/color/src/xyza.ts index dd49d16550..497400db0b 100644 --- a/packages/color/src/xyza.ts +++ b/packages/color/src/xyza.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class XYZA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.XYZA; + return "xyz"; } copy() { diff --git a/packages/color/src/ycbcr.ts b/packages/color/src/ycbcr.ts index 8efe85a979..eb20286d35 100644 --- a/packages/color/src/ycbcr.ts +++ b/packages/color/src/ycbcr.ts @@ -1,6 +1,5 @@ import { declareIndices, IVector } from "@thi.ng/vectors"; -import type { Color } from "./api"; -import { ColorMode } from "./constants"; +import type { Color, ColorMode } from "./api"; import { AColor } from "./internal/acolor"; import { ensureArgs } from "./internal/ensure-args"; @@ -17,7 +16,7 @@ export class YCbCrA extends AColor implements IVector { a!: number; get mode() { - return ColorMode.YCBCRA; + return "ycbcr"; } copy() { diff --git a/packages/color/tools/index.ts b/packages/color/tools/index.ts index e3f286c273..981d54aa6d 100644 --- a/packages/color/tools/index.ts +++ b/packages/color/tools/index.ts @@ -10,9 +10,10 @@ Object.keys(GRADIENTS).forEach((id) => { asSvg( svgDoc( {}, - ...cosineGradient(100, GRADIENTS[id]).map((col, i) => - rect([i * 5, 0], [5, 50], { fill: col }) - ) + ...cosineGradient( + 100, + GRADIENTS[id] + ).map((col, i) => rect([i * 5, 0], [5, 50], { fill: col })) ) ) ); diff --git a/packages/color/tpl.readme.md b/packages/color/tpl.readme.md index 23f4f5aa04..fde9472eb1 100644 --- a/packages/color/tpl.readme.md +++ b/packages/color/tpl.readme.md @@ -195,7 +195,7 @@ const b = col.parseCss("hsla(30,100%,50%,0.75)"); // route #3: convert() multi-method: CSS -> RGBA -> HSVA // (see convert.ts) -const c = col.convert("rgb(0,255,255)", col.ColorMode.HSVA, col.ColorMode.CSS); +const c = col.convert("rgb(0,255,255)", "hsv", "css"); // [ 0.4999999722222268, 0.9999990000010001, 1, 1 ] // route #4: direct conversion RGBA -> HSLA -> CSS @@ -205,7 +205,7 @@ col.hslaCss(col.rgbaHsla([], [1, 0.5, 0.5, 1])) // "hsl(0.00,100.00%,75.00%)" col.luminance(col.css("white")) -col.luminance(0xffffff, col.ColorMode.INT32) +col.luminance(0xffffff, "int") // 1 // apply color matrix (RGBA only) diff --git a/packages/colored-noise/CHANGELOG.md b/packages/colored-noise/CHANGELOG.md index 6d011de0a9..58a065636c 100644 --- a/packages/colored-noise/CHANGELOG.md +++ b/packages/colored-noise/CHANGELOG.md @@ -3,47 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.5...@thi.ng/colored-noise@0.1.6) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/colored-noise - - - - - -## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.4...@thi.ng/colored-noise@0.1.5) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/colored-noise - - - - - -## [0.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.3...@thi.ng/colored-noise@0.1.4) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/colored-noise - - - - - -## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.2...@thi.ng/colored-noise@0.1.3) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/colored-noise - - - - - -## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.1...@thi.ng/colored-noise@0.1.2) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/colored-noise - - - - - -## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.0...@thi.ng/colored-noise@0.1.1) (2020-09-13) +## [0.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.6...@thi.ng/colored-noise@0.1.7) (2020-12-22) **Note:** Version bump only for package @thi.ng/colored-noise diff --git a/packages/colored-noise/package.json b/packages/colored-noise/package.json index 4a165d5bcc..dc1a9cc660 100644 --- a/packages/colored-noise/package.json +++ b/packages/colored-noise/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/colored-noise", - "version": "0.1.6", + "version": "0.1.7", "description": "Customizable O(1) ES6 generators for colored noise", "module": "./index.js", "main": "./lib/index.js", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/api": "^6.13.4", - "@thi.ng/dsp": "^2.1.5", - "@thi.ng/dsp-io-wav": "^0.1.33", - "@thi.ng/text-canvas": "^0.2.35", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/api": "^6.13.5", + "@thi.ng/dsp": "^3.0.0", + "@thi.ng/dsp-io-wav": "^0.1.34", + "@thi.ng/text-canvas": "^0.2.36", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/binary": "^2.0.19", - "@thi.ng/random": "^2.1.2" + "@thi.ng/binary": "^2.0.20", + "@thi.ng/random": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/compare/CHANGELOG.md b/packages/compare/CHANGELOG.md index 66668c0739..2003d6361e 100644 --- a/packages/compare/CHANGELOG.md +++ b/packages/compare/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.3.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.19...@thi.ng/compare@1.3.20) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.18...@thi.ng/compare@1.3.19) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.17...@thi.ng/compare@1.3.18) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.16...@thi.ng/compare@1.3.17) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.15...@thi.ng/compare@1.3.16) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.14...@thi.ng/compare@1.3.15) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.13...@thi.ng/compare@1.3.14) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/compare - - - - - -## [1.3.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.12...@thi.ng/compare@1.3.13) (2020-08-16) +## [1.3.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.20...@thi.ng/compare@1.3.21) (2020-12-22) **Note:** Version bump only for package @thi.ng/compare diff --git a/packages/compare/package.json b/packages/compare/package.json index 72d8c21e06..f9798ba9dc 100644 --- a/packages/compare/package.json +++ b/packages/compare/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/compare", - "version": "1.3.20", + "version": "1.3.21", "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/compose/CHANGELOG.md b/packages/compose/CHANGELOG.md index 00cf506b7d..de9afba900 100644 --- a/packages/compose/CHANGELOG.md +++ b/packages/compose/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.4.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.20...@thi.ng/compose@1.4.21) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.19...@thi.ng/compose@1.4.20) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.18...@thi.ng/compose@1.4.19) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.17...@thi.ng/compose@1.4.18) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.16...@thi.ng/compose@1.4.17) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.15...@thi.ng/compose@1.4.16) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.14...@thi.ng/compose@1.4.15) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/compose - - - - - -## [1.4.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.13...@thi.ng/compose@1.4.14) (2020-08-16) +## [1.4.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.21...@thi.ng/compose@1.4.22) (2020-12-22) **Note:** Version bump only for package @thi.ng/compose diff --git a/packages/compose/package.json b/packages/compose/package.json index 6462989a6b..8ce1eb0b4d 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/compose", - "version": "1.4.21", + "version": "1.4.22", "description": "Optimized functional composition helpers", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/csp/CHANGELOG.md b/packages/csp/CHANGELOG.md index 17bbe72c20..bc9aee9836 100644 --- a/packages/csp/CHANGELOG.md +++ b/packages/csp/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.42...@thi.ng/csp@1.1.43) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.41...@thi.ng/csp@1.1.42) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.40...@thi.ng/csp@1.1.41) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.39...@thi.ng/csp@1.1.40) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.38...@thi.ng/csp@1.1.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.37...@thi.ng/csp@1.1.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.36...@thi.ng/csp@1.1.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.35...@thi.ng/csp@1.1.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/csp - - - - - -## [1.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.34...@thi.ng/csp@1.1.35) (2020-08-16) +## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.43...@thi.ng/csp@1.1.44) (2020-12-22) **Note:** Version bump only for package @thi.ng/csp diff --git a/packages/csp/package.json b/packages/csp/package.json index 680c108635..b3ae21b16b 100644 --- a/packages/csp/package.json +++ b/packages/csp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csp", - "version": "1.1.43", + "version": "1.1.44", "description": "ES6 promise based CSP primitives & operations", "module": "./index.js", "main": "./lib/index.js", @@ -43,22 +43,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/csv/CHANGELOG.md b/packages/csv/CHANGELOG.md index f80f6ee93e..87558bfb9b 100644 --- a/packages/csv/CHANGELOG.md +++ b/packages/csv/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@0.1.1...@thi.ng/csv@0.1.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/csv - - - - - -## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@0.1.0...@thi.ng/csv@0.1.1) (2020-11-26) +## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@0.1.2...@thi.ng/csv@0.1.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/csv diff --git a/packages/csv/package.json b/packages/csv/package.json index cd38b7d841..a1ccfd1f9f 100644 --- a/packages/csv/package.json +++ b/packages/csv/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csv", - "version": "0.1.2", + "version": "0.1.3", "description": "Customizable, transducer-based CSV parser/object mapper and transformer", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/date/CHANGELOG.md b/packages/date/CHANGELOG.md index f638182c0b..3c4e2b16b9 100644 --- a/packages/date/CHANGELOG.md +++ b/packages/date/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@0.2.2...@thi.ng/date@0.2.3) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/date - - - - - -## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@0.2.1...@thi.ng/date@0.2.2) (2020-11-26) +## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@0.2.3...@thi.ng/date@0.2.4) (2020-12-22) **Note:** Version bump only for package @thi.ng/date diff --git a/packages/date/package.json b/packages/date/package.json index a8af241cd4..b6f7f02d87 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/date", - "version": "0.2.3", + "version": "0.2.4", "description": "Date/timestamp iterators, formatters, rounding", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/dcons/CHANGELOG.md b/packages/dcons/CHANGELOG.md index babdd3d457..2f2d715775 100644 --- a/packages/dcons/CHANGELOG.md +++ b/packages/dcons/CHANGELOG.md @@ -3,23 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.2...@thi.ng/dcons@2.3.3) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - -## [2.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.1...@thi.ng/dcons@2.3.2) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - -## [2.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.0...@thi.ng/dcons@2.3.1) (2020-11-24) +## [2.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.3...@thi.ng/dcons@2.3.4) (2020-12-22) **Note:** Version bump only for package @thi.ng/dcons @@ -38,46 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.31...@thi.ng/dcons@2.2.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - -## [2.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.30...@thi.ng/dcons@2.2.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - -## [2.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.29...@thi.ng/dcons@2.2.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - -## [2.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.28...@thi.ng/dcons@2.2.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - -## [2.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.27...@thi.ng/dcons@2.2.28) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/dcons - - - - - # [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.1.6...@thi.ng/dcons@2.2.0) (2019-11-30) ### Features diff --git a/packages/dcons/package.json b/packages/dcons/package.json index bab6d239a8..0ca63a3934 100644 --- a/packages/dcons/package.json +++ b/packages/dcons/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dcons", - "version": "2.3.3", + "version": "2.3.4", "description": "Double-linked lists with comprehensive set of operations (incl. optional self-organizing behaviors)", "module": "./index.js", "main": "./lib/index.js", @@ -39,23 +39,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/compare": "^1.3.20", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/compare": "^1.3.21", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/defmulti/CHANGELOG.md b/packages/defmulti/CHANGELOG.md index 78e56e67cb..36cd6af62d 100644 --- a/packages/defmulti/CHANGELOG.md +++ b/packages/defmulti/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.3.1...@thi.ng/defmulti@1.3.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/defmulti - - - - - -## [1.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.3.0...@thi.ng/defmulti@1.3.1) (2020-11-26) +## [1.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.3.2...@thi.ng/defmulti@1.3.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/defmulti @@ -30,46 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.25...@thi.ng/defmulti@1.2.26) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/defmulti - - - - - -## [1.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.24...@thi.ng/defmulti@1.2.25) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/defmulti - - - - - -## [1.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.23...@thi.ng/defmulti@1.2.24) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/defmulti - - - - - -## [1.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.22...@thi.ng/defmulti@1.2.23) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/defmulti - - - - - -## [1.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.21...@thi.ng/defmulti@1.2.22) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/defmulti - - - - - # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.1.4...@thi.ng/defmulti@1.2.0) (2019-11-09) ### Features diff --git a/packages/defmulti/package.json b/packages/defmulti/package.json index 18a654e87d..d91550ee4d 100644 --- a/packages/defmulti/package.json +++ b/packages/defmulti/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/defmulti", - "version": "1.3.2", + "version": "1.3.3", "description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/dgraph-dot/CHANGELOG.md b/packages/dgraph-dot/CHANGELOG.md index 469c49ccf4..2c8b308d52 100644 --- a/packages/dgraph-dot/CHANGELOG.md +++ b/packages/dgraph-dot/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.30...@thi.ng/dgraph-dot@0.1.31) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.29...@thi.ng/dgraph-dot@0.1.30) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.28...@thi.ng/dgraph-dot@0.1.29) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.27...@thi.ng/dgraph-dot@0.1.28) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.26...@thi.ng/dgraph-dot@0.1.27) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.25...@thi.ng/dgraph-dot@0.1.26) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.24...@thi.ng/dgraph-dot@0.1.25) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.23...@thi.ng/dgraph-dot@0.1.24) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dgraph-dot - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.22...@thi.ng/dgraph-dot@0.1.23) (2020-08-16) +## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.31...@thi.ng/dgraph-dot@0.1.32) (2020-12-22) **Note:** Version bump only for package @thi.ng/dgraph-dot diff --git a/packages/dgraph-dot/package.json b/packages/dgraph-dot/package.json index 7ec0deb164..016b932e2e 100644 --- a/packages/dgraph-dot/package.json +++ b/packages/dgraph-dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dgraph-dot", - "version": "0.1.31", + "version": "0.1.32", "description": "Customizable Graphviz DOT serialization for @thi.ng/dgraph", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/dgraph": "^1.3.2", - "@thi.ng/dot": "^1.2.21" + "@thi.ng/api": "^6.13.5", + "@thi.ng/dgraph": "^1.3.3", + "@thi.ng/dot": "^1.2.22" }, "files": [ "*.js", diff --git a/packages/dgraph/CHANGELOG.md b/packages/dgraph/CHANGELOG.md index d2292c834b..e6f00625a5 100644 --- a/packages/dgraph/CHANGELOG.md +++ b/packages/dgraph/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.1...@thi.ng/dgraph@1.3.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - -## [1.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.0...@thi.ng/dgraph@1.3.1) (2020-11-26) +## [1.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.2...@thi.ng/dgraph@1.3.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/dgraph @@ -30,54 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.27...@thi.ng/dgraph@1.2.28) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - -## [1.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.26...@thi.ng/dgraph@1.2.27) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - -## [1.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.25...@thi.ng/dgraph@1.2.26) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - -## [1.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.24...@thi.ng/dgraph@1.2.25) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - -## [1.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.23...@thi.ng/dgraph@1.2.24) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - -## [1.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.22...@thi.ng/dgraph@1.2.23) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/dgraph - - - - - # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.1.25...@thi.ng/dgraph@1.2.0) (2020-04-03) diff --git a/packages/dgraph/package.json b/packages/dgraph/package.json index c4186a9bf5..f30801e5d3 100644 --- a/packages/dgraph/package.json +++ b/packages/dgraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dgraph", - "version": "1.3.2", + "version": "1.3.3", "description": "Type-agnostic directed acyclic graph (DAG) & graph operations", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/diff/CHANGELOG.md b/packages/diff/CHANGELOG.md index d2e923db1c..b7dd793435 100644 --- a/packages/diff/CHANGELOG.md +++ b/packages/diff/CHANGELOG.md @@ -3,65 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.2.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.34...@thi.ng/diff@3.2.35) (2020-12-07) +# [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.35...@thi.ng/diff@4.0.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/diff - - - - - -## [3.2.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.33...@thi.ng/diff@3.2.34) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/diff - - - - - -## [3.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.32...@thi.ng/diff@3.2.33) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/diff - - - - - -## [3.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.31...@thi.ng/diff@3.2.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/diff - - - - - -## [3.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.30...@thi.ng/diff@3.2.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/diff - - - - - -## [3.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.29...@thi.ng/diff@3.2.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/diff - - - - - -## [3.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.28...@thi.ng/diff@3.2.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/diff +### Code Refactoring +* **diff:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace DiffMode enum ([cc77c71](https://github.com/thi-ng/umbrella/commit/cc77c711746eabebb4af58421282c50830613915)) +### BREAKING CHANGES -## [3.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.27...@thi.ng/diff@3.2.28) (2020-08-16) +* **diff:** replace DiffMode enum w/ type alias -**Note:** Version bump only for package @thi.ng/diff +- rename DiffMode.ONLY_DISTANCE_LINEAR_ONLY_CHANGES => "minimal" +- update diffObject() mode arg to only allow: "full" or "only-distance" diff --git a/packages/diff/README.md b/packages/diff/README.md index 1fd9f411f6..74315bd5de 100644 --- a/packages/diff/README.md +++ b/packages/diff/README.md @@ -14,8 +14,6 @@ This project is part of the - [Installation](#installation) - [Dependencies](#dependencies) - [API](#api) -- [Breaking changes](#breaking-changes) - - [2.0.0](#200) - [Authors](#authors) - [License](#license) @@ -43,7 +41,7 @@ yarn add @thi.ng/diff ``` -Package sizes (gzipped, pre-treeshake): ESM: 1.25 KB / CJS: 1.30 KB / UMD: 1.33 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.15 KB / CJS: 1.21 KB / UMD: 1.24 KB ## Dependencies @@ -55,9 +53,10 @@ Package sizes (gzipped, pre-treeshake): ESM: 1.25 KB / CJS: 1.30 KB / UMD: 1.33 [Generated API docs](https://docs.thi.ng/umbrella/diff/) ```ts -import { diffArray, DiffMode } from "@thi.ng/diff"; +import { diffArray } from "@thi.ng/diff"; -diffArray([1, 2, 3], [1, 2, 4], DiffMode.FULL); +// diff w/ default diff mode +diffArray([1, 2, 3], [1, 2, 4], "full"); // { // distance: 2, // adds: { 2: 4 }, @@ -67,20 +66,6 @@ diffArray([1, 2, 3], [1, 2, 4], DiffMode.FULL); // } ``` -## Breaking changes - -### 2.0.0 - -The linear edit logs of both `diffArray` and `diffObject` are now -returned as flat arrays, with each log entry consisting of 3 or 2 -successive array items. This is to avoid allocation of various small -arrays. - -The order of optional args to both functions has been swapped to: - -- `diffArray(old, new, mode?, equiv?)` -- `diffObject(old, new, mode?, equiv?)` - ## Authors Karsten Schmidt diff --git a/packages/diff/package.json b/packages/diff/package.json index 5f58e7db15..eb1395f235 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/diff", - "version": "3.2.35", + "version": "4.0.0", "description": "Customizable diff implementations for arrays (sequential) & objects (associative), with or without linear edit logs", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/equiv": "^1.0.33" + "@thi.ng/api": "^6.13.5", + "@thi.ng/equiv": "^1.0.34" }, "files": [ "*.js", diff --git a/packages/diff/src/api.ts b/packages/diff/src/api.ts index 136d0fc0e0..4bc2b9a5b5 100644 --- a/packages/diff/src/api.ts +++ b/packages/diff/src/api.ts @@ -1,5 +1,11 @@ import type { IObjectOf } from "@thi.ng/api"; +export type DiffMode = + | "only-distance" + | "only-distance-linear" + | "minimal" + | "full"; + export type DiffKeyMap = IObjectOf; export interface ArrayDiff { diff --git a/packages/diff/src/array.ts b/packages/diff/src/array.ts index 0741a8da8b..4789f09e0d 100644 --- a/packages/diff/src/array.ts +++ b/packages/diff/src/array.ts @@ -1,7 +1,6 @@ import type { FnU3, Nullable } from "@thi.ng/api"; import { equiv as _equiv } from "@thi.ng/equiv"; -import type { ArrayDiff, DiffKeyMap, EditLog } from "./api"; -import { DiffMode } from "./constants"; +import type { ArrayDiff, DiffKeyMap, DiffMode, EditLog } from "./api"; let _cachedFP: Nullable; let _cachedPath: Nullable; @@ -34,13 +33,13 @@ const simpleDiff = ( const n = src.length; const linear = >state.linear; state.distance = n; - if (mode !== DiffMode.ONLY_DISTANCE) { + if (mode !== "only-distance") { for (let i = 0, j = 0; i < n; i++, j += 3) { linear[j] = logDir; linear[j + 1] = i; linear[j + 2] = src[i]; } - if (mode === DiffMode.FULL) { + if (mode === "full") { const _state = >state[key]; for (let i = 0; i < n; i++) { _state[i] = src[i]; @@ -70,7 +69,7 @@ const simpleDiff = ( export const diffArray = ( a: ArrayLike | undefined | null, b: ArrayLike | undefined | null, - mode = DiffMode.FULL, + mode: DiffMode = "full", equiv = _equiv ) => { const state = >{ @@ -145,14 +144,14 @@ export const diffArray = ( state.distance = delta + 2 * p; - if (mode !== DiffMode.ONLY_DISTANCE) { + if (mode !== "only-distance") { p = path[doff] * 3; while (p >= 0) { epc.push(p); p = pathPos[p + 2] * 3; } - if (mode === DiffMode.FULL) { + if (mode === "full") { buildFullLog(epc, pathPos, state, _a, _b, reverse); } else { buildLinearLog( @@ -162,7 +161,7 @@ export const diffArray = ( _a, _b, reverse, - mode === DiffMode.ONLY_DISTANCE_LINEAR + mode === "only-distance-linear" ); } } diff --git a/packages/diff/src/constants.ts b/packages/diff/src/constants.ts deleted file mode 100644 index 8f7374c9eb..0000000000 --- a/packages/diff/src/constants.ts +++ /dev/null @@ -1,6 +0,0 @@ -export enum DiffMode { - ONLY_DISTANCE, - ONLY_DISTANCE_LINEAR, - ONLY_DISTANCE_LINEAR_ONLY_CHANGES, - FULL, -} diff --git a/packages/diff/src/index.ts b/packages/diff/src/index.ts index 7c4e490404..ac723d9b1a 100644 --- a/packages/diff/src/index.ts +++ b/packages/diff/src/index.ts @@ -1,4 +1,3 @@ export * from "./api"; export * from "./array"; -export * from "./constants"; export * from "./object"; diff --git a/packages/diff/src/object.ts b/packages/diff/src/object.ts index 64af87fadd..3701fc5b9c 100644 --- a/packages/diff/src/object.ts +++ b/packages/diff/src/object.ts @@ -1,17 +1,16 @@ import type { IObjectOf, Predicate2 } from "@thi.ng/api"; import { equiv } from "@thi.ng/equiv"; import type { ObjectDiff } from "./api"; -import { DiffMode } from "./constants"; export const diffObject = ( a: IObjectOf | undefined | null, b: IObjectOf | undefined | null, - mode = DiffMode.FULL, + mode: "full" | "only-distance" = "full", _equiv: Predicate2 = equiv ): ObjectDiff => a === b ? { distance: 0 } - : mode === DiffMode.ONLY_DISTANCE + : mode === "only-distance" ? diffObjectDist(a, b, _equiv) : diffObjectFull(a, b, _equiv); diff --git a/packages/diff/test/array.ts b/packages/diff/test/array.ts index feb19661db..279777ca9e 100644 --- a/packages/diff/test/array.ts +++ b/packages/diff/test/array.ts @@ -1,5 +1,5 @@ import * as assert from "assert"; -import { ArrayDiff, diffArray, DiffMode } from "../src"; +import { ArrayDiff, diffArray } from "../src"; describe("array", function () { const state = >{ @@ -70,11 +70,7 @@ describe("array", function () { it("diff insert 2nd last (changes only)", () => { assert.deepStrictEqual( - diffArray( - [1, 2, 3, 4], - [1, 2, 3, 5, 4], - DiffMode.ONLY_DISTANCE_LINEAR_ONLY_CHANGES - ), + diffArray([1, 2, 3, 4], [1, 2, 3, 5, 4], "minimal"), >{ distance: 1, adds: {}, diff --git a/packages/diff/tpl.readme.md b/packages/diff/tpl.readme.md index 56f9a0563b..4de521950b 100644 --- a/packages/diff/tpl.readme.md +++ b/packages/diff/tpl.readme.md @@ -38,9 +38,10 @@ ${examples} ${docLink} ```ts -import { diffArray, DiffMode } from "@thi.ng/diff"; +import { diffArray } from "@thi.ng/diff"; -diffArray([1, 2, 3], [1, 2, 4], DiffMode.FULL); +// diff w/ default diff mode +diffArray([1, 2, 3], [1, 2, 4], "full"); // { // distance: 2, // adds: { 2: 4 }, @@ -50,20 +51,6 @@ diffArray([1, 2, 3], [1, 2, 4], DiffMode.FULL); // } ``` -## Breaking changes - -### 2.0.0 - -The linear edit logs of both `diffArray` and `diffObject` are now -returned as flat arrays, with each log entry consisting of 3 or 2 -successive array items. This is to avoid allocation of various small -arrays. - -The order of optional args to both functions has been swapped to: - -- `diffArray(old, new, mode?, equiv?)` -- `diffObject(old, new, mode?, equiv?)` - ## Authors ${authors} diff --git a/packages/dl-asset/CHANGELOG.md b/packages/dl-asset/CHANGELOG.md index 79a17f1ef7..d7e338fc98 100644 --- a/packages/dl-asset/CHANGELOG.md +++ b/packages/dl-asset/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.8...@thi.ng/dl-asset@0.4.9) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.7...@thi.ng/dl-asset@0.4.8) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.6...@thi.ng/dl-asset@0.4.7) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.5...@thi.ng/dl-asset@0.4.6) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.4...@thi.ng/dl-asset@0.4.5) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.3...@thi.ng/dl-asset@0.4.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.2...@thi.ng/dl-asset@0.4.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dl-asset - - - - - -## [0.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.1...@thi.ng/dl-asset@0.4.2) (2020-08-16) +## [0.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.9...@thi.ng/dl-asset@0.4.10) (2020-12-22) **Note:** Version bump only for package @thi.ng/dl-asset diff --git a/packages/dl-asset/package.json b/packages/dl-asset/package.json index 9da920abcf..7540630d83 100644 --- a/packages/dl-asset/package.json +++ b/packages/dl-asset/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dl-asset", - "version": "0.4.9", + "version": "0.4.10", "description": "Local asset download for web apps, with automatic MIME type detection", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/mime": "^0.1.25" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/mime": "^0.1.26" }, "files": [ "*.js", diff --git a/packages/dlogic/CHANGELOG.md b/packages/dlogic/CHANGELOG.md index 6254ac3e2a..6a79aff401 100644 --- a/packages/dlogic/CHANGELOG.md +++ b/packages/dlogic/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.34...@thi.ng/dlogic@1.0.35) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.33...@thi.ng/dlogic@1.0.34) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.32...@thi.ng/dlogic@1.0.33) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.31...@thi.ng/dlogic@1.0.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.30...@thi.ng/dlogic@1.0.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.29...@thi.ng/dlogic@1.0.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.28...@thi.ng/dlogic@1.0.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dlogic - - - - - -## [1.0.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.27...@thi.ng/dlogic@1.0.28) (2020-08-16) +## [1.0.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.35...@thi.ng/dlogic@1.0.36) (2020-12-22) **Note:** Version bump only for package @thi.ng/dlogic diff --git a/packages/dlogic/package.json b/packages/dlogic/package.json index 0e0de7ffb8..d3f428ab7b 100644 --- a/packages/dlogic/package.json +++ b/packages/dlogic/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dlogic", - "version": "1.0.35", + "version": "1.0.36", "description": "Assorted digital logic ops / constructs", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/dot/CHANGELOG.md b/packages/dot/CHANGELOG.md index 55e5bad341..f5705d249a 100644 --- a/packages/dot/CHANGELOG.md +++ b/packages/dot/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.2.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.20...@thi.ng/dot@1.2.21) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.19...@thi.ng/dot@1.2.20) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.18...@thi.ng/dot@1.2.19) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.17...@thi.ng/dot@1.2.18) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.16...@thi.ng/dot@1.2.17) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.15...@thi.ng/dot@1.2.16) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.14...@thi.ng/dot@1.2.15) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dot - - - - - -## [1.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.13...@thi.ng/dot@1.2.14) (2020-08-16) +## [1.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.21...@thi.ng/dot@1.2.22) (2020-12-22) **Note:** Version bump only for package @thi.ng/dot diff --git a/packages/dot/package.json b/packages/dot/package.json index f8a159361f..08edea126c 100644 --- a/packages/dot/package.json +++ b/packages/dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dot", - "version": "1.2.21", + "version": "1.2.22", "description": "Graphviz document abstraction & serialization to DOT format", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12" }, "files": [ "*.js", diff --git a/packages/dsp-io-wav/CHANGELOG.md b/packages/dsp-io-wav/CHANGELOG.md index 8c0d2f2218..a7c5b10248 100644 --- a/packages/dsp-io-wav/CHANGELOG.md +++ b/packages/dsp-io-wav/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.32...@thi.ng/dsp-io-wav@0.1.33) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.31...@thi.ng/dsp-io-wav@0.1.32) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.30...@thi.ng/dsp-io-wav@0.1.31) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.29...@thi.ng/dsp-io-wav@0.1.30) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.28...@thi.ng/dsp-io-wav@0.1.29) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.27...@thi.ng/dsp-io-wav@0.1.28) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.26...@thi.ng/dsp-io-wav@0.1.27) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.25...@thi.ng/dsp-io-wav@0.1.26) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dsp-io-wav - - - - - -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.24...@thi.ng/dsp-io-wav@0.1.25) (2020-08-16) +## [0.1.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.33...@thi.ng/dsp-io-wav@0.1.34) (2020-12-22) **Note:** Version bump only for package @thi.ng/dsp-io-wav diff --git a/packages/dsp-io-wav/package.json b/packages/dsp-io-wav/package.json index 529dc27e88..3591ea764f 100644 --- a/packages/dsp-io-wav/package.json +++ b/packages/dsp-io-wav/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dsp-io-wav", - "version": "0.1.33", + "version": "0.1.34", "description": "WAV file format generation", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/transducers-binary": "^0.5.33" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/transducers-binary": "^0.6.0" }, "files": [ "*.js", diff --git a/packages/dsp/CHANGELOG.md b/packages/dsp/CHANGELOG.md index e317db3872..712a236256 100644 --- a/packages/dsp/CHANGELOG.md +++ b/packages/dsp/CHANGELOG.md @@ -3,41 +3,39 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.4...@thi.ng/dsp@2.1.5) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dsp - - - - - -## [2.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.3...@thi.ng/dsp@2.1.4) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dsp - - - - - -## [2.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.2...@thi.ng/dsp@2.1.3) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dsp - +# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.5...@thi.ng/dsp@3.0.0) (2020-12-22) +### Code Refactoring +* **adjacency:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enums w/ type aliases ([b9cfacb](https://github.com/thi-ng/umbrella/commit/b9cfacbbb67fcb89d72090bdad512edaffa1adcf)) -## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.1...@thi.ng/dsp@2.1.2) (2020-09-22) -**Note:** Version bump only for package @thi.ng/dsp +### Features +* **dsp:** add applyWindow(), windowBartlett() ([d51a17c](https://github.com/thi-ng/umbrella/commit/d51a17c10dd6cbfbb69bb1cf09f46e59d2dd8ba2)) +* **dsp:** add cos() stateless oscillator ([276c6b7](https://github.com/thi-ng/umbrella/commit/276c6b76a6b69498f3b37c94fc34c4915b95b9b6)) +* **dsp:** add power & integral fns ([88edaac](https://github.com/thi-ng/umbrella/commit/88edaac0b93fb811738cbfd06d41063d8c4b9aff)) +* **dsp:** add windowWelch(), add docs ([84cd476](https://github.com/thi-ng/umbrella/commit/84cd4763a2a897d6b15b21b680fe2c8bd15c9d4a)) +* **dsp:** add/update power & integral fns ([f455fad](https://github.com/thi-ng/umbrella/commit/f455fad649394cd386839d983d8ae25895f9f1a2)) +* **dsp:** add/update various FFT & spectrum fns (fix [#258](https://github.com/thi-ng/umbrella/issues/258)) ([e351acb](https://github.com/thi-ng/umbrella/commit/e351acb98b1c776a6c8efe9ba910c2ec3b2df831)) +### BREAKING CHANGES +* **adjacency:** replace filter type enums w/ type aliases -## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.0...@thi.ng/dsp@2.1.1) (2020-09-13) +- FilterType +- BiquadType +- SVFType +- OnepoleType +* **dsp:** new args for normalizeFFT(),denormalizeFFT(), spectrumPow() -**Note:** Version bump only for package @thi.ng/dsp +- add support for windowing adjustments in above functions +- add thresholdFFT() +- add copyComplex() +- update various real/complex checks using isComplex() +- update docs, add references @@ -54,22 +52,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.0.27...@thi.ng/dsp@2.0.28) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dsp - - - - - -## [2.0.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.0.26...@thi.ng/dsp@2.0.27) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/dsp - - - - - # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@1.0.18...@thi.ng/dsp@2.0.0) (2020-01-24) ### Code Refactoring diff --git a/packages/dsp/README.md b/packages/dsp/README.md index d625ead9c9..0c94d17291 100644 --- a/packages/dsp/README.md +++ b/packages/dsp/README.md @@ -72,7 +72,7 @@ yarn add @thi.ng/dsp ``` -Package sizes (gzipped, pre-treeshake): ESM: 6.75 KB / CJS: 7.22 KB / UMD: 6.73 KB +Package sizes (gzipped, pre-treeshake): ESM: 6.98 KB / CJS: 7.51 KB / UMD: 6.94 KB ## Dependencies @@ -515,19 +515,27 @@ Desmos](https://www.desmos.com/calculator/lkyf2ag3ta) to experiment. - `scaleFFT()` - `complexArray()` - `conjugate()` +- `powerSumSquared()` +- `powerMeanSquared()` +- `powerTimeIntegral()` - `spectrumMag()` - `spectrumPow()` (optionally as dBFS) - `spectrumPhase()` - `binFreq()` - `freqBin()` - `fftFreq()` +- `integralT()` / `integralTSquared()` +- `integralF()` / `integralFSquared()` #### Window functions [Source](https://github.com/thi-ng/umbrella/blob/develop/packages/dsp/src/fft/window.ts) - `window()` +- `applyWindow()` - `windowRect()` +- `windowBartlett()` +- `windowWelch()` - `windowSin()` - `windowSinPow()` - `windowLanczos()` diff --git a/packages/dsp/package.json b/packages/dsp/package.json index 1334fa68d0..f9ba04e3d3 100644 --- a/packages/dsp/package.json +++ b/packages/dsp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dsp", - "version": "2.1.5", + "version": "3.0.0", "description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib comp gen osc proc util", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib comp fft gen osc proc util", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/dsp/src/api.ts b/packages/dsp/src/api.ts index d3beadb02f..8a4cefdddc 100644 --- a/packages/dsp/src/api.ts +++ b/packages/dsp/src/api.ts @@ -43,3 +43,26 @@ export interface IFilter { */ filterCoeffs(): FilterConfig; } + +export type FilterType = + | "lp" + | "hp" + | "bp" + | "notch" + | "peak" + | "loshelf" + | "hishelf" + | "all"; + +export type BiquadType = + | "lp" + | "hp" + | "bp" + | "notch" + | "peak" + | "loshelf" + | "hishelf"; + +export type OnepoleType = "lp" | "hp"; + +export type SVFType = "lp" | "hp" | "bp" | "notch" | "peak" | "all"; diff --git a/packages/dsp/src/constants.ts b/packages/dsp/src/constants.ts deleted file mode 100644 index 0066c1b64d..0000000000 --- a/packages/dsp/src/constants.ts +++ /dev/null @@ -1,10 +0,0 @@ -export enum FilterType { - LP, - HP, - BP, - NOTCH, - PEAK, - LOSHELF, - HISHELF, - ALL, -} diff --git a/packages/dsp/src/fft/fft.ts b/packages/dsp/src/fft/fft.ts index e8fef487f1..0917e4cc24 100644 --- a/packages/dsp/src/fft/fft.ts +++ b/packages/dsp/src/fft/fft.ts @@ -1,9 +1,9 @@ import type { FnN3, NumericArray } from "@thi.ng/api"; -import { isNumber } from "@thi.ng/checks"; import type { ComplexArray } from "../api"; +import { isComplex } from "../util/complex"; import { magDb } from "../util/convert"; - -const PI = Math.PI; +import { invPowerScale, powerScale } from "./power"; +import { applyWindow } from "./window"; /** * Returns a new tuple of real/img F64 buffers of given size. @@ -15,6 +15,16 @@ export const complexArray = (n: number): ComplexArray => [ new Float64Array(n), ]; +/** + * Creates a deep copy of given {@link ComplexArray}. + * + * @param complex + */ +export const copyComplex = (complex: ComplexArray): ComplexArray => [ + complex[0].slice(), + complex[1].slice(), +]; + /** * If given a {@link ComplexArray}, computes the complex conjugate, * concatenates it in mirrored order to input (excluding bin 0) and @@ -62,15 +72,7 @@ export const complexArray = (n: number): ComplexArray => [ export function conjugate(src: NumericArray, isImg?: boolean): NumericArray; export function conjugate(complex: ComplexArray): ComplexArray; export function conjugate(src: NumericArray | ComplexArray, isImg = true): any { - if (isNumber(src[0])) { - const n = src.length; - const dest = new Float64Array(n * 2); - dest.set(src); - for (let i = 1, j = n * 2 - 1; i < n; i++, j--) { - dest[j] = isImg ? -(src)[i] : (src)[i]; - } - return dest; - } else { + if (isComplex(src)) { const n = src[0].length; const res = complexArray(n * 2); const [sreal, simg] = src; @@ -82,6 +84,14 @@ export function conjugate(src: NumericArray | ComplexArray, isImg = true): any { dimg[j] = -simg[i]; } return res; + } else { + const n = src.length; + const dest = new Float64Array(n * 2); + dest.set(src); + for (let i = 1, j = n * 2 - 1; i < n; i++, j--) { + dest[j] = isImg ? -(src)[i] : (src)[i]; + } + return dest; } } @@ -147,7 +157,7 @@ const transform = (real: NumericArray, img: NumericArray, n: number) => { step <<= 1; ur = 1; ui = 0; - t = PI / prevStep; + t = Math.PI / prevStep; wr = Math.cos(t); wi = -Math.sin(t); for (j = 1; j <= prevStep; j++) { @@ -192,19 +202,16 @@ export const fft = ( window?: NumericArray ): ComplexArray => { let real: NumericArray, img: NumericArray | undefined; - if (isNumber(complex[0])) { - real = complex; - } else { + if (isComplex(complex)) { real = complex[0]; img = complex[1]; + } else { + real = complex; } - const n = real.length; if (window) { - for (let i = 0; i < n; i++) { - real[i] *= window[i]; - } + applyWindow(real, window); } - + const n = real.length; if (img) { swapRI(real, img, n); } else { @@ -218,8 +225,9 @@ export const fft = ( }; /** - * Inverse FFT via computing forward transform with swapped - * real/imaginary components. Expects denormalized inputs. + * Inverse FFT via computing forward transform with swapped real/imaginary + * components. Expects denormalized inputs (i.e. the same as the result of + * {@link fft}). * * @remarks * @@ -228,9 +236,9 @@ export const fft = ( * @param complex */ export const ifft = (src: NumericArray | ComplexArray): ComplexArray => { - let complex: ComplexArray = isNumber(src[0]) - ? [new Float64Array(src.length), src] - : src; + let complex: ComplexArray = isComplex(src) + ? src + : [new Float64Array(src.length), src]; fft([complex[1], complex[0]]); return scaleFFT(complex, 1 / complex[0].length); }; @@ -248,15 +256,74 @@ export const scaleFFT = ( return [real, img]; }; -export const normalizeFFT = (complex: ComplexArray): ComplexArray => - scaleFFT(complex, 1 / Math.sqrt(complex[0].length)); +/** + * Normalizes the complex FFT array by scaling each complex bin value with given + * scale factor (or, if given as array, the scale factor derived from these + * window function samples). + * + * @remarks + * By default assumes a rectangular window and the resulting scale factor of 2 / + * N. + * + * References: + * - https://holometer.fnal.gov/GH_FFT.pdf + * + * @param complex + * @param window + */ +export const normalizeFFT = ( + complex: ComplexArray, + window: number | NumericArray = 2 / complex[0].length +): ComplexArray => scaleFFT(complex, powerScale(window, 2)); -export const denormalizeFFT = (complex: ComplexArray): ComplexArray => - scaleFFT(complex, Math.sqrt(complex[0].length)); +/** + * Inverse operation of {@link normalizeFFT}. De-normalizes the complex FFT + * array by scaling each complex bin value with given scale factor (or, if given + * as array, the scale factor derived from these window function samples). + * + * @remarks + * By default assumes a rectangular window and the resulting scale factor of N / + * 2. + * + * References: + * - https://holometer.fnal.gov/GH_FFT.pdf + * + * @param complex + * @param window + */ +export const denormalizeFFT = ( + complex: ComplexArray, + window: number | NumericArray = complex[0].length / 2 +): ComplexArray => scaleFFT(complex, invPowerScale(window, 2)); + +/** + * Computes the magnitude of each FFT bin and if less than given `eps` + * threshold, sets that bin to zero. Returns input FFT array. + * + * @remarks + * It's recommended to apply this function prior computing + * {@link spectrumPhase}. The `eps` value might have to be adjusted and should + * be approx. `max(spectrumMag(fft))/10000`. + * + * References: + * - https://www.gaussianwaves.com/2015/11/interpreting-fft-results-obtaining-magnitude-and-phase-information/ + * + * @param complex + * @param eps + */ +export const thresholdFFT = (complex: ComplexArray, eps = 1e-12) => { + const [real, img] = complex; + for (let i = 0, n = real.length; i < n; i++) { + if (Math.hypot(real[i], img[i]) < eps) { + real[i] = img[i] = 0; + } + } + return complex; +}; /** - * Computes magnitude spectrum for given FFT. By default only the first - * N/2 values are returned. + * Computes magnitude spectrum for given FFT: y(i) = abs(c(i)). By default only + * the first N/2 values are returned. * * @param complex - FFT result * @param n - bin count @@ -269,35 +336,48 @@ export const spectrumMag = ( ) => { const [real, img] = complex; for (let i = 0; i < n; i++) { - out[i] = Math.sqrt(real[i] ** 2 + img[i] ** 2); + out[i] = Math.hypot(real[i], img[i]); } return out; }; /** - * Computes power spectrum (optionally as dBFS) for the given raw, - * unnormalized FFT result arrays (length = N) and writes result to - * `out`. + * Computes power spectrum (optionally as dBFS) for the given FFT result arrays + * (length = N) and optional `window`. Writes result to `out` or a new array. * * @remarks - * By default only the first N/2 values are returned. If `db` is true, - * the spectrum values are converted to dBFS. + * If `window` is given (scale factor or array), it will be used as (if number) + * or to compute the scaling factor (if array) for each FFT bin's value. The + * default (`window=1`) is the equivalent to a rectangular window (i.e. a + * no-op). If windowing was used to compute the FFT, the same should be provided + * to this function for correct results. * + * **IMPORTANT:** If the FFT result has already been normalized using + * {@link normalizeFFT}, the scaling factor (`window` arg) MUST be set 1.0. + * + * By default only the first N/2 values are returned. If `db` is true, the + * spectrum values are converted to dBFS. + * + * - https://holometer.fnal.gov/GH_FFT.pdf + * - https://dsp.stackexchange.com/a/32080 + * - https://dsp.stackexchange.com/a/14935 * - https://www.kvraudio.com/forum/viewtopic.php?t=276092 * * @param complex * @param db + * @param window * @param n * @param out */ export const spectrumPow = ( complex: ComplexArray, db = false, + window: number | NumericArray = 2 / complex[0].length, n = complex[0].length / 2, out: NumericArray = [] ) => { const [real, img] = complex; - const scale = 1 / real.length; + const scale = powerScale(window, 2); for (let i = 0; i < n; i++) { const p = real[i] ** 2 + img[i] ** 2; out[i] = db ? magDb(Math.sqrt(p) * scale) : p * scale; @@ -306,8 +386,12 @@ export const spectrumPow = ( }; /** - * Computes phase spectrum for given FFT and writes results to `out`. By - * default only the first N/2 values are returned. + * Computes phase spectrum for given FFT and writes results to `out`. By default + * only the first N/2 values are returned. + * + * @remarks + * Consider applying {@link thresholdFFT} prior to computing the phase spectrum + * to avoid exploding floating point error magnitudes. * * @param complex - FFT result * @param n - bin count @@ -346,16 +430,17 @@ export const freqBin: FnN3 = (f, fs, n) => ((f * n) / fs) | 0; export const binFreq: FnN3 = (bin, fs, n) => (bin * fs) / n; /** - * Returns array of bin center frequencies for given FFT window size and - * sample rate. By default only the first N/2 values are returned. + * Returns array of bin center frequencies for given FFT window size and sample + * rate. By default only the first N/2+1 values are returned (`m` and including + * 0Hz). * - * @param n - * @param fs - * @param m + * @param n - window size + * @param fs - sample rate + * @param m - number of result values */ export const fftFreq = (n: number, fs: number, m = n / 2) => { const res = new Float64Array(m); - for (let i = 0; i < m; i++) { + for (let i = 0; i <= m; i++) { res[i] = binFreq(i, fs, n); } return res; diff --git a/packages/dsp/src/fft/power.ts b/packages/dsp/src/fft/power.ts new file mode 100644 index 0000000000..c7222762ea --- /dev/null +++ b/packages/dsp/src/fft/power.ts @@ -0,0 +1,121 @@ +import type { NumericArray } from "@thi.ng/api"; +import { isNumber } from "@thi.ng/checks"; +import type { ComplexArray } from "../api"; +import { isComplex } from "../util/complex"; + +/** + * Computes the sum of the given array. + * + * @param window + */ +export const integralT = (window: NumericArray) => { + let sum = 0; + for (let i = window.length; --i >= 0; ) { + sum += window[i]; + } + return sum; +}; + +/** + * Computes the squared sum of given array. + * + * @param window + */ +export const integralTSquared = (window: NumericArray) => { + let sum = 0; + for (let i = window.length; --i >= 0; ) { + sum += window[i] ** 2; + } + return sum; +}; + +/** + * Computes the `sum(|c(i)|)` for given complex array. + * + * @param window + */ +export const integralF = ([real, img]: ComplexArray) => { + let sum = 0; + for (let i = real.length; --i >= 0; ) { + sum += Math.hypot(real[i], img[i]); + } + return sum; +}; + +/** + * Computes the `sum(|c(i)|^2)` for given complex array. + * + * @param window + */ +export const integralFSquared = ([real, img]: ComplexArray) => { + let sum = 0; + for (let i = real.length; --i >= 0; ) { + sum += real[i] ** 2 + img[i] ** 2; + } + return sum; +}; + +/** + * If `scale` is a number, returns it. Else returns `base / integralT(scale)`. + * + * @param scale + * @param base + */ +export const powerScale = (scale: number | NumericArray, base = 1) => + isNumber(scale) ? scale : base / integralT(scale); + +/** + * If `scale` is a number, returns it. Else returns `integralT(scale) / base`. + * + * @param scale + * @param base + */ +export const invPowerScale = (scale: number | NumericArray, base = 1) => + isNumber(scale) ? scale : integralT(scale) / base; + +/** + * Computes sum squared power of given time or frequency domain window. + * + * @remarks + * References: + * - http://www.it.uom.gr/teaching/linearalgebra/NumericalRecipiesInC/c13-4.pdf + * - http://www.hep.ucl.ac.uk/~rjn/saltStuff/fftNormalisation.pdf + * + * @param window + */ +export const powerSumSquared = (window: NumericArray | ComplexArray) => + isComplex(window) + ? integralFSquared(window) / window[0].length + : integralTSquared(window); + +/** + * Computes mean squared power of given time or frequency domain window. + * + * @remarks + * References: + * - http://www.it.uom.gr/teaching/linearalgebra/NumericalRecipiesInC/c13-4.pdf + * - http://www.hep.ucl.ac.uk/~rjn/saltStuff/fftNormalisation.pdf + * + * @param window + */ +export const powerMeanSquared = (window: NumericArray | ComplexArray) => + powerSumSquared(window) / + (isComplex(window) ? window[0].length : window.length); + +/** + * Computes time-integral squared power of given time or frequency domain + * window. + * + * @remarks + * References: + * - http://www.it.uom.gr/teaching/linearalgebra/NumericalRecipiesInC/c13-4.pdf + * - http://www.hep.ucl.ac.uk/~rjn/saltStuff/fftNormalisation.pdf + * + * @param window + */ +export const powerTimeIntegral = ( + window: NumericArray | ComplexArray, + fs: number +) => + (isComplex(window) ? integralFSquared(window) : integralTSquared(window)) / + fs; diff --git a/packages/dsp/src/fft/window.ts b/packages/dsp/src/fft/window.ts index e834afd2a6..f5e9a25217 100644 --- a/packages/dsp/src/fft/window.ts +++ b/packages/dsp/src/fft/window.ts @@ -1,4 +1,4 @@ -import type { FloatArray, Fn, FnU3, FnU4 } from "@thi.ng/api"; +import type { FloatArray, Fn, FnU3, FnU4, NumericArray } from "@thi.ng/api"; import { isNumber } from "@thi.ng/checks"; import { PI, TAU } from "@thi.ng/math"; import type { WindowFn } from "../api"; @@ -27,8 +27,32 @@ export const window = (fn: WindowFn, lenOfBuf: number | FloatArray) => { return buf; }; +/** + * Takes a `signal` and `window` buffer and multiplies both elementwise. Writes + * results into `out` (or back into `signal` by default). + * + * @param signal + * @param window + * @param out + */ +export const applyWindow = ( + signal: NumericArray, + window: NumericArray, + out = signal +) => { + for (let i = signal.length; --i >= 0; ) { + out[i] = signal[i] * window[i]; + } + return out; +}; + export const windowRect: WindowFn = () => 1; +export const windowBartlett: WindowFn = (i, n) => + 1 - Math.abs((i - n / 2) / (n / 2)); + +export const windowWelch: WindowFn = (i, n) => 1 - ((i - n / 2) / (n / 2)) ** 2; + export const windowSin: WindowFn = (i, n) => sin((PI * i) / n); export const windowSinPow: Fn = (k) => (i, n) => diff --git a/packages/dsp/src/index.ts b/packages/dsp/src/index.ts index 796363ed0a..c62b6636f5 100644 --- a/packages/dsp/src/index.ts +++ b/packages/dsp/src/index.ts @@ -1,5 +1,4 @@ export * from "./api"; -export * from "./constants"; export * from "./comp/addg"; export * from "./comp/compp"; @@ -43,6 +42,7 @@ export * from "./proc/svf"; export * from "./proc/waveshaper"; export * from "./osc/additive"; +export * from "./osc/cos"; export * from "./osc/dsf"; export * from "./osc/mix"; export * from "./osc/parabolic"; @@ -53,8 +53,10 @@ export * from "./osc/tri"; export * from "./osc/wavetable"; export * from "./fft/fft"; +export * from "./fft/power"; export * from "./fft/window"; export * from "./util/anti-alias"; +export * from "./util/complex"; export * from "./util/convert"; export * from "./util/filter-response"; diff --git a/packages/dsp/src/osc/cos.ts b/packages/dsp/src/osc/cos.ts new file mode 100644 index 0000000000..3d8b17e81b --- /dev/null +++ b/packages/dsp/src/osc/cos.ts @@ -0,0 +1,5 @@ +import { TAU } from "@thi.ng/math"; +import type { StatelessOscillator } from "../api"; + +export const cos: StatelessOscillator = (phase, freq, amp = 1, dc = 0) => + dc + amp * Math.cos(phase * freq * TAU); diff --git a/packages/dsp/src/proc/biquad.ts b/packages/dsp/src/proc/biquad.ts index fea1cdab76..82b884d778 100644 --- a/packages/dsp/src/proc/biquad.ts +++ b/packages/dsp/src/proc/biquad.ts @@ -1,20 +1,10 @@ import type { IReset } from "@thi.ng/api"; import { unsupported } from "@thi.ng/errors"; import { clamp05, PI, SQRT2, SQRT2_2 } from "@thi.ng/math"; -import type { FilterConfig, IFilter } from "../api"; -import { FilterType } from "../constants"; +import type { BiquadType, FilterConfig, IFilter } from "../api"; import { dbMag } from "../util/convert"; import { AProc } from "./aproc"; -type BiquadType = - | FilterType.LP - | FilterType.HP - | FilterType.BP - | FilterType.NOTCH - | FilterType.PEAK - | FilterType.LOSHELF - | FilterType.HISHELF; - export const biquad = ( type: BiquadType, fc: number, @@ -22,26 +12,23 @@ export const biquad = ( gain?: number ) => new Biquad(type, fc, q, gain); -export const biquadLP = (fc: number, q?: number) => - new Biquad(FilterType.LP, fc, q); +export const biquadLP = (fc: number, q?: number) => new Biquad("lp", fc, q); -export const biquadHP = (fc: number, q?: number) => - new Biquad(FilterType.HP, fc, q); +export const biquadHP = (fc: number, q?: number) => new Biquad("hp", fc, q); -export const biquadBP = (fc: number, q?: number) => - new Biquad(FilterType.BP, fc, q); +export const biquadBP = (fc: number, q?: number) => new Biquad("bp", fc, q); export const biquadNotch = (fc: number, q?: number) => - new Biquad(FilterType.NOTCH, fc, q); + new Biquad("notch", fc, q); export const biquadPeak = (fc: number, q?: number, gain = 6) => - new Biquad(FilterType.PEAK, fc, q, gain); + new Biquad("peak", fc, q, gain); export const biquadLoShelf = (fc: number, gain = -6) => - new Biquad(FilterType.LOSHELF, fc, undefined, gain); + new Biquad("loshelf", fc, undefined, gain); export const biquadHiShelf = (fc: number, gain = -6) => - new Biquad(FilterType.HISHELF, fc, undefined, gain); + new Biquad("hishelf", fc, undefined, gain); export class Biquad extends AProc implements IReset, IFilter { protected _a0!: number; @@ -129,7 +116,7 @@ export class Biquad extends AProc implements IReset, IFilter { const ksqrt2v = k * Math.sqrt(2 * v); let norm = 1 / k2kqp1; switch (this._type) { - case FilterType.LP: + case "lp": this._a0 = k2 * norm; this._a1 = 2 * this._a0; this._a2 = this._a0; @@ -137,7 +124,7 @@ export class Biquad extends AProc implements IReset, IFilter { this._b2 = k2kqm1 * norm; break; - case FilterType.HP: + case "hp": this._a0 = norm; this._a1 = -2 * this._a0; this._a2 = this._a0; @@ -145,7 +132,7 @@ export class Biquad extends AProc implements IReset, IFilter { this._b2 = k2kqm1 * norm; break; - case FilterType.BP: + case "bp": this._a0 = kq * norm; this._a1 = 0; this._a2 = -this._a0; @@ -153,7 +140,7 @@ export class Biquad extends AProc implements IReset, IFilter { this._b2 = k2kqm1 * norm; break; - case FilterType.NOTCH: + case "notch": this._a0 = (1 + k2) * norm; this._a1 = k22 * norm; this._a2 = this._a0; @@ -161,7 +148,7 @@ export class Biquad extends AProc implements IReset, IFilter { this._b2 = k2kqm1 * norm; break; - case FilterType.PEAK: { + case "peak": { const z1 = 1 + kvq + k2; const z2 = 1 - kvq + k2; if (this._gain >= 0) { @@ -181,7 +168,7 @@ export class Biquad extends AProc implements IReset, IFilter { break; } - case FilterType.LOSHELF: { + case "loshelf": { const z1 = 1 + ksqrt2 + k2; const z2 = 1 - ksqrt2 + k2; const vk2 = v * k2; @@ -206,7 +193,7 @@ export class Biquad extends AProc implements IReset, IFilter { break; } - case FilterType.HISHELF: { + case "hishelf": { const z1 = 1 + ksqrt2 + k2; const z2 = 1 - ksqrt2 + k2; const y1 = v + ksqrt2v + k2; diff --git a/packages/dsp/src/proc/dcblock.ts b/packages/dsp/src/proc/dcblock.ts index 41f9516d3c..8dc3ad5c6a 100644 --- a/packages/dsp/src/proc/dcblock.ts +++ b/packages/dsp/src/proc/dcblock.ts @@ -1,4 +1,3 @@ -import { FilterType } from "../constants"; import { OnePole } from "./onepole"; /** @@ -6,7 +5,7 @@ import { OnePole } from "./onepole"; * * @param freq */ -export const dcBlock = (freq: number) => new DCBlock(FilterType.LP, freq); +export const dcBlock = (freq: number) => new DCBlock("lp", freq); export class DCBlock extends OnePole { next(x: number) { diff --git a/packages/dsp/src/proc/onepole.ts b/packages/dsp/src/proc/onepole.ts index 4eb311a598..d2ac1d7c12 100644 --- a/packages/dsp/src/proc/onepole.ts +++ b/packages/dsp/src/proc/onepole.ts @@ -1,14 +1,11 @@ import type { IClear, IReset } from "@thi.ng/api"; import { clamp05, TAU } from "@thi.ng/math"; -import type { FilterConfig, IFilter } from "../api"; -import { FilterType } from "../constants"; +import type { FilterConfig, IFilter, OnepoleType } from "../api"; import { AProc } from "./aproc"; -type OnepoleType = FilterType.LP | FilterType.HP; +export const onepoleLP = (fc: number) => new OnePole("lp", fc); -export const onepoleLP = (fc: number) => new OnePole(FilterType.LP, fc); - -export const onepoleHP = (fc: number) => new OnePole(FilterType.HP, fc); +export const onepoleHP = (fc: number) => new OnePole("hp", fc); /** * https://www.earlevel.com/main/2012/12/15/a-one-pole-filter/ @@ -39,7 +36,7 @@ export class OnePole setFreq(fc: number) { this._freq = fc = clamp05(fc); - if (this._type === FilterType.LP) { + if (this._type === "lp") { this._b1 = Math.exp(-TAU * fc); this._a0 = 1 - this._b1; } else { @@ -51,7 +48,7 @@ export class OnePole filterCoeffs(): FilterConfig { return { zeroes: [this._a0], - poles: [1, this._type === FilterType.LP ? this._b1 : -this._b1], + poles: [1, this._type === "lp" ? this._b1 : -this._b1], }; } } diff --git a/packages/dsp/src/proc/svf.ts b/packages/dsp/src/proc/svf.ts index cd9a87155a..47cadad660 100644 --- a/packages/dsp/src/proc/svf.ts +++ b/packages/dsp/src/proc/svf.ts @@ -1,30 +1,19 @@ import type { IReset } from "@thi.ng/api"; import { clamp05, PI } from "@thi.ng/math"; -import { FilterType } from "../constants"; +import type { SVFType } from "../api"; import { AProc } from "./aproc"; -type SVFType = - | FilterType.LP - | FilterType.HP - | FilterType.BP - | FilterType.NOTCH - | FilterType.PEAK - | FilterType.ALL; +export const svfLP = (fc: number, q?: number) => new SVF("lp", fc, q); -export const svfLP = (fc: number, q?: number) => new SVF(FilterType.LP, fc, q); +export const svfHP = (fc: number, q?: number) => new SVF("hp", fc, q); -export const svfHP = (fc: number, q?: number) => new SVF(FilterType.HP, fc, q); +export const svfBP = (fc: number, q?: number) => new SVF("bp", fc, q); -export const svfBP = (fc: number, q?: number) => new SVF(FilterType.BP, fc, q); +export const svfNotch = (fc: number, q?: number) => new SVF("notch", fc, q); -export const svfNotch = (fc: number, q?: number) => - new SVF(FilterType.NOTCH, fc, q); +export const svfPeak = (fc: number, q?: number) => new SVF("peak", fc, q); -export const svfPeak = (fc: number, q?: number) => - new SVF(FilterType.PEAK, fc, q); - -export const svfAllpass = (fc: number, q?: number) => - new SVF(FilterType.ALL, fc, q); +export const svfAllpass = (fc: number, q?: number) => new SVF("all", fc, q); /** * Multi-type state variable filter w/ trapezoidal integration, after @@ -66,17 +55,17 @@ export class SVF extends AProc implements IReset { this._c2 = 2 * x2 - _c2; // TODO support type morphing / interpolation? switch (this._type) { - case FilterType.LP: + case "lp": return (this._val = x2); - case FilterType.HP: + case "hp": return (this._val = x - this._k * x1 - x2); - case FilterType.BP: + case "bp": return (this._val = x1); - case FilterType.NOTCH: + case "notch": return (this._val = x - this._k * x1); - case FilterType.PEAK: + case "peak": return (this._val = 2 * x2 - x + this._k * x1); - case FilterType.ALL: + case "all": return (this._val = x - 2 * this._k * x1); } } diff --git a/packages/dsp/src/util/complex.ts b/packages/dsp/src/util/complex.ts new file mode 100644 index 0000000000..f6b94253d4 --- /dev/null +++ b/packages/dsp/src/util/complex.ts @@ -0,0 +1,7 @@ +import type { NumericArray } from "@thi.ng/api"; +import { isNumber } from "@thi.ng/checks"; +import type { ComplexArray } from "../api"; + +export const isComplex = ( + buf: NumericArray | ComplexArray +): buf is ComplexArray => !isNumber(buf[0]); diff --git a/packages/dsp/test/fft.ts b/packages/dsp/test/fft.ts index d60404d4f4..ba83503407 100644 --- a/packages/dsp/test/fft.ts +++ b/packages/dsp/test/fft.ts @@ -1,22 +1,35 @@ import type { NumericArray } from "@thi.ng/api"; +import { eqDelta, TAU } from "@thi.ng/math"; import * as assert from "assert"; import { + add, ComplexArray, - denormalizeFFT, + copyComplex, + cos, fft, + freqBin, ifft, + magDb, normalizeFFT, + osc, + powerMeanSquared, + powerSumSquared, + spectrumMag, spectrumPhase, spectrumPow, + window, + windowRect, } from "../src"; -const pulse8 = [-1, -1, -1, -1, 1, 1, 1, 1]; - const deltaEq = (a: NumericArray, b: NumericArray, eps = 1e-3) => { if (a.length != b.length) return false; eps **= 2; for (let i = a.length; --i >= 0; ) { - if ((a[i] - b[i]) ** 2 > eps) return false; + const diff = (a[i] - b[i]) ** 2; + if (diff > eps) { + console.log("deltaEq: ", i, diff); + return false; + } } return true; }; @@ -25,50 +38,45 @@ const deltaEqComplex = (a: ComplexArray, b: ComplexArray, eps?: number) => deltaEq(a[0], b[0], eps) && deltaEq(a[1], b[1], eps); describe("fft", () => { - it("pulse(8)", () => { - const res = fft([...pulse8]); - - assert.ok( - deltaEqComplex(res, [ - [0, -2, 0, -2, 0, -2, 0, -2], - [0, 4.828, 0, 0.828, 0, -0.828, 0, -4.828], - ]) - ); - - assert.ok( - deltaEqComplex(ifft(fft([...pulse8])), [ - pulse8, - [0, 0, 0, 0, 0, 0, 0, 0], - ]) - ); + it("roundtrip", () => { + const src = osc(cos, 64 / 512, 1).take(512); + const rev = ifft(fft([...src])); + assert(deltaEq(rev[0], src)); + }); - assert.ok( - deltaEqComplex( - ifft(denormalizeFFT(normalizeFFT(fft([...pulse8])))), - [pulse8, [0, 0, 0, 0, 0, 0, 0, 0]] - ) - ); + it("parseval", () => { + const FC = 64; + const FS = 512; + const A = 0.5; + const N = 2 * FS; + const I = freqBin(FC, FS, N); - const norm = normalizeFFT(fft([...pulse8])); + const src = osc(cos, add(FC / FS, 1 / 12), A).take(N); + const win = window(windowRect, N); + const fwd = fft([...src], win); + // parseval's theorem: sum(src[i]^2) = sum(|fft[i]|^2) / N + const sumT = src.reduce((acc, x) => acc + x * x, 0); + const sumF = + (fwd[0]).reduce( + (acc, x, i) => acc + x ** 2 + fwd[1][i] ** 2, + 0 + ) / N; - assert.ok( - deltaEqComplex(norm, [ - [0, -0.707, 0, -0.707, 0, -0.707, 0, -0.707], - [0, 1.707, 0, 0.293, 0, -0.293, 0, -1.707], - ]) - ); + assert(eqDelta(powerSumSquared(src), sumT), "sumT1"); + assert(eqDelta(powerSumSquared(fwd), sumF), "sumF1"); + assert(eqDelta(powerMeanSquared(src), sumT / N), "sumT2"); + assert(eqDelta(powerMeanSquared(fwd), sumF / N), "sumF2"); - assert.ok(deltaEq(spectrumPow(res, false), [0, 3.414, 0, 0.586])); + assert(eqDelta(spectrumMag(fwd)[I], 2 * sumF)); + assert(eqDelta(spectrumPow(fwd)[I], sumF)); + assert(eqDelta(spectrumPow(fwd, true)[I], magDb(A))); + assert(eqDelta(spectrumPhase(fwd)[I], (1 / 12) * TAU)); - assert.ok( - deltaEq(spectrumPow(res, true), [ - -Infinity, - -3.698, - -Infinity, - -11.354, - ]) - ); + const norm = normalizeFFT(copyComplex(fwd), win); - assert.ok(deltaEq(spectrumPhase(res), [0, 1.963, 0, 2.749])); + assert(eqDelta(spectrumMag(norm)[I], A)); + assert(eqDelta(spectrumPow(norm, false, 1)[I], A / 2)); + assert(eqDelta(spectrumPow(norm, true, 1)[I], magDb(A))); + assert(eqDelta(spectrumPhase(norm)[I], (1 / 12) * TAU)); }); }); diff --git a/packages/dsp/test/index.ts b/packages/dsp/test/index.ts deleted file mode 100644 index ede69a9bd0..0000000000 --- a/packages/dsp/test/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -// import * as assert from "assert"; -// import * as dsp from "../src"; - -describe("dsp", () => { - it("tests pending"); -}); diff --git a/packages/dsp/test/tsconfig.json b/packages/dsp/test/tsconfig.json index 43124565ec..ad9243e1b4 100644 --- a/packages/dsp/test/tsconfig.json +++ b/packages/dsp/test/tsconfig.json @@ -3,7 +3,9 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", - "isolatedModules": false + "isolatedModules": false, + "noUnusedParameters": false, + "noUnusedLocals": false }, "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/dsp/tpl.readme.md b/packages/dsp/tpl.readme.md index 71ff5729b3..ecfb5bf391 100644 --- a/packages/dsp/tpl.readme.md +++ b/packages/dsp/tpl.readme.md @@ -462,19 +462,27 @@ Desmos](https://www.desmos.com/calculator/lkyf2ag3ta) to experiment. - `scaleFFT()` - `complexArray()` - `conjugate()` +- `powerSumSquared()` +- `powerMeanSquared()` +- `powerTimeIntegral()` - `spectrumMag()` - `spectrumPow()` (optionally as dBFS) - `spectrumPhase()` - `binFreq()` - `freqBin()` - `fftFreq()` +- `integralT()` / `integralTSquared()` +- `integralF()` / `integralFSquared()` #### Window functions [Source](https://github.com/thi-ng/umbrella/blob/develop/packages/dsp/src/fft/window.ts) - `window()` +- `applyWindow()` - `windowRect()` +- `windowBartlett()` +- `windowWelch()` - `windowSin()` - `windowSinPow()` - `windowLanczos()` diff --git a/packages/dual-algebra/CHANGELOG.md b/packages/dual-algebra/CHANGELOG.md index c481d8f33a..abee0c31c4 100644 --- a/packages/dual-algebra/CHANGELOG.md +++ b/packages/dual-algebra/CHANGELOG.md @@ -3,31 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.3...@thi.ng/dual-algebra@0.1.4) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dual-algebra - - - - - -## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.2...@thi.ng/dual-algebra@0.1.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dual-algebra - - - - - -## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.1...@thi.ng/dual-algebra@0.1.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dual-algebra - - - - - -## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.0...@thi.ng/dual-algebra@0.1.1) (2020-09-22) +## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.4...@thi.ng/dual-algebra@0.1.5) (2020-12-22) **Note:** Version bump only for package @thi.ng/dual-algebra diff --git a/packages/dual-algebra/package.json b/packages/dual-algebra/package.json index 4a8e2edca7..8a009c3137 100644 --- a/packages/dual-algebra/package.json +++ b/packages/dual-algebra/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dual-algebra", - "version": "0.1.4", + "version": "0.1.5", "description": "Multivariate dual number algebra, automatic differentiation", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/dynvar/CHANGELOG.md b/packages/dynvar/CHANGELOG.md index f0984ddf75..8c4daa5259 100644 --- a/packages/dynvar/CHANGELOG.md +++ b/packages/dynvar/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.26...@thi.ng/dynvar@0.1.27) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.25...@thi.ng/dynvar@0.1.26) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.24...@thi.ng/dynvar@0.1.25) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.23...@thi.ng/dynvar@0.1.24) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.22...@thi.ng/dynvar@0.1.23) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.21...@thi.ng/dynvar@0.1.22) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.20...@thi.ng/dynvar@0.1.21) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/dynvar - - - - - -## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.19...@thi.ng/dynvar@0.1.20) (2020-08-16) +## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.27...@thi.ng/dynvar@0.1.28) (2020-12-22) **Note:** Version bump only for package @thi.ng/dynvar diff --git a/packages/dynvar/package.json b/packages/dynvar/package.json index 92427b18a8..8bf7704e7e 100644 --- a/packages/dynvar/package.json +++ b/packages/dynvar/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dynvar", - "version": "0.1.27", + "version": "0.1.28", "description": "Dynamically scoped variable bindings", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib api decorators mixins", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/ecs/CHANGELOG.md b/packages/ecs/CHANGELOG.md index 3f8e928a12..0dbe9141d9 100644 --- a/packages/ecs/CHANGELOG.md +++ b/packages/ecs/CHANGELOG.md @@ -3,23 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.4.2...@thi.ng/ecs@0.4.3) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - -## [0.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.4.1...@thi.ng/ecs@0.4.2) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - -## [0.4.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.4.0...@thi.ng/ecs@0.4.1) (2020-11-24) +## [0.4.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.4.3...@thi.ng/ecs@0.4.4) (2020-12-22) **Note:** Version bump only for package @thi.ng/ecs @@ -38,46 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.3.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.33...@thi.ng/ecs@0.3.34) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - -## [0.3.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.32...@thi.ng/ecs@0.3.33) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - -## [0.3.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.31...@thi.ng/ecs@0.3.32) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - -## [0.3.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.30...@thi.ng/ecs@0.3.31) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - -## [0.3.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.29...@thi.ng/ecs@0.3.30) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/ecs - - - - - # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.2.0...@thi.ng/ecs@0.3.0) (2020-01-24) ### Bug Fixes diff --git a/packages/ecs/package.json b/packages/ecs/package.json index 01874f15d4..3d50b46a1d 100644 --- a/packages/ecs/package.json +++ b/packages/ecs/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ecs", - "version": "0.4.3", + "version": "0.4.4", "description": "Entity Component System based around typed arrays & sparse sets", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib caches components groups", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", @@ -39,25 +39,25 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/equiv": "^1.0.33", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/equiv": "^1.0.34", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/idgen": "^0.2.27", - "@thi.ng/malloc": "^4.2.3", - "@thi.ng/transducers": "^7.5.2", + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/idgen": "^0.2.28", + "@thi.ng/malloc": "^4.2.4", + "@thi.ng/transducers": "^7.5.3", "tslib": "2.0.1" }, "files": [ @@ -65,7 +65,7 @@ "*.d.ts", "lib", "caches", - "component", + "components", "groups" ], "keywords": [ diff --git a/packages/egf/CHANGELOG.md b/packages/egf/CHANGELOG.md index 5f50c11930..568f4fbdbd 100644 --- a/packages/egf/CHANGELOG.md +++ b/packages/egf/CHANGELOG.md @@ -3,31 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.3...@thi.ng/egf@0.3.4) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/egf - - - - - -## [0.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.2...@thi.ng/egf@0.3.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/egf - - - - - -## [0.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.1...@thi.ng/egf@0.3.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/egf - - - - - -## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.0...@thi.ng/egf@0.3.1) (2020-10-19) +## [0.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.4...@thi.ng/egf@0.3.5) (2020-12-22) **Note:** Version bump only for package @thi.ng/egf diff --git a/packages/egf/package.json b/packages/egf/package.json index c681dd829d..0fb144fdc9 100644 --- a/packages/egf/package.json +++ b/packages/egf/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/egf", - "version": "0.3.4", + "version": "0.3.5", "description": "Extensible Graph Format", "module": "./index.js", "main": "./lib/index.js", @@ -34,25 +34,25 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/equiv": "^1.0.33", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/equiv": "^1.0.34", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/dot": "^1.2.21", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/prefixes": "^0.1.8", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers-binary": "^0.5.33" + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/dot": "^1.2.22", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/prefixes": "^0.1.9", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers-binary": "^0.6.0" }, "files": [ "*.js", diff --git a/packages/equiv/CHANGELOG.md b/packages/equiv/CHANGELOG.md index a7af4aa4cf..6256771ff7 100644 --- a/packages/equiv/CHANGELOG.md +++ b/packages/equiv/CHANGELOG.md @@ -3,47 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.32...@thi.ng/equiv@1.0.33) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/equiv - - - - - -## [1.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.31...@thi.ng/equiv@1.0.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/equiv - - - - - -## [1.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.30...@thi.ng/equiv@1.0.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/equiv - - - - - -## [1.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.29...@thi.ng/equiv@1.0.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/equiv - - - - - -## [1.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.28...@thi.ng/equiv@1.0.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/equiv - - - - - -## [1.0.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.27...@thi.ng/equiv@1.0.28) (2020-08-16) +## [1.0.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.33...@thi.ng/equiv@1.0.34) (2020-12-22) **Note:** Version bump only for package @thi.ng/equiv diff --git a/packages/equiv/package.json b/packages/equiv/package.json index 7b91950317..8eaae3f033 100644 --- a/packages/equiv/package.json +++ b/packages/equiv/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/equiv", - "version": "1.0.33", + "version": "1.0.34", "description": "Extensible deep value equivalence checking for any data types", "module": "./index.js", "main": "./lib/index.js", @@ -39,15 +39,15 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "benchmark": "^2.1.4", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index 6754ef9424..0c59db14c8 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.23...@thi.ng/errors@1.2.24) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/errors - - - - - -## [1.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.22...@thi.ng/errors@1.2.23) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/errors - - - - - -## [1.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.21...@thi.ng/errors@1.2.22) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/errors - - - - - -## [1.2.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.20...@thi.ng/errors@1.2.21) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/errors - - - - - -## [1.2.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.19...@thi.ng/errors@1.2.20) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/errors - - - - - -## [1.2.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.18...@thi.ng/errors@1.2.19) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/errors - - - - - -## [1.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.17...@thi.ng/errors@1.2.18) (2020-08-16) +## [1.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.24...@thi.ng/errors@1.2.25) (2020-12-22) **Note:** Version bump only for package @thi.ng/errors diff --git a/packages/errors/package.json b/packages/errors/package.json index 5fe606a236..7e28d154ce 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/errors", - "version": "1.2.24", + "version": "1.2.25", "description": "Custom error types and error factory functions", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/fsm/CHANGELOG.md b/packages/fsm/CHANGELOG.md index c6a4954bf3..9740d59a6e 100644 --- a/packages/fsm/CHANGELOG.md +++ b/packages/fsm/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.4.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.28...@thi.ng/fsm@2.4.29) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.27...@thi.ng/fsm@2.4.28) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.26...@thi.ng/fsm@2.4.27) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.25...@thi.ng/fsm@2.4.26) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.24...@thi.ng/fsm@2.4.25) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.23...@thi.ng/fsm@2.4.24) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.22...@thi.ng/fsm@2.4.23) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.21...@thi.ng/fsm@2.4.22) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/fsm - - - - - -## [2.4.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.20...@thi.ng/fsm@2.4.21) (2020-08-16) +## [2.4.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.29...@thi.ng/fsm@2.4.30) (2020-12-22) **Note:** Version bump only for package @thi.ng/fsm diff --git a/packages/fsm/package.json b/packages/fsm/package.json index 1b3a223443..49fa3ec98c 100644 --- a/packages/fsm/package.json +++ b/packages/fsm/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fsm", - "version": "2.4.29", + "version": "2.4.30", "description": "Composable primitives for building declarative, transducer based Finite-State Machines & matchers for arbitrary data streams", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/fuzzy-viz/CHANGELOG.md b/packages/fuzzy-viz/CHANGELOG.md new file mode 100644 index 0000000000..ed8d761581 --- /dev/null +++ b/packages/fuzzy-viz/CHANGELOG.md @@ -0,0 +1,18 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# 0.1.0 (2020-12-22) + + +### Bug Fixes + +* **fuzzy-viz:** update imports ([22f37a5](https://github.com/thi-ng/umbrella/commit/22f37a526acd6911720100e77ad41029d8799004)) + + +### Features + +* **fuzzy-viz:** add/update instrumentStrategy() & co ([131d137](https://github.com/thi-ng/umbrella/commit/131d13776735e3dd222090a6b514bfbe4878d9f2)) +* **fuzzy-viz:** add/update viz options, fix zero marker ([bee9cd0](https://github.com/thi-ng/umbrella/commit/bee9cd08b32ce43cc6661146dd87f35db9516559)) +* **fuzzy-viz:** import as new pkg ([8b23934](https://github.com/thi-ng/umbrella/commit/8b239347894bf8c7192890151868ecdb1ac3bf2b)) diff --git a/packages/fuzzy-viz/LICENSE b/packages/fuzzy-viz/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/packages/fuzzy-viz/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/fuzzy-viz/README.md b/packages/fuzzy-viz/README.md new file mode 100644 index 0000000000..a0c621cc03 --- /dev/null +++ b/packages/fuzzy-viz/README.md @@ -0,0 +1,158 @@ + + +# ![fuzzy-viz](https://media.thi.ng/umbrella/banners/thing-fuzzy-viz.svg?1ebd05a8) + +[![npm version](https://img.shields.io/npm/v/@thi.ng/fuzzy-viz.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy-viz) +![npm downloads](https://img.shields.io/npm/dm/@thi.ng/fuzzy-viz.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + +- [About](#about) + - [Status](#status) +- [Installation](#installation) +- [Dependencies](#dependencies) +- [API](#api) + - [Linguistic variable visualization](#linguistic-variable-visualization) + - [Instrument a DefuzzStrategy](#instrument-a-defuzzstrategy) +- [Authors](#authors) +- [License](#license) + +## About + +Visualization, instrumentation & introspection utils for [@thi.ng/fuzzy](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy). + +### Status + +**ALPHA** - bleeding edge / work-in-progress + +[Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bfuzzy-viz%5D+in%3Atitle) + +## Installation + +```bash +yarn add @thi.ng/fuzzy-viz +``` + +```html +// ES module + + +// UMD + +``` + +Package sizes (gzipped, pre-treeshake): ESM: 1.04 KB / CJS: 1.12 KB / UMD: 1.23 KB + +## Dependencies + +- [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) +- [@thi.ng/fuzzy](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy) +- [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) +- [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-svg) +- [@thi.ng/math](https://github.com/thi-ng/umbrella/tree/develop/packages/math) +- [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings) +- [@thi.ng/text-canvas](https://github.com/thi-ng/umbrella/tree/develop/packages/text-canvas) + +## API + +[Generated API docs](https://docs.thi.ng/umbrella/fuzzy-viz/) + +### Linguistic variable visualization + +Generate an SVG visualization of all fuzzy sets defined in a [linguistic +variable](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy#linguistic-variables): + +![fuzzy set visualization of the example l-var](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/temperature-lvar-2.svg) + +```ts +import { varToSvg } from "@thi.ng/fuzzy-viz"; + +// temperature sets (in celsius) +const temp = variable( + [-20, 40], + { + freezing: invSigmoid(0, 2), + cold: trapezoid(-1, 2, 16, 20), + warm: trapezoid(15, 20, 30, 34), + hot: sigmoid(32, 2) + } +); + +// generate & write SVG file +writeFileSync("temperature.svg", varToSvg(temp, { samples: 200 })); +``` + +See +[`VizualizeVarOpts`](https://github.com/thi-ng/umbrella/blob/develop/packages/fuzzy-viz/src/api.ts) +for further options to configure the visualization. + +### Instrument a DefuzzStrategy + +`instrumentStrategy()` is an higher order function. It takes an existing +`DefuzzStrategy` and an instrumentation function. Returns new `DefuzzStrategy` +which first executes original `strategy`, then calls `instrument` with the same +args AND the computed result obtained from `strategy`. Returns result of +original `strategy`. + +The instrumentation function is intended to perform side effects (e.g. debug +outputs) and/or produce secondary results (e.g. visualizations). The latter can +be obtained through the `IDeref` mechanism implemented by the returned function. +Since `defuzz()` might call the strategy multiple times (i.e. if there are +multiple output vars used), `.deref()` will always return an array of secondary +results. + +**Note:** The secondary results from the instrumentation function will persist & +accumulate. If re-using the instrumented strategy for multiple `defuzz()` +invocations, it's highly recommended to clear any previous results using +`.clear()`. + +```ts +const strategy = instrumentStrategy( + cogStrategy({ samples: 1000 }), + fuzzySetToAscii({ width: 40, height: 8 }) +); + +// apply strategy as normal (well, usually done via defuzz()) +strategy(gaussian(5, 2), [0, 10]); +// 4.995 + +strategy.deref().forEach((viz) => console.log(viz)); +// .................▄▆█|█▆▄................. +// ...............▅████|████▅............... +// .............▄██████|██████▄............. +// ...........▂▇███████|███████▇▂........... +// ..........▅█████████|█████████▅.......... +// .......▁▅███████████|███████████▅▁....... +// .....▃▆█████████████|█████████████▆▃..... +// ▃▄▅▇████████████████|████████████████▇▅▄▃ +// ^ 5.00 + +// cleanup (optional) +strategy.clear(); +``` + +Using `fuzzySetToHiccup()`/`fuzzySetToSvg()` visualizations like below can be +created following the same pattern as above: + +![fuzzySetToSvg() visualization example](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/strategy-viz.svg) + +## Authors + +Karsten Schmidt + +If this project contributes to an academic publication, please cite it as: + +```bibtex +@misc{thing-fuzzy-viz, + title = "@thi.ng/fuzzy-viz", + author = "Karsten Schmidt", + note = "https://thi.ng/fuzzy-viz", + year = 2020 +} +``` + +## License + +© 2020 Karsten Schmidt // Apache Software License 2.0 diff --git a/packages/fuzzy-viz/api-extractor.json b/packages/fuzzy-viz/api-extractor.json new file mode 100644 index 0000000000..94972e6bed --- /dev/null +++ b/packages/fuzzy-viz/api-extractor.json @@ -0,0 +1,3 @@ +{ + "extends": "../../api-extractor.json" +} diff --git a/packages/fuzzy-viz/package.json b/packages/fuzzy-viz/package.json new file mode 100644 index 0000000000..6a17a5d86a --- /dev/null +++ b/packages/fuzzy-viz/package.json @@ -0,0 +1,87 @@ +{ + "name": "@thi.ng/fuzzy-viz", + "version": "0.1.0", + "description": "Visualization, instrumentation & introspection utils for @thi.ng/fuzzy", + "module": "./index.js", + "main": "./lib/index.js", + "umd:main": "./lib/index.umd.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/thi-ng/umbrella.git" + }, + "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/fuzzy-viz#readme", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/postspectacular" + }, + { + "type": "patreon", + "url": "https://patreon.com/thing_umbrella" + } + ], + "author": "Karsten Schmidt ", + "license": "Apache-2.0", + "scripts": { + "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module", + "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all", + "build:es6": "tsc --declaration", + "build:test": "rimraf build && tsc -p test/tsconfig.json", + "build:check": "tsc --isolatedModules --noEmit", + "test": "mocha test", + "cover": "nyc mocha test && nyc report --reporter=lcov", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", + "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", + "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", + "pub": "yarn build:release && yarn publish --access public" + }, + "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^1.0.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", + "mocha": "^8.2.1", + "nyc": "^15.1.0", + "ts-node": "^9.1.1", + "typedoc": "^0.19.2", + "typescript": "^4.1.3" + }, + "dependencies": { + "@thi.ng/api": "^6.13.5", + "@thi.ng/fuzzy": "^0.1.0", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/hiccup-svg": "^3.6.6", + "@thi.ng/math": "^3.0.0", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/text-canvas": "^0.2.36" + }, + "files": [ + "*.js", + "*.d.ts", + "lib" + ], + "keywords": [ + "area plot", + "ascii", + "debug", + "fuzzy", + "hiccup", + "inspect", + "instrumentation", + "logic", + "svg", + "typescript", + "visualization" + ], + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "thi.ng": { + "parent": "@thi.ng/fuzzy", + "status": "alpha", + "year": 2020 + } +} diff --git a/packages/fuzzy-viz/src/api.ts b/packages/fuzzy-viz/src/api.ts new file mode 100644 index 0000000000..400b71da5b --- /dev/null +++ b/packages/fuzzy-viz/src/api.ts @@ -0,0 +1,62 @@ +import type { Fn, Fn3 } from "@thi.ng/api"; +import type { FuzzyFn, LVarDomain } from "@thi.ng/fuzzy"; + +export type InstrumentFn = Fn3; + +export interface AsciiVizOpts { + /** + * Width in characters + * + * @defaultValue 100 + */ + width: number; + /** + * Height in characters + * + * @defaultValue 16 + */ + height: number; + /** + * Char to use for empty space + * + * @defaultValue "." + */ + empty: string; +} + +export interface VizualizeVarOpts { + /** + * Number of samples to evaluate for each fuzzy set. + * + * @defaultValue 200 + */ + samples: number; + /** + * Visualization width + * + * @defaultValue 600 + */ + width: number; + /** + * Visualization height + * + * @defaultValue 100 + */ + height: number; + /** + * If true, includes a legend of color coded labels of the fuzzy sets. + * + * @defaultValue true + */ + labels: boolean; + /** + * Color factory function. Converts number in [0..1) interval into an CSS + * color string. + */ + stroke: Fn; + /** + * Color factory function. Converts number in [0..1) interval into an CSS + * color string. + */ + fill: Fn; +} diff --git a/packages/fuzzy-viz/src/index.ts b/packages/fuzzy-viz/src/index.ts new file mode 100644 index 0000000000..b3ec9b1356 --- /dev/null +++ b/packages/fuzzy-viz/src/index.ts @@ -0,0 +1,2 @@ +export * from "./strategy"; +export * from "./var"; diff --git a/packages/fuzzy-viz/src/strategy.ts b/packages/fuzzy-viz/src/strategy.ts new file mode 100644 index 0000000000..1eb68b4cfb --- /dev/null +++ b/packages/fuzzy-viz/src/strategy.ts @@ -0,0 +1,127 @@ +import type { Fn3, IClear, IDeref } from "@thi.ng/api"; +import { DefuzzStrategy, FuzzyFn, LVarDomain, variable } from "@thi.ng/fuzzy"; +import { serialize } from "@thi.ng/hiccup"; +import { convertTree } from "@thi.ng/hiccup-svg"; +import { fit } from "@thi.ng/math"; +import { repeat } from "@thi.ng/strings"; +import { barChartHStr } from "@thi.ng/text-canvas"; +import type { AsciiVizOpts, InstrumentFn, VizualizeVarOpts } from "./api"; +import { varToHiccup } from "./var"; + +/** + * Higher order function. Takes an existing {@link @thi.ng/fuzzy#DefuzzStrategy} + * and an instrumentation function. Returns new `DefuzzStrategy` which first + * executes original `strategy`, then calls `instrument` with the same args AND + * the computed result obtained from `strategy`. Returns result of original + * `strategy`. + * + * @remarks + * The instrumentation function is intended to perform side effects (e.g. debug + * outputs) and/or produce secondary results (e.g. visualizations). The latter + * can be obtained through the {@link @thi.ng/api#IDeref} mechanism implemented + * by the returned function. Since {@link defuzz} might call the strategy + * multiple times (i.e. if there are multiple output vars used), `.deref()` will + * always return an array of secondary results. + * + * Note: The secondary results from the instrumentation function will persist & + * accumulate. If re-using the instrumented strategy for multiple `defuzz()` + * invocations, it's highly recommended to clear any previous results using + * `.clear()`. + * + * @example + * ```ts + * const strategy = instrumentStrategy( + * cogStrategy({ samples: 1000 }), + * fuzzySetToAscii({ width: 40, height: 8 }) + * ); + * + * strategy(gaussian(5, 2), [0, 10]); + * // 4.995 + * + * console.log(strategy.deref()[0]) + * // .................▄▆█|█▆▄................. + * // ...............▅████|████▅............... + * // .............▄██████|██████▄............. + * // ...........▂▇███████|███████▇▂........... + * // ..........▅█████████|█████████▅.......... + * // .......▁▅███████████|███████████▅▁....... + * // .....▃▆█████████████|█████████████▆▃..... + * // ▃▄▅▇████████████████|████████████████▇▅▄▃ + * // ^ 5.00 + * + * // cleanup (optional) + * strategy.clear(); + * ``` + * + * @param strategy + * @param instrument + */ +export const instrumentStrategy = ( + strategy: DefuzzStrategy, + instrument: Fn3 +) => { + const acc: T[] = []; + const impl: DefuzzStrategy & IClear & IDeref = (fn, domain) => { + const res = strategy(fn, domain); + acc.push(instrument(fn, domain, res)); + return res; + }; + impl.clear = () => (acc.length = 0); + impl.deref = () => acc; + return impl; +}; + +export const fuzzySetToHiccup = ( + opts?: Partial +): InstrumentFn => (fn, domain, res) => { + const tree = varToHiccup(variable(domain, { main: fn }), { + labels: false, + stroke: () => "#333", + fill: () => "#999", + ...opts, + }); + const { width, height } = tree[1]; + const x = fit(res, domain[0], domain[1], 0, width); + tree.push([ + "g", + { translate: [x, 0] }, + ["line", { stroke: "red" }, [0, 0], [0, height - 12]], + [ + "text", + { align: "center", fill: "red" }, + [0, height - 2], + res.toFixed(2), + ], + ]); + return tree; +}; + +export const fuzzySetToSvg = ( + opts?: Partial +): InstrumentFn => (fn, domain, res) => + serialize(convertTree(fuzzySetToHiccup(opts)(fn, domain, res))); + +export const fuzzySetToAscii = ( + opts?: Partial +): InstrumentFn => (fn, domain, res) => { + const { width, height, empty } = { + width: 100, + height: 16, + empty: ".", + ...opts, + }; + const [min, max] = domain; + const delta = (max - min) / width; + const vals: number[] = []; + for (let i = min; i <= max; i += delta) { + vals.push(fn(i)); + } + const index = Math.round(fit(res, min, max, 0, vals.length)); + let chart = barChartHStr(height, vals, 0, 1) + .split("\n") + .map((line) => line.substr(0, index) + "|" + line.substr(index + 1)) + .join("\n") + .replace(/ /g, empty); + const legend = repeat(" ", index) + "^ " + res.toFixed(2); + return chart + "\n" + legend; +}; diff --git a/packages/fuzzy-viz/src/var.ts b/packages/fuzzy-viz/src/var.ts new file mode 100644 index 0000000000..2eb977189f --- /dev/null +++ b/packages/fuzzy-viz/src/var.ts @@ -0,0 +1,117 @@ +import type { LVar } from "@thi.ng/fuzzy"; +import { serialize } from "@thi.ng/hiccup"; +import { convertTree, svg } from "@thi.ng/hiccup-svg"; +import { fit, inRange } from "@thi.ng/math"; +import type { VizualizeVarOpts } from "./api"; + +/** + * Takes an {@link @thi.ng/fuzzy#LVar} and visualization options. Evaluates all + * of the var's fuzzy sets in the var's value domain and visualizes them as + * polygons. Returns a {@link @thi.ng/hiccup-canvas#} compatible shape component + * tree. + * + * @param var + * @param opts + */ +export const varToHiccup = ( + { domain: [min, max], terms }: LVar, + opts: Partial = {} +) => { + const { samples, width, height, labels, stroke: strokeFn, fill: fillFn } = { + samples: 200, + width: 600, + height: 100, + labels: true, + stroke: (x: number) => `hsl(${(x * 360) | 0},100%,40%)`, + fill: (x: number) => `hsla(${(x * 360) | 0},100%,50%,20%)`, + ...opts, + }; + const keys = Object.keys(terms); + const dt = (max - min) / samples; + const ds = width / samples; + const dn = 1 / keys.length; + const curves: any[] = []; + const legend: any[] = []; + for (let i = 0; i < keys.length; i++) { + const id = keys[i]; + const f = terms[id]; + const y = (i + 1) * 12; + const stroke = strokeFn(i * dn); + const curr: number[][] = []; + for (let i = 0; i <= samples; i++) { + curr.push([i * ds, (1 - f(min + i * dt)) * height]); + } + curr.push([width, height], [0, height]); + curves.push([ + "polygon", + { + stroke, + fill: fillFn(i * dn), + }, + curr, + ]); + if (labels) { + legend.push( + ["line", { stroke }, [0, y], [20, y]], + [ + "text", + { + baseline: "middle", + fill: "black", + }, + [30, y], + id, + ] + ); + } + } + const zero = fit(0, min, max, 0, width); + return svg( + { + width, + height: height + 12, + fill: "none", + "font-family": "sans-serif", + "font-size": 10, + }, + ...curves, + ...legend, + inRange(zero, width * 0.05, width * 0.95) + ? [ + "g", + {}, + [ + "line", + { + stroke: "black", + dash: [1, 1], + }, + [zero, 0], + [zero, height], + ], + [ + "text", + { align: "center", fill: "black" }, + [zero, height + 10], + "0.00", + ], + ] + : null, + [ + "g", + { fill: "black" }, + ["text", {}, [0, height + 10], min.toFixed(2)], + ["text", { align: "end" }, [width, height + 10], max.toFixed(2)], + ] + ); +}; + +/** + * Similar to {@link varToHiccup}, but then also serializes the result to an + * actual SVG string. + * + * @param $var + * @param opts + */ +export const varToSvg = ($var: LVar, opts: Partial) => + serialize(convertTree(varToHiccup($var, opts))); diff --git a/packages/fuzzy-viz/test/index.ts b/packages/fuzzy-viz/test/index.ts new file mode 100644 index 0000000000..63f5aac0be --- /dev/null +++ b/packages/fuzzy-viz/test/index.ts @@ -0,0 +1,25 @@ +import { centroidStrategy, gaussian } from "@thi.ng/fuzzy"; +import { eqDelta } from "@thi.ng/math"; +import * as assert from "assert"; +import { fuzzySetToAscii, instrumentStrategy } from "../src"; + +describe("fuzzy-viz", () => { + it("strategy (ascii)", () => { + const strategy = instrumentStrategy( + centroidStrategy({ samples: 1000 }), + fuzzySetToAscii({ width: 40, height: 8 }) + ); + assert(eqDelta(strategy(gaussian(5, 2), [0, 10]), 5)); + assert.deepStrictEqual(strategy.deref(), [ + `.................▄▆█|█▆▄................. +...............▅████|████▅............... +.............▄██████|██████▄............. +...........▂▇███████|███████▇▂........... +..........▅█████████|█████████▅.......... +.......▁▅███████████|███████████▅▁....... +.....▃▆█████████████|█████████████▆▃..... +▃▄▅▇████████████████|████████████████▇▅▄▃ + ^ 5.00`, + ]); + }); +}); diff --git a/packages/fuzzy-viz/test/tsconfig.json b/packages/fuzzy-viz/test/tsconfig.json new file mode 100644 index 0000000000..f6e63560dd --- /dev/null +++ b/packages/fuzzy-viz/test/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "module": "commonjs" + }, + "include": [ + "./**/*.ts", + "../src/**/*.ts" + ] +} diff --git a/packages/fuzzy-viz/tpl.readme.md b/packages/fuzzy-viz/tpl.readme.md new file mode 100644 index 0000000000..157b3807fa --- /dev/null +++ b/packages/fuzzy-viz/tpl.readme.md @@ -0,0 +1,127 @@ +# ${pkg.banner} + +[![npm version](https://img.shields.io/npm/v/${pkg.name}.svg)](https://www.npmjs.com/package/${pkg.name}) +![npm downloads](https://img.shields.io/npm/dm/${pkg.name}.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + + + +## About + +${pkg.description} + +${status} + +${supportPackages} + +${relatedPackages} + +${blogPosts} + +## Installation + +${pkg.install} + +${pkg.size} + +## Dependencies + +${pkg.deps} + +${examples} + +## API + +${docLink} + +### Linguistic variable visualization + +Generate an SVG visualization of all fuzzy sets defined in a [linguistic +variable](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy#linguistic-variables): + +![fuzzy set visualization of the example l-var](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/temperature-lvar-2.svg) + +```ts +import { varToSvg } from "@thi.ng/fuzzy-viz"; + +// temperature sets (in celsius) +const temp = variable( + [-20, 40], + { + freezing: invSigmoid(0, 2), + cold: trapezoid(-1, 2, 16, 20), + warm: trapezoid(15, 20, 30, 34), + hot: sigmoid(32, 2) + } +); + +// generate & write SVG file +writeFileSync("temperature.svg", varToSvg(temp, { samples: 200 })); +``` + +See +[`VizualizeVarOpts`](https://github.com/thi-ng/umbrella/blob/develop/packages/fuzzy-viz/src/api.ts) +for further options to configure the visualization. + +### Instrument a DefuzzStrategy + +`instrumentStrategy()` is an higher order function. It takes an existing +`DefuzzStrategy` and an instrumentation function. Returns new `DefuzzStrategy` +which first executes original `strategy`, then calls `instrument` with the same +args AND the computed result obtained from `strategy`. Returns result of +original `strategy`. + +The instrumentation function is intended to perform side effects (e.g. debug +outputs) and/or produce secondary results (e.g. visualizations). The latter can +be obtained through the `IDeref` mechanism implemented by the returned function. +Since `defuzz()` might call the strategy multiple times (i.e. if there are +multiple output vars used), `.deref()` will always return an array of secondary +results. + +**Note:** The secondary results from the instrumentation function will persist & +accumulate. If re-using the instrumented strategy for multiple `defuzz()` +invocations, it's highly recommended to clear any previous results using +`.clear()`. + +```ts +const strategy = instrumentStrategy( + cogStrategy({ samples: 1000 }), + fuzzySetToAscii({ width: 40, height: 8 }) +); + +// apply strategy as normal (well, usually done via defuzz()) +strategy(gaussian(5, 2), [0, 10]); +// 4.995 + +strategy.deref().forEach((viz) => console.log(viz)); +// .................▄▆█|█▆▄................. +// ...............▅████|████▅............... +// .............▄██████|██████▄............. +// ...........▂▇███████|███████▇▂........... +// ..........▅█████████|█████████▅.......... +// .......▁▅███████████|███████████▅▁....... +// .....▃▆█████████████|█████████████▆▃..... +// ▃▄▅▇████████████████|████████████████▇▅▄▃ +// ^ 5.00 + +// cleanup (optional) +strategy.clear(); +``` + +Using `fuzzySetToHiccup()`/`fuzzySetToSvg()` visualizations like below can be +created following the same pattern as above: + +![fuzzySetToSvg() visualization example](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/strategy-viz.svg) + +## Authors + +${authors} + +${pkg.cite} + +## License + +© ${copyright} // ${license} diff --git a/packages/fuzzy-viz/tsconfig.json b/packages/fuzzy-viz/tsconfig.json new file mode 100644 index 0000000000..bd6481a5a6 --- /dev/null +++ b/packages/fuzzy-viz/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "." + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/packages/fuzzy/CHANGELOG.md b/packages/fuzzy/CHANGELOG.md new file mode 100644 index 0000000000..c303ad75b5 --- /dev/null +++ b/packages/fuzzy/CHANGELOG.md @@ -0,0 +1,28 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# 0.1.0 (2020-12-22) + + +### Features + +* **fuzzy:** add alphaCut() & implication() fns ([8ec15fa](https://github.com/thi-ng/umbrella/commit/8ec15fa5c0f33fd7342c4047a5523e9fd0597ed1)) +* **fuzzy:** add evaluate() ([0ffc9d0](https://github.com/thi-ng/umbrella/commit/0ffc9d01f9bd40ba616d1f59e3ced74fa7c0dc7f)) +* **fuzzy:** add maxima(), compose(), restructure ([f15d8d7](https://github.com/thi-ng/umbrella/commit/f15d8d73df2a438d4866d57fc25fed625acd7a8a)) +* **fuzzy:** add min true threshold for classify() ([6f49a30](https://github.com/thi-ng/umbrella/commit/6f49a308c62a598f6d0a0e6e5046cd8e24d81eab)) +* **fuzzy:** add shapes, strongAnd(), update combineTerms() ([5bf8f0c](https://github.com/thi-ng/umbrella/commit/5bf8f0c01541afeb367eff21cb45118a1b62549a)) +* **fuzzy:** add strict arg for classify(), update docs ([b39248f](https://github.com/thi-ng/umbrella/commit/b39248f359aa0148ff72c484d78175f8f435fe97)) +* **fuzzy:** add/update/migrate defuzz strategies ([c1ee15f](https://github.com/thi-ng/umbrella/commit/c1ee15fdce2b08176c5bc97ba9ca7a56a84817c7)) +* **fuzzy:** import as new pkg, refactor ([a578194](https://github.com/thi-ng/umbrella/commit/a57819454f38de4c35095b64b9e7028d9ac21454)) +* **fuzzy:** make lvar, rules, defuzz() typesafe ([0b210c3](https://github.com/thi-ng/umbrella/commit/0b210c3841ce9184b8dfb83ca2dde5ceca0a3b6e)) +* **fuzzy:** migrate t-norms from [@thi](https://github.com/thi).ng/math pkg ([f8993e0](https://github.com/thi-ng/umbrella/commit/f8993e0dc1aed0243629a21d36ee85e91b2e938d)) +* **fuzzy:** update defuzz() & strategies ([cf337f3](https://github.com/thi-ng/umbrella/commit/cf337f36dbf24a9cfc4c6f364c3aea82428b5940)) +* **fuzzy:** update defuzz() output prep ([81abe8c](https://github.com/thi-ng/umbrella/commit/81abe8cb718ce335940234aecf693ba53564a715)) +* **fuzzy:** update types, update compose ([566469d](https://github.com/thi-ng/umbrella/commit/566469d5c420cc2c4fdc3b107e04b52929b61915)) + + +### Performance Improvements + +* **fuzzy:** update defuzz() ([60030dd](https://github.com/thi-ng/umbrella/commit/60030dd9a5ceb02d58ad89766e14f80019f6f72f)) diff --git a/packages/fuzzy/LICENSE b/packages/fuzzy/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/packages/fuzzy/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/fuzzy/README.md b/packages/fuzzy/README.md new file mode 100644 index 0000000000..bc551c3f72 --- /dev/null +++ b/packages/fuzzy/README.md @@ -0,0 +1,344 @@ + + +# ![fuzzy](https://media.thi.ng/umbrella/banners/thing-fuzzy.svg?74e82ef9) + +[![npm version](https://img.shields.io/npm/v/@thi.ng/fuzzy.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy) +![npm downloads](https://img.shields.io/npm/dm/@thi.ng/fuzzy.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + +- [About](#about) + - [Features](#features) + - [References / Further reading](#references---further-reading) + - [Status](#status) + - [Support packages](#support-packages) +- [Installation](#installation) +- [Dependencies](#dependencies) +- [API](#api) + - [Fuzzy set generators & combinators](#fuzzy-set-generators--combinators) + - [Linguistic variables](#linguistic-variables) + - [Rule creation & inferencing](#rule-creation--inferencing) +- [Authors](#authors) +- [License](#license) + +## About + +Fuzzy logic operators & configurable rule inferencing engine. + +### Features + +- Entirely declarative & functional approach +- Fully type checked +- Fuzzy set domain shaping & composition functions (incl. negated / inverse) +- Various [T-norms & + S-norms](https://github.com/thi-ng/umbrella/blob/develop/packages/fuzzy/src/tnorms.ts), + incl. parametric versions +- Rules with multiple inputs/outputs and arbitrary term combinators (i.e. + T-norms). Syntax sugar for common `and`/`or` rules. +- Defuzzification via customizable strategies and options to balance precision + vs. performance + - Maxima: First, Last, Mean + - Center-of-Gravity (COG) +- Linguistic variable creation and term/set classification for given domain + values +- Fuzzy set visualization (via + [@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz)) + +### References / Further reading + +- [Fuzzy Logic (Wikipedia)](https://en.wikipedia.org/wiki/Fuzzy_logic) +- [T-norm (Wikipedia)](https://en.wikipedia.org/wiki/T-Norm) +- [Fuzzy Logic - University of Western Australia](https://teaching.csse.uwa.edu.au/units/CITS7212/Lectures/Students/Fuzzy.pdf) +- [Introduction to Fuzzy Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_logic) +- [Defuzzification (Wikipedia)](https://en.wikipedia.org/wiki/Defuzzification) +- [Defuzzification methods](https://cse.iitkgp.ac.in/~dsamanta/courses/archive/sca/Archives/Chapter%205%20Defuzzification%20Methods.pdf) +- [Comparison of the COG Defuzzification Technique](https://arxiv.org/pdf/1612.00742.pdf) + +### Status + +**ALPHA** - bleeding edge / work-in-progress + +[Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bfuzzy%5D+in%3Atitle) + +### Support packages + +- [@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz) - Visualization, instrumentation & introspection utils for [@thi.ng/fuzzy](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy) + +## Installation + +```bash +yarn add @thi.ng/fuzzy +``` + +```html +// ES module + + +// UMD + +``` + +Package sizes (gzipped, pre-treeshake): ESM: 1.63 KB / CJS: 1.81 KB / UMD: 1.74 KB + +## Dependencies + +- [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) +- [@thi.ng/math](https://github.com/thi-ng/umbrella/tree/develop/packages/math) + +## API + +[Generated API docs](https://docs.thi.ng/umbrella/fuzzy/) + +(See +[tests](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy/test) for +more usage examples). + +### Fuzzy set generators & combinators + +Generators: + +- `constant()` +- `point()` +- `ramp()` / `invRamp()` +- `triangle()` +- `trapezoid()` +- `sigmoid()` / `invSigmoid()` +- `gaussian()` + +Combinators: + +- `negate()` +- `weighted()` +- `alphaCut()` / `invAlphaCut()` +- `compose()` / `intersect()` / `union()` + +### Linguistic variables + +Linguistic variables (short: **L-var**s) are groupings of named (and possibly +overlapping) fuzzy sets within a given value domain. The can be used standalone +or as inputs/outputs in rules (further below). + +The +[@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz) +package provides utilities to visualize the fuzzy sets of an L-var. + +![fuzzy set visualization of the example +l-var](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/temperature-lvar-2.svg) + +```ts +// temperature sets (in celsius) +const temp = variable( + // value domain + [-20, 40], + { + freezing: invSigmoid(0, 2), + cold: trapezoid(-1, 2, 16, 20), + warm: trapezoid(15, 20, 30, 34), + hot: sigmoid(32, 2) + } +); + +evaluate(temp, 18) +// { +// freezing: 2.220446049250313e-16, +// cold: 0.5, +// warm: 0.6, +// hot: 6.914400106935423e-13 +// } + +evaluate(temp, 28) +// { +// freezing: 0, +// cold: 0, +// warm: 1, +// hot: 0.0003353501304664781 +// } + +// classify temperature (min confidence 33%, default: 50%) +classify(temp, 28, 0.33) +// "warm" +``` + +### Rule creation & inferencing + +Example taken from Franck Dernoncourt's [Introduction to Fuzzy +Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_logic): + +![fuzzy set illustration from F.Dernoncourt's +tutorial](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/fuzzy-matrix-dernoncourt.png) + +```ts +// define fuzzy input variables +const inputs = { + food: variable([0, 10], { + awful: invRamp(1, 3), + delicious: ramp(7, 9), + }), + service: variable([0, 10], { + poor: gaussian(0, 1.5), + good: gaussian(5, 1.5), + excellent: gaussian(10, 1.5), + }), +}; + +const outputs = { + tip: variable([0, 30], { + low: triangle(0, 5, 10), + medium: triangle(10, 15, 20), + high: triangle(20, 25, 30), + }), +}; + +// l-vars, rules and defuzzification are using generics for type safety +// we define these 2 type aliases for brevity +type I = typeof inputs; +type O = typeof outputs; + +// rule definitions: +// if service is poor OR food is awful -> tip is low +// if service is normal -> tip is medium +// if service is excellent OR food is delicious -> tip is high +const rules = [ + or({ food: "awful", service: "poor" }, { tip: "low" }), + or({ service: "good" }, { tip: "medium" }), + or({ food: "delicious", service: "excellent" }, { tip: "high" }), +]; + +// defuzzification using default center-of-gravity strategy +defuzz( + inputs, + outputs, + rules, + // input values + { food: 7.32, service: 7.83 }, +); +// { tip: 22.650000000000034 } + +// defuzz with custom strategy (note: each has further config options) +defuzz( + inputs, + outputs, + rules, + // input values + { food: 7.32, service: 7.83 }, + // custom defuzz strategy + meanOfMaximaStrategy() +); +// { tip: 25.050000000000043 } +``` + +Note: The results are slightly different than those in the textbook example, due +to different `gaussian` fuzzy sets used for the `service` L-var. + +Using `instrumentStrategy()` from the upcoming +[@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz) +package, we can also visualize the final, transformed fuzzy sets used to compute +crisp results and highlight the position of the crisp result value. + +Here is the ASCII art output for the [COG +strategy](https://github.com/thi-ng/umbrella/blob/develop/packages/fuzzy/src/strategy/centroid.ts) +and using `tnormMin` (the default) to transform each rule's output set(s): + +```ts +// wrap existing strategy +const strat = instrumentStrategy(centroidStrategy(), fuzzySetToAscii()); + +// call defuzz as normal +defuzz(inputs, outputs, rules, strat); + +// obtain secondary results via deref() +console.log(strat.deref()[0]); +``` + +```text +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅..... +.......................................................................▁|██████████████████████▇.... +......................................................................▁█|███████████████████████▇... +....................................▅▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▅....▂██|████████████████████████▇.. +...................................▅█████████████████████████████▅..▂███|██████████████████████████. +..................................▅███████████████████████████████▅▂████|███████████████████████████ + ^ 21.52 +``` + +Different results can be obtained by adjusting the +[T-norm](https://en.wikipedia.org/wiki/T-Norm) used to transform each rule's +output sets, here using `tnormHamacher(2)`. + +```text +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.........▃▂............... +.........................................................................|.......▃███▆▂............. +.........................................................................|....▁▅███████▇▃........... +................................................▁▃▆▃▁....................|.▁▄▇████████████▆▃........ +...........................................▁▂▄▆███████▆▄▂▁..............▂|▇██████████████████▆▃▁.... +...................................▁▂▃▄▅▆▇█████████████████▇▆▅▄▃▂▁..▂▄▆██|███████████████████████▅▃▁ + ^ 21.84 +``` + +...or using `tnormAczelAlsina(2)` (there're many more available): + +```text +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|.....▂▃▄▅▅▅▅▅▄▄▃▁.......... +........................................................................|.▂▅▇██████████████▆▄....... +........................................................................|▇████████████████████▆▂.... +........................................▁▂▃▄▄▅▅▆▆▆▆▆▆▆▅▅▄▄▃▂▁.........▃█|███████████████████████▆▁.. +....................................▂▄▇███████████████████████▇▄▂....▆██|█████████████████████████▄. +..................................▃▇█████████████████████████████▇▃▂████|██████████████████████████▇ + ^ 21.58 +``` + +Just for illustration purposes (and using a different example), SVG output can +be obtained by merely switching to another instrumentation function (here +`fuzzySetToSvg()`): + +![fuzzySetToSvg() visualization example](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/strategy-viz.svg) + +## Authors + +Karsten Schmidt + +If this project contributes to an academic publication, please cite it as: + +```bibtex +@misc{thing-fuzzy, + title = "@thi.ng/fuzzy", + author = "Karsten Schmidt", + note = "https://thi.ng/fuzzy", + year = 2020 +} +``` + +## License + +© 2020 Karsten Schmidt // Apache Software License 2.0 diff --git a/packages/fuzzy/api-extractor.json b/packages/fuzzy/api-extractor.json new file mode 100644 index 0000000000..94972e6bed --- /dev/null +++ b/packages/fuzzy/api-extractor.json @@ -0,0 +1,3 @@ +{ + "extends": "../../api-extractor.json" +} diff --git a/packages/fuzzy/package.json b/packages/fuzzy/package.json new file mode 100644 index 0000000000..342b832069 --- /dev/null +++ b/packages/fuzzy/package.json @@ -0,0 +1,80 @@ +{ + "name": "@thi.ng/fuzzy", + "version": "0.1.0", + "description": "Fuzzy logic operators & configurable rule inferencing engine", + "module": "./index.js", + "main": "./lib/index.js", + "umd:main": "./lib/index.umd.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/thi-ng/umbrella.git" + }, + "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/fuzzy#readme", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/postspectacular" + }, + { + "type": "patreon", + "url": "https://patreon.com/thing_umbrella" + } + ], + "author": "Karsten Schmidt ", + "license": "Apache-2.0", + "scripts": { + "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module", + "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all", + "build:es6": "tsc --declaration", + "build:test": "rimraf build && tsc -p test/tsconfig.json", + "build:check": "tsc --isolatedModules --noEmit", + "test": "mocha test", + "cover": "nyc mocha test && nyc report --reporter=lcov", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib strategies", + "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", + "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", + "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", + "pub": "yarn build:release && yarn publish --access public" + }, + "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^1.0.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", + "mocha": "^8.2.1", + "nyc": "^15.1.0", + "ts-node": "^9.1.1", + "typedoc": "^0.19.2", + "typescript": "^4.1.3" + }, + "dependencies": { + "@thi.ng/api": "^6.13.5", + "@thi.ng/math": "^3.0.0" + }, + "files": [ + "*.js", + "*.d.ts", + "lib", + "strategies" + ], + "keywords": [ + "agent", + "functional", + "math", + "fuzzy", + "inference", + "logic", + "rule", + "t-norm", + "typescript" + ], + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "thi.ng": { + "status": "alpha", + "year": 2020 + } +} diff --git a/packages/fuzzy/src/api.ts b/packages/fuzzy/src/api.ts new file mode 100644 index 0000000000..9a82b9368f --- /dev/null +++ b/packages/fuzzy/src/api.ts @@ -0,0 +1,65 @@ +import type { Fn2, FnN, FnN2 } from "@thi.ng/api"; + +export type FuzzyFn = FnN; + +export type RuleOp = (x: number, a: FuzzyFn, b: FuzzyFn) => number; + +export type DefuzzStrategy = Fn2; + +export type LVarDomain = [number, number]; + +export type LVarTerms = Record; + +export type LVarSet = Record>; + +export type LVarKeys> = keyof T["terms"]; + +export type LVarKeySet, K extends keyof I> = Partial< + { + [k in K]: LVarKeys; + } +>; + +/** + * Linguistic Variable, defining several (possibly overlapping) fuzzy sets in an + * overall global domain. + */ +export interface LVar { + /** + * Value domain/interval used to evaluate (and integrate) all terms during + * {@link defuzz}. Interval is semi-open, i.e. `[min, max)` + * + * @remarks + * The domain can be smaller or larger than the actual union bounds of the + * defined sets. However, for precision and performance reasons, it's + * recommended to keep this interval as compact as possible. + */ + domain: LVarDomain; + /** + * Object of named fuzzy sets. + */ + terms: LVarTerms; +} + +export interface Rule, O extends LVarSet> { + op: FnN2; + if: LVarKeySet; + then: LVarKeySet; + weight: number; +} + +export interface DefuzzStrategyOpts { + /** + * Number of samples/steps to use for integration of the fuzzy set. + * + * @defaultValue 100 + */ + samples: number; + /** + * Tolerance value (only used by some strategies, e.g. + * {@link meanOfMaximaStrategy}). + * + * @defaultValue 1e-6 + */ + eps: number; +} diff --git a/packages/fuzzy/src/defuzz.ts b/packages/fuzzy/src/defuzz.ts new file mode 100644 index 0000000000..45cdf76468 --- /dev/null +++ b/packages/fuzzy/src/defuzz.ts @@ -0,0 +1,75 @@ +import type { IObjectOf } from "@thi.ng/api"; +import type { FuzzyFn, LVarSet, Rule } from "./api"; +import { constant, intersect, union, weighted } from "./shapes"; +import { centroidStrategy } from "./strategies/centroid"; +import { snormMax, tnormMin } from "./tnorms"; + +/** + * Takes an object of input {@link variable}s, an object of output variable, + * rule array and an object of input values. Evaluates relevant terms of input + * variables in all matching rules, then combines and defuzzes them using given + * optional strategy (by default {@link centroidStrategy} w/ its own default + * options). Returns object of computed output variable values. + * + * @remarks + * The `imply` T-norm (default: {@link tnormMin} is used to transform each + * rule's output set(s) using each rule's computed/aggregated truth value, as + * well as each rule's weight. Different T-norms might produce different fuzzy + * set shapes and different results, even if the defuzz strategy remains + * constant. + * + * The `combine` S-norm (default: {@link snormMax}) is used to combine the + * relevant output sets of all rules for integration/analysis by the given + * defuzz `strategy` actually producing the crisp result. + * + * @param ins + * @param outs + * @param rules + * @param vals + * @param strategy + * @param imply + * @param combine + */ +export const defuzz = , O extends LVarSet>( + ins: I, + outs: O, + rules: Rule[], + vals: Partial>, + strategy = centroidStrategy(), + imply = tnormMin, + combine = snormMax +) => { + const ruleTerms = rules.map((r) => { + let alpha: number | null = null; + for (let id in vals) { + if (r.if[id]) { + const v = ins[id].terms[r.if[id]](vals[id]!); + alpha = alpha !== null ? r.op(alpha, v) : v; + } + } + const terms: IObjectOf = {}; + if (alpha) { + const aterm = constant(alpha); + for (let id in r.then) { + if (outs[id]) { + const oterm = outs[id].terms[r.then[id]]; + terms[id] = intersect( + imply, + r.weight == 1 ? oterm : weighted(oterm, r.weight), + aterm + ); + } + } + } + return terms; + }); + + const res: Partial> = {}; + for (let id in outs) { + res[id] = strategy( + union(combine, ...ruleTerms.map((r) => r[id]).filter((f) => !!f)), + outs[id].domain + ); + } + return res; +}; diff --git a/packages/fuzzy/src/index.ts b/packages/fuzzy/src/index.ts new file mode 100644 index 0000000000..3960cc99e2 --- /dev/null +++ b/packages/fuzzy/src/index.ts @@ -0,0 +1,10 @@ +export * from "./api"; +export * from "./defuzz"; +export * from "./rules"; +export * from "./shapes"; +export * from "./tnorms"; +export * from "./var"; + +export * from "./strategies/bisector"; +export * from "./strategies/centroid"; +export * from "./strategies/maxima"; diff --git a/packages/fuzzy/src/rules.ts b/packages/fuzzy/src/rules.ts new file mode 100644 index 0000000000..2dc10c5ba3 --- /dev/null +++ b/packages/fuzzy/src/rules.ts @@ -0,0 +1,67 @@ +import type { FnN2 } from "@thi.ng/api"; +import type { LVarKeySet, LVarSet, Rule } from "./api"; +import { snormMax, tnormMin, tnormProduct } from "./tnorms"; + +/** + * Defines and returns a new rule object. Takes a T-norm (or S-norm) `op`, an + * object of input conditions, an object of results and optional rule `weight`. + * The `op` function is used to combine input terms. + * + * @remarks + * The input and output objects are each using LVar names as keys and respective + * var terms (their names) as values (see example). + * + * The optional rule weight (default: 1) is used by {@link defuzz} to adjust + * rule importance. + * + * Also @see {@link and}, {@link strongAnd}, {@link or} for syntax sugar. + * + * @example + * ```ts + * // given 3 LVars from a classic fuzzy logic example: + * // food, service, tip + * + * // define this rule: + * // "If the food was bad AND service poor, then a small tip only" + * // here multiply is used for strong conjunction of the food & service terms + * rule( + * (a, b) => a * b, + * { food: "bad", service: "poor" }, + * { tip: "small" } + * ) + * ``` + * + * @param op + * @param $if + * @param then + * @param weight + */ +export const rule = , O extends LVarSet>( + op: FnN2, + $if: LVarKeySet, + then: LVarKeySet, + weight = 1 +): Rule => ({ + if: $if, + then, + op, + weight, +}); + +export const and = , O extends LVarSet>( + $if: LVarKeySet, + then: LVarKeySet, + weight?: number +) => rule(tnormMin, $if, then, weight); + +export const strongAnd = , O extends LVarSet>( + $if: LVarKeySet, + then: LVarKeySet, + weight?: number +) => rule(tnormProduct, $if, then, weight); + +export const or = , O extends LVarSet>( + $if: LVarKeySet, + then: LVarKeySet, + weight?: number +) => rule(snormMax, $if, then, weight); diff --git a/packages/fuzzy/src/shapes.ts b/packages/fuzzy/src/shapes.ts new file mode 100644 index 0000000000..623828f59c --- /dev/null +++ b/packages/fuzzy/src/shapes.ts @@ -0,0 +1,231 @@ +import type { FnN2, FnU, FnU2, FnU3, FnU4 } from "@thi.ng/api"; +import { + EPS, + eqDelta, + fit, + fitClamped, + gaussian as $gaussian, + sigmoid as $sigmoid, +} from "@thi.ng/math"; +import type { FuzzyFn } from "./api"; + +/** + * HOF {@link FuzzyFn} always yielding given `x` (should be in [0,1] + * interval). + * + * @param x + */ +export const constant = (x: number): FuzzyFn => () => x; + +/** + * HOF {@link FuzzyFn} which takes a value `p` and tolerance `eps`, then yields + * a discrete window function: `|p - x| <= eps ? 1 : 0` + * + * @param p + * @param eps + */ +export const point = (p: number, eps = EPS): FuzzyFn => (x) => + eqDelta(x, p, eps) ? 1 : 0; + +/** + * HOF {@link FuzzyFn} yielding a rising ramp in [a,b] interval, clamped to + * [0,1] outputs. Returns 0.0 for inputs <= `a` and 1.0 for inputs >= `b`. + * + * @param a + * @param b + */ +export const ramp: FnU2 = (a, b) => (x) => + fitClamped(x, a, b, 0, 1); + +/** + * HOF {@link FuzzyFn} yielding a triangle in the input range `[a..b..c]` with + * `b` defining the position of the peak value (1.0). Returns 0.0 for inputs < + * `a` or > `c`. + * + * @param a + * @param b + * @param c + */ +export const triangle: FnU3 = (a, b, c) => (x) => + x < a || x > c ? 0 : x <= b ? fit(x, a, b, 0, 1) : fit(x, b, c, 1, 0); + +/** + * Similar to {@link triangle}, but yielding a trapezoid for the input range + * `[a..b..c..d]` with `b` and `c` defining the peak value range (with 1.0 + * outputs). Returns 0.0 for inputs < `a` or > `d`. + * + * @param a + * @param b + * @param c + * @param d + */ +export const trapezoid: FnU4 = (a, b, c, d) => (x) => + x < a || x > d + ? 0 + : x > b && x < c + ? 1 + : x <= b + ? fit(x, a, b, 0, 1) + : fit(x, c, d, 1, 0); + +/** + * HOF {@link FuzzyFn}, yielding sigmoid curve with configurable `steep` and + * positioned such that `f(bias) = 0.5`. + * + * @param bias + * @param steep + */ +export const sigmoid: FnU2 = (bias, steep) => (x) => + $sigmoid(bias, steep, x); + +/** + * HOF {@link FuzzyFn}, yielding gaussian bell curve with its peak at `bias` and + * width defined by `sigma`. + * + * @param bias + * @param sigma + */ +export const gaussian: FnU2 = (bias, sigma) => (x) => + $gaussian(bias, sigma, x); + +/** + * Higher-order function: Takes an existing {@link FuzzyFn} `fn` and returns + * a new one producing its negated outcome aka `1 - fn(x)`. + * + * @param fn + */ +export const negate: FnU = (fn) => (x) => 1 - fn(x); + +/** + * Inverse of {@link ramp}, i.e. a falling slope from `a` -> `b`. + * + * @param a + * @param b + */ +export const invRamp: FnU2 = (a, b) => negate(ramp(a, b)); + +/** + * Inverse of {@link sigmoid}. + * + * @param bias + * @param steep + */ +export const invSigmoid: FnU2 = (bias, steep) => + negate(sigmoid(bias, steep)); + +/** + * Higher-order function: Takes an existing {@link FuzzyFn} `fn` and `weight` + * factor. Returns new function which computes: `weight * fn(x)`. + * + * @param fn + * @param weight + */ +export const weighted = (fn: FuzzyFn, weight: number): FuzzyFn => (x) => + weight * fn(x); + +/** + * Higher order function. Returns new function which selects subset of given + * fuzzy set where `fn(x) > alpha`, or else returns 0. + * + * @param fn + * @param alpha + */ +export const alphaCut = (fn: FuzzyFn, alpha = 0.5): FuzzyFn => (x) => { + const y = fn(x); + return y > alpha ? y : 0; +}; + +/** + * Higher order function. Returns new function which selects subset of given + * fuzzy set where `fn(x) < alpha`, or else returns 0. + * + * @param fn + * @param alpha + */ +export const invAlphaCut = (fn: FuzzyFn, alpha = 0.5): FuzzyFn => (x) => { + const y = fn(x); + return y < alpha ? y : 0; +}; + +/** + * Higher order function, complex shape generator. Takes a T-norm (or S-norm) as + * reduction function `op` and any number of {@link FuzzyFn}s. Returns new + * `FuzzyFn` which evaluates all given `fns` and combines/reduces their results + * with `op`. + * + * @remarks + * Depending on the use case and choice of `op`, the `initial` value should + * either be set to: + * + * - T-norm like function: 1.0 + * - S-norm like function: 0.0 + * + * References: + * - https://www.desmos.com/calculator/pnq6kqzfb5 (interactive graph) + * - https://en.wikipedia.org/wiki/T-norm + * - https://github.com/thi-ng/umbrella/blob/develop/packages/math/src/tnorms.ts + * + * @example + * ```ts + * const f = compose(tnormMin, 1, triangle(0,2,4), triangle(1,3,5)); + * f(1); // 0 + * f(2); // 0.5 + * f(3); // 0.5 + * f(4); // 0 + * ``` + * + * @example + * ```ts + * // M-like shape w/ peaks at 3 & 5 + * const M = compose( + * Math.max, + * 0, + * triangle(1,3,5), + * triangle(3,5,7) + * ) + * + * M(3) // 1 + * M(4) // 0.5 + * M(5) // 1 + * ``` + * + * @param op + * @param initial + * @param fns + */ +export const compose = ( + op: FnN2, + initial: number, + ...fns: FuzzyFn[] +): FuzzyFn => { + const [a, b] = fns; + switch (fns.length) { + case 0: + throw new Error("no fuzzy sets given"); + case 1: + return a; + case 2: + return (x) => op(a(x), b(x)); + default: + return (x) => fns.reduce((acc, f) => op(acc, f(x)), initial); + } +}; + +/** + * Syntax sugar for {@link compose} with an initial value of 1.0. The `op` is + * supposed to be a T-norm. + * + * @param op + * @param fns + */ +export const intersect = (op: FnN2, ...fns: FuzzyFn[]) => + compose(op, 1, ...fns); + +/** + * Syntax sugar for {@link compose} with an initial value of 0.0. The `op` is + * supposed to be a S-norm. + * + * @param op + * @param fns + */ +export const union = (op: FnN2, ...fns: FuzzyFn[]) => compose(op, 0, ...fns); diff --git a/packages/fuzzy/src/strategies/bisector.ts b/packages/fuzzy/src/strategies/bisector.ts new file mode 100644 index 0000000000..667261be0f --- /dev/null +++ b/packages/fuzzy/src/strategies/bisector.ts @@ -0,0 +1,61 @@ +import { fit } from "@thi.ng/math"; +import type { DefuzzStrategy, DefuzzStrategyOpts } from "../api"; +import { defaultOpts } from "./opts"; + +/** + * Higher-order function: Bisector-of-Area defuzzification strategy. Returns + * strategy which computes the integral of a given fuzzy set in the defined + * `[min,max]` domain and returns the position of the bisector which partitions + * the area into 2 equal halves. The domain is sampled at `opts.samples` + * uniformly spaced points. + * + * @remarks + * Use `samples` option to adjust precision. + * + * @see {@Link DefuzzStrategyOpts} + * + * @example + * ```ts + * bisectorStrategy()(trapezoid(0,1,5,6), [0,6]) + * // 2.97 + * + * // ......▁█████████████|█████████████▁..... + * // ......██████████████|██████████████..... + * // .....███████████████|███████████████.... + * // ....▇███████████████|███████████████▇... + * // ...▅████████████████|████████████████▅.. + * // ..▃█████████████████|█████████████████▃. + * // .▁██████████████████|██████████████████▁ + * // .███████████████████|███████████████████ + * // ^ 2.97 + * ``` + * + * @param opts + */ +export const bisectorStrategy = ( + opts?: Partial +): DefuzzStrategy => { + let { samples } = defaultOpts(opts); + return (fn, [min, max]) => { + const delta = (max - min) / samples; + let sum: number[] = []; + for (let i = 0, acc = 0; i <= samples; i++) { + acc += fn(min + i * delta); + sum.push(acc); + } + if (!sum.length) return min; + const mean = sum[samples] * 0.5; + for (let i = 1; i <= samples; i++) { + if (sum[i] >= mean) { + return fit( + mean, + sum[i - 1], + sum[i], + min + (i - 1) * delta, + min + i * delta + ); + } + } + return min; + }; +}; diff --git a/packages/fuzzy/src/strategies/centroid.ts b/packages/fuzzy/src/strategies/centroid.ts new file mode 100644 index 0000000000..0f1d7d2b4b --- /dev/null +++ b/packages/fuzzy/src/strategies/centroid.ts @@ -0,0 +1,50 @@ +import type { DefuzzStrategy, DefuzzStrategyOpts } from "../api"; +import { defaultOpts } from "./opts"; + +/** + * Higher-order function: Centre-of-gravity defuzzification strategy, yielding + * the approx. center of gravity position of a given fuzzy set. The domain is + * sampled at `opts.samples` uniformly spaced points. + * + * @remarks + * This is the default strategy used by {@link defuzz}. Produces similar results + * to {@link bisectorStrategy}, but with lower computational cost. Use `samples` + * option to adjust precision. + * + * @see {@Link DefuzzStrategyOpts} + * + * @example + * ```ts + * centroidStrategy()(trapezoid(0,1,5,6), [0,6]) + * // 3.0000000000000004 + * + * // ......▁█████████████|█████████████▁..... + * // ......██████████████|██████████████..... + * // .....███████████████|███████████████.... + * // ....▇███████████████|███████████████▇... + * // ...▅████████████████|████████████████▅.. + * // ..▃█████████████████|█████████████████▃. + * // .▁██████████████████|██████████████████▁ + * // .███████████████████|███████████████████ + * // ^ 3.00 + * ``` + * + * @param opts + */ +export const centroidStrategy = ( + opts?: Partial +): DefuzzStrategy => { + let { samples } = defaultOpts(opts); + return (fn, [min, max]) => { + const delta = (max - min) / samples; + let num = 0; + let denom = 0; + for (let i = 0; i <= samples; i++) { + const x = min + i * delta; + const y = fn(x); + num += x * y; + denom += y; + } + return num / denom; + }; +}; diff --git a/packages/fuzzy/src/strategies/maxima.ts b/packages/fuzzy/src/strategies/maxima.ts new file mode 100644 index 0000000000..684cd0b0d8 --- /dev/null +++ b/packages/fuzzy/src/strategies/maxima.ts @@ -0,0 +1,138 @@ +import { eqDelta } from "@thi.ng/math"; +import type { DefuzzStrategy, DefuzzStrategyOpts } from "../api"; +import { defaultOpts } from "./opts"; + +/** + * Higher-order function. Returns Mean-of-Maxima defuzzification strategy, + * yielding the approx. mean of the maximum region of a given fuzzy set. + * + * @remarks + * Use `samples` option to adjust precision. + * + * @see {@Link DefuzzStrategyOpts} + * + * @example + * ```ts + * meanOfMaximaStrategy()(trapezoid(0,1,5,6), [0,6]) + * // 3 + * + * // ......▁█████████████|█████████████▁..... + * // ......██████████████|██████████████..... + * // .....███████████████|███████████████.... + * // ....▇███████████████|███████████████▇... + * // ...▅████████████████|████████████████▅.. + * // ..▃█████████████████|█████████████████▃. + * // .▁██████████████████|██████████████████▁ + * // .███████████████████|███████████████████ + * // ^ 3.00 + * ``` + * + * @param opts + */ +export const meanOfMaximaStrategy = ( + opts?: Partial +): DefuzzStrategy => { + const { samples, eps } = defaultOpts(opts); + return (fn, [min, max]) => { + const delta = (max - min) / samples; + let peak = -Infinity; + let peakPos = min; + let n = 1; + for (let i = 0; i <= samples; i++) { + const t = min + i * delta; + const x = fn(t); + if (eqDelta(x, peak, eps)) { + peakPos += t; + n++; + } else if (x > peak) { + peak = x; + peakPos = t; + n = 1; + } + } + return peakPos / n; + }; +}; + +/** + * Higher-order function. Returns First-of-Maxima defuzzification strategy, + * yielding the approx. start position of the maximum region of a given fuzzy + * set. + * + * @remarks + * Use `samples` option to adjust precision. + * + * @see {@Link DefuzzStrategyOpts} + * + * @example + * ```ts + * firstOfMaximaStrategy()(trapezoid(0,1,5,6), [0,6]) + * // 1.02 + * + * // ......▁|██████████████████████████▁..... + * // ......█|███████████████████████████..... + * // .....██|████████████████████████████.... + * // ....▇██|████████████████████████████▇... + * // ...▅███|█████████████████████████████▅.. + * // ..▃████|██████████████████████████████▃. + * // .▁█████|███████████████████████████████▁ + * // .██████|████████████████████████████████ + * // ^ 1.02 + * ``` + * + * @param opts + */ +export const firstOfMaximaStrategy = ( + opts?: Partial +): DefuzzStrategy => { + const { samples } = defaultOpts(opts); + return (fn, [min, max]) => { + const delta = (max - min) / samples; + let peak = -Infinity; + let peakPos = min; + for (let i = 0; i <= samples; i++) { + const t = min + i * delta; + const x = fn(t); + if (x > peak) { + peak = x; + peakPos = t; + } + } + return peakPos; + }; +}; + +/** + * Higher-order function. Returns First-of-Maxima defuzzification strategy, + * yielding the approx. final position of the maximum region of a given fuzzy + * set. + * + * @remarks + * Use `samples` option to adjust precision. + * + * @see {@Link DefuzzStrategyOpts} + * + * @example + * ```ts + * lastOfMaximaStrategy()(trapezoid(0,1,5,6), [0,6]) + * // 1.02 + * + * // ......▁██████████████████████████|▁..... + * // ......███████████████████████████|█..... + * // .....████████████████████████████|██.... + * // ....▇████████████████████████████|██▇... + * // ...▅█████████████████████████████|███▅.. + * // ..▃██████████████████████████████|████▃. + * // .▁███████████████████████████████|█████▁ + * // .████████████████████████████████|██████ + * // ^ 4.98 + * ``` + * + * @param opts + */ +export const lastOfMaximaStrategy = ( + opts?: Partial +): DefuzzStrategy => { + const impl = firstOfMaximaStrategy(opts); + return (fn, [min, max]) => impl(fn, [max, min]); +}; diff --git a/packages/fuzzy/src/strategies/opts.ts b/packages/fuzzy/src/strategies/opts.ts new file mode 100644 index 0000000000..a2d6be0b87 --- /dev/null +++ b/packages/fuzzy/src/strategies/opts.ts @@ -0,0 +1,9 @@ +import type { DefuzzStrategyOpts } from "../api"; + +export const defaultOpts = ( + opts?: Partial +): DefuzzStrategyOpts => ({ + samples: 100, + eps: 1e-6, + ...opts, +}); diff --git a/packages/fuzzy/src/tnorms.ts b/packages/fuzzy/src/tnorms.ts new file mode 100644 index 0000000000..94cec271a3 --- /dev/null +++ b/packages/fuzzy/src/tnorms.ts @@ -0,0 +1,135 @@ +import type { FnN2 } from "@thi.ng/api"; +import { norm } from "@thi.ng/math"; + +// https://en.wikipedia.org/wiki/T-norm + +export const tnormMin: FnN2 = (x, y) => Math.min(x, y); + +export const tnormProduct: FnN2 = (x, y) => x * y; + +export const tnormLukasiewicz: FnN2 = (x, y) => Math.max(0, x + y - 1); + +export const tnormDrastic: FnN2 = (x, y) => (x === 1 ? y : y === 1 ? x : 0); + +export const tnormNilpotent: FnN2 = (x, y) => (x + y > 1 ? Math.min(x, y) : 0); + +/** + * HOF T-norm. Parametric Hamacher with `p` controlling curvature. + * + * @remarks + * Interactive graph: https://www.desmos.com/calculator/4bneccqs3p + * + * @param p - curve param [0..∞], default: 2 + */ +export const tnormHamacher = (p = 2): FnN2 => (x, y) => + x === 0 && y === 0 ? 0 : (x * y) / (p + (1 - p) * (x + y - x * y)); + +/** + * HOF T-norm. Parametric Yager with `p` controlling curvature. + * + * @remarks + * Interactive graph: https://www.desmos.com/calculator/4bneccqs3p + * + * @param p - curve param [0..∞], default: 2 + */ +export const tnormYager = (p = 2): FnN2 => + p === 0 + ? () => 0 + : (x, y) => Math.max(0, 1 - ((1 - x) ** p + (1 - y) ** p) ** (1 / p)); + +/** + * HOF T-norm. Parametric Dombi with `p` controlling curvature. + * + * @remarks + * Interactive graph: https://www.desmos.com/calculator/4bneccqs3p + * + * @param p - curve param [0..∞], default: 2 + */ +export const tnormDombi = (p = 2): FnN2 => + p === 0 + ? () => 0 + : (x, y) => + x === 0 || y === 0 + ? 0 + : 1 / + (1 + (((1 - x) / x) ** p + ((1 - y) / y) ** p) ** (1 / p)); + +/** + * HOF T-norm. Parametric Aczél–Alsina with `p` controlling curvature. + * + * @remarks + * Interactive graph: https://www.desmos.com/calculator/4bneccqs3p + * + * @param p - curve param [0..∞], default: 2 + */ +export const tnormAczelAlsina = (p = 2): FnN2 => (x, y) => + Math.exp( + -((Math.abs(Math.log(x)) ** p + Math.abs(Math.log(y)) ** p) ** (1 / p)) + ); +/** + * S-norm (T-conorm), dual of {@link tnormMin}. + * + * @param x + * @param y + */ +export const snormMax: FnN2 = (x, y) => Math.max(x, y); + +/** + * S-norm (T-conorm), dual of {@link tnormProduct}, probabilistic sum: + * `a + b - a * b` + * + * @param x + * @param y + */ +export const snormProbabilistic: FnN2 = (x, y) => x + y - x * y; + +/** + * S-norm (T-conorm), dual of {@link tnormLukasiewicz}. + * + * @param x + * @param y + */ +export const snormBoundedSum: FnN2 = (x, y) => Math.min(x + y, 1); + +/** + * S-norm (T-conorm), dual of {@link tnormDrastic}. + */ +export const snormDrastic: FnN2 = (x, y) => (x === 0 ? y : y === 0 ? x : 1); + +/** + * S-norm (T-conorm), dual of {@link tnormNilpotent}. + * + * @param x + * @param y + */ +export const snormNilpotent: FnN2 = (x, y) => (x + y < 1 ? Math.max(x, y) : 1); + +/** + * S-norm (T-conorm), dual of {@link tnormHamacher}, iff that T-norm's curve + * param is `p=2`. + * + * @param x + * @param y + */ +export const snormEinstein: FnN2 = (x, y) => (x + y) / (1 + x * y); + +/** + * HOF t-norm. Constructs a new t-norm based on given t-norms for disjoint + * subintervals, completing remaining regions via {@link min}. + * + * @remarks + * Reference: https://en.wikipedia.org/wiki/Construction_of_t-norms#Ordinal_sums + * + * @param specs + */ +export const ordinalSum = ( + specs: { domain: [number, number]; tnorm: FnN2 }[] +): FnN2 => (x, y) => { + for (let s of specs) { + const [a, b] = s.domain; + if (x >= a && x <= b && y >= a && y <= b) { + return a + (b - a) * s.tnorm(norm(x, a, b), norm(y, a, b)); + } + } + return Math.min(x, y); +}; diff --git a/packages/fuzzy/src/var.ts b/packages/fuzzy/src/var.ts new file mode 100644 index 0000000000..66dd449352 --- /dev/null +++ b/packages/fuzzy/src/var.ts @@ -0,0 +1,98 @@ +import type { LVar } from "./api"; + +/** + * Takes a `domain` interval and on object of named fuzzy sets and returns a new + * Linguistic variable, which can then be used as input or output var for + * {@link defuzz}. + * + * @example + * ```ts + * // temperature sets (in celsius) + * const temp = variable([-20, 40], { + * freezing: invSigmoid(0, 2), + * cold: trapezoid(0, 4, 16, 20), + * warm: trapezoid(15, 20, 25, 30), + * hot: sigmoid(30, 2) + * }); + * ``` + * + * @param domain + * @param terms + */ +export const variable = ( + domain: [number, number], + terms: LVar["terms"] +): LVar => ({ + domain, + terms, +}); + +/** + * Takes an LVar and a domain value `x`. Returns the ID of the var's fuzzy set + * term which yields the max truth value for given `x`. If `threshold` is + * enabled (default: 0.5), any truth value MUST also be > `threshold` to be + * considered. The function returns undefined if classification failed. + * + * @example + * ```ts + * // temperature sets (in celsius) + * const temp = variable([-20, 40], { + * freezing: invSigmoid(0, 2), + * cold: trapezoid(0, 4, 16, 20), + * warm: trapezoid(15, 20, 25, 30), + * hot: sigmoid(30, 2) + * }); + * + * classify(temp, 28) + * // "warm" + * ``` + * + * @param var + * @param x + * @param threshold + */ +export const classify = ( + { terms }: LVar, + x: number, + threshold = 0.5 +) => { + let max = threshold; + let maxID: K | undefined; + for (let id in terms) { + const t = terms[id](x); + if (t >= max) { + max = t; + maxID = id; + } + } + return maxID; +}; + +/** + * Takes an LVar and a domain value `x`, evaluates all of var's terms for given + * `x` and returns object of results. + * + * @example + * ```ts + * // temperature sets (in celsius) + * const temp = variable([-20, 40], { + * freezing: invSigmoid(0, 2), + * cold: trapezoid(0, 4, 16, 20), + * warm: trapezoid(15, 20, 25, 30), + * hot: sigmoid(30, 2) + * }); + * + * evaluate(temp, 28) + * // { freezing: 0, cold: 0, warm: 0.4, hot: 0.01798620996209156 } + * ``` + * + * @param var + * @param x + */ +export const evaluate = ({ terms }: LVar, x: number) => { + const res = >{}; + for (let id in terms) { + res[id] = terms[id](x); + } + return res; +}; diff --git a/packages/fuzzy/test/defuzz.ts b/packages/fuzzy/test/defuzz.ts new file mode 100644 index 0000000000..d3fc775575 --- /dev/null +++ b/packages/fuzzy/test/defuzz.ts @@ -0,0 +1,177 @@ +import { assert } from "@thi.ng/api"; +import { eqDelta, roundTo } from "@thi.ng/math"; +import { + bisectorStrategy, + centroidStrategy, + defuzz, + DefuzzStrategy, + firstOfMaximaStrategy, + gaussian, + invRamp, + lastOfMaximaStrategy, + meanOfMaximaStrategy, + or, + ramp, + triangle, + variable, +} from "../src"; + +describe("defuzz", () => { + it("strategies", () => { + // https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_logic + const inputs = { + food: variable([0, 10], { + awful: invRamp(1, 3), + delicious: ramp(7, 9), + }), + service: variable([0, 10], { + poor: gaussian(0, 1.5), + good: gaussian(5, 1.5), + excellent: gaussian(10, 1.5), + }), + }; + + const outputs = { + tip: variable([0, 30], { + low: triangle(0, 5, 10), + medium: triangle(10, 15, 20), + high: triangle(20, 25, 30), + }), + }; + + type I = typeof inputs; + type O = typeof outputs; + + // if service is poor OR food is awful -> tip is low + // if service is normal -> tip is medium + // if service is excellent OR food is delicious -> tip is high + const rules = [ + or({ food: "awful", service: "poor" }, { tip: "low" }), + or({ service: "good" }, { tip: "medium" }), + or( + { food: "delicious", service: "excellent" }, + { tip: "high" } + ), + ]; + + const testStrategy = ( + id: string, + strategy: DefuzzStrategy, + expected: number[] + ) => { + // const all = []; + for (let i = 0, k = 0; i <= 10; i++) { + for (let j = 0; j <= 10; j++, k++) { + let res = defuzz( + inputs, + outputs, + rules, + { food: i, service: j }, + strategy + ); + assert( + eqDelta(roundTo(res.tip!, 0.01), expected[k]), + `${id}(${i},${j}): expected: ${expected[k]}, got: ${res.tip}` + ); + // all.push(res.tip!.toFixed(2)); + } + } + // for (let i = 0; i <= 10; i++) { + // console.log(all.slice(i * 11, (i + 1) * 11).join(", ")); + // } + // console.log("--"); + }; + + // prettier-ignore + const centroidResults = [ + 5.08, 5.54, 7.02, 8.95, 9.91, 10.06, 10.32, 11.08, 13.18, 14.80, 15.00, + 5.08, 5.54, 7.02, 8.95, 9.91, 10.06, 10.32, 11.08, 13.18, 14.80, 15.00, + 5.08, 5.56, 7.52, 9.66, 10.62, 10.78, 11.07, 11.99, 14.41, 16.19, 16.42, + 5.08, 5.56, 7.79, 12.22, 14.46, 15.00, 15.54, 17.78, 22.21, 24.44, 24.92, + 5.08, 5.56, 7.79, 12.22, 14.46, 15.00, 15.54, 17.78, 22.21, 24.44, 24.92, + 5.08, 5.56, 7.79, 12.22, 14.46, 15.00, 15.54, 17.78, 22.21, 24.44, 24.92, + 5.08, 5.56, 7.79, 12.22, 14.46, 15.00, 15.54, 17.78, 22.21, 24.44, 24.92, + 5.08, 5.56, 7.79, 12.22, 14.46, 15.00, 15.54, 17.78, 22.21, 24.44, 24.92, + 13.58, 13.81, 15.59, 18.01, 18.93, 19.22, 19.38, 20.34, 22.48, 24.44, 24.92, + 15.00, 15.20, 16.82, 18.92, 19.68, 19.94, 20.09, 21.05, 22.98, 24.46, 24.92, + 15.00, 15.20, 16.82, 18.92, 19.68, 19.94, 20.09, 21.05, 22.98, 24.46, 24.92, + ]; + testStrategy("centroid", centroidStrategy(), centroidResults); + + // prettier-ignore + const bisectResults = [ + 4.87, 5.00, 5.53, 6.91, 8.88, 10.30, 10.50, 8.32, 8.32, 11.41, 14.85, + 4.87, 5.00, 5.53, 6.91, 8.88, 10.30, 10.50, 8.32, 8.32, 11.41, 14.85, + 4.87, 5.03, 6.12, 8.30, 12.14, 12.39, 12.43, 11.82, 13.06, 21.81, 22.31, + 4.87, 5.03, 6.39, 13.32, 14.68, 14.85, 15.02, 16.38, 23.31, 24.67, 24.83, + 4.87, 5.03, 6.39, 13.32, 14.68, 14.85, 15.02, 16.38, 23.31, 24.67, 24.83, + 4.87, 5.03, 6.39, 13.32, 14.68, 14.85, 15.02, 16.38, 23.31, 24.67, 24.83, + 4.87, 5.03, 6.39, 13.32, 14.68, 14.85, 15.02, 16.38, 23.31, 24.67, 24.83, + 4.87, 5.03, 6.39, 13.32, 14.68, 14.85, 15.02, 16.38, 23.31, 24.67, 24.83, + 7.39, 7.89, 16.64, 17.88, 17.27, 17.31, 17.56, 21.40, 23.58, 24.67, 24.83, + 14.85, 18.29, 21.38, 21.38, 19.20, 19.40, 20.82, 22.79, 24.17, 24.70, 24.83, + 14.85, 18.29, 21.38, 21.38, 19.20, 19.40, 20.82, 22.79, 24.17, 24.70, 24.83, + ]; + + testStrategy("bisect", bisectorStrategy(), bisectResults); + + // prettier-ignore + const foMaResults = [ + 5.10, 5.10, 5.10, 5.10, 5.10, 15.00, 5.10, 5.10, 5.10, 5.10, 5.10, + 5.10, 5.10, 5.10, 5.10, 5.10, 15.00, 5.10, 5.10, 5.10, 5.10, 5.10, + 5.10, 4.20, 2.70, 2.70, 14.10, 15.00, 14.10, 2.70, 2.70, 24.30, 24.90, + 5.10, 4.20, 2.10, 12.30, 14.10, 15.00, 14.10, 12.30, 22.20, 24.30, 24.90, + 5.10, 4.20, 2.10, 12.30, 14.10, 15.00, 14.10, 12.30, 22.20, 24.30, 24.90, + 5.10, 4.20, 2.10, 12.30, 14.10, 15.00, 14.10, 12.30, 22.20, 24.30, 24.90, + 5.10, 4.20, 2.10, 12.30, 14.10, 15.00, 14.10, 12.30, 22.20, 24.30, 24.90, + 5.10, 4.20, 2.10, 12.30, 14.10, 15.00, 14.10, 12.30, 22.20, 24.30, 24.90, + 5.10, 4.20, 22.50, 22.50, 14.10, 15.00, 14.10, 22.50, 22.50, 24.30, 24.90, + 5.10, 24.90, 24.90, 24.90, 24.90, 15.00, 24.90, 24.90, 24.90, 24.90, 24.90, + 5.10, 24.90, 24.90, 24.90, 24.90, 15.00, 24.90, 24.90, 24.90, 24.90, 24.90, + ]; + testStrategy("first", firstOfMaximaStrategy(), foMaResults); + + // prettier-ignore + const loMaResults = [ + 5.10, 5.10, 5.10, 5.10, 5.10, 15.00, 5.10, 5.10, 5.10, 5.10, 24.90, + 5.10, 5.10, 5.10, 5.10, 5.10, 15.00, 5.10, 5.10, 5.10, 5.10, 24.90, + 5.10, 5.70, 7.50, 7.50, 15.90, 15.00, 15.90, 7.50, 7.50, 25.80, 24.90, + 5.10, 5.70, 7.80, 17.70, 15.90, 15.00, 15.90, 17.70, 27.90, 25.80, 24.90, + 5.10, 5.70, 7.80, 17.70, 15.90, 15.00, 15.90, 17.70, 27.90, 25.80, 24.90, + 5.10, 5.70, 7.80, 17.70, 15.90, 15.00, 15.90, 17.70, 27.90, 25.80, 24.90, + 5.10, 5.70, 7.80, 17.70, 15.90, 15.00, 15.90, 17.70, 27.90, 25.80, 24.90, + 5.10, 5.70, 7.80, 17.70, 15.90, 15.00, 15.90, 17.70, 27.90, 25.80, 24.90, + 5.10, 5.70, 27.30, 27.30, 15.90, 15.00, 15.90, 27.30, 27.30, 25.80, 24.90, + 24.90, 24.90, 24.90, 24.90, 24.90, 15.00, 24.90, 24.90, 24.90, 24.90, 24.90, + 24.90, 24.90, 24.90, 24.90, 24.90, 15.00, 24.90, 24.90, 24.90, 24.90, 24.90, + ]; + testStrategy("last", lastOfMaximaStrategy(), loMaResults); + + // prettier-ignore + const meoMaResults = [ + 5.10, 5.10, 5.10, 5.10, 5.10, 15.00, 5.10, 5.10, 5.10, 5.10, 15.00, + 5.10, 5.10, 5.10, 5.10, 5.10, 15.00, 5.10, 5.10, 5.10, 5.10, 15.00, + 5.10, 4.95, 5.10, 5.10, 15.00, 15.00, 15.00, 5.10, 5.10, 25.05, 24.90, + 5.10, 4.95, 4.95, 15.00, 15.00, 15.00, 15.00, 15.00, 25.05, 25.05, 24.90, + 5.10, 4.95, 4.95, 15.00, 15.00, 15.00, 15.00, 15.00, 25.05, 25.05, 24.90, + 5.10, 4.95, 4.95, 15.00, 15.00, 15.00, 15.00, 15.00, 25.05, 25.05, 24.90, + 5.10, 4.95, 4.95, 15.00, 15.00, 15.00, 15.00, 15.00, 25.05, 25.05, 24.90, + 5.10, 4.95, 4.95, 15.00, 15.00, 15.00, 15.00, 15.00, 25.05, 25.05, 24.90, + 5.10, 4.95, 24.90, 24.90, 15.00, 15.00, 15.00, 24.90, 24.90, 25.05, 24.90, + 15.00, 24.90, 24.90, 24.90, 24.90, 15.00, 24.90, 24.90, 24.90, 24.90, 24.90, + 15.00, 24.90, 24.90, 24.90, 24.90, 15.00, 24.90, 24.90, 24.90, 24.90, 24.90, + ]; + testStrategy("mean", meanOfMaximaStrategy(), meoMaResults); + + // const strat = instrumentStrategy(centroidStrategy(), fuzzySetToAscii()); + // defuzz( + // inputs, + // outputs, + // rules, + // { food: 7.32, service: 7.83 }, + // strat, + // tnormAczelAlsina(2) + // ); + // console.log(strat.deref()[0]); + }); +}); diff --git a/packages/fuzzy/test/lvar.ts b/packages/fuzzy/test/lvar.ts new file mode 100644 index 0000000000..43c265abc3 --- /dev/null +++ b/packages/fuzzy/test/lvar.ts @@ -0,0 +1,54 @@ +import type { IObjectOf } from "@thi.ng/api"; +import { roundTo } from "@thi.ng/math"; +import * as assert from "assert"; +import { + classify, + evaluate, + invSigmoid, + sigmoid, + trapezoid, + variable, +} from "../src"; + +const roundVals = (obj: IObjectOf) => { + for (let k in obj) obj[k] = roundTo(obj[k], 1e-3); + return obj; +}; + +const temp = variable([-20, 40], { + freezing: invSigmoid(0.01, 2), + cold: trapezoid(0, 4, 16, 20), + warm: trapezoid(15, 20, 25, 30), + hot: sigmoid(29.99, 2), +}); + +describe("lvar", () => { + it("eval", () => { + assert.deepStrictEqual( + roundVals(evaluate(temp, 18)), + roundVals({ + freezing: 0, + cold: 0.5, + warm: 0.6, + hot: 0, + }) + ); + assert.deepStrictEqual( + roundVals(evaluate(temp, 28)), + roundVals({ + freezing: 0, + cold: 0, + warm: 0.4, + hot: 0.018, + }) + ); + }); + + it("classify", () => { + assert.strictEqual(classify(temp, -1), "freezing"); + assert.strictEqual(classify(temp, 0), "freezing"); + assert.strictEqual(classify(temp, 10), "cold"); + assert.strictEqual(classify(temp, 20), "warm"); + assert.strictEqual(classify(temp, 30), "hot"); + }); +}); diff --git a/packages/fuzzy/test/tsconfig.json b/packages/fuzzy/test/tsconfig.json new file mode 100644 index 0000000000..9655cbea10 --- /dev/null +++ b/packages/fuzzy/test/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "module": "commonjs", + "noUnusedLocals": false, + "noUnusedParameters": false + }, + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/fuzzy/tpl.readme.md b/packages/fuzzy/tpl.readme.md new file mode 100644 index 0000000000..9888ca4570 --- /dev/null +++ b/packages/fuzzy/tpl.readme.md @@ -0,0 +1,310 @@ +# ${pkg.banner} + +[![npm version](https://img.shields.io/npm/v/${pkg.name}.svg)](https://www.npmjs.com/package/${pkg.name}) +![npm downloads](https://img.shields.io/npm/dm/${pkg.name}.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + + + +## About + +${pkg.description} + +### Features + +- Entirely declarative & functional approach +- Fully type checked +- Fuzzy set domain shaping & composition functions (incl. negated / inverse) +- Various [T-norms & + S-norms](https://github.com/thi-ng/umbrella/blob/develop/packages/fuzzy/src/tnorms.ts), + incl. parametric versions +- Rules with multiple inputs/outputs and arbitrary term combinators (i.e. + T-norms). Syntax sugar for common `and`/`or` rules. +- Defuzzification via customizable strategies and options to balance precision + vs. performance + - Maxima: First, Last, Mean + - Center-of-Gravity (COG) +- Linguistic variable creation and term/set classification for given domain + values +- Fuzzy set visualization (via + [@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz)) + +### References / Further reading + +- [Fuzzy Logic (Wikipedia)](https://en.wikipedia.org/wiki/Fuzzy_logic) +- [T-norm (Wikipedia)](https://en.wikipedia.org/wiki/T-Norm) +- [Fuzzy Logic - University of Western Australia](https://teaching.csse.uwa.edu.au/units/CITS7212/Lectures/Students/Fuzzy.pdf) +- [Introduction to Fuzzy Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_logic) +- [Defuzzification (Wikipedia)](https://en.wikipedia.org/wiki/Defuzzification) +- [Defuzzification methods](https://cse.iitkgp.ac.in/~dsamanta/courses/archive/sca/Archives/Chapter%205%20Defuzzification%20Methods.pdf) +- [Comparison of the COG Defuzzification Technique](https://arxiv.org/pdf/1612.00742.pdf) + +${status} + +${supportPackages} + +${relatedPackages} + +${blogPosts} + +## Installation + +${pkg.install} + +${pkg.size} + +## Dependencies + +${pkg.deps} + +${examples} + +## API + +${docLink} + +(See +[tests](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy/test) for +more usage examples). + +### Fuzzy set generators & combinators + +Generators: + +- `constant()` +- `point()` +- `ramp()` / `invRamp()` +- `triangle()` +- `trapezoid()` +- `sigmoid()` / `invSigmoid()` +- `gaussian()` + +Combinators: + +- `negate()` +- `weighted()` +- `alphaCut()` / `invAlphaCut()` +- `compose()` / `intersect()` / `union()` + +### Linguistic variables + +Linguistic variables (short: **L-var**s) are groupings of named (and possibly +overlapping) fuzzy sets within a given value domain. The can be used standalone +or as inputs/outputs in rules (further below). + +The +[@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz) +package provides utilities to visualize the fuzzy sets of an L-var. + +![fuzzy set visualization of the example +l-var](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/temperature-lvar-2.svg) + +```ts +// temperature sets (in celsius) +const temp = variable( + // value domain + [-20, 40], + { + freezing: invSigmoid(0, 2), + cold: trapezoid(-1, 2, 16, 20), + warm: trapezoid(15, 20, 30, 34), + hot: sigmoid(32, 2) + } +); + +evaluate(temp, 18) +// { +// freezing: 2.220446049250313e-16, +// cold: 0.5, +// warm: 0.6, +// hot: 6.914400106935423e-13 +// } + +evaluate(temp, 28) +// { +// freezing: 0, +// cold: 0, +// warm: 1, +// hot: 0.0003353501304664781 +// } + +// classify temperature (min confidence 33%, default: 50%) +classify(temp, 28, 0.33) +// "warm" +``` + +### Rule creation & inferencing + +Example taken from Franck Dernoncourt's [Introduction to Fuzzy +Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_logic): + +![fuzzy set illustration from F.Dernoncourt's +tutorial](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/fuzzy-matrix-dernoncourt.png) + +```ts +// define fuzzy input variables +const inputs = { + food: variable([0, 10], { + awful: invRamp(1, 3), + delicious: ramp(7, 9), + }), + service: variable([0, 10], { + poor: gaussian(0, 1.5), + good: gaussian(5, 1.5), + excellent: gaussian(10, 1.5), + }), +}; + +const outputs = { + tip: variable([0, 30], { + low: triangle(0, 5, 10), + medium: triangle(10, 15, 20), + high: triangle(20, 25, 30), + }), +}; + +// l-vars, rules and defuzzification are using generics for type safety +// we define these 2 type aliases for brevity +type I = typeof inputs; +type O = typeof outputs; + +// rule definitions: +// if service is poor OR food is awful -> tip is low +// if service is normal -> tip is medium +// if service is excellent OR food is delicious -> tip is high +const rules = [ + or({ food: "awful", service: "poor" }, { tip: "low" }), + or({ service: "good" }, { tip: "medium" }), + or({ food: "delicious", service: "excellent" }, { tip: "high" }), +]; + +// defuzzification using default center-of-gravity strategy +defuzz( + inputs, + outputs, + rules, + // input values + { food: 7.32, service: 7.83 }, +); +// { tip: 22.650000000000034 } + +// defuzz with custom strategy (note: each has further config options) +defuzz( + inputs, + outputs, + rules, + // input values + { food: 7.32, service: 7.83 }, + // custom defuzz strategy + meanOfMaximaStrategy() +); +// { tip: 25.050000000000043 } +``` + +Note: The results are slightly different than those in the textbook example, due +to different `gaussian` fuzzy sets used for the `service` L-var. + +Using `instrumentStrategy()` from the upcoming +[@thi.ng/fuzzy-viz](https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy-viz) +package, we can also visualize the final, transformed fuzzy sets used to compute +crisp results and highlight the position of the crisp result value. + +Here is the ASCII art output for the [COG +strategy](https://github.com/thi-ng/umbrella/blob/develop/packages/fuzzy/src/strategy/centroid.ts) +and using `tnormMin` (the default) to transform each rule's output set(s): + +```ts +// wrap existing strategy +const strat = instrumentStrategy(centroidStrategy(), fuzzySetToAscii()); + +// call defuzz as normal +defuzz(inputs, outputs, rules, strat); + +// obtain secondary results via deref() +console.log(strat.deref()[0]); +``` + +```text +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅..... +.......................................................................▁|██████████████████████▇.... +......................................................................▁█|███████████████████████▇... +....................................▅▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▅....▂██|████████████████████████▇.. +...................................▅█████████████████████████████▅..▂███|██████████████████████████. +..................................▅███████████████████████████████▅▂████|███████████████████████████ + ^ 21.52 +``` + +Different results can be obtained by adjusting the +[T-norm](https://en.wikipedia.org/wiki/T-Norm) used to transform each rule's +output sets, here using `tnormHamacher(2)`. + +```text +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.......................... +.........................................................................|.........▃▂............... +.........................................................................|.......▃███▆▂............. +.........................................................................|....▁▅███████▇▃........... +................................................▁▃▆▃▁....................|.▁▄▇████████████▆▃........ +...........................................▁▂▄▆███████▆▄▂▁..............▂|▇██████████████████▆▃▁.... +...................................▁▂▃▄▅▆▇█████████████████▇▆▅▄▃▂▁..▂▄▆██|███████████████████████▅▃▁ + ^ 21.84 +``` + +...or using `tnormAczelAlsina(2)` (there're many more available): + +```text +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|........................... +........................................................................|.....▂▃▄▅▅▅▅▅▄▄▃▁.......... +........................................................................|.▂▅▇██████████████▆▄....... +........................................................................|▇████████████████████▆▂.... +........................................▁▂▃▄▄▅▅▆▆▆▆▆▆▆▅▅▄▄▃▂▁.........▃█|███████████████████████▆▁.. +....................................▂▄▇███████████████████████▇▄▂....▆██|█████████████████████████▄. +..................................▃▇█████████████████████████████▇▃▂████|██████████████████████████▇ + ^ 21.58 +``` + +Just for illustration purposes (and using a different example), SVG output can +be obtained by merely switching to another instrumentation function (here +`fuzzySetToSvg()`): + +![fuzzySetToSvg() visualization example](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/strategy-viz.svg) + +## Authors + +${authors} + +${pkg.cite} + +## License + +© ${copyright} // ${license} diff --git a/packages/fuzzy/tsconfig.json b/packages/fuzzy/tsconfig.json new file mode 100644 index 0000000000..bd6481a5a6 --- /dev/null +++ b/packages/fuzzy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "." + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/packages/geom-accel/CHANGELOG.md b/packages/geom-accel/CHANGELOG.md index f695f3552b..be6c740599 100644 --- a/packages/geom-accel/CHANGELOG.md +++ b/packages/geom-accel/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.27...@thi.ng/geom-accel@2.1.28) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.26...@thi.ng/geom-accel@2.1.27) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.25...@thi.ng/geom-accel@2.1.26) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.24...@thi.ng/geom-accel@2.1.25) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.23...@thi.ng/geom-accel@2.1.24) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.22...@thi.ng/geom-accel@2.1.23) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.21...@thi.ng/geom-accel@2.1.22) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.20...@thi.ng/geom-accel@2.1.21) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.19...@thi.ng/geom-accel@2.1.20) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-accel - - - - - -## [2.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.18...@thi.ng/geom-accel@2.1.19) (2020-08-16) +## [2.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.28...@thi.ng/geom-accel@2.1.29) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-accel diff --git a/packages/geom-accel/package.json b/packages/geom-accel/package.json index 1e030da668..af0f8d6393 100644 --- a/packages/geom-accel/package.json +++ b/packages/geom-accel/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-accel", - "version": "2.1.28", + "version": "2.1.29", "description": "n-D spatial indexing data structures with a shared ES6 Map/Set-like API", "module": "./index.js", "main": "./lib/index.js", @@ -40,26 +40,26 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/heaps": "^1.2.28", - "@thi.ng/math": "^2.2.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/heaps": "^1.2.29", + "@thi.ng/math": "^3.0.0", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-api/CHANGELOG.md b/packages/geom-api/CHANGELOG.md index 5281aae017..a2f7c579c6 100644 --- a/packages/geom-api/CHANGELOG.md +++ b/packages/geom-api/CHANGELOG.md @@ -3,33 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.1.3...@thi.ng/geom-api@1.1.4) (2020-12-07) +# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.1.4...@thi.ng/geom-api@2.0.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/geom-api +### Code Refactoring +* **geom-api:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) remove Type enum ([e2cd24a](https://github.com/thi-ng/umbrella/commit/e2cd24a7fc24af4c2541cd426e5b03431cc8fe86)) +* **geom-api:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([c079a2a](https://github.com/thi-ng/umbrella/commit/c079a2ac620ef731429501d88580b4baada98ab6)) +### BREAKING CHANGES -## [1.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.1.2...@thi.ng/geom-api@1.1.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - -## [1.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.1.1...@thi.ng/geom-api@1.1.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - -## [1.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.1.0...@thi.ng/geom-api@1.1.1) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-api +* **geom-api:** remove obsolete shape Type enum +* **geom-api:** replace SegmentType enum w/ type alias @@ -46,46 +32,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.0.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.33...@thi.ng/geom-api@1.0.34) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - -## [1.0.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.32...@thi.ng/geom-api@1.0.33) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - -## [1.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.31...@thi.ng/geom-api@1.0.32) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - -## [1.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.30...@thi.ng/geom-api@1.0.31) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - -## [1.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.29...@thi.ng/geom-api@1.0.30) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/geom-api - - - - - # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@0.3.8...@thi.ng/geom-api@1.0.0) (2020-01-24) ### Features diff --git a/packages/geom-api/README.md b/packages/geom-api/README.md index 8b54a7fe65..86875e5c83 100644 --- a/packages/geom-api/README.md +++ b/packages/geom-api/README.md @@ -41,7 +41,7 @@ yarn add @thi.ng/geom-api ``` -Package sizes (gzipped, pre-treeshake): ESM: 618 bytes / CJS: 643 bytes / UMD: 791 bytes +Package sizes (gzipped, pre-treeshake): ESM: 287 bytes / CJS: 318 bytes / UMD: 441 bytes ## Dependencies diff --git a/packages/geom-api/package.json b/packages/geom-api/package.json index 241086a502..e272196a47 100644 --- a/packages/geom-api/package.json +++ b/packages/geom-api/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-api", - "version": "1.1.4", + "version": "2.0.0", "description": "Shared type & interface declarations for @thi.ng/geom packages", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-api/src/path.ts b/packages/geom-api/src/path.ts index 23e3e64bc9..d8b393cca3 100644 --- a/packages/geom-api/src/path.ts +++ b/packages/geom-api/src/path.ts @@ -1,15 +1,14 @@ import type { Vec } from "@thi.ng/vectors"; import type { IShape } from "./shape"; -export enum SegmentType { - MOVE, - LINE, - POLYLINE, - ARC, - CUBIC, - QUADRATIC, - CLOSE, -} +export type SegmentType = + | "m" // move + | "l" // line + | "p" // polyline + | "a" // arc + | "c" // cubic + | "q" // quadratic + | "z"; // close export interface PathSegment { type: SegmentType; diff --git a/packages/geom-api/src/shape.ts b/packages/geom-api/src/shape.ts index fe3a573e6f..b24c3ca102 100644 --- a/packages/geom-api/src/shape.ts +++ b/packages/geom-api/src/shape.ts @@ -1,41 +1,6 @@ import type { ICopy, IObjectOf, IToHiccup } from "@thi.ng/api"; import type { Vec } from "@thi.ng/vectors"; -export enum Type { - AABB = 1, - ARC, - CIRCLE, - CONE, - CUBIC, - CUBIC3, - CYLINDER, - ELLIPSE, - GROUP, - LINE, - LINE3, - PATH, - PLANE, - POINTS, - POINTS3, - POLYGON, - POLYGON3, - POLYLINE, - POLYLINE3, - QUAD, - QUAD3, - QUADRATIC, - QUADRATIC3, - RECT, - SPHERE, - TRIANGLE, - TRIANGLE3, - RAY, - RAY3, - - TEXT, - TEXT3, -} - export type Attribs = IObjectOf; export interface IShape extends ICopy { diff --git a/packages/geom-arc/CHANGELOG.md b/packages/geom-arc/CHANGELOG.md index 037e313419..5e2f3d4cf6 100644 --- a/packages/geom-arc/CHANGELOG.md +++ b/packages/geom-arc/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.3.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.16...@thi.ng/geom-arc@0.3.17) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.15...@thi.ng/geom-arc@0.3.16) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.14...@thi.ng/geom-arc@0.3.15) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.13...@thi.ng/geom-arc@0.3.14) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.12...@thi.ng/geom-arc@0.3.13) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.11...@thi.ng/geom-arc@0.3.12) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.10...@thi.ng/geom-arc@0.3.11) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.9...@thi.ng/geom-arc@0.3.10) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.8...@thi.ng/geom-arc@0.3.9) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-arc - - - - - -## [0.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.7...@thi.ng/geom-arc@0.3.8) (2020-08-16) +## [0.3.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.17...@thi.ng/geom-arc@0.3.18) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-arc diff --git a/packages/geom-arc/package.json b/packages/geom-arc/package.json index d38371f276..f4542e8b25 100644 --- a/packages/geom-arc/package.json +++ b/packages/geom-arc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-arc", - "version": "0.3.17", + "version": "0.3.18", "description": "2D circular / elliptic arc operations", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-resample": "^0.2.50", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-resample": "^0.2.51", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-clip-line/CHANGELOG.md b/packages/geom-clip-line/CHANGELOG.md index 271a6249ab..e70fcc9615 100644 --- a/packages/geom-clip-line/CHANGELOG.md +++ b/packages/geom-clip-line/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.12...@thi.ng/geom-clip-line@1.2.13) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.11...@thi.ng/geom-clip-line@1.2.12) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.10...@thi.ng/geom-clip-line@1.2.11) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.9...@thi.ng/geom-clip-line@1.2.10) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.8...@thi.ng/geom-clip-line@1.2.9) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.7...@thi.ng/geom-clip-line@1.2.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.6...@thi.ng/geom-clip-line@1.2.7) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.5...@thi.ng/geom-clip-line@1.2.6) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.4...@thi.ng/geom-clip-line@1.2.5) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-clip-line - - - - - -## [1.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.3...@thi.ng/geom-clip-line@1.2.4) (2020-08-16) +## [1.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.13...@thi.ng/geom-clip-line@1.2.14) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-clip-line diff --git a/packages/geom-clip-line/package.json b/packages/geom-clip-line/package.json index 14e1d006d4..f676de3b9a 100644 --- a/packages/geom-clip-line/package.json +++ b/packages/geom-clip-line/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-clip-line", - "version": "1.2.13", + "version": "1.2.14", "description": "2D line clipping (Liang-Barsky)", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-clip-poly/CHANGELOG.md b/packages/geom-clip-poly/CHANGELOG.md index b485492f4a..cea921ddae 100644 --- a/packages/geom-clip-poly/CHANGELOG.md +++ b/packages/geom-clip-poly/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.37...@thi.ng/geom-clip-poly@1.0.38) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.36...@thi.ng/geom-clip-poly@1.0.37) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.35...@thi.ng/geom-clip-poly@1.0.36) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.34...@thi.ng/geom-clip-poly@1.0.35) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.33...@thi.ng/geom-clip-poly@1.0.34) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.32...@thi.ng/geom-clip-poly@1.0.33) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.31...@thi.ng/geom-clip-poly@1.0.32) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.30...@thi.ng/geom-clip-poly@1.0.31) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.29...@thi.ng/geom-clip-poly@1.0.30) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-clip-poly - - - - - -## [1.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.28...@thi.ng/geom-clip-poly@1.0.29) (2020-08-16) +## [1.0.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.38...@thi.ng/geom-clip-poly@1.0.39) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-clip-poly diff --git a/packages/geom-clip-poly/package.json b/packages/geom-clip-poly/package.json index ed002d3907..0ee98efcff 100644 --- a/packages/geom-clip-poly/package.json +++ b/packages/geom-clip-poly/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-clip-poly", - "version": "1.0.38", + "version": "1.0.39", "description": "2D convex polygon clipping (Sutherland-Hodgeman)", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/geom-poly-utils": "^0.2.2", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/geom-poly-utils": "^0.3.0", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-closest-point/CHANGELOG.md b/packages/geom-closest-point/CHANGELOG.md index 240c3bce44..6ce44a2cc9 100644 --- a/packages/geom-closest-point/CHANGELOG.md +++ b/packages/geom-closest-point/CHANGELOG.md @@ -3,31 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.5.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.3...@thi.ng/geom-closest-point@0.5.4) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - -## [0.5.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.2...@thi.ng/geom-closest-point@0.5.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - -## [0.5.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.1...@thi.ng/geom-closest-point@0.5.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - -## [0.5.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.0...@thi.ng/geom-closest-point@0.5.1) (2020-10-03) +## [0.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.4...@thi.ng/geom-closest-point@0.5.5) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-closest-point @@ -67,38 +43,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.3.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.3.43...@thi.ng/geom-closest-point@0.3.44) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - -## [0.3.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.3.42...@thi.ng/geom-closest-point@0.3.43) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - -## [0.3.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.3.41...@thi.ng/geom-closest-point@0.3.42) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - -## [0.3.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.3.40...@thi.ng/geom-closest-point@0.3.41) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/geom-closest-point - - - - - # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.2.3...@thi.ng/geom-closest-point@0.3.0) (2019-07-07) ### Bug Fixes diff --git a/packages/geom-closest-point/package.json b/packages/geom-closest-point/package.json index f70ff7e857..e0b7967e87 100644 --- a/packages/geom-closest-point/package.json +++ b/packages/geom-closest-point/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-closest-point", - "version": "0.5.4", + "version": "0.5.5", "description": "2D / 3D closest point / proximity helpers", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-fuzz/CHANGELOG.md b/packages/geom-fuzz/CHANGELOG.md index 8fd0e097ca..75235840f5 100644 --- a/packages/geom-fuzz/CHANGELOG.md +++ b/packages/geom-fuzz/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.23...@thi.ng/geom-fuzz@0.1.24) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.22...@thi.ng/geom-fuzz@0.1.23) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.21...@thi.ng/geom-fuzz@0.1.22) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.20...@thi.ng/geom-fuzz@0.1.21) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.19...@thi.ng/geom-fuzz@0.1.20) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.18...@thi.ng/geom-fuzz@0.1.19) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.17...@thi.ng/geom-fuzz@0.1.18) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.16...@thi.ng/geom-fuzz@0.1.17) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.15...@thi.ng/geom-fuzz@0.1.16) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.14...@thi.ng/geom-fuzz@0.1.15) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-fuzz - - - - - -## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.13...@thi.ng/geom-fuzz@0.1.14) (2020-08-16) +## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.25...@thi.ng/geom-fuzz@0.1.26) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-fuzz diff --git a/packages/geom-fuzz/package.json b/packages/geom-fuzz/package.json index 5f812abc0b..aebc09d6ac 100644 --- a/packages/geom-fuzz/package.json +++ b/packages/geom-fuzz/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-fuzz", - "version": "0.1.24", + "version": "0.1.26", "description": "Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support", "module": "./index.js", "main": "./lib/index.js", @@ -38,26 +38,26 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/color": "^1.3.2", - "@thi.ng/geom": "^1.13.3", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-clip-line": "^1.2.13", - "@thi.ng/geom-resample": "^0.2.50", - "@thi.ng/grid-iterators": "^0.4.15", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/color": "^2.0.0", + "@thi.ng/geom": "^2.0.0", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-clip-line": "^1.2.14", + "@thi.ng/geom-resample": "^0.2.51", + "@thi.ng/grid-iterators": "^0.4.16", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-hull/CHANGELOG.md b/packages/geom-hull/CHANGELOG.md index 953ba72390..37991cfed8 100644 --- a/packages/geom-hull/CHANGELOG.md +++ b/packages/geom-hull/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.0.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.69...@thi.ng/geom-hull@0.0.70) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.69](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.68...@thi.ng/geom-hull@0.0.69) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.68](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.67...@thi.ng/geom-hull@0.0.68) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.66...@thi.ng/geom-hull@0.0.67) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.65...@thi.ng/geom-hull@0.0.66) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.64...@thi.ng/geom-hull@0.0.65) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.63...@thi.ng/geom-hull@0.0.64) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.62...@thi.ng/geom-hull@0.0.63) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-hull - - - - - -## [0.0.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.61...@thi.ng/geom-hull@0.0.62) (2020-08-17) +## [0.0.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.70...@thi.ng/geom-hull@0.0.71) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-hull diff --git a/packages/geom-hull/package.json b/packages/geom-hull/package.json index d7936bcf88..7dd112c1f4 100644 --- a/packages/geom-hull/package.json +++ b/packages/geom-hull/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-hull", - "version": "0.0.70", + "version": "0.0.71", "description": "Fast 2D convex hull (Graham Scan)", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-io-obj/CHANGELOG.md b/packages/geom-io-obj/CHANGELOG.md index 4ecd5aef1f..fb0eaeb81a 100644 --- a/packages/geom-io-obj/CHANGELOG.md +++ b/packages/geom-io-obj/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.27...@thi.ng/geom-io-obj@0.1.28) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.26...@thi.ng/geom-io-obj@0.1.27) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.25...@thi.ng/geom-io-obj@0.1.26) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.24...@thi.ng/geom-io-obj@0.1.25) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.23...@thi.ng/geom-io-obj@0.1.24) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.22...@thi.ng/geom-io-obj@0.1.23) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.21...@thi.ng/geom-io-obj@0.1.22) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.20...@thi.ng/geom-io-obj@0.1.21) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.19...@thi.ng/geom-io-obj@0.1.20) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-io-obj - - - - - -## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.18...@thi.ng/geom-io-obj@0.1.19) (2020-08-16) +## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.28...@thi.ng/geom-io-obj@0.1.29) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-io-obj diff --git a/packages/geom-io-obj/package.json b/packages/geom-io-obj/package.json index aeb7693eb5..e829cd54b3 100644 --- a/packages/geom-io-obj/package.json +++ b/packages/geom-io-obj/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-io-obj", - "version": "0.1.28", + "version": "0.1.29", "description": "Wavefront OBJ parser (& exporter soon)", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-isec/CHANGELOG.md b/packages/geom-isec/CHANGELOG.md index a9d62e6267..dc8929ad12 100644 --- a/packages/geom-isec/CHANGELOG.md +++ b/packages/geom-isec/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.7.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.1...@thi.ng/geom-isec@0.7.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - -## [0.7.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.0...@thi.ng/geom-isec@0.7.1) (2020-11-26) +## [0.7.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.2...@thi.ng/geom-isec@0.7.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-isec @@ -30,14 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.6.0...@thi.ng/geom-isec@0.6.1) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.5.8...@thi.ng/geom-isec@0.6.0) (2020-09-22) @@ -54,46 +38,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.5.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.5.7...@thi.ng/geom-isec@0.5.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - -## [0.5.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.5.6...@thi.ng/geom-isec@0.5.7) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - -## [0.5.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.5.5...@thi.ng/geom-isec@0.5.6) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - -## [0.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.5.4...@thi.ng/geom-isec@0.5.5) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - -## [0.5.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.5.3...@thi.ng/geom-isec@0.5.4) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/geom-isec - - - - - # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.4.26...@thi.ng/geom-isec@0.5.0) (2020-07-17) diff --git a/packages/geom-isec/package.json b/packages/geom-isec/package.json index 9c3c30410a..76c6a5b77d 100644 --- a/packages/geom-isec/package.json +++ b/packages/geom-isec/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-isec", - "version": "0.7.2", + "version": "0.7.3", "description": "2D/3D shape intersection checks", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-closest-point": "^0.5.4", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-closest-point": "^0.5.5", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-isoline/CHANGELOG.md b/packages/geom-isoline/CHANGELOG.md index 999deba80a..a85351578a 100644 --- a/packages/geom-isoline/CHANGELOG.md +++ b/packages/geom-isoline/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.68](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.67...@thi.ng/geom-isoline@0.1.68) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.66...@thi.ng/geom-isoline@0.1.67) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.65...@thi.ng/geom-isoline@0.1.66) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.64...@thi.ng/geom-isoline@0.1.65) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.63...@thi.ng/geom-isoline@0.1.64) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.62...@thi.ng/geom-isoline@0.1.63) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.61...@thi.ng/geom-isoline@0.1.62) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.60...@thi.ng/geom-isoline@0.1.61) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.59...@thi.ng/geom-isoline@0.1.60) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-isoline - - - - - -## [0.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.58...@thi.ng/geom-isoline@0.1.59) (2020-08-16) +## [0.1.69](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.68...@thi.ng/geom-isoline@0.1.69) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-isoline diff --git a/packages/geom-isoline/package.json b/packages/geom-isoline/package.json index 5a6191e50c..f868c9a3e3 100644 --- a/packages/geom-isoline/package.json +++ b/packages/geom-isoline/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-isoline", - "version": "0.1.68", + "version": "0.1.69", "description": "Fast 2D contour line extraction / generation", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-poly-utils/CHANGELOG.md b/packages/geom-poly-utils/CHANGELOG.md index 110d3fabba..e8a8563739 100644 --- a/packages/geom-poly-utils/CHANGELOG.md +++ b/packages/geom-poly-utils/CHANGELOG.md @@ -3,17 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.2.1...@thi.ng/geom-poly-utils@0.2.2) (2020-12-07) +# [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.2.2...@thi.ng/geom-poly-utils@0.3.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/geom-poly-utils +### Features - - - -## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.2.0...@thi.ng/geom-poly-utils@0.2.1) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils +* **geom-poly-utils:** add tangents(), smoothTangents() ([12a9d8a](https://github.com/thi-ng/umbrella/commit/12a9d8a641672f4c3e007a80dd08cfe9b54ce650)) @@ -30,62 +25,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.65...@thi.ng/geom-poly-utils@0.1.66) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - -## [0.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.64...@thi.ng/geom-poly-utils@0.1.65) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - -## [0.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.63...@thi.ng/geom-poly-utils@0.1.64) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - -## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.62...@thi.ng/geom-poly-utils@0.1.63) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - -## [0.1.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.61...@thi.ng/geom-poly-utils@0.1.62) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - -## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.60...@thi.ng/geom-poly-utils@0.1.61) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - -## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.59...@thi.ng/geom-poly-utils@0.1.60) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/geom-poly-utils - - - - - ## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.17...@thi.ng/geom-poly-utils@0.1.18) (2019-07-07) ### Bug Fixes diff --git a/packages/geom-poly-utils/README.md b/packages/geom-poly-utils/README.md index d8376f7095..da893dfba4 100644 --- a/packages/geom-poly-utils/README.md +++ b/packages/geom-poly-utils/README.md @@ -19,7 +19,7 @@ This project is part of the ## About -2D polygon / triangle analysis & processing utilities. +2D polygon/polyline analysis & processing utilities. - signed 2D polygon & triangle area - triangle barycentric coord conversion @@ -55,7 +55,7 @@ yarn add @thi.ng/geom-poly-utils ``` -Package sizes (gzipped, pre-treeshake): ESM: 1.17 KB / CJS: 1.24 KB / UMD: 1.30 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.44 KB / CJS: 1.51 KB / UMD: 1.57 KB ## Dependencies diff --git a/packages/geom-poly-utils/package.json b/packages/geom-poly-utils/package.json index 1da27d2775..23fd265060 100644 --- a/packages/geom-poly-utils/package.json +++ b/packages/geom-poly-utils/package.json @@ -1,7 +1,7 @@ { "name": "@thi.ng/geom-poly-utils", - "version": "0.2.2", - "description": "2D polygon / triangle analysis & processing utilities", + "version": "0.3.0", + "description": "2D polygon/polyline analysis & processing utilities", "module": "./index.js", "main": "./lib/index.js", "umd:main": "./lib/index.umd.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-poly-utils/src/index.ts b/packages/geom-poly-utils/src/index.ts index 69b4fc61a3..0ea9562d8d 100644 --- a/packages/geom-poly-utils/src/index.ts +++ b/packages/geom-poly-utils/src/index.ts @@ -7,3 +7,4 @@ export * from "./circumcenter"; export * from "./convexity"; export * from "./equilateral"; export * from "./perimeter"; +export * from "./tangent"; diff --git a/packages/geom-poly-utils/src/tangent.ts b/packages/geom-poly-utils/src/tangent.ts new file mode 100644 index 0000000000..6bd030ef2c --- /dev/null +++ b/packages/geom-poly-utils/src/tangent.ts @@ -0,0 +1,119 @@ +import { EPS } from "@thi.ng/math"; +import { + addmN, + direction, + mag, + mixN, + normalize, + perpendicularCCW, + ReadonlyVec, + set, + sub, + Vec, +} from "@thi.ng/vectors"; + +/** + * Takes an array of polyline/polygon vertices and computes the tangent + * directions for each (point). + * + * @remarks + * Use `close=true` to indicate a polygon and cause the last tangent to be the + * direction from last vertex to the first. If `close=false`, the last point's + * tangent will be the same as the previous one. + * + * The optional `scale` arg can be used to scale the tangents (default: 1). + * + * @param pts + * @param close + * @param scale + */ +export const tangents = (pts: ReadonlyVec[], close = false, scale = 1) => { + const n = pts.length - 1; + const res: Vec[] = []; + for (let i = 1; i <= n; i++) { + res.push(direction([], pts[i - 1], pts[i], scale)); + } + res.push( + close ? direction([], pts[n], pts[0], scale) : set([], res[n - 1]) + ); + return res; +}; + +/** + * Extended version of {@link tangents}. Takes an array of polyline/polygon + * vertices and computes the smoothed tangent directions for each (point). + * + * @remarks + * By default, the tangent direction is proportionally influenced by the length + * ratio of a point's previous and current line segments: `currLen / (prevLen + + * currLen)`. + * + * If `proportional` is disabled, the tangents will be the simple mean of the + * direction of the prev/curr segments. + * + * The optional `scale` arg can be used to scale the tangents (default: 1). + * + * @param pts + * @param close + * @param proportional + * @param scale + */ +export const smoothTangents = ( + pts: ReadonlyVec[], + close = false, + proportional = true, + scale = 1 +) => { + const res: Vec[] = []; + const n = pts.length - 1; + if (n < 1) return res; + let prev: Vec | undefined; + let plen: number | undefined; + if (close) { + prev = sub([], pts[0], pts[n]); + plen = mag(prev!); + normalize(null, prev!); + } + let t: Vec; + for (let i = 0; i <= n; i++) { + let curr: Vec; + let clen: number; + if (i === n) { + if (close) { + curr = sub([], pts[0], pts[i]); + } else { + res.push(prev!); + return res; + } + } else { + curr = sub([], pts[i + 1], pts[i]); + } + clen = mag(curr); + normalize(null, curr); + if (i > 0 || close) { + t = proportional + ? mixN( + [], + prev!, + curr, + Math.min(1, clen / (clen + plen! + EPS)) + ) + : addmN([], prev!, curr, 0.5); + } else { + t = set([], curr); + } + res.push(normalize(null, t, scale)); + prev = curr; + plen = clen; + } + return res; +}; + +/** + * Transforms an array of 2d tangent vectors into a new array with each tangent + * rotated 90 degrees counter-clockwise. + * + * @param tangents + */ +export const bitangents2 = (tangents: ReadonlyVec[]) => + tangents.map((t) => perpendicularCCW([], t)); diff --git a/packages/geom-resample/CHANGELOG.md b/packages/geom-resample/CHANGELOG.md index a9d576b2e3..e6643ca89c 100644 --- a/packages/geom-resample/CHANGELOG.md +++ b/packages/geom-resample/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.49...@thi.ng/geom-resample@0.2.50) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.48...@thi.ng/geom-resample@0.2.49) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.47...@thi.ng/geom-resample@0.2.48) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.46...@thi.ng/geom-resample@0.2.47) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.45...@thi.ng/geom-resample@0.2.46) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.44...@thi.ng/geom-resample@0.2.45) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.43...@thi.ng/geom-resample@0.2.44) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.42...@thi.ng/geom-resample@0.2.43) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.41...@thi.ng/geom-resample@0.2.42) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-resample - - - - - -## [0.2.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.40...@thi.ng/geom-resample@0.2.41) (2020-08-16) +## [0.2.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.50...@thi.ng/geom-resample@0.2.51) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-resample diff --git a/packages/geom-resample/package.json b/packages/geom-resample/package.json index 8d9cbec1f3..1bf3dcb3e7 100644 --- a/packages/geom-resample/package.json +++ b/packages/geom-resample/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-resample", - "version": "0.2.50", + "version": "0.2.51", "description": "Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-closest-point": "^0.5.4", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-closest-point": "^0.5.5", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-splines/CHANGELOG.md b/packages/geom-splines/CHANGELOG.md index 42fb017061..350b933e19 100644 --- a/packages/geom-splines/CHANGELOG.md +++ b/packages/geom-splines/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.5.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.36...@thi.ng/geom-splines@0.5.37) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.35...@thi.ng/geom-splines@0.5.36) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.34...@thi.ng/geom-splines@0.5.35) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.33...@thi.ng/geom-splines@0.5.34) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.32...@thi.ng/geom-splines@0.5.33) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.31...@thi.ng/geom-splines@0.5.32) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.30...@thi.ng/geom-splines@0.5.31) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.29...@thi.ng/geom-splines@0.5.30) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.28...@thi.ng/geom-splines@0.5.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-splines - - - - - -## [0.5.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.27...@thi.ng/geom-splines@0.5.28) (2020-08-16) +## [0.5.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.37...@thi.ng/geom-splines@0.5.38) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-splines diff --git a/packages/geom-splines/package.json b/packages/geom-splines/package.json index 932275da91..b5aafab5cc 100644 --- a/packages/geom-splines/package.json +++ b/packages/geom-splines/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-splines", - "version": "0.5.37", + "version": "0.5.38", "description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib internal", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,23 +39,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-arc": "^0.3.17", - "@thi.ng/geom-resample": "^0.2.50", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-arc": "^0.3.18", + "@thi.ng/geom-resample": "^0.2.51", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-subdiv-curve/CHANGELOG.md b/packages/geom-subdiv-curve/CHANGELOG.md index 4a1251a00d..476e5cfc4a 100644 --- a/packages/geom-subdiv-curve/CHANGELOG.md +++ b/packages/geom-subdiv-curve/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.66...@thi.ng/geom-subdiv-curve@0.1.67) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.65...@thi.ng/geom-subdiv-curve@0.1.66) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.64...@thi.ng/geom-subdiv-curve@0.1.65) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.63...@thi.ng/geom-subdiv-curve@0.1.64) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.62...@thi.ng/geom-subdiv-curve@0.1.63) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.61...@thi.ng/geom-subdiv-curve@0.1.62) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.60...@thi.ng/geom-subdiv-curve@0.1.61) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.59...@thi.ng/geom-subdiv-curve@0.1.60) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.58...@thi.ng/geom-subdiv-curve@0.1.59) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-subdiv-curve - - - - - -## [0.1.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.57...@thi.ng/geom-subdiv-curve@0.1.58) (2020-08-16) +## [0.1.69](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.68...@thi.ng/geom-subdiv-curve@0.1.69) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-subdiv-curve diff --git a/packages/geom-subdiv-curve/README.md b/packages/geom-subdiv-curve/README.md index d40b62bd27..f005c4aaec 100644 --- a/packages/geom-subdiv-curve/README.md +++ b/packages/geom-subdiv-curve/README.md @@ -62,6 +62,7 @@ Package sizes (gzipped, pre-treeshake): ESM: 658 bytes / CJS: 736 bytes / UMD: 7 ## Dependencies +- [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) - [@thi.ng/geom-api](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-api) - [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers) - [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors) diff --git a/packages/geom-subdiv-curve/package.json b/packages/geom-subdiv-curve/package.json index dbbfd056e5..bd6b1927e0 100644 --- a/packages/geom-subdiv-curve/package.json +++ b/packages/geom-subdiv-curve/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-subdiv-curve", - "version": "0.1.67", + "version": "0.1.69", "description": "Freely customizable, iterative nD subdivision curves for open / closed geometries", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-tessellate/CHANGELOG.md b/packages/geom-tessellate/CHANGELOG.md index 314c597af6..d0ed1ce034 100644 --- a/packages/geom-tessellate/CHANGELOG.md +++ b/packages/geom-tessellate/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.50...@thi.ng/geom-tessellate@0.2.51) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.49...@thi.ng/geom-tessellate@0.2.50) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.48...@thi.ng/geom-tessellate@0.2.49) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.47...@thi.ng/geom-tessellate@0.2.48) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.46...@thi.ng/geom-tessellate@0.2.47) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.45...@thi.ng/geom-tessellate@0.2.46) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.44...@thi.ng/geom-tessellate@0.2.45) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.43...@thi.ng/geom-tessellate@0.2.44) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.42...@thi.ng/geom-tessellate@0.2.43) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-tessellate - - - - - -## [0.2.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.41...@thi.ng/geom-tessellate@0.2.42) (2020-08-16) +## [0.2.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.51...@thi.ng/geom-tessellate@0.2.52) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-tessellate diff --git a/packages/geom-tessellate/package.json b/packages/geom-tessellate/package.json index 0de128436c..c09806779b 100644 --- a/packages/geom-tessellate/package.json +++ b/packages/geom-tessellate/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-tessellate", - "version": "0.2.51", + "version": "0.2.52", "description": "2D/3D convex polygon tessellators", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/geom-poly-utils": "^0.2.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/geom-poly-utils": "^0.3.0", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom-voronoi/CHANGELOG.md b/packages/geom-voronoi/CHANGELOG.md index 58fd8662ba..0eb5b8aa84 100644 --- a/packages/geom-voronoi/CHANGELOG.md +++ b/packages/geom-voronoi/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.12...@thi.ng/geom-voronoi@0.2.13) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.11...@thi.ng/geom-voronoi@0.2.12) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.10...@thi.ng/geom-voronoi@0.2.11) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.9...@thi.ng/geom-voronoi@0.2.10) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.8...@thi.ng/geom-voronoi@0.2.9) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.7...@thi.ng/geom-voronoi@0.2.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.6...@thi.ng/geom-voronoi@0.2.7) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.5...@thi.ng/geom-voronoi@0.2.6) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.4...@thi.ng/geom-voronoi@0.2.5) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom-voronoi - - - - - -## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.3...@thi.ng/geom-voronoi@0.2.4) (2020-08-16) +## [0.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.13...@thi.ng/geom-voronoi@0.2.14) (2020-12-22) **Note:** Version bump only for package @thi.ng/geom-voronoi diff --git a/packages/geom-voronoi/package.json b/packages/geom-voronoi/package.json index 0888119db0..b6dcbf4baa 100644 --- a/packages/geom-voronoi/package.json +++ b/packages/geom-voronoi/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-voronoi", - "version": "0.2.13", + "version": "0.2.14", "description": "Fast, incremental 2D Delaunay & Voronoi mesh implementation", "module": "./index.js", "main": "./lib/index.js", @@ -39,25 +39,25 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-clip-line": "^1.2.13", - "@thi.ng/geom-clip-poly": "^1.0.38", - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/geom-poly-utils": "^0.2.2", - "@thi.ng/math": "^2.2.2", - "@thi.ng/quad-edge": "^0.2.26", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-clip-line": "^1.2.14", + "@thi.ng/geom-clip-poly": "^1.0.39", + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/geom-poly-utils": "^0.3.0", + "@thi.ng/math": "^3.0.0", + "@thi.ng/quad-edge": "^0.2.27", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom/CHANGELOG.md b/packages/geom/CHANGELOG.md index 7881558ead..1894c2e6ff 100644 --- a/packages/geom/CHANGELOG.md +++ b/packages/geom/CHANGELOG.md @@ -3,17 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.13.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.13.2...@thi.ng/geom@1.13.3) (2020-12-07) +# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.13.4...@thi.ng/geom@2.0.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/geom +### Bug Fixes + +* **geom:** fix [#268](https://github.com/thi-ng/umbrella/issues/268) add Group.copyTransformed() ([2da6c63](https://github.com/thi-ng/umbrella/commit/2da6c63b5a2dbc45bc1272eaf592d3d74d8ce74e)) + + +### Code Refactoring +* **geom:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([67988ad](https://github.com/thi-ng/umbrella/commit/67988ad31f478b28de85e40d8ab7c51501ef4acb)) +* **geom:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace Type enum w/ alias ([ef7ba74](https://github.com/thi-ng/umbrella/commit/ef7ba74c189755d760d84c700b0c970a281a3b04)) +### BREAKING CHANGES -## [1.13.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.13.1...@thi.ng/geom@1.13.2) (2020-11-26) +* **geom:** replace Type enum returned by IShape.type w/ string consts -**Note:** Version bump only for package @thi.ng/geom +- update all shape classes +- update all ops/multimethod dispatches +* **geom:** replace SegmentType w/ type alias @@ -58,14 +68,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.11.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.11.7...@thi.ng/geom@1.11.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/geom - - - - - ## [1.11.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.11.6...@thi.ng/geom@1.11.7) (2020-08-28) @@ -77,30 +79,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.11.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.11.5...@thi.ng/geom@1.11.6) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/geom - - - - - -## [1.11.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.11.4...@thi.ng/geom@1.11.5) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/geom - - - - - -## [1.11.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.11.3...@thi.ng/geom@1.11.4) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/geom - - - - - # [1.11.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.10.7...@thi.ng/geom@1.11.0) (2020-07-17) diff --git a/packages/geom/README.md b/packages/geom/README.md index 2066982aa2..554e0b5023 100644 --- a/packages/geom/README.md +++ b/packages/geom/README.md @@ -48,7 +48,7 @@ themselves too): - [@thi.ng/geom-io-obj](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-io-obj) - Wavefront OBJ parser (& exporter soon) - [@thi.ng/geom-isec](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-isec) - 2D/3D shape intersection checks - [@thi.ng/geom-isoline](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-isoline) - Fast 2D contour line extraction / generation -- [@thi.ng/geom-poly-utils](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-poly-utils) - 2D polygon / triangle analysis & processing utilities +- [@thi.ng/geom-poly-utils](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-poly-utils) - 2D polygon/polyline analysis & processing utilities - [@thi.ng/geom-resample](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-resample) - Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation - [@thi.ng/geom-splines](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-splines) - nD cubic & quadratic curve analysis, conversion, interpolation, splitting - [@thi.ng/geom-subdiv-curve](https://github.com/thi-ng/umbrella/tree/develop/packages/geom-subdiv-curve) - Freely customizable, iterative nD subdivision curves for open / closed geometries @@ -75,7 +75,7 @@ yarn add @thi.ng/geom ``` -Package sizes (gzipped, pre-treeshake): ESM: 10.49 KB / CJS: 10.82 KB / UMD: 10.16 KB +Package sizes (gzipped, pre-treeshake): ESM: 10.27 KB / CJS: 10.50 KB / UMD: 9.93 KB ## Dependencies diff --git a/packages/geom/package.json b/packages/geom/package.json index 4b02f6d9ac..cd5d1c6419 100644 --- a/packages/geom/package.json +++ b/packages/geom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom", - "version": "1.13.3", + "version": "2.0.0", "description": "Functional, polymorphic API for 2D geometry types & SVG generation", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib ctors internal ops", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib api ctors internal ops", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,42 +39,42 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-arc": "^0.3.17", - "@thi.ng/geom-clip-line": "^1.2.13", - "@thi.ng/geom-clip-poly": "^1.0.38", - "@thi.ng/geom-closest-point": "^0.5.4", - "@thi.ng/geom-hull": "^0.0.70", - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/geom-poly-utils": "^0.2.2", - "@thi.ng/geom-resample": "^0.2.50", - "@thi.ng/geom-splines": "^0.5.37", - "@thi.ng/geom-subdiv-curve": "^0.1.67", - "@thi.ng/geom-tessellate": "^0.2.51", - "@thi.ng/hiccup": "^3.6.4", - "@thi.ng/hiccup-svg": "^3.6.5", - "@thi.ng/math": "^2.2.2", - "@thi.ng/matrices": "^0.6.37", - "@thi.ng/random": "^2.1.2", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-arc": "^0.3.18", + "@thi.ng/geom-clip-line": "^1.2.14", + "@thi.ng/geom-clip-poly": "^1.0.39", + "@thi.ng/geom-closest-point": "^0.5.5", + "@thi.ng/geom-hull": "^0.0.71", + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/geom-poly-utils": "^0.3.0", + "@thi.ng/geom-resample": "^0.2.51", + "@thi.ng/geom-splines": "^0.5.38", + "@thi.ng/geom-subdiv-curve": "^0.1.69", + "@thi.ng/geom-tessellate": "^0.2.52", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/hiccup-svg": "^3.6.6", + "@thi.ng/math": "^3.0.0", + "@thi.ng/matrices": "^0.6.38", + "@thi.ng/random": "^2.1.3", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/geom/src/api/aabb.ts b/packages/geom/src/api/aabb.ts index 50bf93512a..cd28b30443 100644 --- a/packages/geom/src/api/aabb.ts +++ b/packages/geom/src/api/aabb.ts @@ -1,5 +1,5 @@ import { isNumber } from "@thi.ng/checks"; -import { AABBLike, Attribs, Type } from "@thi.ng/geom-api"; +import type { AABBLike, Attribs } from "@thi.ng/geom-api"; import { add3, set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -15,7 +15,7 @@ export class AABB implements AABBLike { } get type() { - return Type.AABB; + return "aabb"; } copy(): AABB { diff --git a/packages/geom/src/api/arc.ts b/packages/geom/src/api/arc.ts index 2c00d686c0..9769203791 100644 --- a/packages/geom/src/api/arc.ts +++ b/packages/geom/src/api/arc.ts @@ -1,9 +1,8 @@ import { equiv } from "@thi.ng/equiv"; -import { +import type { Attribs, IHiccupPathSegment, IHiccupShape, - Type, } from "@thi.ng/geom-api"; import { pointAt as arcPointAt, @@ -25,7 +24,7 @@ export class Arc implements IHiccupShape, IHiccupPathSegment { ) {} get type() { - return Type.ARC; + return "arc"; } copy(): Arc { diff --git a/packages/geom/src/api/circle.ts b/packages/geom/src/api/circle.ts index bbc803d3cf..db5020ded4 100644 --- a/packages/geom/src/api/circle.ts +++ b/packages/geom/src/api/circle.ts @@ -1,4 +1,4 @@ -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -10,7 +10,7 @@ export class Circle implements IHiccupShape { ) {} get type() { - return Type.CIRCLE; + return "circle"; } copy(): Circle { diff --git a/packages/geom/src/api/cubic.ts b/packages/geom/src/api/cubic.ts index a3844efece..1a53f2740b 100644 --- a/packages/geom/src/api/cubic.ts +++ b/packages/geom/src/api/cubic.ts @@ -1,10 +1,10 @@ -import { IHiccupPathSegment, Type } from "@thi.ng/geom-api"; +import type { IHiccupPathSegment } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Cubic extends APC implements IHiccupPathSegment { get type() { - return Type.CUBIC; + return "cubic"; } copy(): Cubic { diff --git a/packages/geom/src/api/ellipse.ts b/packages/geom/src/api/ellipse.ts index 56255d1757..00a43e7ad0 100644 --- a/packages/geom/src/api/ellipse.ts +++ b/packages/geom/src/api/ellipse.ts @@ -1,5 +1,5 @@ import { isNumber } from "@thi.ng/checks"; -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -15,7 +15,7 @@ export class Ellipse implements IHiccupShape { } get type() { - return Type.ELLIPSE; + return "ellipse"; } copy(): Ellipse { diff --git a/packages/geom/src/api/group.ts b/packages/geom/src/api/group.ts index 59cc9ef3d1..1ccb532f0d 100644 --- a/packages/geom/src/api/group.ts +++ b/packages/geom/src/api/group.ts @@ -1,5 +1,6 @@ +import type { Fn } from "@thi.ng/api"; import { equiv } from "@thi.ng/equiv"; -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { copyAttribs } from "../internal/copy-attribs"; export class Group implements IHiccupShape { @@ -9,7 +10,7 @@ export class Group implements IHiccupShape { ) {} get type() { - return Type.GROUP; + return "group"; } *[Symbol.iterator]() { @@ -17,10 +18,11 @@ export class Group implements IHiccupShape { } copy(): Group { - return new Group( - copyAttribs(this), - this.children.map((c) => c.copy()) - ); + return this.copyTransformed((c) => c.copy()); + } + + copyTransformed(fn: Fn) { + return new Group(copyAttribs(this), this.children.map(fn)); } equiv(o: any) { diff --git a/packages/geom/src/api/line.ts b/packages/geom/src/api/line.ts index 8439f25376..c48bcb4302 100644 --- a/packages/geom/src/api/line.ts +++ b/packages/geom/src/api/line.ts @@ -1,10 +1,10 @@ -import { IHiccupPathSegment, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupPathSegment, IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Line extends APC implements IHiccupShape, IHiccupPathSegment { get type() { - return Type.LINE; + return "line"; } copy(): Line { diff --git a/packages/geom/src/api/path.ts b/packages/geom/src/api/path.ts index 9e8a03199d..e987afb0da 100644 --- a/packages/geom/src/api/path.ts +++ b/packages/geom/src/api/path.ts @@ -1,8 +1,8 @@ import { equiv } from "@thi.ng/equiv"; import { illegalState } from "@thi.ng/errors"; -import { Attribs, IHiccupShape, PathSegment, Type } from "@thi.ng/geom-api"; -import { copyAttribs } from "../internal/copy-attribs"; +import type { Attribs, IHiccupShape, PathSegment } from "@thi.ng/geom-api"; import { copy } from "@thi.ng/vectors"; +import { copyAttribs } from "../internal/copy-attribs"; export class Path implements IHiccupShape { closed = false; @@ -13,7 +13,7 @@ export class Path implements IHiccupShape { ) {} get type() { - return Type.PATH; + return "path"; } *[Symbol.iterator]() { diff --git a/packages/geom/src/api/plane.ts b/packages/geom/src/api/plane.ts index e2b2cd9f89..7225caf488 100644 --- a/packages/geom/src/api/plane.ts +++ b/packages/geom/src/api/plane.ts @@ -1,4 +1,4 @@ -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -10,7 +10,7 @@ export class Plane implements IHiccupShape { ) {} get type() { - return Type.PLANE; + return "plane"; } copy(): Plane { diff --git a/packages/geom/src/api/points.ts b/packages/geom/src/api/points.ts index f576e23ebb..7b21928915 100644 --- a/packages/geom/src/api/points.ts +++ b/packages/geom/src/api/points.ts @@ -1,10 +1,10 @@ -import { IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Points extends APC implements IHiccupShape { get type() { - return Type.POINTS; + return "points"; } copy(): Points { @@ -18,7 +18,7 @@ export class Points extends APC implements IHiccupShape { export class Points3 extends APC implements IHiccupShape { get type() { - return Type.POINTS3; + return "points3"; } copy(): Points3 { diff --git a/packages/geom/src/api/polygon.ts b/packages/geom/src/api/polygon.ts index bb91585e70..5f55351d5c 100644 --- a/packages/geom/src/api/polygon.ts +++ b/packages/geom/src/api/polygon.ts @@ -1,10 +1,10 @@ -import { IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Polygon extends APC implements IHiccupShape { get type() { - return Type.POLYGON; + return "poly"; } copy(): Polygon { diff --git a/packages/geom/src/api/polyline.ts b/packages/geom/src/api/polyline.ts index 3a46211222..c0cdd39c55 100644 --- a/packages/geom/src/api/polyline.ts +++ b/packages/geom/src/api/polyline.ts @@ -1,10 +1,10 @@ -import { IHiccupPathSegment, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupPathSegment, IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Polyline extends APC implements IHiccupShape, IHiccupPathSegment { get type() { - return Type.POLYLINE; + return "polyline"; } copy(): Polyline { diff --git a/packages/geom/src/api/quad.ts b/packages/geom/src/api/quad.ts index d5718ec713..cd0de4b7b5 100644 --- a/packages/geom/src/api/quad.ts +++ b/packages/geom/src/api/quad.ts @@ -1,10 +1,10 @@ -import { IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Quad extends APC implements IHiccupShape { get type() { - return Type.QUAD; + return "quad"; } copy(): Quad { diff --git a/packages/geom/src/api/quad3.ts b/packages/geom/src/api/quad3.ts index 704bf86522..893b6db869 100644 --- a/packages/geom/src/api/quad3.ts +++ b/packages/geom/src/api/quad3.ts @@ -1,10 +1,10 @@ -import { IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Quad3 extends APC implements IHiccupShape { get type() { - return Type.QUAD3; + return "quad3"; } copy(): Quad3 { diff --git a/packages/geom/src/api/quadratic.ts b/packages/geom/src/api/quadratic.ts index f3c5f63e2b..7011d0a177 100644 --- a/packages/geom/src/api/quadratic.ts +++ b/packages/geom/src/api/quadratic.ts @@ -1,10 +1,10 @@ -import { IHiccupPathSegment, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupPathSegment, IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Quadratic extends APC implements IHiccupShape, IHiccupPathSegment { get type() { - return Type.QUADRATIC; + return "quadratic"; } copy(): Quadratic { diff --git a/packages/geom/src/api/ray.ts b/packages/geom/src/api/ray.ts index 594f070e58..816db788b5 100644 --- a/packages/geom/src/api/ray.ts +++ b/packages/geom/src/api/ray.ts @@ -1,4 +1,4 @@ -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { maddN2, set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -6,7 +6,7 @@ export class Ray implements IHiccupShape { constructor(public pos: Vec, public dir: Vec, public attribs?: Attribs) {} get type() { - return Type.RAY; + return "ray"; } copy(): Ray { diff --git a/packages/geom/src/api/rect.ts b/packages/geom/src/api/rect.ts index ceb4866409..539848029d 100644 --- a/packages/geom/src/api/rect.ts +++ b/packages/geom/src/api/rect.ts @@ -1,5 +1,5 @@ import { isNumber } from "@thi.ng/checks"; -import { AABBLike, Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { AABBLike, Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { add2, set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -15,7 +15,7 @@ export class Rect implements AABBLike, IHiccupShape { } get type() { - return Type.RECT; + return "rect"; } copy(): Rect { diff --git a/packages/geom/src/api/sphere.ts b/packages/geom/src/api/sphere.ts index 04fb486ea2..6e38ed3bfe 100644 --- a/packages/geom/src/api/sphere.ts +++ b/packages/geom/src/api/sphere.ts @@ -1,4 +1,4 @@ -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { set3, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -10,7 +10,7 @@ export class Sphere implements IHiccupShape { ) {} get type() { - return Type.SPHERE; + return "sphere"; } copy(): Sphere { diff --git a/packages/geom/src/api/text.ts b/packages/geom/src/api/text.ts index f8f321a5b8..5ad7ab2041 100644 --- a/packages/geom/src/api/text.ts +++ b/packages/geom/src/api/text.ts @@ -1,4 +1,4 @@ -import { Attribs, IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { Attribs, IHiccupShape } from "@thi.ng/geom-api"; import { set, Vec } from "@thi.ng/vectors"; import { copyAttribs } from "../internal/copy-attribs"; @@ -12,7 +12,7 @@ export class Text implements IHiccupShape { constructor(public pos: Vec, public body: any, public attribs?: Attribs) {} get type() { - return Type.TEXT; + return "text"; } copy(): Text { diff --git a/packages/geom/src/api/triangle.ts b/packages/geom/src/api/triangle.ts index ce078c0dec..3fc7a738b3 100644 --- a/packages/geom/src/api/triangle.ts +++ b/packages/geom/src/api/triangle.ts @@ -1,10 +1,10 @@ -import { IHiccupShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape } from "@thi.ng/geom-api"; import { copyShape } from "../internal/copy-shape"; import { APC } from "./apc"; export class Triangle extends APC implements IHiccupShape { get type() { - return Type.TRIANGLE; + return "tri"; } copy(): Triangle { diff --git a/packages/geom/src/ctors/path-builder.ts b/packages/geom/src/ctors/path-builder.ts index bb73eda858..f2395f48fb 100644 --- a/packages/geom/src/ctors/path-builder.ts +++ b/packages/geom/src/ctors/path-builder.ts @@ -1,5 +1,5 @@ import { peek } from "@thi.ng/arrays"; -import { Attribs, SegmentType } from "@thi.ng/geom-api"; +import type { Attribs } from "@thi.ng/geom-api"; import { eqDelta } from "@thi.ng/math"; import { add2, copy, mulN2, set2, sub2, Vec, zeroes } from "@thi.ng/vectors"; import { Cubic } from "../api/cubic"; @@ -62,7 +62,7 @@ export class PathBuilder { set2(this.bezierP, p); this.curr.add({ point: p, - type: SegmentType.MOVE, + type: "m", }); return this; } @@ -70,7 +70,7 @@ export class PathBuilder { lineTo(p: Vec, relative = false): PathBuilder { this.curr.add({ geo: new Line([copy(this.currP), this.updateCurrent(p, relative)]), - type: SegmentType.LINE, + type: "l", }); set2(this.bezierP, this.currP); return this; @@ -101,8 +101,7 @@ export class PathBuilder { cubicChainTo(cp2: Vec, p: Vec, relative = false) { const prevMode = peek(this.curr.segments).type; const c1 = copy(this.currP); - prevMode === SegmentType.CUBIC && - add2(null, sub2([], c1, this.bezierP), c1); + prevMode === "c" && add2(null, sub2([], c1, this.bezierP), c1); this.addCubic(c1, cp2, p, relative); return this; } @@ -110,8 +109,7 @@ export class PathBuilder { quadraticChainTo(p: Vec, relative = false) { const prevMode = peek(this.curr.segments).type; const c1 = copy(this.currP); - prevMode === SegmentType.QUADRATIC && - sub2(null, mulN2(null, c1, 2), this.bezierP); + prevMode === "q" && sub2(null, mulN2(null, c1, 2), this.bezierP); this.addQuadratic(c1, p, relative); return this; } @@ -137,7 +135,7 @@ export class PathBuilder { xl, clockwise ), - type: SegmentType.ARC, + type: "a", }); set2(this.bezierP, this.currP); return this; @@ -146,7 +144,7 @@ export class PathBuilder { closePath() { this.curr.add({ geo: new Line([copy(this.currP), copy(this.startP)]), - type: SegmentType.LINE, + type: "l", }); this.curr.closed = true; return this; @@ -167,7 +165,7 @@ export class PathBuilder { set2(this.bezierP, this.currP); this.curr.add({ geo: new Line([prev, copy(this.currP)]), - type: SegmentType.LINE, + type: "l", }); } @@ -181,7 +179,7 @@ export class PathBuilder { cp2, this.updateCurrent(p, relative), ]), - type: SegmentType.CUBIC, + type: "c", }); } @@ -193,7 +191,7 @@ export class PathBuilder { cp, this.updateCurrent(p, relative), ]), - type: SegmentType.QUADRATIC, + type: "q", }); } } diff --git a/packages/geom/src/ctors/path.ts b/packages/geom/src/ctors/path.ts index 6bce927ad1..96c4d1681a 100644 --- a/packages/geom/src/ctors/path.ts +++ b/packages/geom/src/ctors/path.ts @@ -1,5 +1,5 @@ import { isNumber } from "@thi.ng/checks"; -import { Attribs, PathSegment, SegmentType } from "@thi.ng/geom-api"; +import type { Attribs, PathSegment } from "@thi.ng/geom-api"; import { map, mapcat } from "@thi.ng/transducers"; import { maddN2, Vec } from "@thi.ng/vectors"; import type { Cubic } from "../api/cubic"; @@ -12,9 +12,9 @@ export const path = (segments: PathSegment[], attribs?: Attribs) => export const pathFromCubics = (cubics: Cubic[], attribs?: Attribs) => { const path = new Path([], attribs || cubics[0].attribs); - path.segments.push({ type: SegmentType.MOVE, point: cubics[0].points[0] }); + path.segments.push({ type: "m", point: cubics[0].points[0] }); for (let c of cubics) { - path.segments.push({ type: SegmentType.CUBIC, geo: c }); + path.segments.push({ type: "c", geo: c }); } return path; }; @@ -26,7 +26,7 @@ export const normalizedPath = (path: Path) => (s) => s.geo ? map( - (c) => ({ type: SegmentType.CUBIC, geo: c }), + (c) => ({ type: "c", geo: c }), asCubic(s.geo) ) : [{ ...s }], diff --git a/packages/geom/src/ops/arc-length.ts b/packages/geom/src/ops/arc-length.ts index 5e0e1f9516..805fe01e21 100644 --- a/packages/geom/src/ops/arc-length.ts +++ b/packages/geom/src/ops/arc-length.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { perimeter } from "@thi.ng/geom-poly-utils"; import { PI, TAU } from "@thi.ng/math"; import { dist } from "@thi.ng/vectors"; @@ -34,30 +34,29 @@ import { dispatch } from "../internal/dispatch"; export const arcLength = defmulti(dispatch); arcLength.addAll(>>{ - [Type.CIRCLE]: ($: Circle) => TAU * $.r, + circle: ($: Circle) => TAU * $.r, - [Type.ELLIPSE]: ({ r: [a, b] }: Ellipse) => + ellipse: ({ r: [a, b] }: Ellipse) => // Ramanujan approximation // https://www.mathsisfun.com/geometry/ellipse-perimeter.html PI * (3 * (a + b) - Math.sqrt((3 * a + b) * (3 * b + a))), - [Type.GROUP]: ({ children }: Group) => + group: ({ children }: Group) => children.reduce((sum, $) => sum + arcLength($), 0), - [Type.LINE]: ({ points }: Line) => dist(points[0], points[1]), + line: ({ points }: Line) => dist(points[0], points[1]), - [Type.POLYGON]: ({ points }: Polygon) => - perimeter(points, points.length, true), + poly: ({ points }: Polygon) => perimeter(points, points.length, true), - [Type.POLYLINE]: ({ points }: Polygon) => perimeter(points, points.length), + polyline: ({ points }: Polygon) => perimeter(points, points.length), - [Type.RECT]: ({ size }: Rect) => 2 * (size[0] + size[1]), + rect: ({ size }: Rect) => 2 * (size[0] + size[1]), - [Type.TRIANGLE]: ({ points }: Triangle) => + tri: ({ points }: Triangle) => dist(points[0], points[1]) + dist(points[1], points[2]) + dist(points[2], points[0]), }); -arcLength.isa(Type.QUAD, Type.POLYGON); -arcLength.isa(Type.TRIANGLE, Type.POLYGON); +arcLength.isa("quad", "poly"); +arcLength.isa("tri", "poly"); diff --git a/packages/geom/src/ops/area.ts b/packages/geom/src/ops/area.ts index 834ee00e86..85ea671c26 100644 --- a/packages/geom/src/ops/area.ts +++ b/packages/geom/src/ops/area.ts @@ -5,7 +5,7 @@ import { Implementation1O, MultiFn1O, } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { polyArea2 } from "@thi.ng/geom-poly-utils"; import { PI } from "@thi.ng/math"; import { signedArea2, Vec } from "@thi.ng/vectors"; @@ -57,34 +57,34 @@ export const area: MultiFn1O = defmulti(dispatch); area.add(DEFAULT, () => 0); area.addAll(>>{ - [Type.AABB]: ({ size: [w, h, d] }: AABB) => 2 * (w * h + w * d + h * d), + aabb: ({ size: [w, h, d] }: AABB) => 2 * (w * h + w * d + h * d), - [Type.ARC]: + arc: // http://cut-the-knot.org/Generalization/Cavalieri2.shtml ($: Arc) => 0.5 * Math.abs($.start - $.end) * $.r[0] * $.r[1], - [Type.CIRCLE]: ($: Circle) => PI * $.r ** 2, + circle: ($: Circle) => PI * $.r ** 2, - [Type.ELLIPSE]: ($: Ellipse) => PI * $.r[0] * $.r[1], + ellipse: ($: Ellipse) => PI * $.r[0] * $.r[1], - [Type.GROUP]: ({ children }: Group) => + group: ({ children }: Group) => children.reduce((sum, $) => sum + area($, false), 0), - [Type.PLANE]: () => Infinity, + plane: () => Infinity, - [Type.POLYGON]: ($: Polygon, signed?) => { + poly: ($: Polygon, signed?) => { const area = polyArea2($.points); return signed ? area : Math.abs(area); }, - [Type.RECT]: ($: Rect) => $.size[0] * $.size[1], + rect: ($: Rect) => $.size[0] * $.size[1], - [Type.SPHERE]: ($: Sphere) => 4 * PI * $.r ** 2, + sphere: ($: Sphere) => 4 * PI * $.r ** 2, - [Type.TRIANGLE]: ($: Triangle, signed?) => { + tri: ($: Triangle, signed?) => { const area = 0.5 * signedArea2(...(<[Vec, Vec, Vec]>$.points)); return signed ? area : Math.abs(area); }, }); -area.isa(Type.QUAD, Type.POLYGON); +area.isa("quad", "poly"); diff --git a/packages/geom/src/ops/as-cubic.ts b/packages/geom/src/ops/as-cubic.ts index ca6f69b397..960921c852 100644 --- a/packages/geom/src/ops/as-cubic.ts +++ b/packages/geom/src/ops/as-cubic.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1, MultiFn1O } from "@thi.ng/defmulti"; -import { CubicOpts, IShape, PCLike, Type } from "@thi.ng/geom-api"; +import type { CubicOpts, IShape, PCLike } from "@thi.ng/geom-api"; import { closedCubicFromBreakPoints, closedCubicFromControlPoints, @@ -34,24 +34,23 @@ export const asCubic: MultiFn1O, Cubic[]> = defmulti( ); asCubic.addAll(>>{ - [Type.ARC]: cubicFromArc, + arc: cubicFromArc, - [Type.CIRCLE]: ($: Circle) => - asCubic(arc($.pos, $.r, 0, 0, TAU, true, true)), + circle: ($: Circle) => asCubic(arc($.pos, $.r, 0, 0, TAU, true, true)), - [Type.CUBIC]: ($: Cubic) => [$], + cubic: ($: Cubic) => [$], - [Type.GROUP]: ($: Group) => [...mapcat(asCubic, $.children)], + group: ($: Group) => [...mapcat(asCubic, $.children)], - [Type.LINE]: ({ attribs, points }: Line) => [ + line: ({ attribs, points }: Line) => [ cubicFromLine(points[0], points[1], { ...attribs }), ], - [Type.PATH]: ($: Path) => [ + path: ($: Path) => [ ...mapcat((s) => (s.geo ? asCubic(s.geo) : null), $.segments), ], - [Type.POLYGON]: ($: Polygon, opts: Partial = {}) => + poly: ($: Polygon, opts: Partial = {}) => polyCubic( $, opts, @@ -59,7 +58,7 @@ asCubic.addAll(>>{ closedCubicFromControlPoints ), - [Type.POLYLINE]: ($: Polyline, opts: Partial = {}) => + polyline: ($: Polyline, opts: Partial = {}) => polyCubic( $, opts, @@ -67,15 +66,16 @@ asCubic.addAll(>>{ openCubicFromControlPoints ), - [Type.QUADRATIC]: ({ attribs, points }: Quadratic) => [ + quadratic: ({ attribs, points }: Quadratic) => [ cubicFromQuadratic(points[0], points[1], points[2], { ...attribs }), ], - [Type.RECT]: ($: Rect, opts?: Partial) => - asCubic(asPolygon($), opts), + rect: ($: Rect, opts?: Partial) => asCubic(asPolygon($), opts), }); -asCubic.isa(Type.ELLIPSE, Type.CIRCLE); +asCubic.isa("ellipse", "circle"); +asCubic.isa("quad", "poly"); +asCubic.isa("tri", "poly"); // prettier-ignore const polyCubic = ( diff --git a/packages/geom/src/ops/as-polygon.ts b/packages/geom/src/ops/as-polygon.ts index b991fc6ada..e84b36a6b3 100644 --- a/packages/geom/src/ops/as-polygon.ts +++ b/packages/geom/src/ops/as-polygon.ts @@ -1,5 +1,5 @@ import { defmulti, MultiFn1O } from "@thi.ng/defmulti"; -import { IShape, SamplingOpts, Type } from "@thi.ng/geom-api"; +import type { IShape, SamplingOpts } from "@thi.ng/geom-api"; import { Polygon } from "../api/polygon"; import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; @@ -12,15 +12,15 @@ export const asPolygon: MultiFn1O< > = defmulti(dispatch); asPolygon.addAll({ - [Type.POINTS]: ($, opts) => new Polygon(vertices($, opts), copyAttribs($)), + points: ($, opts) => new Polygon(vertices($, opts), copyAttribs($)), }); -asPolygon.isa(Type.CIRCLE, Type.POINTS); -asPolygon.isa(Type.ELLIPSE, Type.POINTS); -asPolygon.isa(Type.LINE, Type.POINTS); -asPolygon.isa(Type.PATH, Type.POINTS); -asPolygon.isa(Type.POLYGON, Type.POINTS); -asPolygon.isa(Type.POLYLINE, Type.POINTS); -asPolygon.isa(Type.QUAD, Type.POINTS); -asPolygon.isa(Type.RECT, Type.POINTS); -asPolygon.isa(Type.TRIANGLE, Type.POINTS); +asPolygon.isa("circle", "points"); +asPolygon.isa("ellipse", "points"); +asPolygon.isa("line", "points"); +asPolygon.isa("path", "points"); +asPolygon.isa("poly", "points"); +asPolygon.isa("polyline", "points"); +asPolygon.isa("quad", "points"); +asPolygon.isa("rect", "points"); +asPolygon.isa("tri", "points"); diff --git a/packages/geom/src/ops/as-polyline.ts b/packages/geom/src/ops/as-polyline.ts index a46c8c4738..95fde57c00 100644 --- a/packages/geom/src/ops/as-polyline.ts +++ b/packages/geom/src/ops/as-polyline.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1O, MultiFn1O } from "@thi.ng/defmulti"; -import { IShape, SamplingOpts, Type } from "@thi.ng/geom-api"; +import type { IShape, SamplingOpts } from "@thi.ng/geom-api"; import { set } from "@thi.ng/vectors"; import type { Cubic } from "../api/cubic"; import type { Path } from "../api/path"; @@ -20,30 +20,30 @@ asPolyline.addAll(< Implementation1O, Polyline> > >{ - [Type.CUBIC]: ($: Cubic, opts) => new Polyline(vertices($, opts)), + cubic: ($: Cubic, opts) => new Polyline(vertices($, opts)), - [Type.POINTS]: ($: IShape, opts) => + points: ($: IShape, opts) => new Polyline(vertices($, opts), copyAttribs($)), - [Type.PATH]: ($: Path, opts) => { + path: ($: Path, opts) => { const pts = vertices($, opts); $.closed && pts.push(set([], pts[0])); return new Polyline(pts, copyAttribs($)); }, - [Type.POLYGON]: ($: IShape, opts) => { + poly: ($: IShape, opts) => { const pts = vertices($, opts); pts.push(set([], pts[0])); return new Polyline(pts, copyAttribs($)); }, }); -asPolyline.isa(Type.ARC, Type.CUBIC); -asPolyline.isa(Type.CIRCLE, Type.POLYGON); -asPolyline.isa(Type.ELLIPSE, Type.POLYGON); -asPolyline.isa(Type.LINE, Type.POINTS); -asPolyline.isa(Type.POLYLINE, Type.POINTS); -asPolyline.isa(Type.QUAD, Type.POLYGON); -asPolyline.isa(Type.QUADRATIC, Type.CUBIC); -asPolyline.isa(Type.RECT, Type.POLYGON); -asPolyline.isa(Type.TRIANGLE, Type.POLYGON); +asPolyline.isa("arc", "cubic"); +asPolyline.isa("circle", "poly"); +asPolyline.isa("ellipse", "poly"); +asPolyline.isa("line", "points"); +asPolyline.isa("polyline", "points"); +asPolyline.isa("quad", "poly"); +asPolyline.isa("quadratic", "cubic"); +asPolyline.isa("rect", "poly"); +asPolyline.isa("tri", "poly"); diff --git a/packages/geom/src/ops/bounds.ts b/packages/geom/src/ops/bounds.ts index 8af33d660a..120fb46dde 100644 --- a/packages/geom/src/ops/bounds.ts +++ b/packages/geom/src/ops/bounds.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1 } from "@thi.ng/defmulti"; -import { AABBLike, IShape, PathSegment, PCLike, Type } from "@thi.ng/geom-api"; +import type { AABBLike, IShape, PathSegment, PCLike } from "@thi.ng/geom-api"; import { bounds as arcBounds } from "@thi.ng/geom-arc"; import { bounds as _bounds } from "@thi.ng/geom-poly-utils"; import { cubicBounds, quadraticBounds } from "@thi.ng/geom-splines"; @@ -37,29 +37,29 @@ import { dispatch } from "../internal/dispatch"; export const bounds = defmulti(dispatch); bounds.addAll(>>{ - [Type.ARC]: ($: Arc) => + arc: ($: Arc) => rectFromMinMax(...arcBounds($.pos, $.r, $.axis, $.start, $.end)), - [Type.CIRCLE]: ($: Circle) => + circle: ($: Circle) => new Rect(subN2([], $.pos, $.r), mulN2(null, [2, 2], $.r)), - [Type.CUBIC]: ({ points }: Cubic) => + cubic: ({ points }: Cubic) => rectFromMinMax( ...cubicBounds(points[0], points[1], points[2], points[3]) ), - [Type.ELLIPSE]: ($: Ellipse) => + ellipse: ($: Ellipse) => new Rect(sub2([], $.pos, $.r), mul2(null, [2, 2], $.r)), - [Type.GROUP]: ($: Group) => { + group: ($: Group) => { const res = collBounds($.children, bounds); return res ? new Rect(...res) : undefined; }, - [Type.LINE]: ({ points: [a, b] }: Line) => + line: ({ points: [a, b] }: Line) => rectFromMinMax(min([], a, b), max([], a, b)), - [Type.PATH]: (path: Path) => { + path: (path: Path) => { const b = collBounds( [ ...iterator1( @@ -75,22 +75,22 @@ bounds.addAll(>>{ return b ? new Rect(...b) : undefined; }, - [Type.POINTS]: ($: PCLike) => + points: ($: PCLike) => rectFromMinMax(..._bounds($.points, set2([], MAX2), set2([], MIN2))), - [Type.POINTS3]: ($: PCLike) => + points3: ($: PCLike) => aabbFromMinMax(..._bounds($.points, set3([], MAX3), set3([], MIN3))), - [Type.QUADRATIC]: ({ points }: Quadratic) => + quadratic: ({ points }: Quadratic) => rectFromMinMax(...quadraticBounds(points[0], points[1], points[2])), - [Type.RECT]: ($: IShape) => $.copy(), + rect: ($: IShape) => $.copy(), - [Type.TEXT]: ($: Text) => new Rect(set2([], $.pos), [0, 0]), + text: ($: Text) => new Rect(set2([], $.pos), [0, 0]), }); -bounds.isa(Type.AABB, Type.RECT); -bounds.isa(Type.POLYGON, Type.POINTS); -bounds.isa(Type.POLYLINE, Type.POINTS); -bounds.isa(Type.QUAD, Type.POINTS); -bounds.isa(Type.TRIANGLE, Type.POINTS); +bounds.isa("aabb", "rect"); +bounds.isa("poly", "points"); +bounds.isa("polyline", "points"); +bounds.isa("quad", "points"); +bounds.isa("tri", "points"); diff --git a/packages/geom/src/ops/center.ts b/packages/geom/src/ops/center.ts index 0cf8383527..fcd3c72c08 100644 --- a/packages/geom/src/ops/center.ts +++ b/packages/geom/src/ops/center.ts @@ -1,10 +1,11 @@ +import type { IObjectOf } from "@thi.ng/api"; import { DEFAULT, defmulti, Implementation1O, MultiFn1O, } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { ReadonlyVec, set2, set3, submN, ZERO2, ZERO3 } from "@thi.ng/vectors"; import { Arc } from "../api/arc"; import { Circle } from "../api/circle"; @@ -14,7 +15,6 @@ import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; import { centroid } from "./centroid"; import { translate } from "./translate"; -import type { IObjectOf } from "@thi.ng/api"; export const center: MultiFn1O< IShape, @@ -30,7 +30,7 @@ center.add(DEFAULT, ($, origin = ZERO3) => { center.addAll(< IObjectOf> >{ - [Type.ARC]: ($: Arc, origin = ZERO2) => + arc: ($: Arc, origin = ZERO2) => new Arc( set2([], origin), set2([], $.r), @@ -42,12 +42,12 @@ center.addAll(< copyAttribs($) ), - [Type.CIRCLE]: ($: Circle, origin = ZERO2) => + circle: ($: Circle, origin = ZERO2) => new Circle(set2([], origin), $.r, copyAttribs($)), - [Type.ELLIPSE]: ($: Ellipse, origin = ZERO2) => + ellipse: ($: Ellipse, origin = ZERO2) => new Ellipse(set2([], origin), set2([], $.r), copyAttribs($)), - [Type.SPHERE]: ($: Sphere, origin = ZERO3) => + sphere: ($: Sphere, origin = ZERO3) => new Sphere(set3([], origin), $.r, copyAttribs($)), }); diff --git a/packages/geom/src/ops/centroid.ts b/packages/geom/src/ops/centroid.ts index c190d392ba..0939edb844 100644 --- a/packages/geom/src/ops/centroid.ts +++ b/packages/geom/src/ops/centroid.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1O, MultiFn1O } from "@thi.ng/defmulti"; -import { AABBLike, IShape, PCLike, Type } from "@thi.ng/geom-api"; +import type { AABBLike, IShape, PCLike } from "@thi.ng/geom-api"; import { centerOfWeight2, centroid as _centroid, @@ -20,25 +20,25 @@ export const centroid: MultiFn1O = defmulti( ); centroid.addAll(>>{ - [Type.CIRCLE]: ($: Circle, out?) => set(out || [], $.pos), + circle: ($: Circle, out?) => set(out || [], $.pos), - [Type.GROUP]: ($: Group) => { + group: ($: Group) => { const b = bounds($); return b ? centroid(b) : undefined; }, - [Type.LINE]: ({ points }: Line, out?) => + line: ({ points }: Line, out?) => mixN(out || [], points[0], points[1], 0.5), - [Type.POINTS]: ($: PCLike, out?) => _centroid($.points, out), + points: ($: PCLike, out?) => _centroid($.points, out), - [Type.PLANE]: ($: Plane, out?) => mulN(out || [], $.normal, $.w), + plane: ($: Plane, out?) => mulN(out || [], $.normal, $.w), - [Type.POLYGON]: ($: Polygon, out?) => centerOfWeight2($.points, out), + poly: ($: Polygon, out?) => centerOfWeight2($.points, out), - [Type.RECT]: ($: AABBLike, out?) => maddN(out || [], $.size, 0.5, $.pos), + rect: ($: AABBLike, out?) => maddN(out || [], $.size, 0.5, $.pos), - [Type.TRIANGLE]: ({ points }: Triangle, out?) => + tri: ({ points }: Triangle, out?) => divN( null, add(null, add(out || [], points[0], points[1]), points[2]), @@ -46,13 +46,13 @@ centroid.addAll(>>{ ), }); -centroid.isa(Type.ARC, Type.CIRCLE); -centroid.isa(Type.AABB, Type.RECT); -centroid.isa(Type.ELLIPSE, Type.CIRCLE); -centroid.isa(Type.LINE3, Type.LINE); -centroid.isa(Type.POINTS3, Type.POINTS); -centroid.isa(Type.POLYLINE, Type.POINTS); -centroid.isa(Type.QUAD, Type.POLYGON); -centroid.isa(Type.SPHERE, Type.CIRCLE); -centroid.isa(Type.TEXT, Type.CIRCLE); -centroid.isa(Type.TRIANGLE3, Type.TRIANGLE); +centroid.isa("arc", "circle"); +centroid.isa("aabb", "rect"); +centroid.isa("ellipse", "circle"); +centroid.isa("line3", "line"); +centroid.isa("points3", "points"); +centroid.isa("polyline", "points"); +centroid.isa("quad", "poly"); +centroid.isa("sphere", "circle"); +centroid.isa("text", "circle"); +centroid.isa("tri3", "tri"); diff --git a/packages/geom/src/ops/classify-point.ts b/packages/geom/src/ops/classify-point.ts index d0528a7333..afb37ac9cd 100644 --- a/packages/geom/src/ops/classify-point.ts +++ b/packages/geom/src/ops/classify-point.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { classifyPointInCircle, classifyPointInTriangle2, @@ -22,13 +22,13 @@ export const classifyPoint: MultiFn2O< classifyPoint.addAll(< IObjectOf> >{ - [Type.CIRCLE]: ($: Circle, p, eps = EPS) => + circle: ($: Circle, p, eps = EPS) => classifyPointInCircle(p, $.pos, $.r, eps), - [Type.PLANE]: ($: Plane, p, eps) => sign(dot($.normal, p) - $.w, eps), + plane: ($: Plane, p, eps) => sign(dot($.normal, p) - $.w, eps), - [Type.TRIANGLE]: ({ points }: Triangle, p: ReadonlyVec, eps = EPS) => + tri: ({ points }: Triangle, p: ReadonlyVec, eps = EPS) => classifyPointInTriangle2(p, points[0], points[1], points[2], eps), }); -classifyPoint.isa(Type.SPHERE, Type.CIRCLE); +classifyPoint.isa("sphere", "circle"); diff --git a/packages/geom/src/ops/clip-convex.ts b/packages/geom/src/ops/clip-convex.ts index 33febaea68..62ab506d17 100644 --- a/packages/geom/src/ops/clip-convex.ts +++ b/packages/geom/src/ops/clip-convex.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IHiccupShape, IShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape, IShape } from "@thi.ng/geom-api"; import { clipLineSegmentPoly } from "@thi.ng/geom-clip-line"; import { sutherlandHodgeman } from "@thi.ng/geom-clip-poly"; import { centroid } from "@thi.ng/geom-poly-utils"; @@ -23,7 +23,7 @@ clipConvex.addAll(< Implementation2 > >{ - [Type.GROUP]: ({ children, attribs }: Group, boundary) => { + group: ({ children, attribs }: Group, boundary) => { boundary = ensureVertices(boundary); const clipped: IHiccupShape[] = []; for (let c of children) { @@ -33,7 +33,7 @@ clipConvex.addAll(< return new Group({ ...attribs }, clipped); }, - [Type.LINE]: ($: Line, boundary) => { + line: ($: Line, boundary) => { const segments = clipLineSegmentPoly( $.points[0], $.points[1], @@ -44,13 +44,13 @@ clipConvex.addAll(< : undefined; }, - [Type.POLYGON]: ($: Polygon, boundary) => { + poly: ($: Polygon, boundary) => { boundary = ensureVertices(boundary); const pts = sutherlandHodgeman($.points, boundary, centroid(boundary)); return pts.length ? new Polygon(pts, copyAttribs($)) : undefined; }, - [Type.RECT]: ($: IShape, boundary) => { + rect: ($: IShape, boundary) => { boundary = ensureVertices(boundary); const pts = sutherlandHodgeman( vertices($), @@ -61,8 +61,8 @@ clipConvex.addAll(< }, }); -clipConvex.isa(Type.CIRCLE, Type.RECT); -clipConvex.isa(Type.ELLIPSE, Type.RECT); -clipConvex.isa(Type.PATH, Type.RECT); -clipConvex.isa(Type.QUAD, Type.POLYGON); -clipConvex.isa(Type.TRIANGLE, Type.POLYGON); +clipConvex.isa("circle", "rect"); +clipConvex.isa("ellipse", "rect"); +clipConvex.isa("path", "rect"); +clipConvex.isa("quad", "poly"); +clipConvex.isa("tri", "poly"); diff --git a/packages/geom/src/ops/closest-point.ts b/packages/geom/src/ops/closest-point.ts index ff2f718c6f..60ed3c2523 100644 --- a/packages/geom/src/ops/closest-point.ts +++ b/packages/geom/src/ops/closest-point.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; -import { IShape, PCLike, Type } from "@thi.ng/geom-api"; +import type { IShape, PCLike } from "@thi.ng/geom-api"; import { closestPoint as closestPointArc } from "@thi.ng/geom-arc"; import { closestPointAABB, @@ -33,39 +33,36 @@ export const closestPoint: MultiFn2O< closestPoint.addAll(< IObjectOf> >{ - [Type.AABB]: ($: AABB, p, out) => + aabb: ($: AABB, p, out) => closestPointAABB(p, $.pos, add3([], $.pos, $.size), out), - [Type.ARC]: ($: Arc, p, out) => + arc: ($: Arc, p, out) => closestPointArc(p, $.pos, $.r, $.axis, $.start, $.end, out), - [Type.CIRCLE]: ($: Circle, p, out) => - closestPointCircle(p, $.pos, $.r, out), + circle: ($: Circle, p, out) => closestPointCircle(p, $.pos, $.r, out), - [Type.CUBIC]: ({ points }: Cubic, p, out) => + cubic: ({ points }: Cubic, p, out) => closestPointCubic(p, points[0], points[1], points[2], points[3], out), - [Type.LINE]: ({ points }: Line, p, out) => + line: ({ points }: Line, p, out) => closestPointSegment(p, points[0], points[1], out), - [Type.PLANE]: ($: Plane, p, out) => - closestPointPlane(p, $.normal, $.w, out), + plane: ($: Plane, p, out) => closestPointPlane(p, $.normal, $.w, out), - [Type.POINTS]: ($: PCLike, p, out) => closestPointArray(p, $.points, out), + points: ($: PCLike, p, out) => closestPointArray(p, $.points, out), - [Type.POLYGON]: ($: PCLike, p, out) => - closestPointPolyline(p, $.points, true, out), + poly: ($: PCLike, p, out) => closestPointPolyline(p, $.points, true, out), - [Type.POLYLINE]: ($: PCLike, p, out) => + polyline: ($: PCLike, p, out) => closestPointPolyline(p, $.points, false, out), - [Type.QUADRATIC]: ({ points }: Quadratic, p, out) => + quadratic: ({ points }: Quadratic, p, out) => closestPointQuadratic(p, points[0], points[1], points[2], out), - [Type.RECT]: ($: Rect, p, out) => + rect: ($: Rect, p, out) => closestPointRect(p, $.pos, add2([], $.pos, $.size), out), }); -closestPoint.isa(Type.QUAD, Type.POLYGON); -closestPoint.isa(Type.SPHERE, Type.CIRCLE); -closestPoint.isa(Type.TRIANGLE, Type.POLYGON); +closestPoint.isa("quad", "poly"); +closestPoint.isa("sphere", "circle"); +closestPoint.isa("tri", "poly"); diff --git a/packages/geom/src/ops/convex-hull.ts b/packages/geom/src/ops/convex-hull.ts index 654d9b41b2..ab38e77850 100644 --- a/packages/geom/src/ops/convex-hull.ts +++ b/packages/geom/src/ops/convex-hull.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1 } from "@thi.ng/defmulti"; -import { IShape, PCLike, Type } from "@thi.ng/geom-api"; +import type { IShape, PCLike } from "@thi.ng/geom-api"; import { grahamScan2 } from "@thi.ng/geom-hull"; import { Polygon } from "../api/polygon"; import { copyAttribs } from "../internal/copy-attribs"; @@ -10,17 +10,16 @@ import { vertices } from "./vertices"; export const convexHull = defmulti(dispatch); convexHull.addAll(>>{ - [Type.GROUP]: ($: IShape) => new Polygon(vertices($), copyAttribs($)), + group: ($: IShape) => new Polygon(vertices($), copyAttribs($)), - [Type.POINTS]: ($: PCLike) => - new Polygon(grahamScan2($.points), copyAttribs($)), + points: ($: PCLike) => new Polygon(grahamScan2($.points), copyAttribs($)), - [Type.TRIANGLE]: ($: IShape) => $.copy(), + tri: ($: IShape) => $.copy(), }); -convexHull.isa(Type.CIRCLE, Type.TRIANGLE); -convexHull.isa(Type.ELLIPSE, Type.TRIANGLE); -convexHull.isa(Type.POLYGON, Type.POINTS); -convexHull.isa(Type.POLYLINE, Type.POINTS); -convexHull.isa(Type.QUAD, Type.POINTS); -convexHull.isa(Type.RECT, Type.TRIANGLE); +convexHull.isa("circle", "tri"); +convexHull.isa("ellipse", "tri"); +convexHull.isa("poly", "points"); +convexHull.isa("polyline", "points"); +convexHull.isa("quad", "points"); +convexHull.isa("rect", "tri"); diff --git a/packages/geom/src/ops/edges.ts b/packages/geom/src/ops/edges.ts index 911c6c0ec1..b23018928b 100644 --- a/packages/geom/src/ops/edges.ts +++ b/packages/geom/src/ops/edges.ts @@ -1,5 +1,7 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation1O, MultiFn1O } from "@thi.ng/defmulti"; -import { IShape, SamplingOpts, Type } from "@thi.ng/geom-api"; +import type { IShape, SamplingOpts } from "@thi.ng/geom-api"; +import type { VecPair } from "@thi.ng/vectors"; import type { AABB } from "../api/aabb"; import type { Polygon } from "../api/polygon"; import type { Polyline } from "../api/polyline"; @@ -7,8 +9,6 @@ import type { Rect } from "../api/rect"; import { dispatch } from "../internal/dispatch"; import { edgeIterator } from "../internal/edges"; import { vertices } from "./vertices"; -import type { VecPair } from "@thi.ng/vectors"; -import type { IObjectOf } from "@thi.ng/api"; export const edges: MultiFn1O< IShape, @@ -25,7 +25,7 @@ edges.addAll(< > > >{ - [Type.AABB]: ($: AABB) => { + aabb: ($: AABB) => { const [a, b, c, d, e, f, g, h] = vertices($); return [ [a, b], @@ -43,13 +43,13 @@ edges.addAll(< ]; }, - [Type.POLYGON]: ($: Polygon) => edgeIterator($.points, true), + poly: ($: Polygon) => edgeIterator($.points, true), - [Type.POLYLINE]: ($: Polyline) => edgeIterator($.points), + polyline: ($: Polyline) => edgeIterator($.points), - [Type.RECT]: ($: Rect) => edgeIterator(vertices($), true), + rect: ($: Rect) => edgeIterator(vertices($), true), }); -edges.isa(Type.LINE, Type.POLYLINE); -edges.isa(Type.QUAD, Type.POLYGON); -edges.isa(Type.TRIANGLE, Type.POLYGON); +edges.isa("line", "polyline"); +edges.isa("quad", "poly"); +edges.isa("tri", "poly"); diff --git a/packages/geom/src/ops/flip.ts b/packages/geom/src/ops/flip.ts index 85ee3e9e5c..779dff220d 100644 --- a/packages/geom/src/ops/flip.ts +++ b/packages/geom/src/ops/flip.ts @@ -1,18 +1,18 @@ +import type { IObjectOf } from "@thi.ng/api"; import { DEFAULT, defmulti, Implementation1 } from "@thi.ng/defmulti"; -import { IShape, PCLike, Type } from "@thi.ng/geom-api"; +import type { IShape, PCLike } from "@thi.ng/geom-api"; import { neg } from "@thi.ng/vectors"; import type { Arc } from "../api/arc"; import type { Group } from "../api/group"; import type { Path } from "../api/path"; import type { Ray } from "../api/ray"; import { dispatch } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; export const flip = defmulti(dispatch); flip.add(DEFAULT, ($) => $); flip.addAll(>>{ - [Type.ARC]: ($: Arc) => { + arc: ($: Arc) => { const t = $.start; $.start = $.end; $.end = t; @@ -20,32 +20,32 @@ flip.addAll(>>{ return $; }, - [Type.GROUP]: ($: Group) => { + group: ($: Group) => { $.children.forEach(flip); return $; }, - [Type.PATH]: ($: Path) => { + path: ($: Path) => { // TODO return $; }, - [Type.POINTS]: ($: PCLike) => { + points: ($: PCLike) => { $.points.reverse(); return $; }, - [Type.RAY]: ($: Ray) => { + ray: ($: Ray) => { $.dir = neg(null, $.dir); return $; }, }); -flip.isa(Type.CUBIC, Type.POINTS); -flip.isa(Type.LINE, Type.POINTS); -flip.isa(Type.POINTS3, Type.POINTS); -flip.isa(Type.POLYGON, Type.POINTS); -flip.isa(Type.POLYLINE, Type.POINTS); -flip.isa(Type.QUAD, Type.POINTS); -flip.isa(Type.QUADRATIC, Type.POINTS); -flip.isa(Type.TRIANGLE, Type.POINTS); +flip.isa("cubic", "points"); +flip.isa("line", "points"); +flip.isa("points3", "points"); +flip.isa("poly", "points"); +flip.isa("polyline", "points"); +flip.isa("quad", "points"); +flip.isa("quadratic", "points"); +flip.isa("tri", "points"); diff --git a/packages/geom/src/ops/intersects.ts b/packages/geom/src/ops/intersects.ts index 538cbe3bbc..728ed270c7 100644 --- a/packages/geom/src/ops/intersects.ts +++ b/packages/geom/src/ops/intersects.ts @@ -1,10 +1,10 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; import { IntersectionResult, IntersectionType, IShape, PCLike, - Type, } from "@thi.ng/geom-api"; import { intersectCircleCircle, @@ -26,7 +26,6 @@ import type { Ray } from "../api/ray"; import type { Rect } from "../api/rect"; import type { Sphere } from "../api/sphere"; import { dispatch2 } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; export const intersects: MultiFn2O< IShape, @@ -38,50 +37,47 @@ export const intersects: MultiFn2O< intersects.addAll(< IObjectOf> >{ - [`${Type.CIRCLE}-${Type.CIRCLE}`]: (a: Sphere, b: Sphere) => + "circle-circle": (a: Sphere, b: Sphere) => intersectCircleCircle(a.pos, b.pos, a.r, b.r), - [`${Type.LINE}-${Type.LINE}`]: ({ points: a }: Line, { points: b }: Line) => + "line-line": ({ points: a }: Line, { points: b }: Line) => intersectLineLine(a[0], a[1], b[0], b[1]), - [`${Type.PLANE}-${Type.PLANE}`]: (a: Plane, b: Plane) => + "plane-plane": (a: Plane, b: Plane) => intersectPlanePlane(a.normal, a.w, b.normal, b.w), - [`${Type.RAY}-${Type.AABB}`]: (ray: Ray, box: AABB) => + "ray-aabb": (ray: Ray, box: AABB) => intersectRayAABB(ray.pos, ray.dir, box.pos, box.max()), - [`${Type.RAY}-${Type.CIRCLE}`]: (ray: Ray, sphere: Sphere) => + "ray-circle": (ray: Ray, sphere: Sphere) => intersectRayCircle(ray.pos, ray.dir, sphere.pos, sphere.r), - [`${Type.RAY}-${Type.PLANE}`]: (ray: Ray, plane: Plane) => + "ray-plane": (ray: Ray, plane: Plane) => intersectRayPlane(ray.pos, ray.dir, plane.normal, plane.w), - [`${Type.RAY}-${Type.POLYGON}`]: (ray: Ray, poly: PCLike) => + "ray-poly": (ray: Ray, poly: PCLike) => intersectRayPolyline(ray.pos, ray.dir, poly.points, true), - [`${Type.RAY}-${Type.POLYLINE}`]: (ray: Ray, poly: PCLike) => + "ray-polyline": (ray: Ray, poly: PCLike) => intersectRayPolyline(ray.pos, ray.dir, poly.points, false), - [`${Type.RAY}-${Type.RECT}`]: (ray: Ray, rect: Rect) => + "ray-rect": (ray: Ray, rect: Rect) => intersectRayRect(ray.pos, ray.dir, rect.pos, rect.max()), - [`${Type.RECT}-${Type.CIRCLE}`]: (rect: Rect, circle: Circle) => ({ + "rect-circle": (rect: Rect, circle: Circle) => ({ type: testRectCircle(rect.pos, rect.size, circle.pos, circle.r) ? IntersectionType.INTERSECT : IntersectionType.NONE, }), - [`${Type.RECT}-${Type.RECT}`]: (a: Rect, b: Rect) => ({ + "rect-rect": (a: Rect, b: Rect) => ({ type: testRectRect(a.pos, a.size, b.pos, b.size) ? IntersectionType.INTERSECT : IntersectionType.NONE, }), }); -intersects.isa(`${Type.RAY}-${Type.SPHERE}`, `${Type.RAY}-${Type.CIRCLE}`); -intersects.isa(`${Type.RAY}-${Type.QUAD}`, `${Type.RAY}-${Type.POLYGON}`); -intersects.isa(`${Type.RAY}-${Type.TRIANGLE}`, `${Type.RAY}-${Type.POLYGON}`); -intersects.isa( - `${Type.SPHERE}-${Type.SPHERE}`, - `${Type.CIRCLE}-${Type.CIRCLE}` -); +intersects.isa(`ray-sphere`, `ray-circle`); +intersects.isa(`ray-quad`, `ray-poly`); +intersects.isa(`ray-tri`, `ray-poly`); +intersects.isa(`sphere-sphere`, `circle-circle`); diff --git a/packages/geom/src/ops/map-point.ts b/packages/geom/src/ops/map-point.ts index f92ebeca4f..9782902d00 100644 --- a/packages/geom/src/ops/map-point.ts +++ b/packages/geom/src/ops/map-point.ts @@ -1,17 +1,17 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { div, ReadonlyVec, sub, Vec } from "@thi.ng/vectors"; import type { Rect } from "../api/rect"; import { dispatch } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; export const mapPoint: MultiFn2O = defmulti( dispatch ); mapPoint.addAll(>>{ - [Type.RECT]: ($: Rect, p: ReadonlyVec, out: Vec = []) => + rect: ($: Rect, p: ReadonlyVec, out: Vec = []) => div(null, sub(out, p, $.pos), $.size), }); -mapPoint.isa(Type.AABB, Type.RECT); +mapPoint.isa("aabb", "rect"); diff --git a/packages/geom/src/ops/offset.ts b/packages/geom/src/ops/offset.ts index d75deba4db..cc248ec25f 100644 --- a/packages/geom/src/ops/offset.ts +++ b/packages/geom/src/ops/offset.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { add2, addN2, @@ -22,10 +22,9 @@ import { centroid } from "./centroid"; export const offset = defmulti(dispatch); offset.addAll(>>{ - [Type.CIRCLE]: ($: Circle, n) => - new Circle(set2([], $.pos), Math.max($.r + n, 0)), + circle: ($: Circle, n) => new Circle(set2([], $.pos), Math.max($.r + n, 0)), - [Type.LINE]: ({ points: [a, b], attribs }: Line, n) => { + line: ({ points: [a, b], attribs }: Line, n) => { const norm = normalCW([], a, b, n); return new Quad( [ @@ -38,7 +37,7 @@ offset.addAll(>>{ ); }, - [Type.RECT]: ($: Rect, n) => + rect: ($: Rect, n) => rectFromCentroid( centroid($)!, max2(null, addN2([], $.size, n), ZERO2), diff --git a/packages/geom/src/ops/point-at.ts b/packages/geom/src/ops/point-at.ts index 5a10a56f1e..6a5bdf7277 100644 --- a/packages/geom/src/ops/point-at.ts +++ b/packages/geom/src/ops/point-at.ts @@ -1,6 +1,6 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { Sampler } from "@thi.ng/geom-resample"; import { cossin, fit01, TAU } from "@thi.ng/math"; import { @@ -28,30 +28,30 @@ import { vertices } from "./vertices"; export const pointAt = defmulti(dispatch); pointAt.addAll(>>{ - [Type.ARC]: ($: Arc, t: number) => $.pointAtTheta(fit01(t, $.start, $.end)), + arc: ($: Arc, t: number) => $.pointAtTheta(fit01(t, $.start, $.end)), - [Type.CIRCLE]: ($: Circle, t) => cartesian2(null, [$.r, TAU * t], $.pos), + circle: ($: Circle, t) => cartesian2(null, [$.r, TAU * t], $.pos), - [Type.CUBIC]: ({ points }: Cubic, t) => + cubic: ({ points }: Cubic, t) => mixCubic([], points[0], points[1], points[2], points[3], t), - [Type.ELLIPSE]: ($: Ellipse, t) => madd2([], cossin(TAU * t), $.r, $.pos), + ellipse: ($: Ellipse, t) => madd2([], cossin(TAU * t), $.r, $.pos), - [Type.LINE]: ({ points }: Line, t) => mixN2([], points[0], points[1], t), + line: ({ points }: Line, t) => mixN2([], points[0], points[1], t), - [Type.POLYGON]: ($: Polygon, t) => new Sampler($.points, true).pointAt(t), + poly: ($: Polygon, t) => new Sampler($.points, true).pointAt(t), - [Type.POLYLINE]: ($: Polygon, t) => new Sampler($.points).pointAt(t), + polyline: ($: Polygon, t) => new Sampler($.points).pointAt(t), - [Type.QUADRATIC]: ({ points }: Quadratic, t) => + quadratic: ({ points }: Quadratic, t) => mixQuadratic([], points[0], points[1], points[2], t), - [Type.RAY]: ($: Ray, t) => pointOnRay2([], $.pos, $.dir, t), + ray: ($: Ray, t) => pointOnRay2([], $.pos, $.dir, t), - [Type.RAY3]: ($: Ray, t) => pointOnRay3([], $.pos, $.dir, t), + ray3: ($: Ray, t) => pointOnRay3([], $.pos, $.dir, t), - [Type.RECT]: ($: Rect, t) => new Sampler(vertices($), true).pointAt(t), + rect: ($: Rect, t) => new Sampler(vertices($), true).pointAt(t), }); -pointAt.isa(Type.QUAD, Type.POLYGON); -pointAt.isa(Type.TRIANGLE, Type.POLYGON); +pointAt.isa("quad", "poly"); +pointAt.isa("tri", "poly"); diff --git a/packages/geom/src/ops/point-inside.ts b/packages/geom/src/ops/point-inside.ts index a4ebf63379..3dc428cd95 100644 --- a/packages/geom/src/ops/point-inside.ts +++ b/packages/geom/src/ops/point-inside.ts @@ -1,5 +1,6 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { pointInAABB, pointInCircle, @@ -17,27 +18,26 @@ import type { Polygon } from "../api/polygon"; import type { Rect } from "../api/rect"; import type { Triangle } from "../api/triangle"; import { dispatch } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; export const pointInside = defmulti(dispatch); pointInside.addAll(>>{ - [Type.AABB]: ($: AABB, p: ReadonlyVec) => pointInAABB(p, $.pos, $.size), + aabb: ($: AABB, p: ReadonlyVec) => pointInAABB(p, $.pos, $.size), - [Type.CIRCLE]: ($: Circle, p) => pointInCircle(p, $.pos, $.r), + circle: ($: Circle, p) => pointInCircle(p, $.pos, $.r), - [Type.LINE]: ($: Line, p) => pointInSegment(p, $.points[0], $.points[1]), + line: ($: Line, p) => pointInSegment(p, $.points[0], $.points[1]), - [Type.POINTS]: ({ points }: Points, p) => isInArray(p, points), + points: ({ points }: Points, p) => isInArray(p, points), - [Type.POLYGON]: ($: Polygon, p) => pointInPolygon2(p, $.points) > 0, + poly: ($: Polygon, p) => pointInPolygon2(p, $.points) > 0, - [Type.RECT]: ($: Rect, p: ReadonlyVec) => pointInRect(p, $.pos, $.size), + rect: ($: Rect, p: ReadonlyVec) => pointInRect(p, $.pos, $.size), - [Type.TRIANGLE]: (tri: Triangle, p: ReadonlyVec) => + tri: (tri: Triangle, p: ReadonlyVec) => pointInTriangle2(p, ...(<[Vec, Vec, Vec]>tri.points)), }); -pointInside.isa(Type.POINTS3, Type.POINTS); -pointInside.isa(Type.QUAD, Type.POLYGON); -pointInside.isa(Type.SPHERE, Type.CIRCLE); +pointInside.isa("points3", "points"); +pointInside.isa("quad", "poly"); +pointInside.isa("sphere", "circle"); diff --git a/packages/geom/src/ops/resample.ts b/packages/geom/src/ops/resample.ts index 577df72323..77a081dac6 100644 --- a/packages/geom/src/ops/resample.ts +++ b/packages/geom/src/ops/resample.ts @@ -1,12 +1,12 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, PCLike, SamplingOpts, Type } from "@thi.ng/geom-api"; +import type { IShape, PCLike, SamplingOpts } from "@thi.ng/geom-api"; import { resample as _resample } from "@thi.ng/geom-resample"; import { Polygon } from "../api/polygon"; import { Polyline } from "../api/polyline"; import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; import { asPolygon } from "./as-polygon"; -import type { IObjectOf } from "@thi.ng/api"; export const resample = defmulti< IShape, @@ -17,17 +17,17 @@ export const resample = defmulti< resample.addAll(< IObjectOf, IShape>> >{ - [Type.CIRCLE]: ($: IShape, opts) => asPolygon($, opts), + circle: ($: IShape, opts) => asPolygon($, opts), - [Type.POLYGON]: ($: PCLike, opts) => + poly: ($: PCLike, opts) => new Polygon(_resample($.points, opts, true, true), copyAttribs($)), - [Type.POLYLINE]: ($: PCLike, opts) => + polyline: ($: PCLike, opts) => new Polyline(_resample($.points, opts, false, true), copyAttribs($)), }); -resample.isa(Type.ELLIPSE, Type.CIRCLE); -resample.isa(Type.LINE, Type.POLYLINE); -resample.isa(Type.QUAD, Type.POLYGON); -resample.isa(Type.TRIANGLE, Type.POLYGON); -resample.isa(Type.RECT, Type.CIRCLE); +resample.isa("ellipse", "circle"); +resample.isa("line", "polyline"); +resample.isa("quad", "poly"); +resample.isa("tri", "poly"); +resample.isa("rect", "circle"); diff --git a/packages/geom/src/ops/simplify.ts b/packages/geom/src/ops/simplify.ts index 914d442afc..433532d717 100644 --- a/packages/geom/src/ops/simplify.ts +++ b/packages/geom/src/ops/simplify.ts @@ -1,20 +1,20 @@ +import type { IObjectOf } from "@thi.ng/api"; import { peek } from "@thi.ng/arrays"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, PathSegment, SegmentType, Type } from "@thi.ng/geom-api"; +import type { IShape, PathSegment } from "@thi.ng/geom-api"; import { simplify as _simplify } from "@thi.ng/geom-resample"; +import type { Vec } from "@thi.ng/vectors"; import { Path } from "../api/path"; import { Polygon } from "../api/polygon"; import { Polyline } from "../api/polyline"; import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; import { vertices } from "./vertices"; -import type { IObjectOf } from "@thi.ng/api"; -import type { Vec } from "@thi.ng/vectors"; export const simplify = defmulti(dispatch); simplify.addAll(>>{ - [Type.PATH]: ($: Path, eps = 0.1) => { + path: ($: Path, eps = 0.1) => { const res: PathSegment[] = []; const orig = $.segments; const n = orig.length; @@ -22,10 +22,7 @@ simplify.addAll(>>{ let lastP!: Vec; for (let i = 0; i < n; i++) { const s = orig[i]; - if ( - s.type === SegmentType.LINE || - s.type === SegmentType.POLYLINE - ) { + if (s.type === "l" || s.type === "p") { points = points ? points.concat(vertices(s.geo!)) : vertices(s.geo!); @@ -34,7 +31,7 @@ simplify.addAll(>>{ points.push(lastP); res.push({ geo: new Polyline(_simplify(points, eps)), - type: SegmentType.POLYLINE, + type: "p", }); points = null; } else { @@ -45,15 +42,15 @@ simplify.addAll(>>{ points.push(lastP); res.push({ geo: new Polyline(points), - type: SegmentType.POLYLINE, + type: "p", }); } return new Path(res, copyAttribs($)); }, - [Type.POLYGON]: ($: Polygon, eps = 0.1) => + poly: ($: Polygon, eps = 0.1) => new Polygon(_simplify($.points, eps, true), copyAttribs($)), - [Type.POLYLINE]: ($: Polyline, eps = 0.1) => + polyline: ($: Polyline, eps = 0.1) => new Polyline(_simplify($.points, eps), copyAttribs($)), }); diff --git a/packages/geom/src/ops/split-at.ts b/packages/geom/src/ops/split-at.ts index 44c442bff8..85d41c1dde 100644 --- a/packages/geom/src/ops/split-at.ts +++ b/packages/geom/src/ops/split-at.ts @@ -1,5 +1,6 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { Sampler } from "@thi.ng/geom-resample"; import { cubicSplitAt, quadraticSplitAt } from "@thi.ng/geom-splines"; import { fit01 } from "@thi.ng/math"; @@ -13,12 +14,11 @@ import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; import { pointArraysAsShapes } from "../internal/points-as-shape"; import { splitLine } from "../internal/split"; -import type { IObjectOf } from "@thi.ng/api"; export const splitAt = defmulti(dispatch); splitAt.addAll(>>{ - [Type.ARC]: ($: Arc, t: number) => { + arc: ($: Arc, t: number) => { const theta = fit01(t, $.start, $.end); return [ new Arc( @@ -44,24 +44,24 @@ splitAt.addAll(>>{ ]; }, - [Type.CUBIC]: ({ attribs, points }: Cubic, t: number) => + cubic: ({ attribs, points }: Cubic, t: number) => cubicSplitAt(points[0], points[1], points[2], points[3], t).map( (pts) => new Cubic(pts, { ...attribs }) ), - [Type.LINE]: ({ attribs, points }: Line, t) => + line: ({ attribs, points }: Line, t) => splitLine(points[0], points[1], t).map( (pts) => new Line(pts, { ...attribs }) ), - [Type.POLYLINE]: ($: Polyline, t) => + polyline: ($: Polyline, t) => pointArraysAsShapes( Polyline, new Sampler($.points).splitAt(t), $.attribs ), - [Type.QUADRATIC]: ({ attribs, points }: Quadratic, t: number) => + quadratic: ({ attribs, points }: Quadratic, t: number) => quadraticSplitAt(points[0], points[1], points[2], t).map( (pts) => new Quadratic(pts, { ...attribs }) ), diff --git a/packages/geom/src/ops/split-near.ts b/packages/geom/src/ops/split-near.ts index f518241121..301406882b 100644 --- a/packages/geom/src/ops/split-near.ts +++ b/packages/geom/src/ops/split-near.ts @@ -1,5 +1,6 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { closestT } from "@thi.ng/geom-closest-point"; import { Sampler } from "@thi.ng/geom-resample"; import { @@ -7,6 +8,7 @@ import { splitCubicNearPoint, } from "@thi.ng/geom-splines"; import { clamp01 } from "@thi.ng/math"; +import type { ReadonlyVec } from "@thi.ng/vectors"; import { Cubic } from "../api/cubic"; import { Line } from "../api/line"; import { Polyline } from "../api/polyline"; @@ -15,8 +17,6 @@ import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; import { pointArraysAsShapes } from "../internal/points-as-shape"; import { splitLine } from "../internal/split"; -import type { IObjectOf } from "@thi.ng/api"; -import type { ReadonlyVec } from "@thi.ng/vectors"; /** * Similar to {@link splitAt}, but instead of taking a normalized parametric @@ -42,26 +42,26 @@ export const splitNearPoint = defmulti< splitNearPoint.addAll(< IObjectOf> >{ - [Type.CUBIC]: ({ points, attribs }: Cubic, p) => + cubic: ({ points, attribs }: Cubic, p) => splitCubicNearPoint(p, points[0], points[1], points[2], points[3]).map( (pts) => new Cubic(pts, { ...attribs }) ), - [Type.LINE]: ($: Line, p) => { + line: ($: Line, p) => { const t = closestT(p, $.points[0], $.points[1]) || 0; return splitLine($.points[0], $.points[1], clamp01(t)).map( (pts) => new Line(pts, copyAttribs($)) ); }, - [Type.POLYLINE]: ($: Polyline, p) => + polyline: ($: Polyline, p) => pointArraysAsShapes( Polyline, new Sampler($.points).splitNear(p), $.attribs ), - [Type.QUADRATIC]: ({ points, attribs }: Quadratic, p) => + quadratic: ({ points, attribs }: Quadratic, p) => quadraticSplitNearPoint(p, points[0], points[1], points[2]).map( (pts) => new Quadratic(pts, { ...attribs }) ), diff --git a/packages/geom/src/ops/subdiv-curve.ts b/packages/geom/src/ops/subdiv-curve.ts index 3f885748a8..cd6ba8982e 100644 --- a/packages/geom/src/ops/subdiv-curve.ts +++ b/packages/geom/src/ops/subdiv-curve.ts @@ -1,11 +1,11 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; -import { IShape, SubdivKernel, Type } from "@thi.ng/geom-api"; +import type { IShape, SubdivKernel } from "@thi.ng/geom-api"; import { subdivide } from "@thi.ng/geom-subdiv-curve"; import { Polygon } from "../api/polygon"; import { Polyline } from "../api/polyline"; import { copyAttribs } from "../internal/copy-attribs"; import { dispatch } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; export const subdivCurve: MultiFn2O< IShape, @@ -17,9 +17,9 @@ export const subdivCurve: MultiFn2O< subdivCurve.addAll(< IObjectOf> >{ - [Type.POLYGON]: ($: Polygon, kernel, iter = 1) => + poly: ($: Polygon, kernel, iter = 1) => new Polygon(subdivide($.points, kernel, iter), copyAttribs($)), - [Type.POLYLINE]: ($: Polyline, kernel, iter = 1) => + polyline: ($: Polyline, kernel, iter = 1) => new Polyline(subdivide($.points, kernel, iter), copyAttribs($)), }); diff --git a/packages/geom/src/ops/tangent-at.ts b/packages/geom/src/ops/tangent-at.ts index 4a8b9eb90f..4cd60188b2 100644 --- a/packages/geom/src/ops/tangent-at.ts +++ b/packages/geom/src/ops/tangent-at.ts @@ -1,5 +1,6 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, PCLike, Type } from "@thi.ng/geom-api"; +import type { IShape, PCLike } from "@thi.ng/geom-api"; import { Sampler } from "@thi.ng/geom-resample"; import { cossin, HALF_PI, TAU } from "@thi.ng/math"; import { direction, Vec } from "@thi.ng/vectors"; @@ -7,21 +8,20 @@ import type { Line } from "../api/line"; import type { Rect } from "../api/rect"; import { dispatch } from "../internal/dispatch"; import { vertices } from "./vertices"; -import type { IObjectOf } from "@thi.ng/api"; export const tangentAt = defmulti(dispatch); tangentAt.addAll(>>{ - [Type.CIRCLE]: (_, t) => cossin(TAU * t + HALF_PI), + circle: (_, t) => cossin(TAU * t + HALF_PI), - [Type.LINE]: ({ points }: Line) => direction([], points[0], points[1]), + line: ({ points }: Line) => direction([], points[0], points[1]), - [Type.POLYGON]: ($: PCLike, t) => new Sampler($.points, true).tangentAt(t), + poly: ($: PCLike, t) => new Sampler($.points, true).tangentAt(t), - [Type.POLYLINE]: ($: PCLike, t) => new Sampler($.points).tangentAt(t), + polyline: ($: PCLike, t) => new Sampler($.points).tangentAt(t), - [Type.RECT]: ($: Rect, t) => new Sampler(vertices($), true).tangentAt(t), + rect: ($: Rect, t) => new Sampler(vertices($), true).tangentAt(t), }); -tangentAt.isa(Type.QUAD, Type.POLYGON); -tangentAt.isa(Type.TRIANGLE, Type.POLYGON); +tangentAt.isa("quad", "poly"); +tangentAt.isa("tri", "poly"); diff --git a/packages/geom/src/ops/transform-vertices.ts b/packages/geom/src/ops/transform-vertices.ts index 0a971a1d38..5d2f88644e 100644 --- a/packages/geom/src/ops/transform-vertices.ts +++ b/packages/geom/src/ops/transform-vertices.ts @@ -1,17 +1,11 @@ import type { Fn, IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { - IHiccupShape, - IShape, - PathSegment, - SegmentType, - Type, -} from "@thi.ng/geom-api"; +import type { IHiccupShape, IShape, PathSegment } from "@thi.ng/geom-api"; import { mulV, ReadonlyMat } from "@thi.ng/matrices"; import { map } from "@thi.ng/transducers"; import type { ReadonlyVec } from "@thi.ng/vectors"; import { Cubic } from "../api/cubic"; -import { Group } from "../api/group"; +import type { Group } from "../api/group"; import { Line } from "../api/line"; import { Path } from "../api/path"; import { Points, Points3 } from "../api/points"; @@ -52,24 +46,21 @@ export const transformVertices = defmulti< transformVertices.addAll(< IObjectOf, IShape>> >{ - [Type.ARC]: ($: IShape, fn) => transformVertices(asPolyline($), fn), + arc: ($: IShape, fn) => transformVertices(asPolyline($), fn), - [Type.CUBIC]: tx(Cubic), + cubic: tx(Cubic), - [Type.GROUP]: ($: Group, fn) => - new Group( - copyAttribs($), - $.children.map((x) => transformVertices(x, fn)) - ), + group: ($: Group, fn) => + $.copyTransformed((x) => transformVertices(x, fn)), - [Type.LINE]: tx(Line), + line: tx(Line), - [Type.PATH]: ($: Path, fn) => + path: ($: Path, fn) => new Path( [ ...map( (s) => - s.type === SegmentType.MOVE + s.type === "m" ? { type: s.type, point: mulV([], fn(s.point!), s.point!), @@ -84,22 +75,22 @@ transformVertices.addAll(< copyAttribs($) ), - [Type.POINTS]: tx(Points), + points: tx(Points), - [Type.POINTS3]: tx3(Points3), + points3: tx3(Points3), - [Type.POLYGON]: tx(Polygon), + poly: tx(Polygon), - [Type.POLYLINE]: tx(Polyline), + polyline: tx(Polyline), - [Type.QUAD]: tx(Quad), + quad: tx(Quad), - [Type.QUADRATIC]: tx(Quadratic), + quadratic: tx(Quadratic), - [Type.RECT]: ($: Rect, fn) => transformVertices(asPolygon($), fn), + rect: ($: Rect, fn) => transformVertices(asPolygon($), fn), - [Type.TRIANGLE]: tx(Triangle), + tri: tx(Triangle), }); -transformVertices.isa(Type.CIRCLE, Type.RECT); -transformVertices.isa(Type.ELLIPSE, Type.CIRCLE); +transformVertices.isa("circle", "rect"); +transformVertices.isa("ellipse", "circle"); diff --git a/packages/geom/src/ops/transform.ts b/packages/geom/src/ops/transform.ts index 9cf3006229..9b01c13dfc 100644 --- a/packages/geom/src/ops/transform.ts +++ b/packages/geom/src/ops/transform.ts @@ -1,16 +1,10 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { - IHiccupShape, - IShape, - PathSegment, - SegmentType, - Type, -} from "@thi.ng/geom-api"; +import type { IHiccupShape, IShape, PathSegment } from "@thi.ng/geom-api"; import { mulV, ReadonlyMat } from "@thi.ng/matrices"; import { map } from "@thi.ng/transducers"; import { Cubic } from "../api/cubic"; -import { Group } from "../api/group"; +import type { Group } from "../api/group"; import { Line } from "../api/line"; import { Path } from "../api/path"; import { Points, Points3 } from "../api/points"; @@ -44,24 +38,21 @@ import { asPolygon } from "./as-polygon"; export const transform = defmulti(dispatch); transform.addAll(>>{ - [Type.ARC]: ($: IShape, mat) => transform(asPath($), mat), + arc: ($: IShape, mat) => transform(asPath($), mat), - [Type.CUBIC]: tx(Cubic), + cubic: tx(Cubic), - [Type.GROUP]: ($: Group, mat) => - new Group( - copyAttribs($), - $.children.map((x) => transform(x, mat)) - ), + group: ($: Group, mat) => + $.copyTransformed((x) => transform(x, mat)), - [Type.LINE]: tx(Line), + line: tx(Line), - [Type.PATH]: ($: Path, mat) => + path: ($: Path, mat) => new Path( [ ...map( (s) => - s.type === SegmentType.MOVE + s.type === "m" ? { type: s.type, point: mulV([], mat, s.point!), @@ -76,25 +67,25 @@ transform.addAll(>>{ copyAttribs($) ), - [Type.POINTS]: tx(Points), + points: tx(Points), - [Type.POINTS3]: tx3(Points3), + points3: tx3(Points3), - [Type.POLYGON]: tx(Polygon), + poly: tx(Polygon), - [Type.POLYLINE]: tx(Polyline), + polyline: tx(Polyline), - [Type.QUAD]: tx(Quad), + quad: tx(Quad), - [Type.QUADRATIC]: tx(Quadratic), + quadratic: tx(Quadratic), - [Type.RECT]: ($: Rect, mat) => transform(asPolygon($), mat), + rect: ($: Rect, mat) => transform(asPolygon($), mat), - [Type.TEXT]: ($: Text, mat) => + text: ($: Text, mat) => new Text(mulV([], mat, $.pos!), $.body, copyAttribs($)), - [Type.TRIANGLE]: tx(Triangle), + tri: tx(Triangle), }); -transform.isa(Type.CIRCLE, Type.ARC); -transform.isa(Type.ELLIPSE, Type.CIRCLE); +transform.isa("circle", "arc"); +transform.isa("ellipse", "circle"); diff --git a/packages/geom/src/ops/translate.ts b/packages/geom/src/ops/translate.ts index e250ace0ea..932f93ef3a 100644 --- a/packages/geom/src/ops/translate.ts +++ b/packages/geom/src/ops/translate.ts @@ -1,13 +1,13 @@ import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IHiccupShape, IShape, Type } from "@thi.ng/geom-api"; +import type { IHiccupShape, IShape } from "@thi.ng/geom-api"; import { add2, add3, ReadonlyVec, set2, set3 } from "@thi.ng/vectors"; import { AABB } from "../api/aabb"; import type { Arc } from "../api/arc"; import { Circle } from "../api/circle"; import { Cubic } from "../api/cubic"; import { Ellipse } from "../api/ellipse"; -import { Group } from "../api/group"; +import type { Group } from "../api/group"; import { Line } from "../api/line"; import { Path } from "../api/path"; import { Points, Points3 } from "../api/points"; @@ -27,32 +27,29 @@ import { translatedShape as tx } from "../internal/translate-points"; export const translate = defmulti(dispatch); translate.addAll(>>{ - [Type.AABB]: ($: AABB, delta) => + aabb: ($: AABB, delta) => new AABB(add3([], $.pos, delta), set3([], $.size), copyAttribs($)), - [Type.ARC]: ($: Arc, delta) => { + arc: ($: Arc, delta) => { const a = $.copy(); add2(null, a.pos, delta); return a; }, - [Type.CIRCLE]: ($: Circle, delta) => + circle: ($: Circle, delta) => new Circle(add2([], $.pos, delta), $.r, copyAttribs($)), - [Type.CUBIC]: tx(Cubic), + cubic: tx(Cubic), - [Type.ELLIPSE]: ($: Ellipse, delta) => + ellipse: ($: Ellipse, delta) => new Ellipse(add2([], $.pos, delta), set2([], $.r), copyAttribs($)), - [Type.GROUP]: ($: Group, delta) => - new Group( - copyAttribs($), - $.children.map((s) => translate(s, delta)) - ), + group: ($: Group, delta) => + $.copyTransformed((x) => translate(x, delta)), - [Type.LINE]: tx(Line), + line: tx(Line), - [Type.PATH]: ($: Path, delta: ReadonlyVec) => + path: ($: Path, delta: ReadonlyVec) => new Path( $.segments.map((s) => s.geo @@ -68,29 +65,29 @@ translate.addAll(>>{ copyAttribs($) ), - [Type.POINTS]: tx(Points), + points: tx(Points), - [Type.POINTS3]: tx(Points3), + points3: tx(Points3), - [Type.POLYGON]: tx(Polygon), + poly: tx(Polygon), - [Type.POLYLINE]: tx(Polyline), + polyline: tx(Polyline), - [Type.QUAD]: tx(Quad), + quad: tx(Quad), - [Type.QUADRATIC]: tx(Quadratic), + quadratic: tx(Quadratic), - [Type.RAY]: ($: Ray, delta) => + ray: ($: Ray, delta) => new Ray(add2([], $.pos, delta), $.dir, copyAttribs($)), - [Type.RECT]: ($: Rect, delta) => + rect: ($: Rect, delta) => new Rect(add2([], $.pos, delta), set2([], $.size), copyAttribs($)), - [Type.SPHERE]: ($: Sphere, delta) => + sphere: ($: Sphere, delta) => new Sphere(add3([], $.pos, delta), $.r, copyAttribs($)), - [Type.TEXT]: ($: Text, delta) => + text: ($: Text, delta) => new Text(add2([], $.pos, delta), $.body, copyAttribs($)), - [Type.TRIANGLE]: tx(Triangle), + tri: tx(Triangle), }); diff --git a/packages/geom/src/ops/union.ts b/packages/geom/src/ops/union.ts index cf20255fc5..3faee0be11 100644 --- a/packages/geom/src/ops/union.ts +++ b/packages/geom/src/ops/union.ts @@ -1,19 +1,19 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { AABB } from "../api/aabb"; import { Rect } from "../api/rect"; import { dispatch } from "../internal/dispatch"; import { unionBounds } from "../internal/union-bounds"; -import type { IObjectOf } from "@thi.ng/api"; export const union = defmulti(dispatch); union.addAll(>>{ - [Type.AABB]: (a: AABB, b: AABB) => [ + aabb: (a: AABB, b: AABB) => [ new AABB(...unionBounds(a.pos, a.size, b.pos, b.size)), ], - [Type.RECT]: (a: Rect, b: Rect) => [ + rect: (a: Rect, b: Rect) => [ new Rect(...unionBounds(a.pos, a.size, b.pos, b.size)), ], }); diff --git a/packages/geom/src/ops/unmap-point.ts b/packages/geom/src/ops/unmap-point.ts index 188e74585c..0ed8611638 100644 --- a/packages/geom/src/ops/unmap-point.ts +++ b/packages/geom/src/ops/unmap-point.ts @@ -1,10 +1,10 @@ +import type { IObjectOf } from "@thi.ng/api"; import { defmulti, Implementation2O, MultiFn2O } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { madd, mixBilinear, ReadonlyVec, Vec } from "@thi.ng/vectors"; import type { Quad } from "../api/quad"; import type { Rect } from "../api/rect"; import { dispatch } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; /** * Projects given point `uv` (normalized coords) into the target space @@ -27,7 +27,7 @@ export const unmapPoint: MultiFn2O = defmulti( ); unmapPoint.addAll(>>{ - [Type.QUAD]: ({ points }: Quad, uv, out = []) => + quad: ({ points }: Quad, uv, out = []) => mixBilinear( out, points[0], @@ -38,9 +38,9 @@ unmapPoint.addAll(>>{ uv[1] ), - [Type.RECT]: ($: Rect, uvw: ReadonlyVec, out = []) => + rect: ($: Rect, uvw: ReadonlyVec, out = []) => madd(out, $.size, uvw, $.pos), }); -unmapPoint.isa(Type.AABB, Type.RECT); -unmapPoint.isa(Type.QUAD3, Type.QUAD); +unmapPoint.isa("aabb", "rect"); +unmapPoint.isa("quad3", "quad"); diff --git a/packages/geom/src/ops/vertices.ts b/packages/geom/src/ops/vertices.ts index 4bf095c2fd..e18cee69dd 100644 --- a/packages/geom/src/ops/vertices.ts +++ b/packages/geom/src/ops/vertices.ts @@ -1,7 +1,7 @@ import type { IObjectOf } from "@thi.ng/api"; import { isArray, isNumber } from "@thi.ng/checks"; import { defmulti, Implementation1O, MultiFn1O } from "@thi.ng/defmulti"; -import { DEFAULT_SAMPLES, IShape, SamplingOpts, Type } from "@thi.ng/geom-api"; +import { DEFAULT_SAMPLES, IShape, SamplingOpts } from "@thi.ng/geom-api"; import { sample as _arcVertices } from "@thi.ng/geom-arc"; import { resample } from "@thi.ng/geom-resample"; import { sampleCubic, sampleQuadratic } from "@thi.ng/geom-splines"; @@ -38,7 +38,7 @@ vertices.addAll(< // \| \| // b +----+ c // - [Type.AABB]: ({ pos, size }: AABB) => { + aabb: ({ pos, size }: AABB) => { const [px, py, pz] = pos; const [qx, qy, qz] = add3([], pos, size); return [ @@ -53,10 +53,10 @@ vertices.addAll(< ]; }, - [Type.ARC]: ($: Arc, opts?: number | Partial): Vec[] => + arc: ($: Arc, opts?: number | Partial): Vec[] => _arcVertices($.pos, $.r, $.axis, $.start, $.end, opts), - [Type.CIRCLE]: ($: Circle, opts = DEFAULT_SAMPLES) => { + circle: ($: Circle, opts = DEFAULT_SAMPLES) => { const pos = $.pos; const r = $.r; let [num, last] = circleOpts(opts, r); @@ -69,10 +69,10 @@ vertices.addAll(< return buf; }, - [Type.CUBIC]: ($: Cubic, opts?: number | Partial) => + cubic: ($: Cubic, opts?: number | Partial) => sampleCubic($.points, opts), - [Type.ELLIPSE]: ($: Ellipse, opts = DEFAULT_SAMPLES) => { + ellipse: ($: Ellipse, opts = DEFAULT_SAMPLES) => { const buf: Vec[] = []; const pos = $.pos; const r = $.r; @@ -85,10 +85,10 @@ vertices.addAll(< return buf; }, - [Type.GROUP]: ({ children }: Group) => + group: ({ children }: Group) => children.reduce((acc, $) => acc.concat(vertices($)), []), - [Type.PATH]: ($: Path, opts?: number | Partial) => { + path: ($: Path, opts?: number | Partial) => { const _opts = isNumber(opts) ? { num: opts } : opts; let verts: Vec[] = []; for (let segs = $.segments, n = segs.length - 1, i = 0; i <= n; i++) { @@ -102,16 +102,16 @@ vertices.addAll(< return verts; }, - [Type.POINTS]: ($: Points) => $.points, + points: ($: Points) => $.points, - [Type.POLYGON]: ($: Polygon, opts?) => resample($.points, opts, true), + poly: ($: Polygon, opts?) => resample($.points, opts, true), - [Type.POLYLINE]: ($: Polyline, opts?) => resample($.points, opts), + polyline: ($: Polyline, opts?) => resample($.points, opts), - [Type.QUADRATIC]: ($: Quadratic, opts?: number | Partial) => + quadratic: ($: Quadratic, opts?: number | Partial) => sampleQuadratic($.points, opts), - [Type.RECT]: ($: Rect, opts) => { + rect: ($: Rect, opts) => { const p = $.pos; const q = add2([], p, $.size); const verts = [set2([], p), [q[0], p[1]], q, [p[0], q[1]]]; @@ -119,10 +119,10 @@ vertices.addAll(< }, }); -vertices.isa(Type.LINE, Type.POLYLINE); -vertices.isa(Type.POINTS3, Type.POINTS); -vertices.isa(Type.QUAD, Type.POLYGON); -vertices.isa(Type.TRIANGLE, Type.POLYGON); +vertices.isa("line", "polyline"); +vertices.isa("points3", "points"); +vertices.isa("quad", "poly"); +vertices.isa("tri", "poly"); /** * Takes array of vectors or an `IShape`. If the latter, calls {@link vertices} diff --git a/packages/geom/src/ops/volume.ts b/packages/geom/src/ops/volume.ts index 664a917425..f6cf0ae249 100644 --- a/packages/geom/src/ops/volume.ts +++ b/packages/geom/src/ops/volume.ts @@ -1,10 +1,10 @@ +import type { IObjectOf } from "@thi.ng/api"; import { DEFAULT, defmulti, Implementation1 } from "@thi.ng/defmulti"; -import { IShape, Type } from "@thi.ng/geom-api"; +import type { IShape } from "@thi.ng/geom-api"; import { PI } from "@thi.ng/math"; import type { AABB } from "../api/aabb"; import type { Sphere } from "../api/sphere"; import { dispatch } from "../internal/dispatch"; -import type { IObjectOf } from "@thi.ng/api"; /** * Returns the volume of given 3D shape. Returns 0 for all others. @@ -18,7 +18,7 @@ export const volume = defmulti(dispatch); volume.add(DEFAULT, () => 0); volume.addAll(>>{ - [Type.AABB]: ({ size }: AABB) => size[0] * size[1] * size[2], + aabb: ({ size }: AABB) => size[0] * size[1] * size[2], - [Type.SPHERE]: ($: Sphere) => (4 / 3) * PI * $.r ** 3, + sphere: ($: Sphere) => (4 / 3) * PI * $.r ** 3, }); diff --git a/packages/gp/CHANGELOG.md b/packages/gp/CHANGELOG.md index 61e4918eff..b9dc2f5239 100644 --- a/packages/gp/CHANGELOG.md +++ b/packages/gp/CHANGELOG.md @@ -3,65 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.34...@thi.ng/gp@0.1.35) (2020-12-07) +# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.35...@thi.ng/gp@0.2.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/gp +### Code Refactoring +* **gp:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([6fd4291](https://github.com/thi-ng/umbrella/commit/6fd4291eb2be4baae93b3f365478f73990e044b0)) +### BREAKING CHANGES -## [0.1.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.33...@thi.ng/gp@0.1.34) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/gp - - - - - -## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.32...@thi.ng/gp@0.1.33) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/gp - - - - - -## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.31...@thi.ng/gp@0.1.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/gp - - - - - -## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.30...@thi.ng/gp@0.1.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/gp - - - - - -## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.29...@thi.ng/gp@0.1.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/gp - - - - - -## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.28...@thi.ng/gp@0.1.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/gp - - - - - -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.27...@thi.ng/gp@0.1.28) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/gp +* **gp:** replace GeneType w/ type alias diff --git a/packages/gp/README.md b/packages/gp/README.md index 89111ffab6..a193031141 100644 --- a/packages/gp/README.md +++ b/packages/gp/README.md @@ -77,7 +77,7 @@ yarn add @thi.ng/gp ``` -Package sizes (gzipped, pre-treeshake): ESM: 1.25 KB / CJS: 1.30 KB / UMD: 1.42 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.20 KB / CJS: 1.25 KB / UMD: 1.36 KB ## Dependencies diff --git a/packages/gp/package.json b/packages/gp/package.json index 3aad7b3484..6c18aea1bb 100644 --- a/packages/gp/package.json +++ b/packages/gp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/gp", - "version": "0.1.35", + "version": "0.2.0", "description": "Genetic programming helpers & strategies (tree based & multi-expression programming)", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/math": "^2.2.2", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/zipper": "^0.1.29" + "@thi.ng/api": "^6.13.5", + "@thi.ng/math": "^3.0.0", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/zipper": "^0.1.30" }, "files": [ "*.js", diff --git a/packages/gp/src/api.ts b/packages/gp/src/api.ts index f62f56683f..5331a64e95 100644 --- a/packages/gp/src/api.ts +++ b/packages/gp/src/api.ts @@ -1,10 +1,7 @@ import type { Fn, Fn2 } from "@thi.ng/api"; import type { IRandom } from "@thi.ng/random"; -export enum GeneType { - TERMINAL, - OP, -} +export type GeneType = "term" | "op"; /** * Type alias for S-expression based AST @@ -66,12 +63,12 @@ export interface MEPOpts extends GPOpts { } export interface TerminalGene { - type: GeneType.TERMINAL; + type: "term"; value: T; } export interface OpGene { - type: GeneType.OP; + type: "op"; op: OP; args: A[]; } diff --git a/packages/gp/src/ast.ts b/packages/gp/src/ast.ts index b79cbbcc54..cf43553116 100644 --- a/packages/gp/src/ast.ts +++ b/packages/gp/src/ast.ts @@ -2,7 +2,7 @@ import { assert } from "@thi.ng/api"; import { SYSTEM } from "@thi.ng/random"; import { iterate, iterator, repeatedly, takeWhile } from "@thi.ng/transducers"; import { Location, zipper } from "@thi.ng/zipper"; -import { ASTNode, ASTOpts, GeneType, OpGene } from "./api"; +import type { ASTNode, ASTOpts, OpGene } from "./api"; import { opNode, probabilities, terminalNode } from "./utils"; export class AST { @@ -136,7 +136,7 @@ export class AST { protected asZipper(tree: ASTNode) { return zipper>( { - branch: (x) => x.type === GeneType.OP, + branch: (x) => x.type === "op", children: (x) => (>>x).args, factory: (n, args) => opNode((>>n).op, args), diff --git a/packages/gp/src/mep.ts b/packages/gp/src/mep.ts index e33246b8c1..0dcf07a720 100644 --- a/packages/gp/src/mep.ts +++ b/packages/gp/src/mep.ts @@ -1,7 +1,7 @@ import { inRange } from "@thi.ng/math"; import { SYSTEM } from "@thi.ng/random"; import { repeatedly } from "@thi.ng/transducers"; -import { ASTNode, GeneType, MEPChromosome, MEPGene, MEPOpts } from "./api"; +import type { ASTNode, MEPChromosome, MEPGene, MEPOpts } from "./api"; import { opNode, probabilities, terminalNode } from "./utils"; export class MEP { @@ -55,7 +55,7 @@ export class MEP { const depths: number[] = []; for (let i = 0; i < chromosome.length; i++) { const gene = chromosome[i]; - if (gene.type == GeneType.TERMINAL) { + if (gene.type == "term") { res[i] = gene; depths[i] = 1; } else { diff --git a/packages/gp/src/utils.ts b/packages/gp/src/utils.ts index 7357937984..fba40a2aba 100644 --- a/packages/gp/src/utils.ts +++ b/packages/gp/src/utils.ts @@ -1,14 +1,14 @@ import { assert } from "@thi.ng/api"; import { add, choices, range } from "@thi.ng/transducers"; -import { GeneType, GPOpts, OpGene, TerminalGene } from "./api"; +import type { GPOpts, OpGene, TerminalGene } from "./api"; export const terminalNode = (value: T): TerminalGene => ({ - type: GeneType.TERMINAL, + type: "term", value, }); export const opNode = (op: OP, args: A[]): OpGene => ({ - type: GeneType.OP, + type: "op", op, args, }); diff --git a/packages/gp/test/ast.ts b/packages/gp/test/ast.ts index 001dd5b2af..021e29df8d 100644 --- a/packages/gp/test/ast.ts +++ b/packages/gp/test/ast.ts @@ -23,33 +23,33 @@ describe("gp (ast)", () => { it("generate", () => { assert.deepStrictEqual(ast.randomAST(), { - type: 1, + type: "op", op: "+", args: [ { - type: 1, + type: "op", op: "-", args: [ { - type: 0, + type: "term", value: 5, }, { - type: 0, + type: "term", value: 1, }, ], }, { - type: 1, + type: "op", op: "*", args: [ { - type: 0, + type: "term", value: 8, }, { - type: 0, + type: "term", value: 3, }, ], diff --git a/packages/gp/test/mep.ts b/packages/gp/test/mep.ts index 1f963abb91..ffc2030372 100644 --- a/packages/gp/test/mep.ts +++ b/packages/gp/test/mep.ts @@ -23,121 +23,121 @@ describe("gp (mep)", () => { it("generate", () => { assert.deepStrictEqual(ast.randomChromosome(), [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, - { type: 1, op: "*", args: [1, 1] }, - { type: 1, op: "-", args: [1, 2] }, - { type: 1, op: "-", args: [0, 0] }, - { type: 1, op: "-", args: [3, 4] }, - { type: 1, op: "*", args: [4, 0] }, - { type: 1, op: "-", args: [2, 3] }, - { type: 1, op: "/", args: [1, 4] }, - { type: 1, op: "-", args: [5, 0] }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, + { type: "op", op: "*", args: [1, 1] }, + { type: "op", op: "-", args: [1, 2] }, + { type: "op", op: "-", args: [0, 0] }, + { type: "op", op: "-", args: [3, 4] }, + { type: "op", op: "*", args: [4, 0] }, + { type: "op", op: "-", args: [2, 3] }, + { type: "op", op: "/", args: [1, 4] }, + { type: "op", op: "-", args: [5, 0] }, ]); }); it("decode", () => { assert.deepStrictEqual(ast.decodeChromosome(ast.randomChromosome()), [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "*", args: [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, ], }, { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], @@ -145,54 +145,54 @@ describe("gp (mep)", () => { ], }, { - type: 1, + type: "op", op: "/", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, ], }, ]); @@ -203,87 +203,87 @@ describe("gp (mep)", () => { ast.decodeChromosome(ast.randomChromosome(), 3), [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "*", args: [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, ], }, { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], @@ -291,54 +291,54 @@ describe("gp (mep)", () => { ], }, { - type: 1, + type: "op", op: "/", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "-", args: [ { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, + { type: "term", value: 5 }, { - type: 1, + type: "op", op: "*", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, { - type: 1, + type: "op", op: "-", args: [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, ], }, ], }, - { type: 0, value: 5 }, + { type: "term", value: 5 }, ], }, ] @@ -347,16 +347,16 @@ describe("gp (mep)", () => { it("mutate", () => { assert.deepStrictEqual(ast.mutate(ast.randomChromosome()), [ - { type: 0, value: 0 }, - { type: 0, value: 5 }, - { type: 1, op: "*", args: [1, 0] }, - { type: 1, op: "+", args: [2, 1] }, - { type: 1, op: "-", args: [0, 0] }, - { type: 1, op: "+", args: [4, 2] }, - { type: 1, op: "/", args: [3, 1] }, - { type: 1, op: "/", args: [4, 3] }, - { type: 0, value: 5 }, - { type: 1, op: "/", args: [6, 4] }, + { type: "term", value: 0 }, + { type: "term", value: 5 }, + { type: "op", op: "*", args: [1, 0] }, + { type: "op", op: "+", args: [2, 1] }, + { type: "op", op: "-", args: [0, 0] }, + { type: "op", op: "+", args: [4, 2] }, + { type: "op", op: "/", args: [3, 1] }, + { type: "op", op: "/", args: [4, 3] }, + { type: "term", value: 5 }, + { type: "op", op: "/", args: [6, 4] }, ]); }); @@ -364,43 +364,43 @@ describe("gp (mep)", () => { const a = ast.randomChromosome(); const b = ast.randomChromosome(); assert.deepStrictEqual(b, [ - { type: 0, value: 5 }, - { type: 1, op: "*", args: [0, 0] }, - { type: 0, value: 5 }, - { type: 1, op: "-", args: [0, 0] }, - { type: 1, op: "/", args: [1, 0] }, - { type: 1, op: "*", args: [2, 1] }, - { type: 1, op: "-", args: [3, 2] }, - { type: 1, op: "-", args: [2, 1] }, - { type: 0, value: 1 }, - { type: 0, value: 6 }, + { type: "term", value: 5 }, + { type: "op", op: "*", args: [0, 0] }, + { type: "term", value: 5 }, + { type: "op", op: "-", args: [0, 0] }, + { type: "op", op: "/", args: [1, 0] }, + { type: "op", op: "*", args: [2, 1] }, + { type: "op", op: "-", args: [3, 2] }, + { type: "op", op: "-", args: [2, 1] }, + { type: "term", value: 1 }, + { type: "term", value: 6 }, ]); assert.deepStrictEqual(ast.crossoverSingle(a, b, 5), [ [ - { type: 0, value: 5 }, - { type: 0, value: 5 }, - { type: 1, op: "*", args: [1, 1] }, - { type: 1, op: "-", args: [1, 2] }, - { type: 1, op: "-", args: [0, 0] }, + { type: "term", value: 5 }, + { type: "term", value: 5 }, + { type: "op", op: "*", args: [1, 1] }, + { type: "op", op: "-", args: [1, 2] }, + { type: "op", op: "-", args: [0, 0] }, // cut - { type: 1, op: "*", args: [2, 1] }, - { type: 1, op: "-", args: [3, 2] }, - { type: 1, op: "-", args: [2, 1] }, - { type: 0, value: 1 }, - { type: 0, value: 6 }, + { type: "op", op: "*", args: [2, 1] }, + { type: "op", op: "-", args: [3, 2] }, + { type: "op", op: "-", args: [2, 1] }, + { type: "term", value: 1 }, + { type: "term", value: 6 }, ], [ - { type: 0, value: 5 }, - { type: 1, op: "*", args: [0, 0] }, - { type: 0, value: 5 }, - { type: 1, op: "-", args: [0, 0] }, - { type: 1, op: "/", args: [1, 0] }, + { type: "term", value: 5 }, + { type: "op", op: "*", args: [0, 0] }, + { type: "term", value: 5 }, + { type: "op", op: "-", args: [0, 0] }, + { type: "op", op: "/", args: [1, 0] }, // cut - { type: 1, op: "-", args: [3, 4] }, - { type: 1, op: "*", args: [4, 0] }, - { type: 1, op: "-", args: [2, 3] }, - { type: 1, op: "/", args: [1, 4] }, - { type: 1, op: "-", args: [5, 0] }, + { type: "op", op: "-", args: [3, 4] }, + { type: "op", op: "*", args: [4, 0] }, + { type: "op", op: "-", args: [2, 3] }, + { type: "op", op: "/", args: [1, 4] }, + { type: "op", op: "-", args: [5, 0] }, ], ]); }); @@ -409,16 +409,16 @@ describe("gp (mep)", () => { const a = ast.randomChromosome(); const b = ast.randomChromosome(); assert.deepStrictEqual(ast.crossoverUniform(a, b), [ - { type: 0, value: 5 }, - { type: 1, op: "*", args: [0, 0] }, - { type: 0, value: 5 }, - { type: 1, op: "-", args: [1, 2] }, - { type: 1, op: "-", args: [0, 0] }, - { type: 1, op: "-", args: [3, 4] }, - { type: 1, op: "-", args: [3, 2] }, - { type: 1, op: "-", args: [2, 1] }, - { type: 0, value: 1 }, - { type: 1, op: "-", args: [5, 0] }, + { type: "term", value: 5 }, + { type: "op", op: "*", args: [0, 0] }, + { type: "term", value: 5 }, + { type: "op", op: "-", args: [1, 2] }, + { type: "op", op: "-", args: [0, 0] }, + { type: "op", op: "-", args: [3, 4] }, + { type: "op", op: "-", args: [3, 2] }, + { type: "op", op: "-", args: [2, 1] }, + { type: "term", value: 1 }, + { type: "op", op: "-", args: [5, 0] }, ]); }); }); diff --git a/packages/grid-iterators/CHANGELOG.md b/packages/grid-iterators/CHANGELOG.md index 0bceed3324..4a4c567669 100644 --- a/packages/grid-iterators/CHANGELOG.md +++ b/packages/grid-iterators/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.4.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.14...@thi.ng/grid-iterators@0.4.15) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.13...@thi.ng/grid-iterators@0.4.14) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.12...@thi.ng/grid-iterators@0.4.13) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.11...@thi.ng/grid-iterators@0.4.12) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.10...@thi.ng/grid-iterators@0.4.11) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.9...@thi.ng/grid-iterators@0.4.10) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.8...@thi.ng/grid-iterators@0.4.9) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.7...@thi.ng/grid-iterators@0.4.8) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/grid-iterators - - - - - -## [0.4.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.6...@thi.ng/grid-iterators@0.4.7) (2020-08-16) +## [0.4.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.15...@thi.ng/grid-iterators@0.4.16) (2020-12-22) **Note:** Version bump only for package @thi.ng/grid-iterators diff --git a/packages/grid-iterators/package.json b/packages/grid-iterators/package.json index a2214331d5..6f1107e1f6 100644 --- a/packages/grid-iterators/package.json +++ b/packages/grid-iterators/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/grid-iterators", - "version": "0.4.15", + "version": "0.4.16", "description": "2D grid iterators w/ multiple orderings", "module": "./index.js", "main": "./lib/index.js", @@ -40,21 +40,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/morton": "^2.0.28", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/morton": "^2.0.29", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/hdiff/CHANGELOG.md b/packages/hdiff/CHANGELOG.md index 447a7fe9bb..f75fdd6453 100644 --- a/packages/hdiff/CHANGELOG.md +++ b/packages/hdiff/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.18...@thi.ng/hdiff@0.1.19) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.17...@thi.ng/hdiff@0.1.18) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.16...@thi.ng/hdiff@0.1.17) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.15...@thi.ng/hdiff@0.1.16) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.14...@thi.ng/hdiff@0.1.15) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.13...@thi.ng/hdiff@0.1.14) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.12...@thi.ng/hdiff@0.1.13) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.11...@thi.ng/hdiff@0.1.12) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hdiff - - - - - -## [0.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.10...@thi.ng/hdiff@0.1.11) (2020-08-16) +## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.19...@thi.ng/hdiff@0.1.20) (2020-12-22) **Note:** Version bump only for package @thi.ng/hdiff diff --git a/packages/hdiff/README.md b/packages/hdiff/README.md index 13c69b07a3..04f0d62c78 100644 --- a/packages/hdiff/README.md +++ b/packages/hdiff/README.md @@ -49,7 +49,7 @@ yarn add @thi.ng/hdiff ``` -Package sizes (gzipped, pre-treeshake): ESM: 1.58 KB / CJS: 1.65 KB / UMD: 1.70 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.57 KB / CJS: 1.64 KB / UMD: 1.68 KB ### CLI installation & usage diff --git a/packages/hdiff/package.json b/packages/hdiff/package.json index 3371b42b09..00da56b861 100644 --- a/packages/hdiff/package.json +++ b/packages/hdiff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdiff", - "version": "0.1.19", + "version": "0.1.20", "description": "String diffing w/ hiccup output for further processing, e.g. with @thi.ng/hdom, @thi.ng/hiccup. Includes CLI util to generate HTML, with theme support and code folding", "module": "./index.js", "main": "./lib/index.js", @@ -41,21 +41,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/diff": "^3.2.35", - "@thi.ng/hiccup": "^3.6.4", - "@thi.ng/hiccup-css": "^1.1.42", - "@thi.ng/strings": "^1.11.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/diff": "^4.0.0", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/hiccup-css": "^1.1.43", + "@thi.ng/strings": "^1.11.3" }, "files": [ "*.js", diff --git a/packages/hdiff/src/diff.ts b/packages/hdiff/src/diff.ts index 824e176ba7..11bca8d9e1 100644 --- a/packages/hdiff/src/diff.ts +++ b/packages/hdiff/src/diff.ts @@ -1,4 +1,4 @@ -import { diffArray, DiffMode } from "@thi.ng/diff"; +import { diffArray } from "@thi.ng/diff"; import { escape } from "@thi.ng/hiccup"; import { padLeft } from "@thi.ng/strings"; @@ -8,7 +8,7 @@ export const computeDiff = (a: string, b: string) => { const edits = diffArray( a.split("\n"), b.split("\n"), - DiffMode.ONLY_DISTANCE_LINEAR + "only-distance-linear" ).linear!; for (let i = 0; i < edits.length; i += 3) { const lineID = edits[i]; diff --git a/packages/hdom-canvas/CHANGELOG.md b/packages/hdom-canvas/CHANGELOG.md index 0925de0f68..519f21e3c6 100644 --- a/packages/hdom-canvas/CHANGELOG.md +++ b/packages/hdom-canvas/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.0.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.22...@thi.ng/hdom-canvas@3.0.23) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.21...@thi.ng/hdom-canvas@3.0.22) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.20...@thi.ng/hdom-canvas@3.0.21) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.19...@thi.ng/hdom-canvas@3.0.20) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.18...@thi.ng/hdom-canvas@3.0.19) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.17...@thi.ng/hdom-canvas@3.0.18) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.16...@thi.ng/hdom-canvas@3.0.17) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.15...@thi.ng/hdom-canvas@3.0.16) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.14...@thi.ng/hdom-canvas@3.0.15) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hdom-canvas - - - - - -## [3.0.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.13...@thi.ng/hdom-canvas@3.0.14) (2020-08-16) +## [3.0.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.23...@thi.ng/hdom-canvas@3.0.24) (2020-12-22) **Note:** Version bump only for package @thi.ng/hdom-canvas diff --git a/packages/hdom-canvas/README.md b/packages/hdom-canvas/README.md index ea83dd44d4..9d255d8ee3 100644 --- a/packages/hdom-canvas/README.md +++ b/packages/hdom-canvas/README.md @@ -72,7 +72,7 @@ yarn add @thi.ng/hdom-canvas ``` -Package sizes (gzipped, pre-treeshake): ESM: 913 bytes / CJS: 982 bytes / UMD: 1.06 KB +Package sizes (gzipped, pre-treeshake): ESM: 897 bytes / CJS: 967 bytes / UMD: 1.05 KB ## Dependencies diff --git a/packages/hdom-canvas/package.json b/packages/hdom-canvas/package.json index ea352d9889..49ab953fc4 100644 --- a/packages/hdom-canvas/package.json +++ b/packages/hdom-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom-canvas", - "version": "3.0.23", + "version": "3.0.24", "description": "@thi.ng/hdom component wrapper for declarative canvas scenegraphs", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/diff": "^3.2.35", - "@thi.ng/hdom": "^8.2.13", - "@thi.ng/hiccup-canvas": "^1.1.13" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/diff": "^4.0.0", + "@thi.ng/hdom": "^8.2.14", + "@thi.ng/hiccup-canvas": "^1.1.14" }, "files": [ "*.js", diff --git a/packages/hdom-canvas/src/index.ts b/packages/hdom-canvas/src/index.ts index fdc3e38940..6c7d80ff63 100644 --- a/packages/hdom-canvas/src/index.ts +++ b/packages/hdom-canvas/src/index.ts @@ -1,6 +1,6 @@ import { assert, NO_OP } from "@thi.ng/api"; import { isArray, isNotStringAndIterable } from "@thi.ng/checks"; -import { diffArray, DiffMode } from "@thi.ng/diff"; +import { diffArray } from "@thi.ng/diff"; import { equiv, HDOMImplementation, HDOMOpts, releaseTree } from "@thi.ng/hdom"; import { draw } from "@thi.ng/hiccup-canvas"; @@ -158,7 +158,7 @@ export const diffTree = ( if (impl && impl !== IMPL) { return impl.diffTree(opts, parent, prev, curr, child); } - const delta = diffArray(prev, curr, DiffMode.ONLY_DISTANCE, equiv); + const delta = diffArray(prev, curr, "only-distance", equiv); if (delta.distance > 0) { return createTree(opts, parent, curr); } diff --git a/packages/hdom-components/CHANGELOG.md b/packages/hdom-components/CHANGELOG.md index ecafb2e231..3f8879c52b 100644 --- a/packages/hdom-components/CHANGELOG.md +++ b/packages/hdom-components/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [4.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.16...@thi.ng/hdom-components@4.0.17) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.15...@thi.ng/hdom-components@4.0.16) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.14...@thi.ng/hdom-components@4.0.15) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.13...@thi.ng/hdom-components@4.0.14) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.12...@thi.ng/hdom-components@4.0.13) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.11...@thi.ng/hdom-components@4.0.12) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.10...@thi.ng/hdom-components@4.0.11) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.9...@thi.ng/hdom-components@4.0.10) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hdom-components - - - - - -## [4.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.8...@thi.ng/hdom-components@4.0.9) (2020-08-16) +## [4.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.17...@thi.ng/hdom-components@4.0.18) (2020-12-22) **Note:** Version bump only for package @thi.ng/hdom-components diff --git a/packages/hdom-components/package.json b/packages/hdom-components/package.json index 96d7bc9bb5..b48542b091 100644 --- a/packages/hdom-components/package.json +++ b/packages/hdom-components/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom-components", - "version": "4.0.17", + "version": "4.0.18", "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib utils", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/adapt-dpi": "^1.0.11", - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/math": "^2.2.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/transducers-stats": "^1.1.43" + "@thi.ng/adapt-dpi": "^1.0.12", + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/math": "^3.0.0", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/transducers-stats": "^1.1.44" }, "files": [ "*.js", diff --git a/packages/hdom-mock/CHANGELOG.md b/packages/hdom-mock/CHANGELOG.md index 054861b53d..18a2851971 100644 --- a/packages/hdom-mock/CHANGELOG.md +++ b/packages/hdom-mock/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.44...@thi.ng/hdom-mock@1.1.45) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.43...@thi.ng/hdom-mock@1.1.44) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.42...@thi.ng/hdom-mock@1.1.43) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.41...@thi.ng/hdom-mock@1.1.42) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.40...@thi.ng/hdom-mock@1.1.41) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.39...@thi.ng/hdom-mock@1.1.40) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.38...@thi.ng/hdom-mock@1.1.39) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hdom-mock - - - - - -## [1.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.37...@thi.ng/hdom-mock@1.1.38) (2020-08-16) +## [1.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.45...@thi.ng/hdom-mock@1.1.46) (2020-12-22) **Note:** Version bump only for package @thi.ng/hdom-mock diff --git a/packages/hdom-mock/package.json b/packages/hdom-mock/package.json index f6d13763d9..a4cedc3bc4 100644 --- a/packages/hdom-mock/package.json +++ b/packages/hdom-mock/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom-mock", - "version": "1.1.45", + "version": "1.1.46", "description": "Mock base implementation for @thi.ng/hdom API", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/hdom": "^8.2.13" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/hdom": "^8.2.14" }, "files": [ "*.js", diff --git a/packages/hdom/CHANGELOG.md b/packages/hdom/CHANGELOG.md index 694a8f037a..a5abb5d07f 100644 --- a/packages/hdom/CHANGELOG.md +++ b/packages/hdom/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [8.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.12...@thi.ng/hdom@8.2.13) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.11...@thi.ng/hdom@8.2.12) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.10...@thi.ng/hdom@8.2.11) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.9...@thi.ng/hdom@8.2.10) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.8...@thi.ng/hdom@8.2.9) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.7...@thi.ng/hdom@8.2.8) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.6...@thi.ng/hdom@8.2.7) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hdom - - - - - -## [8.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.5...@thi.ng/hdom@8.2.6) (2020-08-16) +## [8.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.13...@thi.ng/hdom@8.2.14) (2020-12-22) **Note:** Version bump only for package @thi.ng/hdom diff --git a/packages/hdom/README.md b/packages/hdom/README.md index 5c4162a7ab..31f46b3a3a 100644 --- a/packages/hdom/README.md +++ b/packages/hdom/README.md @@ -142,7 +142,7 @@ yarn install yarn start ``` -Package sizes (gzipped, pre-treeshake): ESM: 3.65 KB / CJS: 3.75 KB / UMD: 3.68 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.63 KB / CJS: 3.73 KB / UMD: 3.66 KB ## Dependencies diff --git a/packages/hdom/package.json b/packages/hdom/package.json index 18c5d07fd7..72982a06ed 100644 --- a/packages/hdom/package.json +++ b/packages/hdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom", - "version": "8.2.13", + "version": "8.2.14", "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors", "module": "./index.js", "main": "./lib/index.js", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/atom": "^4.1.24", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/atom": "^4.1.25", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/diff": "^3.2.35", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/hiccup": "^3.6.4", - "@thi.ng/prefixes": "^0.1.8" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/diff": "^4.0.0", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/prefixes": "^0.1.9" }, "files": [ "*.js", diff --git a/packages/hdom/src/diff.ts b/packages/hdom/src/diff.ts index a5fdeb3988..7ad8372d25 100644 --- a/packages/hdom/src/diff.ts +++ b/packages/hdom/src/diff.ts @@ -1,5 +1,5 @@ import { IObjectOf, SEMAPHORE } from "@thi.ng/api"; -import { diffArray, DiffMode, diffObject } from "@thi.ng/diff"; +import { diffArray, diffObject } from "@thi.ng/diff"; import { equiv as _equiv, equivArrayLike, @@ -75,7 +75,7 @@ export const diffTree = ( if (_impl && _impl !== impl) { return _impl.diffTree(opts, _impl, parent, prev, curr, child); } - const delta = diffArray(prev, curr, DiffMode.ONLY_DISTANCE_LINEAR, equiv); + const delta = diffArray(prev, curr, "only-distance-linear", equiv); if (delta.distance === 0) { return; } @@ -225,7 +225,7 @@ export const diffAttributes = ( prev: any, curr: any ) => { - const delta = diffObject(prev, curr, DiffMode.FULL, _equiv); + const delta = diffObject(prev, curr, "full", _equiv); impl.removeAttribs(el, delta.dels!, prev); let val = SEMAPHORE; let i: number, e, edits; diff --git a/packages/heaps/CHANGELOG.md b/packages/heaps/CHANGELOG.md index 9ae278fab2..9f4330a6cf 100644 --- a/packages/heaps/CHANGELOG.md +++ b/packages/heaps/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.27...@thi.ng/heaps@1.2.28) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.26...@thi.ng/heaps@1.2.27) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.25...@thi.ng/heaps@1.2.26) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.24...@thi.ng/heaps@1.2.25) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.23...@thi.ng/heaps@1.2.24) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.22...@thi.ng/heaps@1.2.23) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.21...@thi.ng/heaps@1.2.22) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/heaps - - - - - -## [1.2.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.20...@thi.ng/heaps@1.2.21) (2020-08-16) +## [1.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.28...@thi.ng/heaps@1.2.29) (2020-12-22) **Note:** Version bump only for package @thi.ng/heaps diff --git a/packages/heaps/package.json b/packages/heaps/package.json index 99ef549f2a..ad4185bf3b 100644 --- a/packages/heaps/package.json +++ b/packages/heaps/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/heaps", - "version": "1.2.28", + "version": "1.2.29", "description": "Various heap implementations for arbitrary values and with customizable ordering", "module": "./index.js", "main": "./lib/index.js", @@ -40,18 +40,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/compare": "^1.3.20" + "@thi.ng/api": "^6.13.5", + "@thi.ng/compare": "^1.3.21" }, "files": [ "*.js", diff --git a/packages/hex/CHANGELOG.md b/packages/hex/CHANGELOG.md index e6f409be9a..40ee2983d4 100644 --- a/packages/hex/CHANGELOG.md +++ b/packages/hex/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hex@0.1.0...@thi.ng/hex@0.1.1) (2020-11-26) +## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hex@0.1.1...@thi.ng/hex@0.1.2) (2020-12-22) **Note:** Version bump only for package @thi.ng/hex diff --git a/packages/hex/package.json b/packages/hex/package.json index 291f858b60..02342fd519 100644 --- a/packages/hex/package.json +++ b/packages/hex/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hex", - "version": "0.1.1", + "version": "0.1.2", "description": "Hex string formatters for 4/8/16/24/32/48/64bit words", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/hiccup-canvas/CHANGELOG.md b/packages/hiccup-canvas/CHANGELOG.md index 97de031011..79045b5218 100644 --- a/packages/hiccup-canvas/CHANGELOG.md +++ b/packages/hiccup-canvas/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.12...@thi.ng/hiccup-canvas@1.1.13) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.11...@thi.ng/hiccup-canvas@1.1.12) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.10...@thi.ng/hiccup-canvas@1.1.11) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.9...@thi.ng/hiccup-canvas@1.1.10) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.8...@thi.ng/hiccup-canvas@1.1.9) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.7...@thi.ng/hiccup-canvas@1.1.8) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.6...@thi.ng/hiccup-canvas@1.1.7) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.5...@thi.ng/hiccup-canvas@1.1.6) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.4...@thi.ng/hiccup-canvas@1.1.5) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup-canvas - - - - - -## [1.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.3...@thi.ng/hiccup-canvas@1.1.4) (2020-08-16) +## [1.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.13...@thi.ng/hiccup-canvas@1.1.14) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup-canvas diff --git a/packages/hiccup-canvas/package.json b/packages/hiccup-canvas/package.json index 2b9423141a..27d9913c94 100644 --- a/packages/hiccup-canvas/package.json +++ b/packages/hiccup-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-canvas", - "version": "1.1.13", + "version": "1.1.14", "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts", "module": "./index.js", "main": "./lib/index.js", @@ -38,21 +38,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/color": "^1.3.2", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/color": "^2.0.0", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/hiccup-carbon-icons/CHANGELOG.md b/packages/hiccup-carbon-icons/CHANGELOG.md index 1d249b1e48..07c5513df6 100644 --- a/packages/hiccup-carbon-icons/CHANGELOG.md +++ b/packages/hiccup-carbon-icons/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.6...@thi.ng/hiccup-carbon-icons@2.0.7) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.5...@thi.ng/hiccup-carbon-icons@2.0.6) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.4...@thi.ng/hiccup-carbon-icons@2.0.5) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.3...@thi.ng/hiccup-carbon-icons@2.0.4) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.2...@thi.ng/hiccup-carbon-icons@2.0.3) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.1...@thi.ng/hiccup-carbon-icons@2.0.2) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.0...@thi.ng/hiccup-carbon-icons@2.0.1) (2020-08-20) +## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.7...@thi.ng/hiccup-carbon-icons@2.0.8) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup-carbon-icons @@ -80,22 +32,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.0.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@1.0.50...@thi.ng/hiccup-carbon-icons@1.0.51) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - -## [1.0.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@1.0.49...@thi.ng/hiccup-carbon-icons@1.0.50) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons - - - - - # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@0.1.2...@thi.ng/hiccup-carbon-icons@1.0.0) (2019-01-21) ### Build System diff --git a/packages/hiccup-carbon-icons/package.json b/packages/hiccup-carbon-icons/package.json index dd05ca0f02..c048b504b3 100644 --- a/packages/hiccup-carbon-icons/package.json +++ b/packages/hiccup-carbon-icons/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-carbon-icons", - "version": "2.0.7", + "version": "2.0.8", "description": "Full set of IBM's Carbon icons in hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -33,7 +33,7 @@ "build:sheet": "ts-node -P tools/tsconfig.json tools/contact-sheet.ts", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.map *.d.ts .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.map *.d.ts .nyc_output build coverage doc lib utils", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -41,15 +41,15 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/hiccup": "^3.6.4", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/hiccup": "^3.6.5", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/hiccup-css/CHANGELOG.md b/packages/hiccup-css/CHANGELOG.md index 35bc68280b..fed65d0c80 100644 --- a/packages/hiccup-css/CHANGELOG.md +++ b/packages/hiccup-css/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.41...@thi.ng/hiccup-css@1.1.42) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.40...@thi.ng/hiccup-css@1.1.41) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.39...@thi.ng/hiccup-css@1.1.40) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.38...@thi.ng/hiccup-css@1.1.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.37...@thi.ng/hiccup-css@1.1.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.36...@thi.ng/hiccup-css@1.1.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.35...@thi.ng/hiccup-css@1.1.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup-css - - - - - -## [1.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.34...@thi.ng/hiccup-css@1.1.35) (2020-08-16) +## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.42...@thi.ng/hiccup-css@1.1.43) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup-css diff --git a/packages/hiccup-css/package.json b/packages/hiccup-css/package.json index 535e70ac35..64b505e526 100644 --- a/packages/hiccup-css/package.json +++ b/packages/hiccup-css/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-css", - "version": "1.1.42", + "version": "1.1.43", "description": "CSS from nested JS data structures", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/hiccup-html/CHANGELOG.md b/packages/hiccup-html/CHANGELOG.md index 9aee8fd64b..e563bcaa6c 100644 --- a/packages/hiccup-html/CHANGELOG.md +++ b/packages/hiccup-html/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.3.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.8...@thi.ng/hiccup-html@0.3.9) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.7...@thi.ng/hiccup-html@0.3.8) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.6...@thi.ng/hiccup-html@0.3.7) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.5...@thi.ng/hiccup-html@0.3.6) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.4...@thi.ng/hiccup-html@0.3.5) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.3...@thi.ng/hiccup-html@0.3.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.2...@thi.ng/hiccup-html@0.3.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup-html - - - - - -## [0.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.1...@thi.ng/hiccup-html@0.3.2) (2020-08-16) +## [0.3.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.9...@thi.ng/hiccup-html@0.3.10) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup-html diff --git a/packages/hiccup-html/package.json b/packages/hiccup-html/package.json index 00c6de8582..dbdfe7e328 100644 --- a/packages/hiccup-html/package.json +++ b/packages/hiccup-html/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-html", - "version": "0.3.9", + "version": "0.3.10", "description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure", "module": "./index.js", "main": "./lib/index.js", @@ -38,17 +38,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/hiccup-markdown/CHANGELOG.md b/packages/hiccup-markdown/CHANGELOG.md index 01de495f51..1a24bf2d00 100644 --- a/packages/hiccup-markdown/CHANGELOG.md +++ b/packages/hiccup-markdown/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.2.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.37...@thi.ng/hiccup-markdown@1.2.38) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.36...@thi.ng/hiccup-markdown@1.2.37) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.35...@thi.ng/hiccup-markdown@1.2.36) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.34...@thi.ng/hiccup-markdown@1.2.35) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.33...@thi.ng/hiccup-markdown@1.2.34) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.32...@thi.ng/hiccup-markdown@1.2.33) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.31...@thi.ng/hiccup-markdown@1.2.32) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.30...@thi.ng/hiccup-markdown@1.2.31) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.29...@thi.ng/hiccup-markdown@1.2.30) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup-markdown - - - - - -## [1.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.28...@thi.ng/hiccup-markdown@1.2.29) (2020-08-16) +## [1.2.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.38...@thi.ng/hiccup-markdown@1.2.39) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup-markdown diff --git a/packages/hiccup-markdown/package.json b/packages/hiccup-markdown/package.json index c17dc51776..e25dceb1e9 100644 --- a/packages/hiccup-markdown/package.json +++ b/packages/hiccup-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-markdown", - "version": "1.2.38", + "version": "1.2.39", "description": "Markdown parser & serializer from/to Hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -39,26 +39,26 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/fsm": "^2.4.29", - "@thi.ng/hiccup": "^3.6.4", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/text-canvas": "^0.2.35", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/fsm": "^2.4.30", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/text-canvas": "^0.2.36", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/hiccup-svg/CHANGELOG.md b/packages/hiccup-svg/CHANGELOG.md index d2b95a5412..f19d9f6749 100644 --- a/packages/hiccup-svg/CHANGELOG.md +++ b/packages/hiccup-svg/CHANGELOG.md @@ -3,39 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.6.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.6.4...@thi.ng/hiccup-svg@3.6.5) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.6.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.6.3...@thi.ng/hiccup-svg@3.6.4) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.6.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.6.2...@thi.ng/hiccup-svg@3.6.3) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.6.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.6.1...@thi.ng/hiccup-svg@3.6.2) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.6.0...@thi.ng/hiccup-svg@3.6.1) (2020-09-22) +## [3.6.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.6.5...@thi.ng/hiccup-svg@3.6.6) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup-svg @@ -57,38 +25,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [3.5.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.5.10...@thi.ng/hiccup-svg@3.5.11) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.5.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.5.9...@thi.ng/hiccup-svg@3.5.10) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.5.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.5.8...@thi.ng/hiccup-svg@3.5.9) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - -## [3.5.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.5.7...@thi.ng/hiccup-svg@3.5.8) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/hiccup-svg - - - - - # [3.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.4.26...@thi.ng/hiccup-svg@3.5.0) (2020-07-02) diff --git a/packages/hiccup-svg/package.json b/packages/hiccup-svg/package.json index 4f989b821a..16a51f21f2 100644 --- a/packages/hiccup-svg/package.json +++ b/packages/hiccup-svg/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-svg", - "version": "3.6.5", + "version": "3.6.6", "description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11", - "@thi.ng/color": "^1.3.2", - "@thi.ng/prefixes": "^0.1.8" + "@thi.ng/checks": "^2.7.12", + "@thi.ng/color": "^2.0.0", + "@thi.ng/prefixes": "^0.1.9" }, "files": [ "*.js", diff --git a/packages/hiccup/CHANGELOG.md b/packages/hiccup/CHANGELOG.md index cbb92ac54c..1ceb3de6de 100644 --- a/packages/hiccup/CHANGELOG.md +++ b/packages/hiccup/CHANGELOG.md @@ -3,31 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.6.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.3...@thi.ng/hiccup@3.6.4) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/hiccup - - - - - -## [3.6.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.2...@thi.ng/hiccup@3.6.3) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/hiccup - - - - - -## [3.6.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.1...@thi.ng/hiccup@3.6.2) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/hiccup - - - - - -## [3.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.0...@thi.ng/hiccup@3.6.1) (2020-09-22) +## [3.6.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.4...@thi.ng/hiccup@3.6.5) (2020-12-22) **Note:** Version bump only for package @thi.ng/hiccup @@ -46,30 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [3.5.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.5.7...@thi.ng/hiccup@3.5.8) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/hiccup - - - - - -## [3.5.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.5.6...@thi.ng/hiccup@3.5.7) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/hiccup - - - - - -## [3.5.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.5.5...@thi.ng/hiccup@3.5.6) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/hiccup - - - - - # [3.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.4.0...@thi.ng/hiccup@3.5.0) (2020-07-02) diff --git a/packages/hiccup/package.json b/packages/hiccup/package.json index ed782fabd6..cde7472df8 100644 --- a/packages/hiccup/package.json +++ b/packages/hiccup/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup", - "version": "3.6.4", + "version": "3.6.5", "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/atom": "^4.1.24", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/atom": "^4.1.25", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/prefixes": "^0.1.8" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/prefixes": "^0.1.9" }, "files": [ "*.js", diff --git a/packages/idgen/CHANGELOG.md b/packages/idgen/CHANGELOG.md index 6e75e40d25..5e1b177634 100644 --- a/packages/idgen/CHANGELOG.md +++ b/packages/idgen/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.26...@thi.ng/idgen@0.2.27) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.25...@thi.ng/idgen@0.2.26) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.24...@thi.ng/idgen@0.2.25) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.23...@thi.ng/idgen@0.2.24) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.22...@thi.ng/idgen@0.2.23) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.21...@thi.ng/idgen@0.2.22) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.20...@thi.ng/idgen@0.2.21) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.19...@thi.ng/idgen@0.2.20) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/idgen - - - - - -## [0.2.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.18...@thi.ng/idgen@0.2.19) (2020-08-16) +## [0.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.27...@thi.ng/idgen@0.2.28) (2020-12-22) **Note:** Version bump only for package @thi.ng/idgen diff --git a/packages/idgen/package.json b/packages/idgen/package.json index afb8f8a84f..9d4ad2757f 100644 --- a/packages/idgen/package.json +++ b/packages/idgen/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/idgen", - "version": "0.2.27", + "version": "0.2.28", "description": "Generator of opaque numeric identifiers with optional support for ID versioning and efficient re-use", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", + "@thi.ng/api": "^6.13.5", "tslib": "2.0.1" }, "files": [ diff --git a/packages/iges/CHANGELOG.md b/packages/iges/CHANGELOG.md index caf177d2a0..c6b56000c3 100644 --- a/packages/iges/CHANGELOG.md +++ b/packages/iges/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.51...@thi.ng/iges@1.1.52) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.50...@thi.ng/iges@1.1.51) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.49...@thi.ng/iges@1.1.50) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.48...@thi.ng/iges@1.1.49) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.47...@thi.ng/iges@1.1.48) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.46...@thi.ng/iges@1.1.47) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.45...@thi.ng/iges@1.1.46) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.44...@thi.ng/iges@1.1.45) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.43...@thi.ng/iges@1.1.44) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/iges - - - - - -## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.42...@thi.ng/iges@1.1.43) (2020-08-16) +## [1.1.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.52...@thi.ng/iges@1.1.53) (2020-12-22) **Note:** Version bump only for package @thi.ng/iges diff --git a/packages/iges/package.json b/packages/iges/package.json index 92d4b85af1..67d8a59e7c 100644 --- a/packages/iges/package.json +++ b/packages/iges/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iges", - "version": "1.1.52", + "version": "1.1.53", "description": "IGES 5.3 serializer for (currently only) polygonal geometry, both open & closed", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/imgui/CHANGELOG.md b/packages/imgui/CHANGELOG.md index ea13b47789..df0c83935f 100644 --- a/packages/imgui/CHANGELOG.md +++ b/packages/imgui/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.43...@thi.ng/imgui@0.2.44) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - -## [0.2.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.42...@thi.ng/imgui@0.2.43) (2020-11-26) +## [0.2.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.45...@thi.ng/imgui@0.2.46) (2020-12-22) **Note:** Version bump only for package @thi.ng/imgui @@ -30,46 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.2.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.40...@thi.ng/imgui@0.2.41) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - -## [0.2.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.39...@thi.ng/imgui@0.2.40) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - -## [0.2.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.38...@thi.ng/imgui@0.2.39) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - -## [0.2.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.37...@thi.ng/imgui@0.2.38) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - -## [0.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.36...@thi.ng/imgui@0.2.37) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - ## [0.2.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.35...@thi.ng/imgui@0.2.36) (2020-08-19) @@ -81,22 +33,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.2.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.34...@thi.ng/imgui@0.2.35) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - -## [0.2.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.33...@thi.ng/imgui@0.2.34) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/imgui - - - - - # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.1.7...@thi.ng/imgui@0.2.0) (2020-02-25) diff --git a/packages/imgui/package.json b/packages/imgui/package.json index d46d06dd06..de0cd6bd00 100644 --- a/packages/imgui/package.json +++ b/packages/imgui/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/imgui", - "version": "0.2.44", + "version": "0.2.46", "description": "Immediate mode GUI with flexible state handling & data only shape output", "module": "./index.js", "main": "./lib/index.js", @@ -39,26 +39,26 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom": "^1.13.3", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/geom-isec": "^0.7.2", - "@thi.ng/geom-tessellate": "^0.2.51", - "@thi.ng/layout": "^0.1.25", - "@thi.ng/math": "^2.2.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom": "^2.0.0", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/geom-isec": "^0.7.3", + "@thi.ng/geom-tessellate": "^0.2.52", + "@thi.ng/layout": "^0.1.26", + "@thi.ng/math": "^3.0.0", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/interceptors/CHANGELOG.md b/packages/interceptors/CHANGELOG.md index 42af0ebebc..8f76a6a3aa 100644 --- a/packages/interceptors/CHANGELOG.md +++ b/packages/interceptors/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.2.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.34...@thi.ng/interceptors@2.2.35) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.33...@thi.ng/interceptors@2.2.34) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.32...@thi.ng/interceptors@2.2.33) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.31...@thi.ng/interceptors@2.2.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.30...@thi.ng/interceptors@2.2.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.29...@thi.ng/interceptors@2.2.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.28...@thi.ng/interceptors@2.2.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/interceptors - - - - - -## [2.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.27...@thi.ng/interceptors@2.2.28) (2020-08-16) +## [2.2.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.35...@thi.ng/interceptors@2.2.36) (2020-12-22) **Note:** Version bump only for package @thi.ng/interceptors diff --git a/packages/interceptors/package.json b/packages/interceptors/package.json index d8b0a54ef4..6df1276142 100644 --- a/packages/interceptors/package.json +++ b/packages/interceptors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/interceptors", - "version": "2.2.35", + "version": "2.2.36", "description": "Interceptor based event bus, side effect & immutable state handling", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/atom": "^4.1.24", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/paths": "^4.1.10" + "@thi.ng/api": "^6.13.5", + "@thi.ng/atom": "^4.1.25", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/paths": "^4.1.11" }, "files": [ "*.js", diff --git a/packages/intervals/CHANGELOG.md b/packages/intervals/CHANGELOG.md index aef05a388a..68f209227e 100644 --- a/packages/intervals/CHANGELOG.md +++ b/packages/intervals/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.1.1...@thi.ng/intervals@2.1.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/intervals - - - - - -## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.1.0...@thi.ng/intervals@2.1.1) (2020-11-26) +## [2.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.1.2...@thi.ng/intervals@2.1.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/intervals @@ -30,46 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.24...@thi.ng/intervals@2.0.25) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/intervals - - - - - -## [2.0.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.23...@thi.ng/intervals@2.0.24) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/intervals - - - - - -## [2.0.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.22...@thi.ng/intervals@2.0.23) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/intervals - - - - - -## [2.0.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.21...@thi.ng/intervals@2.0.22) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/intervals - - - - - -## [2.0.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.20...@thi.ng/intervals@2.0.21) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/intervals - - - - - # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@1.0.15...@thi.ng/intervals@2.0.0) (2019-11-30) ### Bug Fixes diff --git a/packages/intervals/package.json b/packages/intervals/package.json index 4c961493ef..320581f350 100644 --- a/packages/intervals/package.json +++ b/packages/intervals/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/intervals", - "version": "2.1.2", + "version": "2.1.3", "description": "Closed/open/semi-open interval data type, queries & operations", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/dlogic": "^1.0.35", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/dlogic": "^1.0.36", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/iterators/CHANGELOG.md b/packages/iterators/CHANGELOG.md index 11255de646..bad05d4f49 100644 --- a/packages/iterators/CHANGELOG.md +++ b/packages/iterators/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [5.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.42...@thi.ng/iterators@5.1.43) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.41...@thi.ng/iterators@5.1.42) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.40...@thi.ng/iterators@5.1.41) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.39...@thi.ng/iterators@5.1.40) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.38...@thi.ng/iterators@5.1.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.37...@thi.ng/iterators@5.1.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.36...@thi.ng/iterators@5.1.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.35...@thi.ng/iterators@5.1.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/iterators - - - - - -## [5.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.34...@thi.ng/iterators@5.1.35) (2020-08-16) +## [5.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.43...@thi.ng/iterators@5.1.44) (2020-12-22) **Note:** Version bump only for package @thi.ng/iterators diff --git a/packages/iterators/package.json b/packages/iterators/package.json index e21e56a2b7..786ef0367a 100644 --- a/packages/iterators/package.json +++ b/packages/iterators/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iterators", - "version": "5.1.43", + "version": "5.1.44", "description": "Clojure inspired, composable ES6 iterators & generators", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/layout/CHANGELOG.md b/packages/layout/CHANGELOG.md index 15e5c77944..e3d6dda2e9 100644 --- a/packages/layout/CHANGELOG.md +++ b/packages/layout/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.24...@thi.ng/layout@0.1.25) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/layout - - - - - -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.23...@thi.ng/layout@0.1.24) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/layout - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.22...@thi.ng/layout@0.1.23) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/layout - - - - - -## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.21...@thi.ng/layout@0.1.22) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/layout - - - - - -## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.20...@thi.ng/layout@0.1.21) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/layout - - - - - -## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.19...@thi.ng/layout@0.1.20) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/layout - - - - - -## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.18...@thi.ng/layout@0.1.19) (2020-08-16) +## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.25...@thi.ng/layout@0.1.26) (2020-12-22) **Note:** Version bump only for package @thi.ng/layout diff --git a/packages/layout/package.json b/packages/layout/package.json index 93f4060fca..6191226764 100644 --- a/packages/layout/package.json +++ b/packages/layout/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/layout", - "version": "0.1.25", + "version": "0.1.26", "description": "Configurable nested 2D grid layout manager", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11" + "@thi.ng/checks": "^2.7.12" }, "files": [ "*.js", diff --git a/packages/leb128/CHANGELOG.md b/packages/leb128/CHANGELOG.md index 17dd67c4c5..3cd09a10d4 100644 --- a/packages/leb128/CHANGELOG.md +++ b/packages/leb128/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.36...@thi.ng/leb128@1.0.37) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.35...@thi.ng/leb128@1.0.36) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.34...@thi.ng/leb128@1.0.35) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.33...@thi.ng/leb128@1.0.34) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.32...@thi.ng/leb128@1.0.33) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.31...@thi.ng/leb128@1.0.32) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.30...@thi.ng/leb128@1.0.31) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.29...@thi.ng/leb128@1.0.30) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/leb128 - - - - - -## [1.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.28...@thi.ng/leb128@1.0.29) (2020-08-16) +## [1.0.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.37...@thi.ng/leb128@1.0.38) (2020-12-22) **Note:** Version bump only for package @thi.ng/leb128 diff --git a/packages/leb128/package.json b/packages/leb128/package.json index a3fe8988f8..4c743345ee 100644 --- a/packages/leb128/package.json +++ b/packages/leb128/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/leb128", - "version": "1.0.37", + "version": "1.0.38", "description": "WASM based LEB128 encoder / decoder (signed & unsigned)", "module": "./index.js", "main": "./lib/index.js", @@ -40,19 +40,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers-binary": "^0.5.33" + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers-binary": "^0.6.0" }, "files": [ "*.js", diff --git a/packages/lsys/CHANGELOG.md b/packages/lsys/CHANGELOG.md index 103105f1ec..20a9ebd683 100644 --- a/packages/lsys/CHANGELOG.md +++ b/packages/lsys/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.64...@thi.ng/lsys@0.2.65) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.63...@thi.ng/lsys@0.2.64) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.62...@thi.ng/lsys@0.2.63) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.61...@thi.ng/lsys@0.2.62) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.60...@thi.ng/lsys@0.2.61) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.59...@thi.ng/lsys@0.2.60) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.58...@thi.ng/lsys@0.2.59) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.57...@thi.ng/lsys@0.2.58) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.56...@thi.ng/lsys@0.2.57) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/lsys - - - - - -## [0.2.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.55...@thi.ng/lsys@0.2.56) (2020-08-16) +## [0.2.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.65...@thi.ng/lsys@0.2.66) (2020-12-22) **Note:** Version bump only for package @thi.ng/lsys diff --git a/packages/lsys/package.json b/packages/lsys/package.json index c18f6616b7..eb41d2b26b 100644 --- a/packages/lsys/package.json +++ b/packages/lsys/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/lsys", - "version": "0.2.65", + "version": "0.2.66", "description": "Functional, extensible L-System architecture w/ support for probabilistic rules", "module": "./index.js", "main": "./lib/index.js", @@ -39,23 +39,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/compose": "^1.4.21", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/compose": "^1.4.22", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/malloc/CHANGELOG.md b/packages/malloc/CHANGELOG.md index 0d04d23d1f..87b5df3b6a 100644 --- a/packages/malloc/CHANGELOG.md +++ b/packages/malloc/CHANGELOG.md @@ -3,23 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [4.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.2.2...@thi.ng/malloc@4.2.3) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - -## [4.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.2.1...@thi.ng/malloc@4.2.2) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - -## [4.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.2.0...@thi.ng/malloc@4.2.1) (2020-11-24) +## [4.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.2.3...@thi.ng/malloc@4.2.4) (2020-12-22) **Note:** Version bump only for package @thi.ng/malloc @@ -38,46 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [4.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.25...@thi.ng/malloc@4.1.26) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - -## [4.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.24...@thi.ng/malloc@4.1.25) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - -## [4.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.23...@thi.ng/malloc@4.1.24) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - -## [4.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.22...@thi.ng/malloc@4.1.23) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - -## [4.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.21...@thi.ng/malloc@4.1.22) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/malloc - - - - - # [4.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.0.5...@thi.ng/malloc@4.1.0) (2019-11-09) ### Bug Fixes diff --git a/packages/malloc/package.json b/packages/malloc/package.json index 6b25bc4c85..ea67b0b89d 100644 --- a/packages/malloc/package.json +++ b/packages/malloc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/malloc", - "version": "4.2.3", + "version": "4.2.4", "description": "ArrayBuffer based malloc() impl for hybrid JS/WASM use cases, based on thi.ng/tinyalloc", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index 5ffb5d45a8..453d5e6a8b 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/CHANGELOG.md @@ -3,36 +3,45 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.2.1...@thi.ng/math@2.2.2) (2020-12-07) +# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.2.2...@thi.ng/math@3.0.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/math +### Bug Fixes +* **math:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([8f00375](https://github.com/thi-ng/umbrella/commit/8f00375722ff3e207f1711229acff69c3bd1343f)) +### Code Refactoring -## [2.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.2.0...@thi.ng/math@2.2.1) (2020-11-26) +* **math:** update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278fdd82004610aa9b7acb585c3c841af24ba)) -**Note:** Version bump only for package @thi.ng/math +### Features +* **math:** add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe1f2d14eb9a4fb3829179b8d03d49e6bbc)) +* **math:** add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e1595e318c6472a526e03c8c8a06ebf396)) +* **math:** add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810981c08c54365d5ea3212cd465d2589cf0)) +### BREAKING CHANGES -# [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.1.1...@thi.ng/math@2.2.0) (2020-11-24) +* **math:** replace Crossing enum w/ type alias +* **math:** add new bias arg for sigmoid() to satisfy more use cases. +Use sigmoid01() for old behavior. +- add/update docstrings +- add desmos links -### Features -* **math:** add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb844f3588679ee78d0e7d60b52cfcec8eb87)) +# [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.1.1...@thi.ng/math@2.2.0) (2020-11-24) -## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.1.0...@thi.ng/math@2.1.1) (2020-09-22) +### Features -**Note:** Version bump only for package @thi.ng/math +* **math:** add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb844f3588679ee78d0e7d60b52cfcec8eb87)) @@ -49,30 +58,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.0.3...@thi.ng/math@2.0.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/math - - - - - -## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.0.2...@thi.ng/math@2.0.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/math - - - - - -## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@2.0.1...@thi.ng/math@2.0.2) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/math - - - - - # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.7.13...@thi.ng/math@2.0.0) (2020-07-17) diff --git a/packages/math/README.md b/packages/math/README.md index ef54087a82..30644fe8b7 100644 --- a/packages/math/README.md +++ b/packages/math/README.md @@ -51,7 +51,7 @@ yarn add @thi.ng/math ``` -Package sizes (gzipped, pre-treeshake): ESM: 3.60 KB / CJS: 4.16 KB / UMD: 3.43 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.56 KB / CJS: 4.13 KB / UMD: 3.40 KB ## Dependencies diff --git a/packages/math/package.json b/packages/math/package.json index de778d2f4a..a63c705cf6 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/math", - "version": "2.2.2", + "version": "3.0.0", "description": "Assorted common math functions & utilities", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", @@ -67,6 +67,7 @@ "quadratic", "smooth", "solver", + "t-norm", "trigonometry", "typescript" ], diff --git a/packages/math/src/api.ts b/packages/math/src/api.ts index 7cafd38623..2ea03c2824 100644 --- a/packages/math/src/api.ts +++ b/packages/math/src/api.ts @@ -25,22 +25,21 @@ export const SIXTH = 1 / 6; export let EPS = 1e-6; -export enum Crossing { +export type Crossing = /** * lines A & B are equal */ - EQUAL = 0, + | "equal" /** * lines A & B are flat (all same values) */ - FLAT, + | "flat" /** * line A crossed under B */ - UNDER, + | "under" /** * line A crossed over B */ - OVER, - OTHER, -} + | "over" + | "other"; diff --git a/packages/math/src/crossing.ts b/packages/math/src/crossing.ts index 52f5a723aa..5402954f55 100644 --- a/packages/math/src/crossing.ts +++ b/packages/math/src/crossing.ts @@ -61,15 +61,13 @@ export const classifyCrossing = ( b1: number, b2: number, eps = EPS -) => { - if (isCrossOver(a1, a2, b1, b2)) { - return Crossing.OVER; - } else if (isCrossUnder(a1, a2, b1, b2)) { - return Crossing.UNDER; - } - return eqDelta(a1, b1, eps) && eqDelta(a2, b2, eps) +): Crossing => + eqDelta(a1, b1, eps) && eqDelta(a2, b2, eps) ? eqDelta(a1, b2, eps) - ? Crossing.FLAT - : Crossing.EQUAL - : Crossing.OTHER; -}; + ? "flat" + : "equal" + : isCrossOver(a1, a2, b1, b2) + ? "over" + : isCrossUnder(a1, a2, b1, b2) + ? "under" + : "other"; diff --git a/packages/math/src/mix.ts b/packages/math/src/mix.ts index 362343b57f..86b4c405a4 100644 --- a/packages/math/src/mix.ts +++ b/packages/math/src/mix.ts @@ -1,6 +1,13 @@ import type { FnN, FnN2, FnN3, FnN4, FnN5, FnN6 } from "@thi.ng/api"; import { EPS, HALF_PI, PI } from "./api"; +/** + * Linear interpolation without clamping. Computes `a + (b - a) * t` + * + * @param a - start value + * @param b - end value + * @param t - interpolation factor [0..1] + */ export const mix: FnN3 = (a, b, t) => a + (b - a) * t; /** @@ -146,9 +153,9 @@ export const tangentDiff3 = ( ) => 0.5 * ((next - curr) / (tc - tb) + (curr - prev) / (tb - ta)); /** - * HOF interpolator. Takes a timing function `f` and interval `[from, - * to]`. Returns function which takes normalized time as single arg and - * returns interpolated value. + * HOF interpolator. Takes a timing function `f` and interval `[from,to]`. + * Returns function which takes normalized time (in [0,1] range) as single arg + * and returns interpolated value. * * @param f - * @param from - @@ -262,20 +269,34 @@ export const sinc: FnN2 = (k, t) => { }; /** - * Sigmoid function for inputs in [0..1] interval. + * Sigmoid function for inputs arounds center bias. * - * @param k - - * @param t - + * @remarks + * Updated in v3.0.0 to add bias value to satisfy more use cases. Use + * {@link sigmoid01} for old behavior. + * + * @param bias - center value (for which result = 0.5) + * @param k - steepness + * @param t - input value + */ +export const sigmoid: FnN3 = (bias, k, t) => + t != bias ? 1 / (1 + Math.exp(-k * (t - bias))) : 0.5; + +/** + * Sigmoid function for inputs in [0..1] interval. Center bias = 0.5. + * + * @param k - steepness + * @param t - input value */ -export const sigmoid: FnN2 = (k, t) => 1 / (1 + Math.exp(-k * (2 * t - 1))); +export const sigmoid01: FnN3 = (k, t) => sigmoid(0.5, k, t); /** - * Sigmoid function for inputs in [-1..+1] interval. + * Sigmoid function for inputs in [-1..+1] interval. Center bias = 0 * * @param k - * @param t - */ -export const sigmoid11: FnN2 = (k, t) => 1 / (1 + Math.exp(-k * t)); +export const sigmoid11: FnN2 = (k, t) => sigmoid(0, k, t); /** * Generalized Schlick bias gain curve, based on: @@ -304,3 +325,16 @@ export const schlick: FnN3 = (a, b, t) => * @param num */ export const expFactor: FnN3 = (a, b, num) => (b / a) ** (1 / num); + +/** + * Computes gaussian bell curve for given center `bias` and `sigma` (spread). + * + * @remarks + * Interactive graph: https://www.desmos.com/calculator/aq6hdzxprv + * + * @param bias + * @param sigma + * @param t + */ +export const gaussian: FnN3 = (bias, sigma, t) => + Math.exp(-((t - bias) ** 2) / (2 * sigma * sigma)); diff --git a/packages/math/src/step.ts b/packages/math/src/step.ts index 4b5901c71e..15996e503c 100644 --- a/packages/math/src/step.ts +++ b/packages/math/src/step.ts @@ -16,7 +16,7 @@ export const step: FnN2 = (edge, x) => (x < edge ? 0 : 1); * @param edge - lower threshold * @param edge2 - upper threshold * @param x - test value - * @returns 0, if `x < edge1`, 1 if `x > edge2`, else sigmoid interpolation + * @returns 0, if `x < edge1`, 1 if `x > edge2`, else S-curve polynomial interpolation */ export const smoothStep: FnN3 = (edge, edge2, x) => { x = clamp01((x - edge) / (edge2 - edge)); @@ -24,7 +24,7 @@ export const smoothStep: FnN3 = (edge, edge2, x) => { }; /** - * Similar to {@link smoothStep} but using different polynomial. + * Similar to {@link smoothStep} but using different, higher degree polynomial. * * @param edge - * @param edge2 - @@ -36,13 +36,18 @@ export const smootherStep: FnN3 = (edge, edge2, x) => { }; /** - * Exponential ramp with variable shape, e.g. + * Exponential ramp with variable shape + * + * @remarks + * Example configurations: * * - S-curve: k=8, n=4 * - Step near 1.0: k=8, n=20 * - Pulse: k=0.005, n=-10 * - Ease-in: k=0.5, n=0.25 * + * Interactive graph: https://www.desmos.com/calculator/gcnuyppycz + * * @param k - * @param n - * @param x - diff --git a/packages/matrices/CHANGELOG.md b/packages/matrices/CHANGELOG.md index 1fe2a900cf..cb6c61e765 100644 --- a/packages/matrices/CHANGELOG.md +++ b/packages/matrices/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.6.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.36...@thi.ng/matrices@0.6.37) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.35...@thi.ng/matrices@0.6.36) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.34...@thi.ng/matrices@0.6.35) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.33...@thi.ng/matrices@0.6.34) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.32...@thi.ng/matrices@0.6.33) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.31...@thi.ng/matrices@0.6.32) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.30...@thi.ng/matrices@0.6.31) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.29...@thi.ng/matrices@0.6.30) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.28...@thi.ng/matrices@0.6.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/matrices - - - - - -## [0.6.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.27...@thi.ng/matrices@0.6.28) (2020-08-16) +## [0.6.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.37...@thi.ng/matrices@0.6.38) (2020-12-22) **Note:** Version bump only for package @thi.ng/matrices diff --git a/packages/matrices/package.json b/packages/matrices/package.json index 6092891585..c05bcf86e3 100644 --- a/packages/matrices/package.json +++ b/packages/matrices/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/matrices", - "version": "0.6.37", + "version": "0.6.38", "description": "Matrix & quaternion operations for 2D/3D geometry processing", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib internal", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/math": "^2.2.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/math": "^3.0.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index 9ab8c14acf..dbce87ece5 100644 --- a/packages/memoize/CHANGELOG.md +++ b/packages/memoize/CHANGELOG.md @@ -3,47 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.5...@thi.ng/memoize@2.1.6) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - -## [2.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.4...@thi.ng/memoize@2.1.5) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - -## [2.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.3...@thi.ng/memoize@2.1.4) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - -## [2.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.2...@thi.ng/memoize@2.1.3) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - -## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.1...@thi.ng/memoize@2.1.2) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - -## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.0...@thi.ng/memoize@2.1.1) (2020-08-28) +## [2.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.6...@thi.ng/memoize@2.1.7) (2020-12-22) **Note:** Version bump only for package @thi.ng/memoize @@ -62,22 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.0.18...@thi.ng/memoize@2.0.19) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - -## [2.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.0.17...@thi.ng/memoize@2.0.18) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/memoize - - - - - # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@1.1.8...@thi.ng/memoize@2.0.0) (2020-02-25) diff --git a/packages/memoize/package.json b/packages/memoize/package.json index aff5c574cf..39c6fccddb 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/memoize", - "version": "2.1.6", + "version": "2.1.7", "description": "Function memoization with configurable caching", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/mime/CHANGELOG.md b/packages/mime/CHANGELOG.md index 657b6b68d6..e92ee83004 100644 --- a/packages/mime/CHANGELOG.md +++ b/packages/mime/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.24...@thi.ng/mime@0.1.25) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.23...@thi.ng/mime@0.1.24) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.22...@thi.ng/mime@0.1.23) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.21...@thi.ng/mime@0.1.22) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.20...@thi.ng/mime@0.1.21) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.19...@thi.ng/mime@0.1.20) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.18...@thi.ng/mime@0.1.19) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/mime - - - - - -## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.17...@thi.ng/mime@0.1.18) (2020-08-16) +## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.25...@thi.ng/mime@0.1.26) (2020-12-22) **Note:** Version bump only for package @thi.ng/mime diff --git a/packages/mime/package.json b/packages/mime/package.json index 686a531a2c..a2fcd9190b 100644 --- a/packages/mime/package.json +++ b/packages/mime/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/mime", - "version": "0.1.25", + "version": "0.1.26", "description": "350+ file extension to MIME type mappings, based on mime-db", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/morton/CHANGELOG.md b/packages/morton/CHANGELOG.md index bbb0bfb079..41f55835a1 100644 --- a/packages/morton/CHANGELOG.md +++ b/packages/morton/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.27...@thi.ng/morton@2.0.28) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.26...@thi.ng/morton@2.0.27) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.25...@thi.ng/morton@2.0.26) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.24...@thi.ng/morton@2.0.25) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.23...@thi.ng/morton@2.0.24) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.22...@thi.ng/morton@2.0.23) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.21...@thi.ng/morton@2.0.22) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/morton - - - - - -## [2.0.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.20...@thi.ng/morton@2.0.21) (2020-08-16) +## [2.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.28...@thi.ng/morton@2.0.29) (2020-12-22) **Note:** Version bump only for package @thi.ng/morton diff --git a/packages/morton/package.json b/packages/morton/package.json index eae962dc27..4384f45418 100644 --- a/packages/morton/package.json +++ b/packages/morton/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/morton", - "version": "2.0.28", + "version": "2.0.29", "description": "Z-order curve / Morton encoding, decoding & range extraction for arbitrary dimensions", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/math": "^2.2.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/math": "^3.0.0" }, "files": [ "*.js", diff --git a/packages/oquery/CHANGELOG.md b/packages/oquery/CHANGELOG.md index 5a002a0b92..1f1c437ec4 100644 --- a/packages/oquery/CHANGELOG.md +++ b/packages/oquery/CHANGELOG.md @@ -3,19 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.15...@thi.ng/oquery@0.2.0) (2020-12-07) - - -### Features - -* **oquery:** add array support, add QueryOpts ([8498db0](https://github.com/thi-ng/umbrella/commit/8498db037216a6ebcd15cb76a141fedc88feecf3)) -* **oquery:** add defKeyQuery(), refactor/fix types ([4c5ba42](https://github.com/thi-ng/umbrella/commit/4c5ba4256c3b56f4d1e70069675e39f26ac11887)) - - - - - -## [0.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.14...@thi.ng/oquery@0.1.15) (2020-11-26) +## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.2.1...@thi.ng/oquery@0.2.2) (2020-12-22) **Note:** Version bump only for package @thi.ng/oquery @@ -23,57 +11,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.13...@thi.ng/oquery@0.1.14) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/oquery - - - - - -## [0.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.12...@thi.ng/oquery@0.1.13) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/oquery - - - - - -## [0.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.11...@thi.ng/oquery@0.1.12) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/oquery - - - - - -## [0.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.10...@thi.ng/oquery@0.1.11) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/oquery - - - - - -## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.9...@thi.ng/oquery@0.1.10) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/oquery - - - - - -## [0.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.8...@thi.ng/oquery@0.1.9) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/oquery - - - +# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.15...@thi.ng/oquery@0.2.0) (2020-12-07) -## [0.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.1.7...@thi.ng/oquery@0.1.8) (2020-08-16) +### Features -**Note:** Version bump only for package @thi.ng/oquery +* **oquery:** add array support, add QueryOpts ([8498db0](https://github.com/thi-ng/umbrella/commit/8498db037216a6ebcd15cb76a141fedc88feecf3)) +* **oquery:** add defKeyQuery(), refactor/fix types ([4c5ba42](https://github.com/thi-ng/umbrella/commit/4c5ba4256c3b56f4d1e70069675e39f26ac11887)) diff --git a/packages/oquery/README.md b/packages/oquery/README.md index 32c056ade1..f664eac3a1 100644 --- a/packages/oquery/README.md +++ b/packages/oquery/README.md @@ -71,7 +71,6 @@ Package sizes (gzipped, pre-treeshake): ESM: 1.29 KB / CJS: 1.34 KB / UMD: 1.35 ## Dependencies - [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) -- [@thi.ng/associative](https://github.com/thi-ng/umbrella/tree/develop/packages/associative) - [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks) - [@thi.ng/defmulti](https://github.com/thi-ng/umbrella/tree/develop/packages/defmulti) - [@thi.ng/equiv](https://github.com/thi-ng/umbrella/tree/develop/packages/equiv) diff --git a/packages/oquery/package.json b/packages/oquery/package.json index a2f44aa315..f7ce38c848 100644 --- a/packages/oquery/package.json +++ b/packages/oquery/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/oquery", - "version": "0.2.0", + "version": "0.2.2", "description": "Datalog-inspired, optimized pattern/predicate query engine for JS objects & arrays", "module": "./index.js", "main": "./lib/index.js", @@ -38,21 +38,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/equiv": "^1.0.33" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/equiv": "^1.0.34" }, "files": [ "*.js", diff --git a/packages/parse/CHANGELOG.md b/packages/parse/CHANGELOG.md index b24e6b0dc4..45fde688a0 100644 --- a/packages/parse/CHANGELOG.md +++ b/packages/parse/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.9.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.6...@thi.ng/parse@0.9.7) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/parse - - - - - -## [0.9.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.5...@thi.ng/parse@0.9.6) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/parse - - - - - -## [0.9.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.4...@thi.ng/parse@0.9.5) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/parse - - - - - -## [0.9.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.3...@thi.ng/parse@0.9.4) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/parse - - - - - -## [0.9.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.2...@thi.ng/parse@0.9.3) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/parse - - - - - -## [0.9.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.1...@thi.ng/parse@0.9.2) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/parse - - - - - -## [0.9.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.0...@thi.ng/parse@0.9.1) (2020-08-20) +## [0.9.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.7...@thi.ng/parse@0.9.8) (2020-12-22) **Note:** Version bump only for package @thi.ng/parse @@ -71,14 +23,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.8.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.8.1...@thi.ng/parse@0.8.2) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/parse - - - - - # [0.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.7.2...@thi.ng/parse@0.8.0) (2020-07-19) diff --git a/packages/parse/package.json b/packages/parse/package.json index 1ed639d676..5631750326 100644 --- a/packages/parse/package.json +++ b/packages/parse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/parse", - "version": "0.9.7", + "version": "0.9.8", "description": "Purely functional parser combinators & AST generation for generic inputs", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/strings": "^1.11.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/strings": "^1.11.3" }, "files": [ "*.js", diff --git a/packages/paths/CHANGELOG.md b/packages/paths/CHANGELOG.md index 53e76bdba7..a7f1368840 100644 --- a/packages/paths/CHANGELOG.md +++ b/packages/paths/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [4.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.9...@thi.ng/paths@4.1.10) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.8...@thi.ng/paths@4.1.9) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.7...@thi.ng/paths@4.1.8) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.6...@thi.ng/paths@4.1.7) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.5...@thi.ng/paths@4.1.6) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.4...@thi.ng/paths@4.1.5) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.3...@thi.ng/paths@4.1.4) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/paths - - - - - -## [4.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.2...@thi.ng/paths@4.1.3) (2020-08-16) +## [4.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.10...@thi.ng/paths@4.1.11) (2020-12-22) **Note:** Version bump only for package @thi.ng/paths diff --git a/packages/paths/package.json b/packages/paths/package.json index 9d8d77e223..1725d04bbb 100644 --- a/packages/paths/package.json +++ b/packages/paths/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/paths", - "version": "4.1.10", + "version": "4.1.11", "description": "Immutable, optimized and optionally typed path-based object property / array accessors with structural sharing", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/paths/src/path.ts b/packages/paths/src/path.ts index 50e3014473..d7e1adb3ca 100644 --- a/packages/paths/src/path.ts +++ b/packages/paths/src/path.ts @@ -19,7 +19,7 @@ import { isArray, isString } from "@thi.ng/checks"; */ export const toPath = (path: Path): readonly NumOrString[] => isArray(path) - ? path + ? path : isString(path) ? path.length > 0 ? path.split(".") diff --git a/packages/pixel/CHANGELOG.md b/packages/pixel/CHANGELOG.md index 578ffbe470..4f3d2a9770 100644 --- a/packages/pixel/CHANGELOG.md +++ b/packages/pixel/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.8...@thi.ng/pixel@0.4.9) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.7...@thi.ng/pixel@0.4.8) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.6...@thi.ng/pixel@0.4.7) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.5...@thi.ng/pixel@0.4.6) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.4...@thi.ng/pixel@0.4.5) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.3...@thi.ng/pixel@0.4.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.2...@thi.ng/pixel@0.4.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/pixel - - - - - -## [0.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.1...@thi.ng/pixel@0.4.2) (2020-08-16) +## [0.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.9...@thi.ng/pixel@0.4.10) (2020-12-22) **Note:** Version bump only for package @thi.ng/pixel diff --git a/packages/pixel/package.json b/packages/pixel/package.json index 3c97bf7c32..083aecba89 100644 --- a/packages/pixel/package.json +++ b/packages/pixel/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pixel", - "version": "0.4.9", + "version": "0.4.10", "description": "Typed array backed, packed integer and unpacked floating point pixel buffers w/ customizable formats, blitting, dithering, conversions", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/math": "^2.2.2", - "@thi.ng/porter-duff": "^0.1.34" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/math": "^3.0.0", + "@thi.ng/porter-duff": "^0.1.35" }, "files": [ "*.js", diff --git a/packages/pointfree-lang/CHANGELOG.md b/packages/pointfree-lang/CHANGELOG.md index fc74fa49ad..dec2739b78 100644 --- a/packages/pointfree-lang/CHANGELOG.md +++ b/packages/pointfree-lang/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.4.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.16...@thi.ng/pointfree-lang@1.4.17) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.15...@thi.ng/pointfree-lang@1.4.16) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.14...@thi.ng/pointfree-lang@1.4.15) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.13...@thi.ng/pointfree-lang@1.4.14) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.12...@thi.ng/pointfree-lang@1.4.13) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.11...@thi.ng/pointfree-lang@1.4.12) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.10...@thi.ng/pointfree-lang@1.4.11) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/pointfree-lang - - - - - -## [1.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.9...@thi.ng/pointfree-lang@1.4.10) (2020-08-16) +## [1.4.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.17...@thi.ng/pointfree-lang@1.4.18) (2020-12-22) **Note:** Version bump only for package @thi.ng/pointfree-lang diff --git a/packages/pointfree-lang/README.md b/packages/pointfree-lang/README.md index a6ad724b6c..0a0c044fbe 100644 --- a/packages/pointfree-lang/README.md +++ b/packages/pointfree-lang/README.md @@ -80,7 +80,7 @@ yarn add @thi.ng/pointfree-lang ``` -Package sizes (gzipped, pre-treeshake): ESM: 5.30 KB / CJS: 5.30 KB / UMD: 5.21 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.00 KB / CJS: 5.00 KB / UMD: 4.94 KB ## Dependencies diff --git a/packages/pointfree-lang/package.json b/packages/pointfree-lang/package.json index 92ed7a14b7..cfc438237e 100644 --- a/packages/pointfree-lang/package.json +++ b/packages/pointfree-lang/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pointfree-lang", - "version": "1.4.17", + "version": "1.4.18", "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL", "module": "./index.js", "main": "./lib/index.js", @@ -43,20 +43,20 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "pegjs": "0.11.0-master.b7b87ea", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/bench": "^2.0.24", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/pointfree": "^2.0.18", + "@thi.ng/api": "^6.13.5", + "@thi.ng/bench": "^2.0.25", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/pointfree": "^2.0.19", "commander": "^6.2.0" }, "files": [ diff --git a/packages/pointfree-lang/src/api.ts b/packages/pointfree-lang/src/api.ts index db11bd3a97..f9350b3a20 100644 --- a/packages/pointfree-lang/src/api.ts +++ b/packages/pointfree-lang/src/api.ts @@ -21,23 +21,19 @@ export interface WordMeta { arities?: number; } -export enum NodeType { - SYM = 1, - WORD, - - VAR_DEREF, - VAR_STORE, - - NIL, - NUMBER, - BOOLEAN, - STRING, - ARRAY, - OBJ, - - COMMENT, - STACK_COMMENT, -} +export type NodeType = + | "sym" + | "word" + | "var_deref" + | "var_store" + | "nil" + | "number" + | "boolean" + | "string" + | "array" + | "obj" + | "comment" + | "stack_comment"; export const ALIASES: IObjectOf = { "?drop": pf.dropif, diff --git a/packages/pointfree-lang/src/grammar.pegjs b/packages/pointfree-lang/src/grammar.pegjs index 970abdad3c..b7449a195b 100644 --- a/packages/pointfree-lang/src/grammar.pegjs +++ b/packages/pointfree-lang/src/grammar.pegjs @@ -1,18 +1,4 @@ { - const NodeType = {}; - NodeType[NodeType["SYM"] = 1] = "SYM"; - NodeType[NodeType["WORD"] = 2] = "WORD"; - NodeType[NodeType["VAR_DEREF"] = 3] = "VAR_DEREF"; - NodeType[NodeType["VAR_STORE"] = 4] = "VAR_STORE"; - NodeType[NodeType["NIL"] = 5] = "NIL"; - NodeType[NodeType["NUMBER"] = 6] = "NUMBER"; - NodeType[NodeType["BOOLEAN"] = 7] = "BOOLEAN"; - NodeType[NodeType["STRING"] = 8] = "STRING"; - NodeType[NodeType["ARRAY"] = 9] = "ARRAY"; - NodeType[NodeType["OBJ"] = 10] = "OBJ"; - NodeType[NodeType["COMMENT"] = 11] = "COMMENT"; - NodeType[NodeType["STACK_COMMENT"] = 12] = "STACK_COMMENT"; - const ast = (node) => { const loc = location().start; node.loc = [loc.line, loc.column]; @@ -41,7 +27,7 @@ NonWordExpr Word = ":" __ id:Sym locals:LocalVars? body:NonWordExpr+ ";" { - return { type: NodeType.WORD, id: id.id, locals, body}; + return { type: "word", id: id.id, locals, body}; } LocalVars @@ -54,12 +40,12 @@ SymList Array = "[" body:NonWordExpr* "]" { - return { type: NodeType.ARRAY, body }; + return { type: "array", body }; } Obj = "{" _ body:ObjPair* "}" { - return { type: NodeType.OBJ, body }; + return { type: "obj", body }; } ObjPair @@ -91,17 +77,17 @@ Atom Nil = "nil" { - return {type: NodeType.NIL, body: null}; + return {type: "nil", body: null}; } Boolean = $("T" / "F") { - return {type: NodeType.BOOLEAN, body: text() == "T"}; + return {type: "boolean", body: text() == "T"}; } Sym = id:$((Alpha / SymChars) (AlphaNum / SymChars)*) { - return {type: NodeType.SYM, id}; + return {type: "sym", id}; } SymChars @@ -113,28 +99,28 @@ Var VarDeref = "@" id:Sym { - return {type: NodeType.VAR_DEREF, id: id.id} + return {type: "var_deref", id: id.id} } VarStore = id:Sym "!" { - return {type: NodeType.VAR_STORE, id: id.id} + return {type: "var_store", id: id.id} } LitQuote = "'" body:NonWordExpr { - return {type: NodeType.ARRAY, body: [body]}; + return {type: "array", body: [body]}; } Comment = "("+ body:$(!")" .)* ")" { return body.indexOf("--") > 0 ? { - type: NodeType.STACK_COMMENT, + type: "stack_comment", body: body.split("--").map(x => x.trim()) } : { - type: NodeType.COMMENT, + type: "comment", body: body.trim() }; } @@ -142,14 +128,14 @@ Comment LineComment = "//" body:$(!"\n" .)* "\n" { return { - type: NodeType.COMMENT, + type: "comment", body: body.trim() }; } String = "\"" body:$(!"\"" .)* "\"" { - return {type: NodeType.STRING, body }; + return {type: "string", body }; } Number @@ -161,12 +147,12 @@ Sign = [-+] Binary = "0b" n:$[01]+ { - return {type: NodeType.NUMBER, radix: 2, body: parseInt(n, 2)}; + return {type: "number", radix: 2, body: parseInt(n, 2)}; } Hex = "0x" n:$[0-9a-fA-F]+ { - return {type: NodeType.NUMBER, radix: 16, body: parseInt(n, 16)}; + return {type: "number", radix: 16, body: parseInt(n, 16)}; } Int @@ -177,7 +163,7 @@ Uint Decimal = Int ("." Uint?)? ("e" Int)? { - return {type: NodeType.NUMBER, body: parseFloat(text())}; + return {type: "number", body: parseFloat(text())}; } AlphaNum diff --git a/packages/pointfree-lang/src/index.ts b/packages/pointfree-lang/src/index.ts index 64ca03c414..77cbab28fc 100644 --- a/packages/pointfree-lang/src/index.ts +++ b/packages/pointfree-lang/src/index.ts @@ -1,7 +1,7 @@ import { Fn, Fn2, FnU, ILogger, IObjectOf, NULL_LOGGER } from "@thi.ng/api"; import { illegalArgs, illegalState } from "@thi.ng/errors"; import * as pf from "@thi.ng/pointfree"; -import { ALIASES, ASTNode, NodeType, VisitorState } from "./api"; +import { ALIASES, ASTNode, VisitorState } from "./api"; import { parse, SyntaxError } from "./parser"; export let LOGGER = NULL_LOGGER; @@ -62,15 +62,15 @@ const resolveVar = (node: ASTNode, ctx: pf.StackContext) => { */ const resolveNode = (node: ASTNode, ctx: pf.StackContext): any => { switch (node.type) { - case NodeType.SYM: + case "sym": return resolveSym(node, ctx); - case NodeType.VAR_DEREF: + case "var_deref": return resolveVar(node, ctx); - case NodeType.VAR_STORE: + case "var_store": return storevar(node.id!); - case NodeType.ARRAY: + case "array": return resolveArray(node, ctx); - case NodeType.OBJ: + case "obj": return resolveObject(node, ctx); default: return node.body; @@ -100,7 +100,7 @@ const resolveArray = (node: ASTNode, ctx: pf.StackContext) => { const resolveObject = (node: ASTNode, ctx: pf.StackContext) => { const res: any = {}; for (let [k, v] of node.body) { - res[k.type === NodeType.SYM ? k.id : resolveNode(k, ctx)] = resolveNode( + res[k.type === "sym" ? k.id : resolveNode(k, ctx)] = resolveNode( v, ctx ); @@ -181,27 +181,27 @@ const endvar = (id: string): FnU => (ctx) => { * @param state - */ const visit = (node: ASTNode, ctx: pf.StackContext, state: VisitorState) => { - LOGGER.fine("visit", NodeType[node.type], node, ctx[0].toString()); + LOGGER.fine("visit", node.type, node, ctx[0].toString()); switch (node.type) { - case NodeType.SYM: + case "sym": return visitSym(node, ctx, state); - case NodeType.NUMBER: - case NodeType.BOOLEAN: - case NodeType.STRING: - case NodeType.NIL: + case "number": + case "boolean": + case "string": + case "nil": ctx[0].push(node.body); return ctx; - case NodeType.ARRAY: + case "array": return visitArray(node, ctx, state); - case NodeType.OBJ: + case "obj": return visitObject(node, ctx, state); - case NodeType.VAR_DEREF: + case "var_deref": return visitDeref(node, ctx, state); - case NodeType.VAR_STORE: + case "var_store": return visitStore(node, ctx, state); - case NodeType.WORD: + case "word": return visitWord(node, ctx, state); - case NodeType.STACK_COMMENT: + case "stack_comment": visitStackComment(node, state); default: LOGGER.fine("skipping node..."); diff --git a/packages/pointfree/CHANGELOG.md b/packages/pointfree/CHANGELOG.md index 1727281865..2abf0cacc4 100644 --- a/packages/pointfree/CHANGELOG.md +++ b/packages/pointfree/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.17...@thi.ng/pointfree@2.0.18) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.16...@thi.ng/pointfree@2.0.17) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.15...@thi.ng/pointfree@2.0.16) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.14...@thi.ng/pointfree@2.0.15) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.13...@thi.ng/pointfree@2.0.14) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.12...@thi.ng/pointfree@2.0.13) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.11...@thi.ng/pointfree@2.0.12) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/pointfree - - - - - -## [2.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.10...@thi.ng/pointfree@2.0.11) (2020-08-16) +## [2.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.18...@thi.ng/pointfree@2.0.19) (2020-12-22) **Note:** Version bump only for package @thi.ng/pointfree diff --git a/packages/pointfree/package.json b/packages/pointfree/package.json index 58fa20971b..ce37a53972 100644 --- a/packages/pointfree/package.json +++ b/packages/pointfree/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pointfree", - "version": "2.0.18", + "version": "2.0.19", "description": "Pointfree functional composition / Forth style stack execution engine", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/compose": "^1.4.21", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/compose": "^1.4.22", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/poisson/CHANGELOG.md b/packages/poisson/CHANGELOG.md index ba3aba3962..60346bc0b9 100644 --- a/packages/poisson/CHANGELOG.md +++ b/packages/poisson/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.20...@thi.ng/poisson@1.1.21) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.19...@thi.ng/poisson@1.1.20) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.18...@thi.ng/poisson@1.1.19) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.17...@thi.ng/poisson@1.1.18) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.16...@thi.ng/poisson@1.1.17) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.15...@thi.ng/poisson@1.1.16) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.14...@thi.ng/poisson@1.1.15) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.13...@thi.ng/poisson@1.1.14) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.12...@thi.ng/poisson@1.1.13) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/poisson - - - - - -## [1.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.11...@thi.ng/poisson@1.1.12) (2020-08-16) +## [1.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.21...@thi.ng/poisson@1.1.22) (2020-12-22) **Note:** Version bump only for package @thi.ng/poisson diff --git a/packages/poisson/package.json b/packages/poisson/package.json index 7d66067e99..13b7d77524 100644 --- a/packages/poisson/package.json +++ b/packages/poisson/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/poisson", - "version": "1.1.21", + "version": "1.1.22", "description": "nD Stratified grid and Poisson-disc sampling w/ support for spatial density functions and custom PRNGs", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-api": "^1.1.4", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-api": "^2.0.0", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/porter-duff/CHANGELOG.md b/packages/porter-duff/CHANGELOG.md index 519a913076..17ffd2189c 100644 --- a/packages/porter-duff/CHANGELOG.md +++ b/packages/porter-duff/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.33...@thi.ng/porter-duff@0.1.34) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.32...@thi.ng/porter-duff@0.1.33) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.31...@thi.ng/porter-duff@0.1.32) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.30...@thi.ng/porter-duff@0.1.31) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.29...@thi.ng/porter-duff@0.1.30) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.28...@thi.ng/porter-duff@0.1.29) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.27...@thi.ng/porter-duff@0.1.28) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/porter-duff - - - - - -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.26...@thi.ng/porter-duff@0.1.27) (2020-08-16) +## [0.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.34...@thi.ng/porter-duff@0.1.35) (2020-12-22) **Note:** Version bump only for package @thi.ng/porter-duff diff --git a/packages/porter-duff/package.json b/packages/porter-duff/package.json index bc75d788f0..71b413671c 100644 --- a/packages/porter-duff/package.json +++ b/packages/porter-duff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/porter-duff", - "version": "0.1.34", + "version": "0.1.35", "description": "Porter-Duff operators for packed ints & float-array alpha compositing", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/math": "^2.2.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/math": "^3.0.0" }, "files": [ "*.js", diff --git a/packages/prefixes/CHANGELOG.md b/packages/prefixes/CHANGELOG.md index a37f1602ed..6db966b969 100644 --- a/packages/prefixes/CHANGELOG.md +++ b/packages/prefixes/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.7...@thi.ng/prefixes@0.1.8) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/prefixes - - - - - -## [0.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.6...@thi.ng/prefixes@0.1.7) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/prefixes - - - - - -## [0.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.5...@thi.ng/prefixes@0.1.6) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/prefixes - - - - - -## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.4...@thi.ng/prefixes@0.1.5) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/prefixes - - - - - -## [0.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.3...@thi.ng/prefixes@0.1.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/prefixes - - - - - -## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.2...@thi.ng/prefixes@0.1.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/prefixes - - - - - -## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.1...@thi.ng/prefixes@0.1.2) (2020-08-16) +## [0.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/prefixes@0.1.8...@thi.ng/prefixes@0.1.9) (2020-12-22) **Note:** Version bump only for package @thi.ng/prefixes diff --git a/packages/prefixes/package.json b/packages/prefixes/package.json index 261257b7ad..1f0121ef07 100644 --- a/packages/prefixes/package.json +++ b/packages/prefixes/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/prefixes", - "version": "0.1.8", + "version": "0.1.9", "description": "50+ Linked Data vocabulary prefixes and their namespace URLs", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/quad-edge/CHANGELOG.md b/packages/quad-edge/CHANGELOG.md index 8e116d4d8c..043b57949e 100644 --- a/packages/quad-edge/CHANGELOG.md +++ b/packages/quad-edge/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.25...@thi.ng/quad-edge@0.2.26) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/quad-edge - - - - - -## [0.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.24...@thi.ng/quad-edge@0.2.25) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/quad-edge - - - - - -## [0.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.23...@thi.ng/quad-edge@0.2.24) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/quad-edge - - - - - -## [0.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.22...@thi.ng/quad-edge@0.2.23) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/quad-edge - - - - - -## [0.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.21...@thi.ng/quad-edge@0.2.22) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/quad-edge - - - - - -## [0.2.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.20...@thi.ng/quad-edge@0.2.21) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/quad-edge - - - - - -## [0.2.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.19...@thi.ng/quad-edge@0.2.20) (2020-08-16) +## [0.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.26...@thi.ng/quad-edge@0.2.27) (2020-12-22) **Note:** Version bump only for package @thi.ng/quad-edge diff --git a/packages/quad-edge/package.json b/packages/quad-edge/package.json index f7256f7f2b..3aabc5debd 100644 --- a/packages/quad-edge/package.json +++ b/packages/quad-edge/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/quad-edge", - "version": "0.2.26", + "version": "0.2.27", "description": "Quadedge data structure after Guibas & Stolfi", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/ramp/CHANGELOG.md b/packages/ramp/CHANGELOG.md index 73455197ea..cd3ef09b3a 100644 --- a/packages/ramp/CHANGELOG.md +++ b/packages/ramp/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.38...@thi.ng/ramp@0.1.39) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.37...@thi.ng/ramp@0.1.38) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.36...@thi.ng/ramp@0.1.37) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.35...@thi.ng/ramp@0.1.36) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.34...@thi.ng/ramp@0.1.35) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.33...@thi.ng/ramp@0.1.34) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.32...@thi.ng/ramp@0.1.33) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.31...@thi.ng/ramp@0.1.32) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.30...@thi.ng/ramp@0.1.31) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/ramp - - - - - -## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.29...@thi.ng/ramp@0.1.30) (2020-08-16) +## [0.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.39...@thi.ng/ramp@0.1.40) (2020-12-22) **Note:** Version bump only for package @thi.ng/ramp diff --git a/packages/ramp/package.json b/packages/ramp/package.json index de2190c73c..52c3ac9977 100644 --- a/packages/ramp/package.json +++ b/packages/ramp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ramp", - "version": "0.1.39", + "version": "0.1.40", "description": "Parametric interpolated 1D lookup tables for remapping values", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/compare": "^1.3.20", - "@thi.ng/math": "^2.2.2", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/compare": "^1.3.21", + "@thi.ng/math": "^3.0.0", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/random/CHANGELOG.md b/packages/random/CHANGELOG.md index 61abc1c994..f2886827a2 100644 --- a/packages/random/CHANGELOG.md +++ b/packages/random/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.1.1...@thi.ng/random@2.1.2) (2020-12-07) +## [2.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.1.2...@thi.ng/random@2.1.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/random @@ -34,22 +34,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.0.1...@thi.ng/random@2.0.2) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/random - - - - - -## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.0.0...@thi.ng/random@2.0.1) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/random - - - - - # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.17...@thi.ng/random@2.0.0) (2020-08-28) @@ -74,22 +58,6 @@ extract as standalone gaussianCLT() -## [1.4.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.16...@thi.ng/random@1.4.17) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/random - - - - - -## [1.4.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.15...@thi.ng/random@1.4.16) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/random - - - - - # [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.3.2...@thi.ng/random@1.4.0) (2020-03-01) diff --git a/packages/random/package.json b/packages/random/package.json index 4f59011261..324ffd14e4 100644 --- a/packages/random/package.json +++ b/packages/random/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/random", - "version": "2.1.2", + "version": "2.1.3", "description": "Pseudo-random number generators w/ unified API", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib distributions", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/hex": "^0.1.1" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/hex": "^0.1.2" }, "files": [ "*.js", diff --git a/packages/range-coder/CHANGELOG.md b/packages/range-coder/CHANGELOG.md index 145d514ce9..7a6ec16c13 100644 --- a/packages/range-coder/CHANGELOG.md +++ b/packages/range-coder/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.61...@thi.ng/range-coder@1.0.62) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.60...@thi.ng/range-coder@1.0.61) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.59...@thi.ng/range-coder@1.0.60) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.58...@thi.ng/range-coder@1.0.59) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.57...@thi.ng/range-coder@1.0.58) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.56...@thi.ng/range-coder@1.0.57) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.55...@thi.ng/range-coder@1.0.56) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/range-coder - - - - - -## [1.0.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.54...@thi.ng/range-coder@1.0.55) (2020-08-16) +## [1.0.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.62...@thi.ng/range-coder@1.0.63) (2020-12-22) **Note:** Version bump only for package @thi.ng/range-coder diff --git a/packages/range-coder/package.json b/packages/range-coder/package.json index fe6fcebf30..37e1944a8f 100644 --- a/packages/range-coder/package.json +++ b/packages/range-coder/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/range-coder", - "version": "1.0.62", + "version": "1.0.63", "description": "Binary data range encoder / decoder", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/transducers": "^7.5.2", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/transducers": "^7.5.3", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/bitstream": "^1.1.29" + "@thi.ng/bitstream": "^1.1.30" }, "files": [ "*.js", diff --git a/packages/rdom-canvas/CHANGELOG.md b/packages/rdom-canvas/CHANGELOG.md index 1bbe6bb944..3741b40872 100644 --- a/packages/rdom-canvas/CHANGELOG.md +++ b/packages/rdom-canvas/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.20...@thi.ng/rdom-canvas@0.1.21) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.19...@thi.ng/rdom-canvas@0.1.20) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.18...@thi.ng/rdom-canvas@0.1.19) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.17...@thi.ng/rdom-canvas@0.1.18) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.16...@thi.ng/rdom-canvas@0.1.17) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.15...@thi.ng/rdom-canvas@0.1.16) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.14...@thi.ng/rdom-canvas@0.1.15) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.13...@thi.ng/rdom-canvas@0.1.14) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.12...@thi.ng/rdom-canvas@0.1.13) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.11...@thi.ng/rdom-canvas@0.1.12) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rdom-canvas - - - - - -## [0.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.10...@thi.ng/rdom-canvas@0.1.11) (2020-08-16) +## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.21...@thi.ng/rdom-canvas@0.1.22) (2020-12-22) **Note:** Version bump only for package @thi.ng/rdom-canvas diff --git a/packages/rdom-canvas/package.json b/packages/rdom-canvas/package.json index 3f44d0c8cd..77f563914f 100644 --- a/packages/rdom-canvas/package.json +++ b/packages/rdom-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rdom-canvas", - "version": "0.1.21", + "version": "0.1.22", "description": "@thi.ng/rdom component wrapper for @thi.ng/hiccup-canvas and declarative canvas drawing", "module": "./index.js", "main": "./lib/index.js", @@ -38,23 +38,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/adapt-dpi": "^1.0.11", - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/hiccup-canvas": "^1.1.13", - "@thi.ng/rdom": "^0.3.0", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/adapt-dpi": "^1.0.12", + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/hiccup-canvas": "^1.1.14", + "@thi.ng/rdom": "^0.3.1", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/rdom-components/CHANGELOG.md b/packages/rdom-components/CHANGELOG.md index 388f6c5333..e473a4bf66 100644 --- a/packages/rdom-components/CHANGELOG.md +++ b/packages/rdom-components/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.17...@thi.ng/rdom-components@0.1.18) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.16...@thi.ng/rdom-components@0.1.17) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.15...@thi.ng/rdom-components@0.1.16) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.14...@thi.ng/rdom-components@0.1.15) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.13...@thi.ng/rdom-components@0.1.14) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.12...@thi.ng/rdom-components@0.1.13) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.11...@thi.ng/rdom-components@0.1.12) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.10...@thi.ng/rdom-components@0.1.11) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.9...@thi.ng/rdom-components@0.1.10) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.8...@thi.ng/rdom-components@0.1.9) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rdom-components - - - - - -## [0.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.7...@thi.ng/rdom-components@0.1.8) (2020-08-16) +## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.18...@thi.ng/rdom-components@0.1.19) (2020-12-22) **Note:** Version bump only for package @thi.ng/rdom-components diff --git a/packages/rdom-components/package.json b/packages/rdom-components/package.json index 109a6fd017..6a8c7678e9 100644 --- a/packages/rdom-components/package.json +++ b/packages/rdom-components/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rdom-components", - "version": "0.1.18", + "version": "0.1.19", "description": "Collection of unstyled, customizable components for @thi.ng/rdom", "module": "./index.js", "main": "./lib/index.js", @@ -38,23 +38,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/hiccup-html": "^0.3.9", - "@thi.ng/rdom": "^0.3.0", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/hiccup-html": "^0.3.10", + "@thi.ng/rdom": "^0.3.1", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/rdom/CHANGELOG.md b/packages/rdom/CHANGELOG.md index 325e6fc7ee..d80d062307 100644 --- a/packages/rdom/CHANGELOG.md +++ b/packages/rdom/CHANGELOG.md @@ -3,26 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.16...@thi.ng/rdom@0.3.0) (2020-12-07) - - -### Features - -* **rdom:** add $subObject() wrapper, add docs ([cd5cf08](https://github.com/thi-ng/umbrella/commit/cd5cf08d6ae0ffb5ff8a89a19918a563fb889cbd)) - - - - - -## [0.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.15...@thi.ng/rdom@0.2.16) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.14...@thi.ng/rdom@0.2.15) (2020-11-24) +## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.3.0...@thi.ng/rdom@0.3.1) (2020-12-22) **Note:** Version bump only for package @thi.ng/rdom @@ -30,65 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.13...@thi.ng/rdom@0.2.14) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.12...@thi.ng/rdom@0.2.13) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.11...@thi.ng/rdom@0.2.12) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.10...@thi.ng/rdom@0.2.11) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.9...@thi.ng/rdom@0.2.10) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.8...@thi.ng/rdom@0.2.9) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/rdom - - - - - -## [0.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.7...@thi.ng/rdom@0.2.8) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rdom - - - +# [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.16...@thi.ng/rdom@0.3.0) (2020-12-07) -## [0.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.2.6...@thi.ng/rdom@0.2.7) (2020-08-16) +### Features -**Note:** Version bump only for package @thi.ng/rdom +* **rdom:** add $subObject() wrapper, add docs ([cd5cf08](https://github.com/thi-ng/umbrella/commit/cd5cf08d6ae0ffb5ff8a89a19918a563fb889cbd)) diff --git a/packages/rdom/package.json b/packages/rdom/package.json index 9c156df399..460e106b75 100644 --- a/packages/rdom/package.json +++ b/packages/rdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rdom", - "version": "0.3.0", + "version": "0.3.1", "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible", "module": "./index.js", "main": "./lib/index.js", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/hiccup": "^3.6.4", - "@thi.ng/paths": "^4.1.10", - "@thi.ng/prefixes": "^0.1.8", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/strings": "^1.11.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/paths": "^4.1.11", + "@thi.ng/prefixes": "^0.1.9", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/strings": "^1.11.3" }, "files": [ "*.js", diff --git a/packages/resolve-map/CHANGELOG.md b/packages/resolve-map/CHANGELOG.md index a6fd6910c7..e53e4b9d5d 100644 --- a/packages/resolve-map/CHANGELOG.md +++ b/packages/resolve-map/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [4.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.8...@thi.ng/resolve-map@4.2.9) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.7...@thi.ng/resolve-map@4.2.8) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.6...@thi.ng/resolve-map@4.2.7) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.5...@thi.ng/resolve-map@4.2.6) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.4...@thi.ng/resolve-map@4.2.5) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.3...@thi.ng/resolve-map@4.2.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.2...@thi.ng/resolve-map@4.2.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/resolve-map - - - - - -## [4.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.1...@thi.ng/resolve-map@4.2.2) (2020-08-16) +## [4.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.9...@thi.ng/resolve-map@4.2.10) (2020-12-22) **Note:** Version bump only for package @thi.ng/resolve-map diff --git a/packages/resolve-map/package.json b/packages/resolve-map/package.json index 40fd975370..c381b9f93a 100644 --- a/packages/resolve-map/package.json +++ b/packages/resolve-map/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/resolve-map", - "version": "4.2.9", + "version": "4.2.10", "description": "DAG resolution of vanilla objects & arrays with internally linked values", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/paths": "^4.1.10" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/paths": "^4.1.11" }, "files": [ "*.js", diff --git a/packages/rle-pack/CHANGELOG.md b/packages/rle-pack/CHANGELOG.md index 0eb31fe7fd..d74f631f39 100644 --- a/packages/rle-pack/CHANGELOG.md +++ b/packages/rle-pack/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.28...@thi.ng/rle-pack@2.1.29) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rle-pack - - - - - -## [2.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.27...@thi.ng/rle-pack@2.1.28) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rle-pack - - - - - -## [2.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.26...@thi.ng/rle-pack@2.1.27) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rle-pack - - - - - -## [2.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.25...@thi.ng/rle-pack@2.1.26) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rle-pack - - - - - -## [2.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.24...@thi.ng/rle-pack@2.1.25) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rle-pack - - - - - -## [2.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.23...@thi.ng/rle-pack@2.1.24) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rle-pack - - - - - -## [2.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.22...@thi.ng/rle-pack@2.1.23) (2020-08-16) +## [2.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.29...@thi.ng/rle-pack@2.1.30) (2020-12-22) **Note:** Version bump only for package @thi.ng/rle-pack diff --git a/packages/rle-pack/package.json b/packages/rle-pack/package.json index ceb211d3f3..7ba7d0fead 100644 --- a/packages/rle-pack/package.json +++ b/packages/rle-pack/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rle-pack", - "version": "2.1.29", + "version": "2.1.30", "description": "Binary run-length encoding packer w/ flexible repeat bit widths", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "benchmark": "^2.1.4", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/bitstream": "^1.1.29", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/bitstream": "^1.1.30", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 4d0e221552..17d74aa789 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.35...@thi.ng/router@2.0.36) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.34...@thi.ng/router@2.0.35) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.33...@thi.ng/router@2.0.34) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.32...@thi.ng/router@2.0.33) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.31...@thi.ng/router@2.0.32) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.30...@thi.ng/router@2.0.31) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.29...@thi.ng/router@2.0.30) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.28...@thi.ng/router@2.0.29) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/router - - - - - -## [2.0.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.27...@thi.ng/router@2.0.28) (2020-08-16) +## [2.0.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.36...@thi.ng/router@2.0.37) (2020-12-22) **Note:** Version bump only for package @thi.ng/router diff --git a/packages/router/package.json b/packages/router/package.json index 20a975f017..de9317bd46 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/router", - "version": "2.0.36", + "version": "2.0.37", "description": "Generic router for browser & non-browser based applications", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", "tslib": "2.0.1" }, "files": [ diff --git a/packages/rstream-csp/CHANGELOG.md b/packages/rstream-csp/CHANGELOG.md index c2f7701d03..308c4bed6b 100644 --- a/packages/rstream-csp/CHANGELOG.md +++ b/packages/rstream-csp/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.44...@thi.ng/rstream-csp@2.0.45) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.43...@thi.ng/rstream-csp@2.0.44) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.42...@thi.ng/rstream-csp@2.0.43) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.41...@thi.ng/rstream-csp@2.0.42) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.40...@thi.ng/rstream-csp@2.0.41) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.39...@thi.ng/rstream-csp@2.0.40) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.38...@thi.ng/rstream-csp@2.0.39) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.37...@thi.ng/rstream-csp@2.0.38) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.36...@thi.ng/rstream-csp@2.0.37) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream-csp - - - - - -## [2.0.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.35...@thi.ng/rstream-csp@2.0.36) (2020-08-16) +## [2.0.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.45...@thi.ng/rstream-csp@2.0.46) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream-csp diff --git a/packages/rstream-csp/package.json b/packages/rstream-csp/package.json index 405e26cebc..08331a21b1 100644 --- a/packages/rstream-csp/package.json +++ b/packages/rstream-csp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-csp", - "version": "2.0.45", + "version": "2.0.46", "description": "@thi.ng/csp bridge module for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/csp": "^1.1.43", - "@thi.ng/rstream": "^5.0.10" + "@thi.ng/csp": "^1.1.44", + "@thi.ng/rstream": "^5.0.11" }, "files": [ "*.js", diff --git a/packages/rstream-dot/CHANGELOG.md b/packages/rstream-dot/CHANGELOG.md index 6f439560f8..bb312966b2 100644 --- a/packages/rstream-dot/CHANGELOG.md +++ b/packages/rstream-dot/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.51...@thi.ng/rstream-dot@1.1.52) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.50...@thi.ng/rstream-dot@1.1.51) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.49...@thi.ng/rstream-dot@1.1.50) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.48...@thi.ng/rstream-dot@1.1.49) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.47...@thi.ng/rstream-dot@1.1.48) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.46...@thi.ng/rstream-dot@1.1.47) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.45...@thi.ng/rstream-dot@1.1.46) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.44...@thi.ng/rstream-dot@1.1.45) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.43...@thi.ng/rstream-dot@1.1.44) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream-dot - - - - - -## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.42...@thi.ng/rstream-dot@1.1.43) (2020-08-16) +## [1.1.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.52...@thi.ng/rstream-dot@1.1.53) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream-dot diff --git a/packages/rstream-dot/package.json b/packages/rstream-dot/package.json index ef2803d802..ec74b8c9b0 100644 --- a/packages/rstream-dot/package.json +++ b/packages/rstream-dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-dot", - "version": "1.1.52", + "version": "1.1.53", "description": "Graphviz DOT conversion of @thi.ng/rstream dataflow graph topologies", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/rstream": "^5.0.10" + "@thi.ng/rstream": "^5.0.11" }, "files": [ "*.js", diff --git a/packages/rstream-gestures/CHANGELOG.md b/packages/rstream-gestures/CHANGELOG.md index 090bf3b985..c2fa6b0a1a 100644 --- a/packages/rstream-gestures/CHANGELOG.md +++ b/packages/rstream-gestures/CHANGELOG.md @@ -3,41 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.44...@thi.ng/rstream-gestures@2.0.45) (2020-12-07) +# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.45...@thi.ng/rstream-gestures@3.0.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/rstream-gestures +### Code Refactoring +* **rstream-gestures:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace GestureType enum ([80ef1e1](https://github.com/thi-ng/umbrella/commit/80ef1e1558070421cf6ed2d707a55b91fe1c290d)) +### BREAKING CHANGES -## [2.0.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.43...@thi.ng/rstream-gestures@2.0.44) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - -## [2.0.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.42...@thi.ng/rstream-gestures@2.0.43) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - -## [2.0.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.41...@thi.ng/rstream-gestures@2.0.42) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - -## [2.0.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.40...@thi.ng/rstream-gestures@2.0.41) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-gestures +* **rstream-gestures:** replace GestureType w/ type alias @@ -54,30 +30,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.38...@thi.ng/rstream-gestures@2.0.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - -## [2.0.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.37...@thi.ng/rstream-gestures@2.0.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - -## [2.0.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.36...@thi.ng/rstream-gestures@2.0.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - ## [2.0.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.35...@thi.ng/rstream-gestures@2.0.36) (2020-08-17) @@ -89,14 +41,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [2.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.34...@thi.ng/rstream-gestures@2.0.35) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/rstream-gestures - - - - - # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@1.3.0...@thi.ng/rstream-gestures@2.0.0) (2020-01-24) ### Bug Fixes diff --git a/packages/rstream-gestures/README.md b/packages/rstream-gestures/README.md index ae9d292eb3..cfe5400837 100644 --- a/packages/rstream-gestures/README.md +++ b/packages/rstream-gestures/README.md @@ -54,7 +54,7 @@ yarn add @thi.ng/rstream-gestures ``` -Package sizes (gzipped, pre-treeshake): ESM: 1.22 KB / CJS: 1.27 KB / UMD: 1.36 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.13 KB / CJS: 1.18 KB / UMD: 1.28 KB ## Dependencies @@ -93,11 +93,11 @@ A selection: All native events are abstracted into one of the following event types: -- `START` - mousedown / touchstart -- `MOVE` - movemove -- `DRAG` - mousemove (whilst dragging) / touchmove -- `END` - mouseup / touchend / touchcancel -- `ZOOM` - wheel +- `move` - movemove +- `start` - mousedown / touchstart +- `drag` - mousemove (whilst dragging) / touchmove +- `end` - mouseup / touchend / touchcancel +- `zoom` - wheel ### GestureEvent @@ -121,7 +121,7 @@ objects of: ```ts // example mouse gesture event { - "type": 2, // GestureType.DRAG + "type": "drag" "event": MouseEvent, "pos": [254, 169], "active": [ @@ -148,7 +148,7 @@ config options for further details. ### Basic usage ```ts -import { GestureType, gestureStream } from "@thi.ng/rstream-gestures"; +import { gestureStream } from "@thi.ng/rstream-gestures"; import { trace } from "@thi.ng/rstream"; import { comp, dedupe, filter, map, pluck } from "@thi.ng/transducers"; @@ -167,7 +167,7 @@ gestures.subscribe( gestures.subscribe( trace("distance"), comp( - filter((e) => e.type === GestureType.DRAG), + filter((e) => e.type === "drag"), map((e) => e.active.map((g) => Math.hypot(...g.delta))) ) ); diff --git a/packages/rstream-gestures/package.json b/packages/rstream-gestures/package.json index ad5914d2c5..412f31c2b0 100644 --- a/packages/rstream-gestures/package.json +++ b/packages/rstream-gestures/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-gestures", - "version": "2.0.45", + "version": "3.0.0", "description": "Unified mouse, mouse wheel & multi-touch event stream abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/math": "^2.2.2", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/math": "^3.0.0", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/rstream-gestures/src/api.ts b/packages/rstream-gestures/src/api.ts index b20ce389b2..8d4a4ee520 100644 --- a/packages/rstream-gestures/src/api.ts +++ b/packages/rstream-gestures/src/api.ts @@ -15,13 +15,7 @@ export type UIEventID = | "touchcancel" | "wheel"; -export enum GestureType { - START, - MOVE, - DRAG, - END, - ZOOM, -} +export type GestureType = "move" | "start" | "drag" | "end" | "zoom"; export interface GestureInfo { /** diff --git a/packages/rstream-gestures/src/gesture-stream.ts b/packages/rstream-gestures/src/gesture-stream.ts index 406f8d983a..1e9f8e3afc 100644 --- a/packages/rstream-gestures/src/gesture-stream.ts +++ b/packages/rstream-gestures/src/gesture-stream.ts @@ -3,7 +3,7 @@ import { isBoolean } from "@thi.ng/checks"; import { clamp } from "@thi.ng/math"; import { fromDOMEvent, merge, Stream } from "@thi.ng/rstream"; import { map } from "@thi.ng/transducers"; -import { +import type { GestureEvent, GestureInfo, GestureStream, @@ -25,13 +25,13 @@ const endEvents = new Set(["mouseup", "touchend", "touchcancel"]); const baseEvents = ["mousemove", "mousedown", "touchstart", "wheel"]; const eventGestureTypeMap: IObjectOf = { - touchstart: GestureType.START, - touchmove: GestureType.DRAG, - touchend: GestureType.END, - touchcancel: GestureType.END, - mousedown: GestureType.START, - mouseup: GestureType.END, - wheel: GestureType.ZOOM, + touchstart: "start", + touchmove: "drag", + touchend: "end", + touchcancel: "end", + mousedown: "start", + mouseup: "end", + wheel: "zoom", }; /** @@ -42,7 +42,7 @@ const eventGestureTypeMap: IObjectOf = { * In multi-touch environments, a `GestureEvent` can contain multiple * such `GestureInfo` objects (one per active touch). In general, the * `click` and `delta` values are only present if the abstracted event - * `type == GestureType.DRAG`. Both (and `pos` too) are 2-element arrays + * `type == "drag"`. Both (and `pos` too) are 2-element arrays * of `[x,y]` coordinates. * * The `zoom` value is always present, but is only updated with wheel @@ -107,8 +107,8 @@ export const gestureStream = ( const type = etype === "mousemove" ? tempStreams - ? GestureType.DRAG - : GestureType.MOVE + ? "drag" + : "move" : eventGestureTypeMap[etype]; let isTouch = !!(e).touches; let events: Array = isTouch @@ -174,7 +174,7 @@ export const gestureStream = ( !isBody && stream.add(eventSource(el, "mousemove", opts)); tempStreams = undefined; } - } else if (type === GestureType.ZOOM) { + } else if (type === "zoom") { const zdelta = opts.smooth * ("wheelDeltaY" in (e as any) diff --git a/packages/rstream-gestures/tpl.readme.md b/packages/rstream-gestures/tpl.readme.md index 61264b7a23..2fde37bee5 100644 --- a/packages/rstream-gestures/tpl.readme.md +++ b/packages/rstream-gestures/tpl.readme.md @@ -46,11 +46,11 @@ ${docLink} All native events are abstracted into one of the following event types: -- `START` - mousedown / touchstart -- `MOVE` - movemove -- `DRAG` - mousemove (whilst dragging) / touchmove -- `END` - mouseup / touchend / touchcancel -- `ZOOM` - wheel +- `move` - movemove +- `start` - mousedown / touchstart +- `drag` - mousemove (whilst dragging) / touchmove +- `end` - mouseup / touchend / touchcancel +- `zoom` - wheel ### GestureEvent @@ -74,7 +74,7 @@ objects of: ```ts // example mouse gesture event { - "type": 2, // GestureType.DRAG + "type": "drag" "event": MouseEvent, "pos": [254, 169], "active": [ @@ -101,7 +101,7 @@ config options for further details. ### Basic usage ```ts -import { GestureType, gestureStream } from "@thi.ng/rstream-gestures"; +import { gestureStream } from "@thi.ng/rstream-gestures"; import { trace } from "@thi.ng/rstream"; import { comp, dedupe, filter, map, pluck } from "@thi.ng/transducers"; @@ -120,7 +120,7 @@ gestures.subscribe( gestures.subscribe( trace("distance"), comp( - filter((e) => e.type === GestureType.DRAG), + filter((e) => e.type === "drag"), map((e) => e.active.map((g) => Math.hypot(...g.delta))) ) ); diff --git a/packages/rstream-graph/CHANGELOG.md b/packages/rstream-graph/CHANGELOG.md index 2af3beaf2a..437ea7049b 100644 --- a/packages/rstream-graph/CHANGELOG.md +++ b/packages/rstream-graph/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.2.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.45...@thi.ng/rstream-graph@3.2.46) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.44...@thi.ng/rstream-graph@3.2.45) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.43...@thi.ng/rstream-graph@3.2.44) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.42...@thi.ng/rstream-graph@3.2.43) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.41...@thi.ng/rstream-graph@3.2.42) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.40...@thi.ng/rstream-graph@3.2.41) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.39...@thi.ng/rstream-graph@3.2.40) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.38...@thi.ng/rstream-graph@3.2.39) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.37...@thi.ng/rstream-graph@3.2.38) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream-graph - - - - - -## [3.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.36...@thi.ng/rstream-graph@3.2.37) (2020-08-16) +## [3.2.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.46...@thi.ng/rstream-graph@3.2.47) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream-graph diff --git a/packages/rstream-graph/package.json b/packages/rstream-graph/package.json index 780ea51bb3..84cca953b1 100644 --- a/packages/rstream-graph/package.json +++ b/packages/rstream-graph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-graph", - "version": "3.2.46", + "version": "3.2.47", "description": "Declarative dataflow graph construction for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib nodes", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/atom": "^4.1.24", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/paths": "^4.1.10", - "@thi.ng/resolve-map": "^4.2.9", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/atom": "^4.1.25", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/paths": "^4.1.11", + "@thi.ng/resolve-map": "^4.2.10", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/rstream-log-file/CHANGELOG.md b/packages/rstream-log-file/CHANGELOG.md index d249a75660..714b2337ad 100644 --- a/packages/rstream-log-file/CHANGELOG.md +++ b/packages/rstream-log-file/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.66...@thi.ng/rstream-log-file@0.1.67) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.65...@thi.ng/rstream-log-file@0.1.66) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.64...@thi.ng/rstream-log-file@0.1.65) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.63...@thi.ng/rstream-log-file@0.1.64) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.62...@thi.ng/rstream-log-file@0.1.63) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.61...@thi.ng/rstream-log-file@0.1.62) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.60...@thi.ng/rstream-log-file@0.1.61) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.59...@thi.ng/rstream-log-file@0.1.60) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.58...@thi.ng/rstream-log-file@0.1.59) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream-log-file - - - - - -## [0.1.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.57...@thi.ng/rstream-log-file@0.1.58) (2020-08-16) +## [0.1.68](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.67...@thi.ng/rstream-log-file@0.1.68) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream-log-file diff --git a/packages/rstream-log-file/package.json b/packages/rstream-log-file/package.json index 4c7d5736a8..51652135a6 100644 --- a/packages/rstream-log-file/package.json +++ b/packages/rstream-log-file/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-log-file", - "version": "0.1.67", + "version": "0.1.68", "description": "File output handler for structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/rstream": "^5.0.10" + "@thi.ng/rstream": "^5.0.11" }, "files": [ "*.js", diff --git a/packages/rstream-log/CHANGELOG.md b/packages/rstream-log/CHANGELOG.md index cbedcfcc88..b58a50b1f4 100644 --- a/packages/rstream-log/CHANGELOG.md +++ b/packages/rstream-log/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.51...@thi.ng/rstream-log@3.1.52) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.50...@thi.ng/rstream-log@3.1.51) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.49...@thi.ng/rstream-log@3.1.50) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.48...@thi.ng/rstream-log@3.1.49) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.47...@thi.ng/rstream-log@3.1.48) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.46...@thi.ng/rstream-log@3.1.47) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.45...@thi.ng/rstream-log@3.1.46) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.44...@thi.ng/rstream-log@3.1.45) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.43...@thi.ng/rstream-log@3.1.44) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream-log - - - - - -## [3.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.42...@thi.ng/rstream-log@3.1.43) (2020-08-16) +## [3.1.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.52...@thi.ng/rstream-log@3.1.53) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream-log diff --git a/packages/rstream-log/package.json b/packages/rstream-log/package.json index 0bfd326f28..d569ea7ecc 100644 --- a/packages/rstream-log/package.json +++ b/packages/rstream-log/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-log", - "version": "3.1.52", + "version": "3.1.53", "description": "Structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib output xform", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/rstream-query/CHANGELOG.md b/packages/rstream-query/CHANGELOG.md index 05648aff0a..1e4aa12a4d 100644 --- a/packages/rstream-query/CHANGELOG.md +++ b/packages/rstream-query/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.51...@thi.ng/rstream-query@1.1.52) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.50...@thi.ng/rstream-query@1.1.51) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.49...@thi.ng/rstream-query@1.1.50) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.48...@thi.ng/rstream-query@1.1.49) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.47...@thi.ng/rstream-query@1.1.48) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.46...@thi.ng/rstream-query@1.1.47) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.45...@thi.ng/rstream-query@1.1.46) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.44...@thi.ng/rstream-query@1.1.45) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.43...@thi.ng/rstream-query@1.1.44) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream-query - - - - - -## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.42...@thi.ng/rstream-query@1.1.43) (2020-08-16) +## [1.1.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.52...@thi.ng/rstream-query@1.1.53) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream-query diff --git a/packages/rstream-query/package.json b/packages/rstream-query/package.json index 2888985f24..6cd78d9fa7 100644 --- a/packages/rstream-query/package.json +++ b/packages/rstream-query/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-query", - "version": "1.1.52", + "version": "1.1.53", "description": "@thi.ng/rstream based triple store & reactive query engine", "module": "./index.js", "main": "./lib/index.js", @@ -39,25 +39,25 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/rstream": "^5.0.10", - "@thi.ng/rstream-dot": "^1.1.52", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/rstream": "^5.0.11", + "@thi.ng/rstream-dot": "^1.1.53", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/rstream/CHANGELOG.md b/packages/rstream/CHANGELOG.md index 2d13784721..33fb0d19bf 100644 --- a/packages/rstream/CHANGELOG.md +++ b/packages/rstream/CHANGELOG.md @@ -3,47 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [5.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.9...@thi.ng/rstream@5.0.10) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.8...@thi.ng/rstream@5.0.9) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.7...@thi.ng/rstream@5.0.8) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.6...@thi.ng/rstream@5.0.7) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.5...@thi.ng/rstream@5.0.6) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.4...@thi.ng/rstream@5.0.5) (2020-09-22) +## [5.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.10...@thi.ng/rstream@5.0.11) (2020-12-22) **Note:** Version bump only for package @thi.ng/rstream @@ -62,30 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [5.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.2...@thi.ng/rstream@5.0.3) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.1...@thi.ng/rstream@5.0.2) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - -## [5.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.0...@thi.ng/rstream@5.0.1) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/rstream - - - - - # [5.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@4.6.5...@thi.ng/rstream@5.0.0) (2020-07-28) diff --git a/packages/rstream/package.json b/packages/rstream/package.json index 024e03636d..dbb7e666cb 100644 --- a/packages/rstream/package.json +++ b/packages/rstream/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream", - "version": "5.0.10", + "version": "5.0.11", "description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines", "module": "./index.js", "main": "./lib/index.js", @@ -39,23 +39,23 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/atom": "^4.1.24", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/atom": "^4.1.25", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/sax/CHANGELOG.md b/packages/sax/CHANGELOG.md index cbcbbad5e3..18e2b18254 100644 --- a/packages/sax/CHANGELOG.md +++ b/packages/sax/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.41...@thi.ng/sax@1.1.42) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.40...@thi.ng/sax@1.1.41) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.39...@thi.ng/sax@1.1.40) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.38...@thi.ng/sax@1.1.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.37...@thi.ng/sax@1.1.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.36...@thi.ng/sax@1.1.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.35...@thi.ng/sax@1.1.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/sax - - - - - -## [1.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.34...@thi.ng/sax@1.1.35) (2020-08-16) +## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.42...@thi.ng/sax@1.1.43) (2020-12-22) **Note:** Version bump only for package @thi.ng/sax diff --git a/packages/sax/package.json b/packages/sax/package.json index 0b58c1874c..ad8726324d 100644 --- a/packages/sax/package.json +++ b/packages/sax/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sax", - "version": "1.1.42", + "version": "1.1.43", "description": "Transducer-based, SAX-like, non-validating, speedy & tiny XML parser", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/transducers-fsm": "^1.1.42" + "@thi.ng/api": "^6.13.5", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/transducers-fsm": "^1.1.43" }, "files": [ "*.js", diff --git a/packages/scenegraph/CHANGELOG.md b/packages/scenegraph/CHANGELOG.md index 513cf34736..c6365c8704 100644 --- a/packages/scenegraph/CHANGELOG.md +++ b/packages/scenegraph/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.10...@thi.ng/scenegraph@0.3.11) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.9...@thi.ng/scenegraph@0.3.10) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.8...@thi.ng/scenegraph@0.3.9) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.7...@thi.ng/scenegraph@0.3.8) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.6...@thi.ng/scenegraph@0.3.7) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.5...@thi.ng/scenegraph@0.3.6) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.4...@thi.ng/scenegraph@0.3.5) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.3...@thi.ng/scenegraph@0.3.4) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.2...@thi.ng/scenegraph@0.3.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/scenegraph - - - - - -## [0.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.1...@thi.ng/scenegraph@0.3.2) (2020-08-16) +## [0.3.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.11...@thi.ng/scenegraph@0.3.12) (2020-12-22) **Note:** Version bump only for package @thi.ng/scenegraph diff --git a/packages/scenegraph/package.json b/packages/scenegraph/package.json index 9761e6f86b..4adbde150a 100644 --- a/packages/scenegraph/package.json +++ b/packages/scenegraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/scenegraph", - "version": "0.3.11", + "version": "0.3.12", "description": "Extensible 2D/3D scene graph with @thi.ng/hiccup-canvas support", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/matrices": "^0.6.37", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/matrices": "^0.6.38", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/seq/CHANGELOG.md b/packages/seq/CHANGELOG.md index 19fb77e51f..575f813624 100644 --- a/packages/seq/CHANGELOG.md +++ b/packages/seq/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.26...@thi.ng/seq@0.2.27) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.25...@thi.ng/seq@0.2.26) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.24...@thi.ng/seq@0.2.25) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.23...@thi.ng/seq@0.2.24) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.22...@thi.ng/seq@0.2.23) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.21...@thi.ng/seq@0.2.22) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.20...@thi.ng/seq@0.2.21) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/seq - - - - - -## [0.2.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.19...@thi.ng/seq@0.2.20) (2020-08-16) +## [0.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.27...@thi.ng/seq@0.2.28) (2020-12-22) **Note:** Version bump only for package @thi.ng/seq diff --git a/packages/seq/package.json b/packages/seq/package.json index c44164370f..251f4459d7 100644 --- a/packages/seq/package.json +++ b/packages/seq/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/seq", - "version": "0.2.27", + "version": "0.2.28", "description": "Various implementations of the @thi.ng/api `ISeq` interface / sequence abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12" }, "files": [ "*.js", diff --git a/packages/sexpr/CHANGELOG.md b/packages/sexpr/CHANGELOG.md index 53e89e83af..2f1dfe97c1 100644 --- a/packages/sexpr/CHANGELOG.md +++ b/packages/sexpr/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.29...@thi.ng/sexpr@0.2.30) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.28...@thi.ng/sexpr@0.2.29) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.27...@thi.ng/sexpr@0.2.28) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.26...@thi.ng/sexpr@0.2.27) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.25...@thi.ng/sexpr@0.2.26) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.24...@thi.ng/sexpr@0.2.25) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.23...@thi.ng/sexpr@0.2.24) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/sexpr - - - - - -## [0.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.22...@thi.ng/sexpr@0.2.23) (2020-08-16) +## [0.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.30...@thi.ng/sexpr@0.2.31) (2020-12-22) **Note:** Version bump only for package @thi.ng/sexpr diff --git a/packages/sexpr/package.json b/packages/sexpr/package.json index b373684eaa..1e8b856174 100644 --- a/packages/sexpr/package.json +++ b/packages/sexpr/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sexpr", - "version": "0.2.30", + "version": "0.2.31", "description": "Extensible S-Expression parser & runtime infrastructure", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3" }, "files": [ "*.js", diff --git a/packages/shader-ast-glsl/CHANGELOG.md b/packages/shader-ast-glsl/CHANGELOG.md index 90a149882d..dca1a813a3 100644 --- a/packages/shader-ast-glsl/CHANGELOG.md +++ b/packages/shader-ast-glsl/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.13...@thi.ng/shader-ast-glsl@0.2.14) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.12...@thi.ng/shader-ast-glsl@0.2.13) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.11...@thi.ng/shader-ast-glsl@0.2.12) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.10...@thi.ng/shader-ast-glsl@0.2.11) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.9...@thi.ng/shader-ast-glsl@0.2.10) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.8...@thi.ng/shader-ast-glsl@0.2.9) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.7...@thi.ng/shader-ast-glsl@0.2.8) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.6...@thi.ng/shader-ast-glsl@0.2.7) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/shader-ast-glsl - - - - - -## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.5...@thi.ng/shader-ast-glsl@0.2.6) (2020-08-16) +## [0.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.14...@thi.ng/shader-ast-glsl@0.2.15) (2020-12-22) **Note:** Version bump only for package @thi.ng/shader-ast-glsl diff --git a/packages/shader-ast-glsl/package.json b/packages/shader-ast-glsl/package.json index 2f0a7aeae0..5d9fff9883 100644 --- a/packages/shader-ast-glsl/package.json +++ b/packages/shader-ast-glsl/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/shader-ast-glsl", - "version": "0.2.14", + "version": "0.2.15", "description": "Customizable GLSL codegen for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/shader-ast": "^0.7.6" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/shader-ast": "^0.7.7" }, "files": [ "*.js", diff --git a/packages/shader-ast-js/CHANGELOG.md b/packages/shader-ast-js/CHANGELOG.md index a4a87958d2..482d634be9 100644 --- a/packages/shader-ast-js/CHANGELOG.md +++ b/packages/shader-ast-js/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.5.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.11...@thi.ng/shader-ast-js@0.5.12) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.10...@thi.ng/shader-ast-js@0.5.11) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.9...@thi.ng/shader-ast-js@0.5.10) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.8...@thi.ng/shader-ast-js@0.5.9) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.7...@thi.ng/shader-ast-js@0.5.8) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.6...@thi.ng/shader-ast-js@0.5.7) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.5...@thi.ng/shader-ast-js@0.5.6) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.4...@thi.ng/shader-ast-js@0.5.5) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.3...@thi.ng/shader-ast-js@0.5.4) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.2...@thi.ng/shader-ast-js@0.5.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/shader-ast-js - - - - - -## [0.5.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.1...@thi.ng/shader-ast-js@0.5.2) (2020-08-16) +## [0.5.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.12...@thi.ng/shader-ast-js@0.5.13) (2020-12-22) **Note:** Version bump only for package @thi.ng/shader-ast-js diff --git a/packages/shader-ast-js/package.json b/packages/shader-ast-js/package.json index a96d08d44a..5b312865f8 100644 --- a/packages/shader-ast-js/package.json +++ b/packages/shader-ast-js/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/shader-ast-js", - "version": "0.5.12", + "version": "0.5.13", "description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/matrices": "^0.6.37", - "@thi.ng/pixel": "^0.4.9", - "@thi.ng/shader-ast": "^0.7.6", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/matrices": "^0.6.38", + "@thi.ng/pixel": "^0.4.10", + "@thi.ng/shader-ast": "^0.7.7", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/shader-ast-stdlib/CHANGELOG.md b/packages/shader-ast-stdlib/CHANGELOG.md index f4c78843cc..48ec7ce258 100644 --- a/packages/shader-ast-stdlib/CHANGELOG.md +++ b/packages/shader-ast-stdlib/CHANGELOG.md @@ -3,47 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.5.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.5...@thi.ng/shader-ast-stdlib@0.5.6) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/shader-ast-stdlib - - - - - -## [0.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.4...@thi.ng/shader-ast-stdlib@0.5.5) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/shader-ast-stdlib - - - - - -## [0.5.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.3...@thi.ng/shader-ast-stdlib@0.5.4) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/shader-ast-stdlib - - - - - -## [0.5.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.2...@thi.ng/shader-ast-stdlib@0.5.3) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/shader-ast-stdlib - - - - - -## [0.5.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.1...@thi.ng/shader-ast-stdlib@0.5.2) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/shader-ast-stdlib - - - - - -## [0.5.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.0...@thi.ng/shader-ast-stdlib@0.5.1) (2020-09-13) +## [0.5.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.6...@thi.ng/shader-ast-stdlib@0.5.7) (2020-12-22) **Note:** Version bump only for package @thi.ng/shader-ast-stdlib @@ -64,14 +24,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.4.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.4.5...@thi.ng/shader-ast-stdlib@0.4.6) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/shader-ast-stdlib - - - - - ## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.4.4...@thi.ng/shader-ast-stdlib@0.4.5) (2020-08-16) diff --git a/packages/shader-ast-stdlib/package.json b/packages/shader-ast-stdlib/package.json index 8df7d287b0..efc9023ef6 100644 --- a/packages/shader-ast-stdlib/package.json +++ b/packages/shader-ast-stdlib/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/shader-ast-stdlib", - "version": "0.5.6", + "version": "0.5.7", "description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/shader-ast": "^0.7.6" + "@thi.ng/api": "^6.13.5", + "@thi.ng/shader-ast": "^0.7.7" }, "files": [ "*.js", diff --git a/packages/shader-ast/CHANGELOG.md b/packages/shader-ast/CHANGELOG.md index 47d647c59a..4f62f2daaa 100644 --- a/packages/shader-ast/CHANGELOG.md +++ b/packages/shader-ast/CHANGELOG.md @@ -3,47 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.7.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.5...@thi.ng/shader-ast@0.7.6) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - -## [0.7.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.4...@thi.ng/shader-ast@0.7.5) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - -## [0.7.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.3...@thi.ng/shader-ast@0.7.4) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - -## [0.7.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.2...@thi.ng/shader-ast@0.7.3) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - -## [0.7.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.1...@thi.ng/shader-ast@0.7.2) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - -## [0.7.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.0...@thi.ng/shader-ast@0.7.1) (2020-09-13) +## [0.7.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.6...@thi.ng/shader-ast@0.7.7) (2020-12-22) **Note:** Version bump only for package @thi.ng/shader-ast @@ -68,22 +28,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.6.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.6.2...@thi.ng/shader-ast@0.6.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - -## [0.6.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.6.1...@thi.ng/shader-ast@0.6.2) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/shader-ast - - - - - # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.5.2...@thi.ng/shader-ast@0.6.0) (2020-08-10) diff --git a/packages/shader-ast/package.json b/packages/shader-ast/package.json index 8815fed5ad..210299f259 100644 --- a/packages/shader-ast/package.json +++ b/packages/shader-ast/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/shader-ast", - "version": "0.7.6", + "version": "0.7.7", "description": "DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/defmulti": "^1.3.2", - "@thi.ng/dgraph": "^1.3.2", - "@thi.ng/errors": "^1.2.24" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/defmulti": "^1.3.3", + "@thi.ng/dgraph": "^1.3.3", + "@thi.ng/errors": "^1.2.25" }, "files": [ "*.js", diff --git a/packages/simd/CHANGELOG.md b/packages/simd/CHANGELOG.md index ce1cd832d6..d6a93396b7 100644 --- a/packages/simd/CHANGELOG.md +++ b/packages/simd/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.9...@thi.ng/simd@0.4.10) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.8...@thi.ng/simd@0.4.9) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.7...@thi.ng/simd@0.4.8) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.6...@thi.ng/simd@0.4.7) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.5...@thi.ng/simd@0.4.6) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.4...@thi.ng/simd@0.4.5) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.3...@thi.ng/simd@0.4.4) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.2...@thi.ng/simd@0.4.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/simd - - - - - -## [0.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.1...@thi.ng/simd@0.4.2) (2020-08-16) +## [0.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.10...@thi.ng/simd@0.4.11) (2020-12-22) **Note:** Version bump only for package @thi.ng/simd diff --git a/packages/simd/package.json b/packages/simd/package.json index fb5f68ba8b..6e580ab4b8 100644 --- a/packages/simd/package.json +++ b/packages/simd/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/simd", - "version": "0.4.10", + "version": "0.4.11", "description": "WASM based SIMD vector operations for batch processing", "module": "./index.js", "main": "./lib/index.js", @@ -41,18 +41,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", - "assemblyscript": "0.17.4", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", + "assemblyscript": "0.17.9", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/transducers-binary": "^0.5.33" + "@thi.ng/transducers-binary": "^0.6.0" }, "files": [ "*.js", diff --git a/packages/soa/CHANGELOG.md b/packages/soa/CHANGELOG.md index e3ca785483..addc1f46af 100644 --- a/packages/soa/CHANGELOG.md +++ b/packages/soa/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.40...@thi.ng/soa@0.1.41) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.39...@thi.ng/soa@0.1.40) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.38...@thi.ng/soa@0.1.39) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.37...@thi.ng/soa@0.1.38) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.36...@thi.ng/soa@0.1.37) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.35...@thi.ng/soa@0.1.36) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.34...@thi.ng/soa@0.1.35) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.33...@thi.ng/soa@0.1.34) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.32...@thi.ng/soa@0.1.33) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/soa - - - - - -## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.31...@thi.ng/soa@0.1.32) (2020-08-16) +## [0.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.41...@thi.ng/soa@0.1.42) (2020-12-22) **Note:** Version bump only for package @thi.ng/soa diff --git a/packages/soa/package.json b/packages/soa/package.json index 806c622891..80b136963f 100644 --- a/packages/soa/package.json +++ b/packages/soa/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/soa", - "version": "0.1.41", + "version": "0.1.42", "description": "SOA & AOS memory mapped structured views with optional & extensible serialization", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/equiv": "^1.0.33", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/equiv": "^1.0.34", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/transducers-binary": "^0.5.33", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/transducers-binary": "^0.6.0", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/sparse/CHANGELOG.md b/packages/sparse/CHANGELOG.md index 4994f9189a..54a7183e4b 100644 --- a/packages/sparse/CHANGELOG.md +++ b/packages/sparse/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.57...@thi.ng/sparse@0.1.58) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.56...@thi.ng/sparse@0.1.57) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.55...@thi.ng/sparse@0.1.56) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.54...@thi.ng/sparse@0.1.55) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.53...@thi.ng/sparse@0.1.54) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.52...@thi.ng/sparse@0.1.53) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.51...@thi.ng/sparse@0.1.52) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/sparse - - - - - -## [0.1.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.50...@thi.ng/sparse@0.1.51) (2020-08-16) +## [0.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.58...@thi.ng/sparse@0.1.59) (2020-12-22) **Note:** Version bump only for package @thi.ng/sparse diff --git a/packages/sparse/package.json b/packages/sparse/package.json index deb924f912..fb8782709a 100644 --- a/packages/sparse/package.json +++ b/packages/sparse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sparse", - "version": "0.1.58", + "version": "0.1.59", "description": "Sparse vector & matrix implementations", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/strings/CHANGELOG.md b/packages/strings/CHANGELOG.md index 6b9482f8ef..ad341e18f1 100644 --- a/packages/strings/CHANGELOG.md +++ b/packages/strings/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.11.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.11.1...@thi.ng/strings@1.11.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/strings - - - - - -## [1.11.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.11.0...@thi.ng/strings@1.11.1) (2020-11-26) +## [1.11.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.11.2...@thi.ng/strings@1.11.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/strings @@ -43,46 +35,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [1.9.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.9.5...@thi.ng/strings@1.9.6) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/strings - - - - - -## [1.9.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.9.4...@thi.ng/strings@1.9.5) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/strings - - - - - -## [1.9.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.9.3...@thi.ng/strings@1.9.4) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/strings - - - - - -## [1.9.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.9.2...@thi.ng/strings@1.9.3) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/strings - - - - - -## [1.9.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.9.1...@thi.ng/strings@1.9.2) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/strings - - - - - # [1.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.8.13...@thi.ng/strings@1.9.0) (2020-07-08) diff --git a/packages/strings/package.json b/packages/strings/package.json index c76d1923aa..e58178ec0a 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/strings", - "version": "1.11.2", + "version": "1.11.3", "description": "Various string formatting & utility functions", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/hex": "^0.1.1", - "@thi.ng/memoize": "^2.1.6" + "@thi.ng/api": "^6.13.5", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/hex": "^0.1.2", + "@thi.ng/memoize": "^2.1.7" }, "files": [ "*.js", diff --git a/packages/system/CHANGELOG.md b/packages/system/CHANGELOG.md index a8af5dbba2..3d0b491891 100644 --- a/packages/system/CHANGELOG.md +++ b/packages/system/CHANGELOG.md @@ -3,39 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.30...@thi.ng/system@0.2.31) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/system - - - - - -## [0.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.29...@thi.ng/system@0.2.30) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/system - - - - - -## [0.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.28...@thi.ng/system@0.2.29) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/system - - - - - -## [0.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.27...@thi.ng/system@0.2.28) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/system - - - - - -## [0.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.26...@thi.ng/system@0.2.27) (2020-09-22) +## [0.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.31...@thi.ng/system@0.2.32) (2020-12-22) **Note:** Version bump only for package @thi.ng/system @@ -54,30 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.2.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.24...@thi.ng/system@0.2.25) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/system - - - - - -## [0.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.23...@thi.ng/system@0.2.24) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/system - - - - - -## [0.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.22...@thi.ng/system@0.2.23) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/system - - - - - # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.1.0...@thi.ng/system@0.2.0) (2020-04-03) diff --git a/packages/system/package.json b/packages/system/package.json index 5df43d82f6..e54baae47b 100644 --- a/packages/system/package.json +++ b/packages/system/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/system", - "version": "0.2.31", + "version": "0.2.32", "description": "Minimal DI / life cycle container for stateful app components", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/dgraph": "^1.3.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/dgraph": "^1.3.3" }, "files": [ "*.js", diff --git a/packages/text-canvas/CHANGELOG.md b/packages/text-canvas/CHANGELOG.md index 2c6151f2c0..9065a36254 100644 --- a/packages/text-canvas/CHANGELOG.md +++ b/packages/text-canvas/CHANGELOG.md @@ -3,79 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.34...@thi.ng/text-canvas@0.2.35) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.33...@thi.ng/text-canvas@0.2.34) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.32...@thi.ng/text-canvas@0.2.33) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.31...@thi.ng/text-canvas@0.2.32) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.30...@thi.ng/text-canvas@0.2.31) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.29...@thi.ng/text-canvas@0.2.30) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.28...@thi.ng/text-canvas@0.2.29) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.27...@thi.ng/text-canvas@0.2.28) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.26...@thi.ng/text-canvas@0.2.27) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/text-canvas - - - - - -## [0.2.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.25...@thi.ng/text-canvas@0.2.26) (2020-08-16) +## [0.2.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.35...@thi.ng/text-canvas@0.2.36) (2020-12-22) **Note:** Version bump only for package @thi.ng/text-canvas diff --git a/packages/text-canvas/package.json b/packages/text-canvas/package.json index 6d4287bc71..bbc573c0f1 100644 --- a/packages/text-canvas/package.json +++ b/packages/text-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/text-canvas", - "version": "0.2.35", + "version": "0.2.36", "description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)", "module": "./index.js", "main": "./lib/index.js", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/geom-clip-line": "^1.2.13", - "@thi.ng/math": "^2.2.2", - "@thi.ng/memoize": "^2.1.6", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/geom-clip-line": "^1.2.14", + "@thi.ng/math": "^3.0.0", + "@thi.ng/memoize": "^2.1.7", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/transducers-binary/CHANGELOG.md b/packages/transducers-binary/CHANGELOG.md index 494c107b26..84778b54fd 100644 --- a/packages/transducers-binary/CHANGELOG.md +++ b/packages/transducers-binary/CHANGELOG.md @@ -3,73 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.5.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.32...@thi.ng/transducers-binary@0.5.33) (2020-12-07) +# [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.33...@thi.ng/transducers-binary@0.6.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/transducers-binary +### Code Refactoring +* **transducers-binary:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([50cc52a](https://github.com/thi-ng/umbrella/commit/50cc52a84b135535053370e022309aee5b670625)) +### BREAKING CHANGES -## [0.5.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.31...@thi.ng/transducers-binary@0.5.32) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.30...@thi.ng/transducers-binary@0.5.31) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.29...@thi.ng/transducers-binary@0.5.30) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.28...@thi.ng/transducers-binary@0.5.29) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.27...@thi.ng/transducers-binary@0.5.28) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.26...@thi.ng/transducers-binary@0.5.27) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.25...@thi.ng/transducers-binary@0.5.26) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/transducers-binary - - - - - -## [0.5.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.24...@thi.ng/transducers-binary@0.5.25) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/transducers-binary +* **transducers-binary:** replace Type enum w/ type alias, update BinStructItem diff --git a/packages/transducers-binary/README.md b/packages/transducers-binary/README.md index d16e5678c8..48a1cbadcd 100644 --- a/packages/transducers-binary/README.md +++ b/packages/transducers-binary/README.md @@ -61,7 +61,7 @@ yarn add @thi.ng/transducers-binary ``` -Package sizes (gzipped, pre-treeshake): ESM: 2.86 KB / CJS: 3.01 KB / UMD: 2.91 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.64 KB / CJS: 2.79 KB / UMD: 2.69 KB ## Dependencies diff --git a/packages/transducers-binary/package.json b/packages/transducers-binary/package.json index e940eba412..1cefbc3716 100644 --- a/packages/transducers-binary/package.json +++ b/packages/transducers-binary/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-binary", - "version": "0.5.33", + "version": "0.6.0", "description": "Binary data related transducers & reducers", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/binary": "^2.0.19", - "@thi.ng/compose": "^1.4.21", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/hex": "^0.1.1", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/binary": "^2.0.20", + "@thi.ng/compose": "^1.4.22", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/hex": "^0.1.2", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/transducers-binary/src/api.ts b/packages/transducers-binary/src/api.ts index 919ede53b0..71beaafe10 100644 --- a/packages/transducers-binary/src/api.ts +++ b/packages/transducers-binary/src/api.ts @@ -1,49 +1,48 @@ -export enum Type { - I8, - I8_ARRAY, - U8, - U8_ARRAY, - I16, - I16_ARRAY, - U16, - U16_ARRAY, - I24, - I24_ARRAY, - U24, - U24_ARRAY, - I32, - I32_ARRAY, - U32, - U32_ARRAY, - F32, - F32_ARRAY, - F64, - F64_ARRAY, - STR, -} +export type Type = + | "i8" + | "i8a" + | "u8" + | "u8a" + | "i16" + | "i16a" + | "u16" + | "u16a" + | "i24" + | "i24a" + | "u24" + | "u24a" + | "i32" + | "i32a" + | "u32" + | "u32a" + | "f32" + | "f32a" + | "f64" + | "f64a" + | "str"; export type BinStructItem = - | [Type.I8, number] - | [Type.I8_ARRAY, ArrayLike] - | [Type.U8, number] - | [Type.U8_ARRAY, ArrayLike] - | [Type.I16, number, boolean?] - | [Type.I16_ARRAY, ArrayLike, boolean?] - | [Type.U16, number, boolean?] - | [Type.U16_ARRAY, ArrayLike, boolean?] - | [Type.I24, number, boolean?] - | [Type.I24_ARRAY, ArrayLike, boolean?] - | [Type.U24, number, boolean?] - | [Type.U24_ARRAY, ArrayLike, boolean?] - | [Type.I32, number, boolean?] - | [Type.I32_ARRAY, ArrayLike, boolean?] - | [Type.U32, number, boolean?] - | [Type.U32_ARRAY, ArrayLike, boolean?] - | [Type.F32, number, boolean?] - | [Type.F32_ARRAY, ArrayLike, boolean?] - | [Type.F64, number, boolean?] - | [Type.F64_ARRAY, ArrayLike, boolean?] - | [Type.STR, string]; + | ["i8", number] + | ["i8a", ArrayLike] + | ["u8", number] + | ["u8a", ArrayLike] + | ["i16", number, boolean?] + | ["i16a", ArrayLike, boolean?] + | ["u16", number, boolean?] + | ["u16a", ArrayLike, boolean?] + | ["i24", number, boolean?] + | ["i24a", ArrayLike, boolean?] + | ["u24", number, boolean?] + | ["u24a", ArrayLike, boolean?] + | ["i32", number, boolean?] + | ["i32a", ArrayLike, boolean?] + | ["u32", number, boolean?] + | ["u32a", ArrayLike, boolean?] + | ["f32", number, boolean?] + | ["f32a", ArrayLike, boolean?] + | ["f64", number, boolean?] + | ["f64a", ArrayLike, boolean?] + | ["str", string]; export interface HexDumpOpts { /** diff --git a/packages/transducers-binary/src/bytes.ts b/packages/transducers-binary/src/bytes.ts index 29448a2b5b..fe699ca2bb 100644 --- a/packages/transducers-binary/src/bytes.ts +++ b/packages/transducers-binary/src/bytes.ts @@ -7,78 +7,72 @@ import { Reducer, Transducer, } from "@thi.ng/transducers"; -import { BinStructItem, Type } from "./api"; +import type { BinStructItem } from "./api"; import { utf8Encode } from "./utf8"; -export const i8 = (x: number): BinStructItem => [Type.I8, x]; -export const i8array = (x: ArrayLike): BinStructItem => [ - Type.I8_ARRAY, - x, -]; +export const i8 = (x: number): BinStructItem => ["i8", x]; +export const i8array = (x: ArrayLike): BinStructItem => ["i8a", x]; -export const u8 = (x: number): BinStructItem => [Type.U8, x]; -export const u8array = (x: ArrayLike): BinStructItem => [ - Type.U8_ARRAY, - x, -]; +export const u8 = (x: number): BinStructItem => ["u8", x]; +export const u8array = (x: ArrayLike): BinStructItem => ["u8a", x]; -export const i16 = (x: number, le = false): BinStructItem => [Type.I16, x, le]; +export const i16 = (x: number, le = false): BinStructItem => ["i16", x, le]; export const i16array = (x: ArrayLike, le = false): BinStructItem => [ - Type.I16_ARRAY, + "i16a", x, le, ]; -export const u16 = (x: number, le = false): BinStructItem => [Type.U16, x, le]; +export const u16 = (x: number, le = false): BinStructItem => ["u16", x, le]; export const u16array = (x: ArrayLike, le = false): BinStructItem => [ - Type.U16_ARRAY, + "u16a", x, le, ]; -export const i24 = (x: number, le = false): BinStructItem => [Type.I24, x, le]; +export const i24 = (x: number, le = false): BinStructItem => ["i24", x, le]; export const i24array = (x: ArrayLike, le = false): BinStructItem => [ - Type.I24_ARRAY, + "i24a", x, le, ]; -export const u24 = (x: number, le = false): BinStructItem => [Type.U24, x, le]; +export const u24 = (x: number, le = false): BinStructItem => ["u24", x, le]; export const u24array = (x: ArrayLike, le = false): BinStructItem => [ - Type.U24_ARRAY, + "u24a", x, le, ]; -export const i32 = (x: number, le = false): BinStructItem => [Type.I32, x, le]; +export const i32 = (x: number, le = false): BinStructItem => ["i32", x, le]; export const i32array = (x: ArrayLike, le = false): BinStructItem => [ - Type.I32_ARRAY, + "i32a", x, le, ]; -export const u32 = (x: number, le = false): BinStructItem => [Type.U32, x, le]; +export const u32 = (x: number, le = false): BinStructItem => ["u32", x, le]; export const u32array = (x: ArrayLike, le = false): BinStructItem => [ - Type.U32_ARRAY, + "u32a", x, le, ]; -export const f32 = (x: number, le = false): BinStructItem => [Type.F32, x, le]; +export const f32 = (x: number, le = false): BinStructItem => ["f32", x, le]; export const f32array = (x: ArrayLike, le = false): BinStructItem => [ - Type.F32_ARRAY, + "f32a", x, le, ]; -export const f64 = (x: number, le = false): BinStructItem => [Type.F64, x, le]; +export const f64 = (x: number, le = false): BinStructItem => ["f64", x, le]; export const f64array = (x: ArrayLike, le = false): BinStructItem => [ - Type.F64_ARRAY, + "f64a", x, le, ]; -export const str = (x: string): BinStructItem => [Type.STR, x]; +export const str = (x: string): BinStructItem => ["str", x]; /** * Transducer which converts {@link BinStructItem} inputs to bytes. If @@ -105,39 +99,39 @@ export function asBytes(src?: Iterable): any { const val = x[1]; const le = x[2]; switch (x[0]) { - case Type.I8: - case Type.U8: + case "i8": + case "u8": return [val]; - case Type.I8_ARRAY: - case Type.U8_ARRAY: + case "i8a": + case "u8a": return x[1]; - case Type.I16: - case Type.U16: + case "i16": + case "u16": return bytes16(val, le); - case Type.I16_ARRAY: - case Type.U16_ARRAY: + case "i16a": + case "u16a": return mapcat((x) => bytes16(x, le), x[1]); - case Type.I24: - case Type.U24: + case "i24": + case "u24": return bytes24(val, le); - case Type.I24_ARRAY: - case Type.U24_ARRAY: + case "i24a": + case "u24a": return mapcat((x) => bytes24(x, le), x[1]); - case Type.I32: - case Type.U32: + case "i32": + case "u32": return bytes32(val, le); - case Type.I32_ARRAY: - case Type.U32_ARRAY: + case "i32a": + case "u32a": return mapcat((x) => bytes32(x, le), x[1]); - case Type.F32: + case "f32": return bytesF32(val, le); - case Type.F32_ARRAY: + case "f32a": return mapcat((x) => bytesF32(x, le), x[1]); - case Type.F64: + case "f64": return bytesF64(val, le); - case Type.F64_ARRAY: + case "f64a": return mapcat((x) => bytesF64(x, le), x[1]); - case Type.STR: + case "str": return utf8Encode(x[1]); default: unsupported(`invalid struct item: ${x[0]}`); @@ -186,12 +180,12 @@ export function bytes(cap = 1024, src?: Iterable) { view = new DataView(acc.buffer, acc.byteOffset); } switch (type) { - case Type.I8: + case "i8": acc = ensure(acc, 1); view.setInt8(pos, x); pos++; break; - case Type.I8_ARRAY: { + case "i8a": { const n = (>x).length; acc = ensure(acc, n); new Int8Array(acc.buffer, acc.byteOffset).set( @@ -201,83 +195,83 @@ export function bytes(cap = 1024, src?: Iterable) { pos += n; break; } - case Type.U8: + case "u8": acc = ensure(acc, 1); view.setUint8(pos, x); pos++; break; - case Type.U8_ARRAY: { + case "u8a": { const n = (>x).length; acc = ensure(acc, n); acc.set(>x, pos); pos += n; break; } - case Type.I16: + case "i16": acc = ensure(acc, 2); view.setInt16(pos, x, le); pos += 2; break; - case Type.I16_ARRAY: + case "i16a": acc = setArray("setInt16", 2, acc, x, le); break; - case Type.U16: + case "u16": acc = ensure(acc, 2); view.setUint16(pos, x, le); pos += 2; break; - case Type.U16_ARRAY: + case "u16a": acc = setArray("setUint16", 2, acc, x, le); break; - case Type.I24: + case "i24": acc = ensure(acc, 4); view.setInt32(pos, x, le); pos += 3; break; - case Type.I24_ARRAY: + case "i24a": acc = setArray("setInt32", 3, acc, x, le); break; - case Type.U24: + case "u24": acc = ensure(acc, 4); view.setUint32(pos, x, le); pos += 3; break; - case Type.U24_ARRAY: + case "u24a": acc = setArray("setUint32", 3, acc, x, le); break; - case Type.I32: + case "i32": acc = ensure(acc, 4); view.setInt32(pos, x, le); pos += 4; break; - case Type.I32_ARRAY: + case "i32a": acc = setArray("setInt32", 4, acc, x, le); break; - case Type.U32: + case "u32": acc = ensure(acc, 4); view.setUint32(pos, x, le); pos += 4; break; - case Type.U32_ARRAY: + case "u32a": acc = setArray("setUint32", 4, acc, x, le); break; - case Type.F32: + case "f32": acc = ensure(acc, 4); view.setFloat32(pos, x, le); pos += 4; break; - case Type.F32_ARRAY: + case "f32a": acc = setArray("setFloat32", 4, acc, x, le); break; - case Type.F64: + case "f64": acc = ensure(acc, 8); view.setFloat64(pos, x, le); pos += 8; break; - case Type.F64_ARRAY: + case "f64a": acc = setArray("setFloat64", 8, acc, x, le); break; - case Type.STR: { + case "str": { let utf = [...utf8Encode(x)]; acc = ensure(acc, utf.length); acc.set(utf, pos); diff --git a/packages/transducers-fsm/CHANGELOG.md b/packages/transducers-fsm/CHANGELOG.md index 302be0ac9d..b2f381c88b 100644 --- a/packages/transducers-fsm/CHANGELOG.md +++ b/packages/transducers-fsm/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.41...@thi.ng/transducers-fsm@1.1.42) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.40...@thi.ng/transducers-fsm@1.1.41) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.39...@thi.ng/transducers-fsm@1.1.40) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.38...@thi.ng/transducers-fsm@1.1.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.37...@thi.ng/transducers-fsm@1.1.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.36...@thi.ng/transducers-fsm@1.1.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.35...@thi.ng/transducers-fsm@1.1.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/transducers-fsm - - - - - -## [1.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.34...@thi.ng/transducers-fsm@1.1.35) (2020-08-16) +## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.42...@thi.ng/transducers-fsm@1.1.43) (2020-12-22) **Note:** Version bump only for package @thi.ng/transducers-fsm diff --git a/packages/transducers-fsm/package.json b/packages/transducers-fsm/package.json index a6381ac488..322e028498 100644 --- a/packages/transducers-fsm/package.json +++ b/packages/transducers-fsm/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-fsm", - "version": "1.1.42", + "version": "1.1.43", "description": "Transducer-based Finite State Machine transformer", "module": "./index.js", "main": "./lib/index.js", @@ -39,18 +39,18 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/transducers-hdom/CHANGELOG.md b/packages/transducers-hdom/CHANGELOG.md index 11ff31c0a8..aa46aa2448 100644 --- a/packages/transducers-hdom/CHANGELOG.md +++ b/packages/transducers-hdom/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [2.0.74](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.73...@thi.ng/transducers-hdom@2.0.74) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.73](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.72...@thi.ng/transducers-hdom@2.0.73) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.72](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.71...@thi.ng/transducers-hdom@2.0.72) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.70...@thi.ng/transducers-hdom@2.0.71) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.69...@thi.ng/transducers-hdom@2.0.70) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.69](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.68...@thi.ng/transducers-hdom@2.0.69) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.68](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.67...@thi.ng/transducers-hdom@2.0.68) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/transducers-hdom - - - - - -## [2.0.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.66...@thi.ng/transducers-hdom@2.0.67) (2020-08-16) +## [2.0.75](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.74...@thi.ng/transducers-hdom@2.0.75) (2020-12-22) **Note:** Version bump only for package @thi.ng/transducers-hdom diff --git a/packages/transducers-hdom/package.json b/packages/transducers-hdom/package.json index 8585a63d5d..aec2488e49 100644 --- a/packages/transducers-hdom/package.json +++ b/packages/transducers-hdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-hdom", - "version": "2.0.74", + "version": "2.0.75", "description": "Transducer based UI updater for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/hdom": "^8.2.13", - "@thi.ng/hiccup": "^3.6.4", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/hdom": "^8.2.14", + "@thi.ng/hiccup": "^3.6.5", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/transducers-patch/CHANGELOG.md b/packages/transducers-patch/CHANGELOG.md index 52ff627d9a..5950dd97d7 100644 --- a/packages/transducers-patch/CHANGELOG.md +++ b/packages/transducers-patch/CHANGELOG.md @@ -3,65 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.32...@thi.ng/transducers-patch@0.1.33) (2020-12-07) +# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.33...@thi.ng/transducers-patch@0.2.0) (2020-12-22) -**Note:** Version bump only for package @thi.ng/transducers-patch +### Code Refactoring +* **transducers-patch:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum ([5086a33](https://github.com/thi-ng/umbrella/commit/5086a330698992fc65ce2e774fc495e0d2e3e58a)) +### BREAKING CHANGES -## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.31...@thi.ng/transducers-patch@0.1.32) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/transducers-patch - - - - - -## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.30...@thi.ng/transducers-patch@0.1.31) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/transducers-patch - - - - - -## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.29...@thi.ng/transducers-patch@0.1.30) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/transducers-patch - - - - - -## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.28...@thi.ng/transducers-patch@0.1.29) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/transducers-patch - - - - - -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.27...@thi.ng/transducers-patch@0.1.28) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/transducers-patch - - - - - -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.26...@thi.ng/transducers-patch@0.1.27) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/transducers-patch - - - - - -## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.25...@thi.ng/transducers-patch@0.1.26) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/transducers-patch +* **transducers-patch:** replace Patch enum w/ type alias, +update PatchArrayOp/PatchObjOp diff --git a/packages/transducers-patch/README.md b/packages/transducers-patch/README.md index c90a7bb98e..3b6643e267 100644 --- a/packages/transducers-patch/README.md +++ b/packages/transducers-patch/README.md @@ -48,7 +48,7 @@ yarn add @thi.ng/transducers-patch ``` -Package sizes (gzipped, pre-treeshake): ESM: 565 bytes / CJS: 611 bytes / UMD: 721 bytes +Package sizes (gzipped, pre-treeshake): ESM: 484 bytes / CJS: 539 bytes / UMD: 644 bytes ## Dependencies @@ -67,7 +67,7 @@ TODO ### Basic usage ```ts -import { Patch, patchArray, patchObj } from "@thi.ng/transducers-patch"; +import { patchArray, patchObj } from "@thi.ng/transducers-patch"; import { reduce, reductions } from "@thi.ng/transducers"; // flat array editing @@ -79,13 +79,13 @@ patchArray( // edits [ // set idx #0 to 42 - [Patch.SET, 0, 42], + ["set", 0, 42], // update idx #1 (here: times 10) - [Patch.UPDATE, 1, (x, n) => x * n, 10], + ["update", 1, (x, n) => x * n, 10], // insert values @ idx #2 - [Patch.INSERT, 2, [10, 11]], + ["insert", 2, [10, 11]], // delete (remove) idx #3 - [Patch.DELETE, 3] + ["delete", 3] ] ); // [ 42, 20, 10, 3 ] @@ -97,10 +97,10 @@ reduce( // original array (wrapped here only for `reductions`) [[1, 2, 3]], [ - [Patch.INSERT, 0, [10, 11]], - [Patch.UPDATE, 1, (x, n) => x * n, 10], - [Patch.DELETE, 3], - [Patch.SET, 2, 200] + ["insert", 0, [10, 11]], + ["update", 1, (x, n) => x * n, 10], + ["delete", 3], + ["set", 2, 200] ] ); // [ @@ -117,9 +117,9 @@ reduce( reductions(patchObj()), [{ x: 23 }], [ - [Patch.SET, ["a", "b"], 1], - [Patch.UPDATE, ["a", "b"], (x, n) => x + n, 10], - [Patch.DELETE, ["x"]] + ["set", ["a", "b"], 1], + ["update", ["a", "b"], (x, n) => x + n, 10], + ["delete", ["x"]] ] ), // [ @@ -151,13 +151,13 @@ export const state = stream().transform( // add debug subscription state.subscribe(trace("state: ")); -state.next([Patch.SET, "a.b", 1]); +state.next(["set", "a.b", 1]); // state: { x: 23, a: { b: 1 } } -state.next([Patch.UPDATE, ["a", "b"], (x, n)=> x + n, 10]); +state.next(["update", ["a", "b"], (x, n)=> x + n, 10]); // state: { x: 23, a: { b: 11 } } -state.next([Patch.DELETE, "x"]); +state.next(["delete", "x"]); // state: { a: { b: 11 } } ``` diff --git a/packages/transducers-patch/package.json b/packages/transducers-patch/package.json index f90a6997c5..cfa1b894d1 100644 --- a/packages/transducers-patch/package.json +++ b/packages/transducers-patch/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-patch", - "version": "0.1.33", + "version": "0.2.0", "description": "Reducers for patch-based, immutable-by-default array & object editing", "module": "./index.js", "main": "./lib/index.js", @@ -39,21 +39,21 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/paths": "^4.1.10", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/paths": "^4.1.11", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/transducers-patch/src/api.ts b/packages/transducers-patch/src/api.ts index 669586e949..0aacb56821 100644 --- a/packages/transducers-patch/src/api.ts +++ b/packages/transducers-patch/src/api.ts @@ -1,19 +1,14 @@ import type { FnO, Path } from "@thi.ng/api"; -export enum Patch { - SET, - INSERT, - UPDATE, - DELETE, -} +export type Patch = "set" | "insert" | "update" | "delete"; export type PatchArrayOp = - | [Patch.SET, number, T] - | [Patch.INSERT, number, T[]] - | [Patch.UPDATE, number, FnO, ...any[]] - | [Patch.DELETE, number]; + | ["set", number, T] + | ["insert", number, T[]] + | ["update", number, FnO, ...any[]] + | ["delete", number]; export type PatchObjOp = - | [Patch.SET, Path, any] - | [Patch.UPDATE, Path, FnO, ...any[]] - | [Patch.DELETE, Path]; + | ["set", Path, any] + | ["update", Path, FnO, ...any[]] + | ["delete", Path]; diff --git a/packages/transducers-patch/src/patch-array.ts b/packages/transducers-patch/src/patch-array.ts index 68c4207f97..cb46af8abe 100644 --- a/packages/transducers-patch/src/patch-array.ts +++ b/packages/transducers-patch/src/patch-array.ts @@ -1,7 +1,7 @@ -import { isNumber } from "@thi.ng/checks"; +import { isString } from "@thi.ng/checks"; import { illegalArgs, illegalArity } from "@thi.ng/errors"; import { reduce, reducer, Reducer } from "@thi.ng/transducers"; -import { Patch, PatchArrayOp } from "./api"; +import type { PatchArrayOp } from "./api"; /** * Reducer for {@link Patch} based array edits. Only numeric indices are @@ -64,16 +64,16 @@ export function patchArray(...args: any[]) { const edit = (acc: T[], x: PatchArrayOp | PatchArrayOp[]) => { switch (x[0]) { - case Patch.SET: + case "set": acc[x[1]] = x[2]; break; - case Patch.UPDATE: + case "update": acc[x[1]] = x[2](acc[x[1]], ...x.slice(3)); break; - case Patch.INSERT: + case "insert": acc.splice(x[1], 0, ...x[2]); break; - case Patch.DELETE: + case "delete": acc.splice(x[1], 1); break; default: @@ -88,7 +88,7 @@ export function patchArray(...args: any[]) { () => [], (acc, x) => { immutable && (acc = acc.slice()); - if (isNumber(x[0])) { + if (isString(x[0])) { acc = edit(acc, x); } else { for (let e of []>x) { diff --git a/packages/transducers-patch/src/patch-obj.ts b/packages/transducers-patch/src/patch-obj.ts index 43602a300c..b4454040b2 100644 --- a/packages/transducers-patch/src/patch-obj.ts +++ b/packages/transducers-patch/src/patch-obj.ts @@ -1,8 +1,8 @@ -import { isNumber } from "@thi.ng/checks"; +import { isString } from "@thi.ng/checks"; import { illegalArgs } from "@thi.ng/errors"; import { deleteInUnsafe, setInUnsafe, updateInUnsafe } from "@thi.ng/paths"; import { reduce, reducer, Reducer } from "@thi.ng/transducers"; -import { Patch, PatchObjOp } from "./api"; +import type { PatchObjOp } from "./api"; /** * Reducer for {@link Patch} based immutable object updates. @@ -18,11 +18,11 @@ export function patchObj(init: any, patches: Iterable): any; export function patchObj(init?: any, patches?: Iterable) { const edit = (acc: any, x: PatchObjOp) => { switch (x[0]) { - case Patch.SET: + case "set": return setInUnsafe(acc, x[1], x[2]); - case Patch.UPDATE: + case "update": return updateInUnsafe(acc, x[1], x[2], ...x.slice(3)); - case Patch.DELETE: + case "delete": return deleteInUnsafe(acc, x[1]); default: illegalArgs(`patch op: ${x}`); @@ -33,7 +33,7 @@ export function patchObj(init?: any, patches?: Iterable) { : reducer( () => {}, (acc, x) => { - if (isNumber(x[0])) { + if (isString(x[0])) { acc = edit(acc, x); } else { for (let e of x) { diff --git a/packages/transducers-patch/test/index.ts b/packages/transducers-patch/test/index.ts index d486ec3682..4a97c698ee 100644 --- a/packages/transducers-patch/test/index.ts +++ b/packages/transducers-patch/test/index.ts @@ -1,6 +1,6 @@ import { reduce, reductions } from "@thi.ng/transducers"; import * as assert from "assert"; -import { Patch, patchArray, patchObj } from "../src"; +import { patchArray, patchObj } from "../src"; describe("transducers-patch", () => { it("patchArray", () => { @@ -9,10 +9,10 @@ describe("transducers-patch", () => { reductions(patchArray()), [[1, 2, 3]], [ - [Patch.INSERT, 0, [10, 11]], - [Patch.UPDATE, 1, (x, n) => x * n, 10], - [Patch.DELETE, 3], - [Patch.SET, 2, 200], + ["insert", 0, [10, 11]], + ["update", 1, (x, n) => x * n, 10], + ["delete", 3], + ["set", 2, 200], ] ), [ @@ -31,9 +31,9 @@ describe("transducers-patch", () => { reductions(patchObj()), [{ x: 23 }], [ - [Patch.SET, ["a", "b"], 1], - [Patch.UPDATE, "a.b", (x, n) => x + n, 10], - [Patch.DELETE, "x"], + ["set", ["a", "b"], 1], + ["update", "a.b", (x, n) => x + n, 10], + ["delete", "x"], ] ), [ diff --git a/packages/transducers-patch/tpl.readme.md b/packages/transducers-patch/tpl.readme.md index 875cfe33f4..4baef9d04a 100644 --- a/packages/transducers-patch/tpl.readme.md +++ b/packages/transducers-patch/tpl.readme.md @@ -47,7 +47,7 @@ TODO ### Basic usage ```ts -import { Patch, patchArray, patchObj } from "@thi.ng/transducers-patch"; +import { patchArray, patchObj } from "@thi.ng/transducers-patch"; import { reduce, reductions } from "@thi.ng/transducers"; // flat array editing @@ -59,13 +59,13 @@ patchArray( // edits [ // set idx #0 to 42 - [Patch.SET, 0, 42], + ["set", 0, 42], // update idx #1 (here: times 10) - [Patch.UPDATE, 1, (x, n) => x * n, 10], + ["update", 1, (x, n) => x * n, 10], // insert values @ idx #2 - [Patch.INSERT, 2, [10, 11]], + ["insert", 2, [10, 11]], // delete (remove) idx #3 - [Patch.DELETE, 3] + ["delete", 3] ] ); // [ 42, 20, 10, 3 ] @@ -77,10 +77,10 @@ reduce( // original array (wrapped here only for `reductions`) [[1, 2, 3]], [ - [Patch.INSERT, 0, [10, 11]], - [Patch.UPDATE, 1, (x, n) => x * n, 10], - [Patch.DELETE, 3], - [Patch.SET, 2, 200] + ["insert", 0, [10, 11]], + ["update", 1, (x, n) => x * n, 10], + ["delete", 3], + ["set", 2, 200] ] ); // [ @@ -97,9 +97,9 @@ reduce( reductions(patchObj()), [{ x: 23 }], [ - [Patch.SET, ["a", "b"], 1], - [Patch.UPDATE, ["a", "b"], (x, n) => x + n, 10], - [Patch.DELETE, ["x"]] + ["set", ["a", "b"], 1], + ["update", ["a", "b"], (x, n) => x + n, 10], + ["delete", ["x"]] ] ), // [ @@ -131,13 +131,13 @@ export const state = stream().transform( // add debug subscription state.subscribe(trace("state: ")); -state.next([Patch.SET, "a.b", 1]); +state.next(["set", "a.b", 1]); // state: { x: 23, a: { b: 1 } } -state.next([Patch.UPDATE, ["a", "b"], (x, n)=> x + n, 10]); +state.next(["update", ["a", "b"], (x, n)=> x + n, 10]); // state: { x: 23, a: { b: 11 } } -state.next([Patch.DELETE, "x"]); +state.next(["delete", "x"]); // state: { a: { b: 11 } } ``` diff --git a/packages/transducers-stats/CHANGELOG.md b/packages/transducers-stats/CHANGELOG.md index 9a9d115449..c1f19d28a4 100644 --- a/packages/transducers-stats/CHANGELOG.md +++ b/packages/transducers-stats/CHANGELOG.md @@ -3,71 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.42...@thi.ng/transducers-stats@1.1.43) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.41...@thi.ng/transducers-stats@1.1.42) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.40...@thi.ng/transducers-stats@1.1.41) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.39...@thi.ng/transducers-stats@1.1.40) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.38...@thi.ng/transducers-stats@1.1.39) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.37...@thi.ng/transducers-stats@1.1.38) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.36...@thi.ng/transducers-stats@1.1.37) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.35...@thi.ng/transducers-stats@1.1.36) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/transducers-stats - - - - - -## [1.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.34...@thi.ng/transducers-stats@1.1.35) (2020-08-16) +## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.43...@thi.ng/transducers-stats@1.1.44) (2020-12-22) **Note:** Version bump only for package @thi.ng/transducers-stats diff --git a/packages/transducers-stats/package.json b/packages/transducers-stats/package.json index 71a476e041..cd4093ad57 100644 --- a/packages/transducers-stats/package.json +++ b/packages/transducers-stats/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-stats", - "version": "1.1.43", + "version": "1.1.44", "description": "Transducers for statistical / technical analysis", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.11", - "@thi.ng/dcons": "^2.3.3", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/checks": "^2.7.12", + "@thi.ng/dcons": "^2.3.4", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/transducers/CHANGELOG.md b/packages/transducers/CHANGELOG.md index 0a97d70e65..e0c6048437 100644 --- a/packages/transducers/CHANGELOG.md +++ b/packages/transducers/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [7.5.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.5.1...@thi.ng/transducers@7.5.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/transducers - - - - - -## [7.5.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.5.0...@thi.ng/transducers@7.5.1) (2020-11-26) +## [7.5.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.5.2...@thi.ng/transducers@7.5.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/transducers @@ -42,14 +34,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [7.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.3.0...@thi.ng/transducers@7.3.1) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/transducers - - - - - # [7.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.2.2...@thi.ng/transducers@7.3.0) (2020-08-28) @@ -67,22 +51,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [7.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.2.1...@thi.ng/transducers@7.2.2) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/transducers - - - - - -## [7.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.2.0...@thi.ng/transducers@7.2.1) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/transducers - - - - - # [7.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.1.6...@thi.ng/transducers@7.2.0) (2020-07-28) diff --git a/packages/transducers/README.md b/packages/transducers/README.md index 9c7f71970b..8a499f2b89 100644 --- a/packages/transducers/README.md +++ b/packages/transducers/README.md @@ -89,14 +89,14 @@ will return a reduced result of the given input iterable. ### 7.0.0 release -Thanks to a [PR](https://github.com/thi-ng/umbrella/pull/223) and -[related issue](https://github.com/thi-ng/umbrella/issues/186) by -@gavinpc-mindgrub, various transducers functions have been fixed for the -case when they're invoked with an _empty_ string as input iterable. -Furthermore, +Thanks to a [PR](https://github.com/thi-ng/umbrella/pull/223) and [related +issue](https://github.com/thi-ng/umbrella/issues/186) by +[@gavinpc-mindgrub](https://github.com/gavinpc-mindgrub), various transducers +functions have been fixed for the case when they're invoked with an _empty_ +string as input iterable. Furthermore, [`flatten()`](https://github.com/thi-ng/umbrella/blob/develop/packages/transducers/src/xform/flatten.ts) -is _always_ treating strings as atomic values now, whereas before -top-level strings would be split into individual characters. +is _always_ treating strings as atomic values now, whereas before top-level +strings would be split into individual characters. ### 6.0.0 release diff --git a/packages/transducers/package.json b/packages/transducers/package.json index 73d53ba697..975cd6a2a5 100644 --- a/packages/transducers/package.json +++ b/packages/transducers/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers", - "version": "7.5.2", + "version": "7.5.3", "description": "Lightweight transducer implementations for ES6 / TypeScript", "module": "./index.js", "main": "./lib/index.js", @@ -39,24 +39,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/compare": "^1.3.20", - "@thi.ng/compose": "^1.4.21", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/random": "^2.1.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/compare": "^1.3.21", + "@thi.ng/compose": "^1.4.22", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/random": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/transducers/tpl.readme.md b/packages/transducers/tpl.readme.md index 8f777b9edd..c26d456a23 100644 --- a/packages/transducers/tpl.readme.md +++ b/packages/transducers/tpl.readme.md @@ -35,14 +35,14 @@ ${status} ### 7.0.0 release -Thanks to a [PR](https://github.com/thi-ng/umbrella/pull/223) and -[related issue](https://github.com/thi-ng/umbrella/issues/186) by -@gavinpc-mindgrub, various transducers functions have been fixed for the -case when they're invoked with an _empty_ string as input iterable. -Furthermore, +Thanks to a [PR](https://github.com/thi-ng/umbrella/pull/223) and [related +issue](https://github.com/thi-ng/umbrella/issues/186) by +[@gavinpc-mindgrub](https://github.com/gavinpc-mindgrub), various transducers +functions have been fixed for the case when they're invoked with an _empty_ +string as input iterable. Furthermore, [`flatten()`](https://github.com/thi-ng/umbrella/blob/develop/packages/transducers/src/xform/flatten.ts) -is _always_ treating strings as atomic values now, whereas before -top-level strings would be split into individual characters. +is _always_ treating strings as atomic values now, whereas before top-level +strings would be split into individual characters. ### 6.0.0 release diff --git a/packages/unionstruct/CHANGELOG.md b/packages/unionstruct/CHANGELOG.md index 2c1c806323..e33819fbe2 100644 --- a/packages/unionstruct/CHANGELOG.md +++ b/packages/unionstruct/CHANGELOG.md @@ -3,55 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.26...@thi.ng/unionstruct@1.1.27) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/unionstruct - - - - - -## [1.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.25...@thi.ng/unionstruct@1.1.26) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/unionstruct - - - - - -## [1.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.24...@thi.ng/unionstruct@1.1.25) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/unionstruct - - - - - -## [1.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.23...@thi.ng/unionstruct@1.1.24) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/unionstruct - - - - - -## [1.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.22...@thi.ng/unionstruct@1.1.23) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/unionstruct - - - - - -## [1.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.21...@thi.ng/unionstruct@1.1.22) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/unionstruct - - - - - -## [1.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.20...@thi.ng/unionstruct@1.1.21) (2020-08-16) +## [1.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.27...@thi.ng/unionstruct@1.1.28) (2020-12-22) **Note:** Version bump only for package @thi.ng/unionstruct diff --git a/packages/unionstruct/package.json b/packages/unionstruct/package.json index a012daa445..c21002070b 100644 --- a/packages/unionstruct/package.json +++ b/packages/unionstruct/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/unionstruct", - "version": "1.1.27", + "version": "1.1.28", "description": "C-style struct, union and bitfield read/write views of ArrayBuffers", "module": "./index.js", "main": "./lib/index.js", @@ -39,14 +39,14 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "files": [ "*.js", diff --git a/packages/vclock/CHANGELOG.md b/packages/vclock/CHANGELOG.md index bb25d017b0..b67839de75 100644 --- a/packages/vclock/CHANGELOG.md +++ b/packages/vclock/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/vclock@0.1.0...@thi.ng/vclock@0.1.1) (2020-12-07) +## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/vclock@0.1.1...@thi.ng/vclock@0.1.2) (2020-12-22) **Note:** Version bump only for package @thi.ng/vclock diff --git a/packages/vclock/package.json b/packages/vclock/package.json index e8605d970f..95e7fe1a31 100644 --- a/packages/vclock/package.json +++ b/packages/vclock/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vclock", - "version": "0.1.1", + "version": "0.1.2", "description": "Vector clock functions for synchronizing distributed states & processes", "module": "./index.js", "main": "./lib/index.js", @@ -39,17 +39,17 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4" + "@thi.ng/api": "^6.13.5" }, "files": [ "*.js", diff --git a/packages/vector-pools/CHANGELOG.md b/packages/vector-pools/CHANGELOG.md index fc84e1377f..0b155da0e6 100644 --- a/packages/vector-pools/CHANGELOG.md +++ b/packages/vector-pools/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.0.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.50...@thi.ng/vector-pools@1.0.51) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.49...@thi.ng/vector-pools@1.0.50) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.48...@thi.ng/vector-pools@1.0.49) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.47...@thi.ng/vector-pools@1.0.48) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.46...@thi.ng/vector-pools@1.0.47) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.45...@thi.ng/vector-pools@1.0.46) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.44...@thi.ng/vector-pools@1.0.45) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.43...@thi.ng/vector-pools@1.0.44) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.42...@thi.ng/vector-pools@1.0.43) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.41...@thi.ng/vector-pools@1.0.42) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/vector-pools - - - - - -## [1.0.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.40...@thi.ng/vector-pools@1.0.41) (2020-08-16) +## [1.0.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.51...@thi.ng/vector-pools@1.0.52) (2020-12-22) **Note:** Version bump only for package @thi.ng/vector-pools diff --git a/packages/vector-pools/package.json b/packages/vector-pools/package.json index 66518227aa..9be1c719f4 100644 --- a/packages/vector-pools/package.json +++ b/packages/vector-pools/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vector-pools", - "version": "1.0.51", + "version": "1.0.52", "description": "Data structures for managing & working with strided, memory mapped vectors", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/malloc": "^4.2.3", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/malloc": "^4.2.4", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/vectors/CHANGELOG.md b/packages/vectors/CHANGELOG.md index 752205bfae..0090fd5bbc 100644 --- a/packages/vectors/CHANGELOG.md +++ b/packages/vectors/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [4.8.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.8.1...@thi.ng/vectors@4.8.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - -## [4.8.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.8.0...@thi.ng/vectors@4.8.1) (2020-11-26) +## [4.8.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.8.2...@thi.ng/vectors@4.8.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/vectors @@ -42,54 +34,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [4.6.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.6.5...@thi.ng/vectors@4.6.6) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - -## [4.6.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.6.4...@thi.ng/vectors@4.6.5) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - -## [4.6.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.6.3...@thi.ng/vectors@4.6.4) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - -## [4.6.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.6.2...@thi.ng/vectors@4.6.3) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - -## [4.6.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.6.1...@thi.ng/vectors@4.6.2) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - -## [4.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.6.0...@thi.ng/vectors@4.6.1) (2020-08-16) - -**Note:** Version bump only for package @thi.ng/vectors - - - - - # [4.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.5.6...@thi.ng/vectors@4.6.0) (2020-08-10) diff --git a/packages/vectors/package.json b/packages/vectors/package.json index e2b66fec4a..6e397a17b4 100644 --- a/packages/vectors/package.json +++ b/packages/vectors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vectors", - "version": "4.8.2", + "version": "4.8.3", "description": "Optimized 2d/3d/4d and arbitrary length vector operations", "module": "./index.js", "main": "./lib/index.js", @@ -39,25 +39,25 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/binary": "^2.0.19", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/math": "^2.2.2", - "@thi.ng/memoize": "^2.1.6", - "@thi.ng/random": "^2.1.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/binary": "^2.0.20", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/math": "^3.0.0", + "@thi.ng/memoize": "^2.1.7", + "@thi.ng/random": "^2.1.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/viz/CHANGELOG.md b/packages/viz/CHANGELOG.md index fabe17bdc0..8c28badacf 100644 --- a/packages/viz/CHANGELOG.md +++ b/packages/viz/CHANGELOG.md @@ -3,15 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.1...@thi.ng/viz@0.2.2) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/viz - - - - - -## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.0...@thi.ng/viz@0.2.1) (2020-11-26) +## [0.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.2...@thi.ng/viz@0.2.3) (2020-12-22) **Note:** Version bump only for package @thi.ng/viz @@ -31,22 +23,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.1.1...@thi.ng/viz@0.1.2) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/viz - - - - - -## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.1.0...@thi.ng/viz@0.1.1) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/viz - - - - - # 0.1.0 (2020-09-13) diff --git a/packages/viz/package.json b/packages/viz/package.json index 5c76891a1a..db4303b331 100644 --- a/packages/viz/package.json +++ b/packages/viz/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/viz", - "version": "0.2.2", + "version": "0.2.3", "description": "Declarative, functional & multi-format data visualization toolkit based around @thi.ng/hiccup", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "build:check": "tsc --isolatedModules --noEmit", "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", - "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib plot", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib axis plot", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", @@ -45,24 +45,24 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@thi.ng/date": "^0.2.3", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@thi.ng/date": "^0.2.4", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/math": "^2.2.2", - "@thi.ng/strings": "^1.11.2", - "@thi.ng/transducers": "^7.5.2" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/math": "^3.0.0", + "@thi.ng/strings": "^1.11.3", + "@thi.ng/transducers": "^7.5.3" }, "files": [ "*.js", diff --git a/packages/webgl-msdf/CHANGELOG.md b/packages/webgl-msdf/CHANGELOG.md index 5c3ed944d4..b6f19f9fad 100644 --- a/packages/webgl-msdf/CHANGELOG.md +++ b/packages/webgl-msdf/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.64...@thi.ng/webgl-msdf@0.1.65) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.63...@thi.ng/webgl-msdf@0.1.64) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.62...@thi.ng/webgl-msdf@0.1.63) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.61...@thi.ng/webgl-msdf@0.1.62) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.60...@thi.ng/webgl-msdf@0.1.61) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.59...@thi.ng/webgl-msdf@0.1.60) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.58...@thi.ng/webgl-msdf@0.1.59) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.58](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.57...@thi.ng/webgl-msdf@0.1.58) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.56...@thi.ng/webgl-msdf@0.1.57) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.55...@thi.ng/webgl-msdf@0.1.56) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/webgl-msdf - - - - - -## [0.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.54...@thi.ng/webgl-msdf@0.1.55) (2020-08-16) +## [0.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.65...@thi.ng/webgl-msdf@0.1.66) (2020-12-22) **Note:** Version bump only for package @thi.ng/webgl-msdf diff --git a/packages/webgl-msdf/package.json b/packages/webgl-msdf/package.json index 4a852276b1..57a4e28970 100644 --- a/packages/webgl-msdf/package.json +++ b/packages/webgl-msdf/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/webgl-msdf", - "version": "0.1.65", + "version": "0.1.66", "description": "Multi-channel SDF font rendering & basic text layout for WebGL", "module": "./index.js", "main": "./lib/index.js", @@ -39,22 +39,22 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/shader-ast": "^0.7.6", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vector-pools": "^1.0.51", - "@thi.ng/vectors": "^4.8.2", - "@thi.ng/webgl": "^3.3.8" + "@thi.ng/api": "^6.13.5", + "@thi.ng/shader-ast": "^0.7.7", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vector-pools": "^1.0.52", + "@thi.ng/vectors": "^4.8.3", + "@thi.ng/webgl": "^3.3.9" }, "files": [ "*.js", diff --git a/packages/webgl-shadertoy/CHANGELOG.md b/packages/webgl-shadertoy/CHANGELOG.md index 66b0e51bdd..30b3819f88 100644 --- a/packages/webgl-shadertoy/CHANGELOG.md +++ b/packages/webgl-shadertoy/CHANGELOG.md @@ -3,87 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.2.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.51...@thi.ng/webgl-shadertoy@0.2.52) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.50...@thi.ng/webgl-shadertoy@0.2.51) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.49...@thi.ng/webgl-shadertoy@0.2.50) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.48...@thi.ng/webgl-shadertoy@0.2.49) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.47...@thi.ng/webgl-shadertoy@0.2.48) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.46...@thi.ng/webgl-shadertoy@0.2.47) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.45...@thi.ng/webgl-shadertoy@0.2.46) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.44...@thi.ng/webgl-shadertoy@0.2.45) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.43...@thi.ng/webgl-shadertoy@0.2.44) (2020-08-20) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.42...@thi.ng/webgl-shadertoy@0.2.43) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/webgl-shadertoy - - - - - -## [0.2.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.41...@thi.ng/webgl-shadertoy@0.2.42) (2020-08-16) +## [0.2.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.52...@thi.ng/webgl-shadertoy@0.2.53) (2020-12-22) **Note:** Version bump only for package @thi.ng/webgl-shadertoy diff --git a/packages/webgl-shadertoy/package.json b/packages/webgl-shadertoy/package.json index 518e58289c..8eafaa07a5 100644 --- a/packages/webgl-shadertoy/package.json +++ b/packages/webgl-shadertoy/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/webgl-shadertoy", - "version": "0.2.52", + "version": "0.2.53", "description": "Basic WebGL scaffolding for running interactive fragment shaders via @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/shader-ast": "^0.7.6", - "@thi.ng/shader-ast-glsl": "^0.2.14", - "@thi.ng/webgl": "^3.3.8" + "@thi.ng/api": "^6.13.5", + "@thi.ng/shader-ast": "^0.7.7", + "@thi.ng/shader-ast-glsl": "^0.2.15", + "@thi.ng/webgl": "^3.3.9" }, "files": [ "*.js", diff --git a/packages/webgl/CHANGELOG.md b/packages/webgl/CHANGELOG.md index f219269f7f..de45d727bb 100644 --- a/packages/webgl/CHANGELOG.md +++ b/packages/webgl/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.7...@thi.ng/webgl@3.3.8) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.6...@thi.ng/webgl@3.3.7) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.5...@thi.ng/webgl@3.3.6) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.4...@thi.ng/webgl@3.3.5) (2020-10-19) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.3...@thi.ng/webgl@3.3.4) (2020-10-03) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.2...@thi.ng/webgl@3.3.3) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.1...@thi.ng/webgl@3.3.2) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - -## [3.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.0...@thi.ng/webgl@3.3.1) (2020-08-28) +## [3.3.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.8...@thi.ng/webgl@3.3.9) (2020-12-22) **Note:** Version bump only for package @thi.ng/webgl @@ -78,14 +22,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline -## [3.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.2.0...@thi.ng/webgl@3.2.1) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/webgl - - - - - # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.1.1...@thi.ng/webgl@3.2.0) (2020-08-16) diff --git a/packages/webgl/package.json b/packages/webgl/package.json index ff188a614d..16d7df95a8 100644 --- a/packages/webgl/package.json +++ b/packages/webgl/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/webgl", - "version": "3.3.8", + "version": "3.3.9", "description": "WebGL & GLSL abstraction layer", "module": "./index.js", "main": "./lib/index.js", @@ -39,31 +39,31 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/adapt-dpi": "^1.0.11", - "@thi.ng/api": "^6.13.4", - "@thi.ng/associative": "^5.0.11", - "@thi.ng/checks": "^2.7.11", - "@thi.ng/equiv": "^1.0.33", - "@thi.ng/errors": "^1.2.24", - "@thi.ng/matrices": "^0.6.37", - "@thi.ng/memoize": "^2.1.6", - "@thi.ng/pixel": "^0.4.9", - "@thi.ng/shader-ast": "^0.7.6", - "@thi.ng/shader-ast-glsl": "^0.2.14", - "@thi.ng/shader-ast-stdlib": "^0.5.6", - "@thi.ng/transducers": "^7.5.2", - "@thi.ng/vector-pools": "^1.0.51", - "@thi.ng/vectors": "^4.8.2" + "@thi.ng/adapt-dpi": "^1.0.12", + "@thi.ng/api": "^6.13.5", + "@thi.ng/associative": "^5.0.12", + "@thi.ng/checks": "^2.7.12", + "@thi.ng/equiv": "^1.0.34", + "@thi.ng/errors": "^1.2.25", + "@thi.ng/matrices": "^0.6.38", + "@thi.ng/memoize": "^2.1.7", + "@thi.ng/pixel": "^0.4.10", + "@thi.ng/shader-ast": "^0.7.7", + "@thi.ng/shader-ast-glsl": "^0.2.15", + "@thi.ng/shader-ast-stdlib": "^0.5.7", + "@thi.ng/transducers": "^7.5.3", + "@thi.ng/vector-pools": "^1.0.52", + "@thi.ng/vectors": "^4.8.3" }, "files": [ "*.js", diff --git a/packages/zipper/CHANGELOG.md b/packages/zipper/CHANGELOG.md index 0c6de3d323..ac9c8fffb6 100644 --- a/packages/zipper/CHANGELOG.md +++ b/packages/zipper/CHANGELOG.md @@ -3,63 +3,7 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [0.1.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.28...@thi.ng/zipper@0.1.29) (2020-12-07) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.27...@thi.ng/zipper@0.1.28) (2020-11-26) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.26...@thi.ng/zipper@0.1.27) (2020-11-24) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.25...@thi.ng/zipper@0.1.26) (2020-09-22) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.24...@thi.ng/zipper@0.1.25) (2020-09-13) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.23...@thi.ng/zipper@0.1.24) (2020-08-28) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.22...@thi.ng/zipper@0.1.23) (2020-08-17) - -**Note:** Version bump only for package @thi.ng/zipper - - - - - -## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.21...@thi.ng/zipper@0.1.22) (2020-08-16) +## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.29...@thi.ng/zipper@0.1.30) (2020-12-22) **Note:** Version bump only for package @thi.ng/zipper diff --git a/packages/zipper/package.json b/packages/zipper/package.json index cc26d3d4b9..96fd692bd8 100644 --- a/packages/zipper/package.json +++ b/packages/zipper/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/zipper", - "version": "0.1.29", + "version": "0.1.30", "description": "Functional tree editing, manipulation & navigation", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.12.0", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", + "ts-node": "^9.1.1", "typedoc": "^0.19.2", - "typescript": "^4.1.2" + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.4", - "@thi.ng/arrays": "^0.8.4", - "@thi.ng/checks": "^2.7.11" + "@thi.ng/api": "^6.13.5", + "@thi.ng/arrays": "^0.8.5", + "@thi.ng/checks": "^2.7.12" }, "files": [ "*.js", diff --git a/scripts/build-examples b/scripts/build-examples index 2a0a9e3b58..a733c63c49 100755 --- a/scripts/build-examples +++ b/scripts/build-examples @@ -1,4 +1,5 @@ #!/bin/sh +BUILD=build if [ $# = 1 ]; then examples="examples/$1" @@ -8,10 +9,11 @@ fi for e in $examples; do if [ -d "$e" ] && [ ! -e "$e/.skip" ]; then + ebuild="$e/$BUILD" echo "------------------------------" echo "building $e..." echo "------------------------------" - rm -rf "$e"/out "$e"/.cache + rm -rf "$ebuild" "$e/.cache" if [ ! -r "$e"/package.json ]; then continue fi @@ -20,20 +22,21 @@ for e in $examples; do fi if grep --quiet build:webpack "$e"/package.json; then (cd "$e" && yarn build:webpack) - cp "$e"/index.html "$e"/out/index.html - js=$(basename $(ls "$e"/out/bundle*.js)) - sed -i '' -E 's, + EOF @@ -127,30 +198,3 @@ Please refer to the [example build instructions](https://github.com/thi-ng/umbre © 2020 $AUTHOR // Apache Software License 2.0 EOF - -echo "writing webpack.config.js..." -cat << EOF > "$MODULE"/webpack.config.js -module.exports = { - entry: "./src/index.ts", - output: { - filename: "bundle.[hash].js", - path: __dirname + "/out" - }, - resolve: { - extensions: [".ts", ".js"] - }, - module: { - rules: [ - { - test: /\.(png|jpg|gif)$/, - loader: "file-loader", - options: { name: "[path][hash].[ext]" } - }, - { test: /\.ts$/, use: "ts-loader" } - ] - }, - node: { - process: false - } -}; -EOF diff --git a/scripts/make-module b/scripts/make-module index 42f76b43b7..5c140a6724 100755 --- a/scripts/make-module +++ b/scripts/make-module @@ -78,23 +78,23 @@ cat << EOF > "$MODULE"/package.json "cover": "nyc mocha test && nyc report --reporter=lcov", "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", - "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", + "doc": "node_modules/.bin/typedoc --mode modules --out doc --theme ../../tools/doc/typedoc-theme src", "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-extractor": "^7.9.11", - "@types/mocha": "^8.0.3", - "@types/node": "^14.6.1", - "mocha": "^8.1.2", + "@microsoft/api-extractor": "^7.12.1", + "@types/mocha": "^8.2.0", + "@types/node": "^14.14.14", + "mocha": "^8.2.1", "nyc": "^15.1.0", - "ts-node": "^9.0.0", - "typedoc": "^0.18.0", - "typescript": "^4.0.2" + "ts-node": "^9.1.1", + "typedoc": "^0.19.2", + "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/api": "^6.13.3" + "@thi.ng/api": "^6.13.4" }, "files": [ "*.js", diff --git a/yarn.lock b/yarn.lock index e422d878ac..eb45aca0d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1752,37 +1752,37 @@ npmlog "^4.1.2" write-file-atomic "^2.3.0" -"@microsoft/api-documenter@^7.11.3": - version "7.11.3" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.11.3.tgz#35ac2eaac9ab5cd31ab53b858937863601bcbc7c" - integrity sha512-tXdd+zWqufKDbbocIgMRB1AyRj0HiAI+gTIvCyAtJX9KOGFYreTt2kFPzFssPBMeNycq58zXl0fXRr+vA7WnNA== - dependencies: - "@microsoft/api-extractor-model" "7.12.0" - "@microsoft/tsdoc" "0.12.19" - "@rushstack/node-core-library" "3.35.1" - "@rushstack/ts-command-line" "4.7.7" +"@microsoft/api-documenter@^7.12.1": + version "7.12.1" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.12.1.tgz#97a4eee87cbe775f363f7a1f46c57c57ae0bf6fd" + integrity sha512-biX5s/UX6KbqBW5GHEykJ0LM3sfb177lH/2nMp4C1pytqRKz4mmPkqWrHpvx7gpzOyDGj2qvzipDH5xK6LIJVg== + dependencies: + "@microsoft/api-extractor-model" "7.12.1" + "@microsoft/tsdoc" "0.12.24" + "@rushstack/node-core-library" "3.35.2" + "@rushstack/ts-command-line" "4.7.8" colors "~1.2.1" js-yaml "~3.13.1" resolve "~1.17.0" -"@microsoft/api-extractor-model@7.12.0": - version "7.12.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.12.0.tgz#ad5589c166b31dad3c8669b46b050f8bc4056f1b" - integrity sha512-TxoAbL/lauS3k/brBWVsiQTnyHBwHrAGJhTuiD0tWS/eu4dLNULchcSQfcOaFS91OgDEz4lMMbClgChFuo+53Q== +"@microsoft/api-extractor-model@7.12.1": + version "7.12.1" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.12.1.tgz#1f10915c434048da34e1c07845ba2623d5f23f66" + integrity sha512-Hw+kYfUb1gt6xPWGFW8APtLVWeNEWz4JE6PbLkSHw/j+G1hAaStzgxhBx3GOAWM/G0SCDGVJOpd5YheVOyu/KQ== dependencies: - "@microsoft/tsdoc" "0.12.19" - "@rushstack/node-core-library" "3.35.1" + "@microsoft/tsdoc" "0.12.24" + "@rushstack/node-core-library" "3.35.2" -"@microsoft/api-extractor@^7.12.0": - version "7.12.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.12.0.tgz#3ab602cebaa18d357afc67471abba484d8dc20d4" - integrity sha512-YDd7AUkIayPLooMasDyV4vle1TLUQhFp2v/tGdRU+WAVbnyVUDXXa20WEfbPEZ4QVlgN+77EX6f2K6GyKd713A== - dependencies: - "@microsoft/api-extractor-model" "7.12.0" - "@microsoft/tsdoc" "0.12.19" - "@rushstack/node-core-library" "3.35.1" - "@rushstack/rig-package" "0.2.8" - "@rushstack/ts-command-line" "4.7.7" +"@microsoft/api-extractor@^7.12.1": + version "7.12.1" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.12.1.tgz#4204be6c9f845d7d1796b6d51c58bcb25e7267e9" + integrity sha512-lleLrKkqiRvOQeoRMSHQY0wl/j9SxRVd9+Btyh/WWw0kHNy7nAKyzGmejvlz2XTn13H0elJWV6C3dxhaQy4mtA== + dependencies: + "@microsoft/api-extractor-model" "7.12.1" + "@microsoft/tsdoc" "0.12.24" + "@rushstack/node-core-library" "3.35.2" + "@rushstack/rig-package" "0.2.9" + "@rushstack/ts-command-line" "4.7.8" colors "~1.2.1" lodash "~4.17.15" resolve "~1.17.0" @@ -1790,10 +1790,10 @@ source-map "~0.6.1" typescript "~4.0.5" -"@microsoft/tsdoc@0.12.19": - version "0.12.19" - resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.19.tgz#2173ccb92469aaf62031fa9499d21b16d07f9b57" - integrity sha512-IpgPxHrNxZiMNUSXqR1l/gePKPkfAmIKoDRP9hp7OwjU29ZR8WCJsOJ8iBKgw0Qk+pFwR+8Y1cy8ImLY6e9m4A== +"@microsoft/tsdoc@0.12.24": + version "0.12.24" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.24.tgz#30728e34ebc90351dd3aff4e18d038eed2c3e098" + integrity sha512-Mfmij13RUTmHEMi9vRUhMXD7rnGR2VvxeNYtaGtaJ4redwwjT4UXYJ+nzmVJF7hhd4pn/Fx5sncDKxMVFJSWPg== "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" @@ -1989,10 +1989,10 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@rushstack/node-core-library@3.35.1": - version "3.35.1" - resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.35.1.tgz#f228f010c6ec139c2f363a49dde8faed9a7167fe" - integrity sha512-ZwnXp2loZyVUgrZ+fEKKF/EHl0ikcy6SCsd34ewYXoEAs0XWIy2VS9bemrfaFtd2VzJ/G/ZbP3xHkqRnUPKJ4Q== +"@rushstack/node-core-library@3.35.2": + version "3.35.2" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.35.2.tgz#21ca879b5051a5ebafa952fafcd648a07a142bcb" + integrity sha512-SPd0uG7mwsf3E30np9afCUhtaM1SBpibrbxOXPz82KWV6SQiPUtXeQfhXq9mSnGxOb3WLWoSDe7AFxQNex3+kQ== dependencies: "@types/node" "10.17.13" colors "~1.2.1" @@ -2004,19 +2004,19 @@ timsort "~0.3.0" z-schema "~3.18.3" -"@rushstack/rig-package@0.2.8": - version "0.2.8" - resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.2.8.tgz#9ac26f56b3917bfa36f91bfe037e2c3a53977a6c" - integrity sha512-Ltjeg1a5Sx7XTW9oBxmcfhHseBLnH7I/8d6tAtjx5s0r7F6WmNVJdxVmt86qNfXcFRsiGNrzLqjMwlcX3GyldQ== +"@rushstack/rig-package@0.2.9": + version "0.2.9" + resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.2.9.tgz#57ef94e7f7703b18e275b603d3f59a1a16580716" + integrity sha512-4tqsZ/m+BjeNAGeAJYzPF53CT96TsAYeZ3Pq3T4tb1pGGM3d3TWfkmALZdKNhpRlAeShKUrb/o/f/0sAuK/1VQ== dependencies: "@types/node" "10.17.13" resolve "~1.17.0" strip-json-comments "~3.1.1" -"@rushstack/ts-command-line@4.7.7": - version "4.7.7" - resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.7.7.tgz#3a983de1895a931e879ecdc8037251af00c4e78b" - integrity sha512-COSDys0WTVCORKam2hsTL32As4fHAf1RqC6FKS98hgR0Z90nh1JX8fGNkvSdxaZ6dOuNTJj3txh+SpWoHJoZJA== +"@rushstack/ts-command-line@4.7.8": + version "4.7.8" + resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.7.8.tgz#3aa77cf544c571be3206fc2bcba20c7a096ed254" + integrity sha512-8ghIWhkph7NnLCMDJtthpsb7TMOsVGXVDvmxjE/CeklTqjbbUFBjGXizJfpbEkRQTELuZQ2+vGn7sGwIWKN2uA== dependencies: "@types/argparse" "1.0.38" argparse "~1.0.9" @@ -2052,10 +2052,10 @@ execa "^4.0.3" npm-run-path "^4.0.1" -"@snowpack/plugin-webpack@^2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@snowpack/plugin-webpack/-/plugin-webpack-2.1.2.tgz#857a1a1ea9bcf76b9c4c5cb4f0dd372938a78e4d" - integrity sha512-i9Ny6lXkVCI5dwyKLuxAma2msUNlDOLZK2HqnAJmFzjwuoCKBx4m9dxfZVPHUTLbvENoW1JFUxGQ+8P3lkw89Q== +"@snowpack/plugin-webpack@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@snowpack/plugin-webpack/-/plugin-webpack-2.2.0.tgz#75037e3e9f9f42d5b4690a6ef3fd15ad47ec129d" + integrity sha512-+iajIe0Vrcwm0BuN2Lu5URWMMxKc9kRsHoikr36l0I0f3/TUqXrqV5uJdC/bIK6eaodzQnk8fvV6ecryzviGig== dependencies: "@babel/core" "^7.0.0" "@babel/preset-env" "^7.12.1" @@ -2094,7 +2094,7 @@ "@types/node" "*" "@types/responselike" "*" -"@types/cheerio@^0.22.22": +"@types/cheerio@0.22.22": version "0.22.22" resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.22.tgz#ae71cf4ca59b8bbaf34c99af7a5d6c8894988f5f" integrity sha512-05DYX4zU96IBfZFY+t3Mh88nlwSMtmmzSYaQkKN48T495VV1dkHSah6qYyDTN5ngaS0i0VonH37m+RuzSM0YiA== @@ -2106,7 +2106,23 @@ resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== -"@types/estree@*": +"@types/eslint-scope@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.0.tgz#4792816e31119ebd506902a482caec4951fabd86" + integrity sha512-O/ql2+rrCUe2W2rs7wMR+GqPRcgB6UiqN5RhrR5xruFlY7l9YLMn0ZkDzjoHLeiFkR8MCQZVudUuuvQ2BLC9Qw== + dependencies: + "@types/eslint" "*" + "@types/estree" "*" + +"@types/eslint@*": + version "7.2.6" + resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.2.6.tgz#5e9aff555a975596c03a98b59ecd103decc70c3c" + integrity sha512-I+1sYH+NPQ3/tVqCeUSBwTE/0heyvtXqpIopUUArlBm0Kpocb8FbMa3AZ/ASKIFpN3rnEx932TTXDbt9OXsNDw== + dependencies: + "@types/estree" "*" + "@types/json-schema" "*" + +"@types/estree@*", "@types/estree@^0.0.45": version "0.0.45" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.45.tgz#e9387572998e5ecdac221950dab3e8c3b16af884" integrity sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g== @@ -2129,7 +2145,7 @@ resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz#9140779736aa2655635ee756e2467d787cfe8a2a" integrity sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A== -"@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6": +"@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6": version "7.0.6" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== @@ -2151,12 +2167,12 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6" integrity sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY= -"@types/mocha@^8.0.3": - version "8.0.3" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-8.0.3.tgz#51b21b6acb6d1b923bbdc7725c38f9f455166402" - integrity sha512-vyxR57nv8NfcU0GZu8EUXZLTbCMupIUwy95LJ6lllN+JRPG25CwMHoB1q5xKh8YKhQnHYRAn4yW2yuHbf/5xgg== +"@types/mocha@^8.2.0": + version "8.2.0" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-8.2.0.tgz#3eb56d13a1de1d347ecb1957c6860c911704bc44" + integrity sha512-/Sge3BymXo4lKc31C8OINJgXLaw+7vL1/L1pGiBNpGrBiT8FQiaFpSYV0uhTaG4y78vcMBTMFsWaHDvuD+xGzQ== -"@types/node@*", "@types/node@>= 8", "@types/node@^14.6.1": +"@types/node@*", "@types/node@>= 8": version "14.6.1" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.6.1.tgz#fdf6f6c6c73d3d8eee9c98a9a0485bc524b048d7" integrity sha512-HnYlg/BRF8uC1FyKRFZwRaCPTPYKa+6I8QiUZFLredaGOou481cgFS4wKRFyKvQtX8xudqkSdBczJHIYSQYKrQ== @@ -2166,6 +2182,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.13.tgz#ccebcdb990bd6139cd16e84c39dc2fb1023ca90c" integrity sha512-pMCcqU2zT4TjqYFrWtYHKal7Sl30Ims6ulZ4UFXxI4xbtQqK/qqKwkDoBFCfooRqqmRu9vY3xaJRwxSh673aYg== +"@types/node@^14.14.14": + version "14.14.14" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.14.tgz#f7fd5f3cc8521301119f63910f0fb965c7d761ae" + integrity sha512-UHnOPWVWV1z+VV8k6L1HhG7UbGBgIdghqF3l9Ny9ApPghbjICXkUJSd/b9gOgQfjM1r+37cipdw/HJ3F6ICEnQ== + "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -2195,6 +2216,11 @@ dependencies: "@types/node" "*" +"@types/snowpack-env@^2.3.3": + version "2.3.3" + resolved "https://registry.yarnpkg.com/@types/snowpack-env/-/snowpack-env-2.3.3.tgz#d2dfb1fb8557aa8bb517606d5dfa249cc861c3ff" + integrity sha512-riJuu2fR3qhBfpWJtqQtNwYJFvquiXfqdprXvZjSNmscnZbIVyHoM49ZVEM1bciKM1mWOCdjXymOYHyGh2WLtg== + "@ungap/promise-all-settled@1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" @@ -2209,21 +2235,45 @@ "@webassemblyjs/helper-wasm-bytecode" "1.9.0" "@webassemblyjs/wast-parser" "1.9.0" +"@webassemblyjs/ast@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.1.tgz#76c6937716d68bf1484c15139f5ed30b9abc8bb4" + integrity sha512-uMu1nCWn2Wxyy126LlGqRVlhdTOsO/bsBRI4dNq3+6SiSuRKRQX6ejjKgh82LoGAPSq72lDUiQ4FWVaf0PecYw== + dependencies: + "@webassemblyjs/helper-module-context" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/wast-parser" "1.9.1" + "@webassemblyjs/floating-point-hex-parser@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz#3c3d3b271bddfc84deb00f71344438311d52ffb4" integrity sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA== +"@webassemblyjs/floating-point-hex-parser@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.1.tgz#9eb0ff90a1cdeef51f36ba533ed9f06b5cdadd09" + integrity sha512-5VEKu024RySmLKTTBl9q1eO/2K5jk9ZS+2HXDBLA9s9p5IjkaXxWiDb/+b7wSQp6FRdLaH1IVGIfOex58Na2pg== + "@webassemblyjs/helper-api-error@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz#203f676e333b96c9da2eeab3ccef33c45928b6a2" integrity sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw== +"@webassemblyjs/helper-api-error@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.1.tgz#ad89015c4246cd7f5ed0556700237f8b9c2c752f" + integrity sha512-y1lGmfm38djrScwpeL37rRR9f1D6sM8RhMpvM7CYLzOlHVboouZokXK/G88BpzW0NQBSvCCOnW5BFhten4FPfA== + "@webassemblyjs/helper-buffer@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.0.tgz#a1442d269c5feb23fcbc9ef759dac3547f29de00" integrity sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA== +"@webassemblyjs/helper-buffer@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.9.1.tgz#186e67ac25f9546ea7939759413987f157524133" + integrity sha512-uS6VSgieHbk/m4GSkMU5cqe/5TekdCzQso4revCIEQ3vpGZgqSSExi4jWpTWwDpAHOIAb1Jfrs0gUB9AA4n71w== + "@webassemblyjs/helper-code-frame@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.0.tgz#647f8892cd2043a82ac0c8c5e75c36f1d9159f27" @@ -2231,11 +2281,23 @@ dependencies: "@webassemblyjs/wast-printer" "1.9.0" +"@webassemblyjs/helper-code-frame@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.9.1.tgz#aab177b7cc87a318a8f8664ad68e2c3828ebc42b" + integrity sha512-ZQ2ZT6Evk4DPIfD+92AraGYaFIqGm4U20e7FpXwl7WUo2Pn1mZ1v8VGH8i+Y++IQpxPbQo/UyG0Khs7eInskzA== + dependencies: + "@webassemblyjs/wast-printer" "1.9.1" + "@webassemblyjs/helper-fsm@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.0.tgz#c05256b71244214671f4b08ec108ad63b70eddb8" integrity sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw== +"@webassemblyjs/helper-fsm@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.9.1.tgz#527e91628e84d13d3573884b3dc4c53a81dcb911" + integrity sha512-J32HGpveEqqcKFS0YbgicB0zAlpfIxJa5MjxDxhu3i5ltPcVfY5EPvKQ1suRguFPehxiUs+/hfkwPEXom/l0lw== + "@webassemblyjs/helper-module-context@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.0.tgz#25d8884b76839871a08a6c6f806c3979ef712f07" @@ -2243,11 +2305,23 @@ dependencies: "@webassemblyjs/ast" "1.9.0" +"@webassemblyjs/helper-module-context@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.9.1.tgz#778670b3d471f7cf093d1e7c0dde431b54310e16" + integrity sha512-IEH2cMmEQKt7fqelLWB5e/cMdZXf2rST1JIrzWmf4XBt3QTxGdnnLvV4DYoN8pJjOx0VYXsWg+yF16MmJtolZg== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz#4fed8beac9b8c14f8c58b70d124d549dd1fe5790" integrity sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw== +"@webassemblyjs/helper-wasm-bytecode@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.1.tgz#563f59bcf409ccf469edde168b9426961ffbf6df" + integrity sha512-i2rGTBqFUcSXxyjt2K4vm/3kkHwyzG6o427iCjcIKjOqpWH8SEem+xe82jUk1iydJO250/CvE5o7hzNAMZf0dQ== + "@webassemblyjs/helper-wasm-section@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.0.tgz#5a4138d5a6292ba18b04c5ae49717e4167965346" @@ -2258,6 +2332,16 @@ "@webassemblyjs/helper-wasm-bytecode" "1.9.0" "@webassemblyjs/wasm-gen" "1.9.0" +"@webassemblyjs/helper-wasm-section@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.9.1.tgz#f7988f94c12b01b99a16120cb01dc099b00e4798" + integrity sha512-FetqzjtXZr2d57IECK+aId3D0IcGweeM0CbAnJHkYJkcRTHP+YcMb7Wmc0j21h5UWBpwYGb9dSkK/93SRCTrGg== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-buffer" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/wasm-gen" "1.9.1" + "@webassemblyjs/ieee754@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.9.0.tgz#15c7a0fbaae83fb26143bbacf6d6df1702ad39e4" @@ -2265,6 +2349,13 @@ dependencies: "@xtuc/ieee754" "^1.2.0" +"@webassemblyjs/ieee754@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.9.1.tgz#3b715871ca7d75784717cf9ceca9d7b81374b8af" + integrity sha512-EvTG9M78zP1MmkBpUjGQHZc26DzPGZSLIPxYHCjQsBMo60Qy2W34qf8z0exRDtxBbRIoiKa5dFyWer/7r1aaSQ== + dependencies: + "@xtuc/ieee754" "^1.2.0" + "@webassemblyjs/leb128@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.9.0.tgz#f19ca0b76a6dc55623a09cffa769e838fa1e1c95" @@ -2272,11 +2363,23 @@ dependencies: "@xtuc/long" "4.2.2" +"@webassemblyjs/leb128@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.9.1.tgz#b2ecaa39f9e8277cc9c707c1ca8b2aa7b27d0b72" + integrity sha512-Oc04ub0vFfLnF+2/+ki3AE+anmW4sv9uNBqb+79fgTaPv6xJsOT0dhphNfL3FrME84CbX/D1T9XT8tjFo0IIiw== + dependencies: + "@xtuc/long" "4.2.2" + "@webassemblyjs/utf8@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.9.0.tgz#04d33b636f78e6a6813227e82402f7637b6229ab" integrity sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w== +"@webassemblyjs/utf8@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.9.1.tgz#d02d9daab85cda3211e43caf31dca74c260a73b0" + integrity sha512-llkYtppagjCodFjo0alWOUhAkfOiQPQDIc5oA6C9sFAXz7vC9QhZf/f8ijQIX+A9ToM3c9Pq85X0EX7nx9gVhg== + "@webassemblyjs/wasm-edit@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.0.tgz#3fe6d79d3f0f922183aa86002c42dd256cfee9cf" @@ -2291,6 +2394,20 @@ "@webassemblyjs/wasm-parser" "1.9.0" "@webassemblyjs/wast-printer" "1.9.0" +"@webassemblyjs/wasm-edit@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.9.1.tgz#e27a6bdbf78e5c72fa812a2fc3cbaad7c3e37578" + integrity sha512-S2IaD6+x9B2Xi8BCT0eGsrXXd8UxAh2LVJpg1ZMtHXnrDcsTtIX2bDjHi40Hio6Lc62dWHmKdvksI+MClCYbbw== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-buffer" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/helper-wasm-section" "1.9.1" + "@webassemblyjs/wasm-gen" "1.9.1" + "@webassemblyjs/wasm-opt" "1.9.1" + "@webassemblyjs/wasm-parser" "1.9.1" + "@webassemblyjs/wast-printer" "1.9.1" + "@webassemblyjs/wasm-gen@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.0.tgz#50bc70ec68ded8e2763b01a1418bf43491a7a49c" @@ -2302,6 +2419,17 @@ "@webassemblyjs/leb128" "1.9.0" "@webassemblyjs/utf8" "1.9.0" +"@webassemblyjs/wasm-gen@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.9.1.tgz#56a0787d1fa7994fdc7bea59004e5bec7189c5fc" + integrity sha512-bqWI0S4lBQsEN5FTZ35vYzfKUJvtjNnBobB1agCALH30xNk1LToZ7Z8eiaR/Z5iVECTlBndoRQV3F6mbEqE/fg== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/ieee754" "1.9.1" + "@webassemblyjs/leb128" "1.9.1" + "@webassemblyjs/utf8" "1.9.1" + "@webassemblyjs/wasm-opt@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.0.tgz#2211181e5b31326443cc8112eb9f0b9028721a61" @@ -2312,6 +2440,16 @@ "@webassemblyjs/wasm-gen" "1.9.0" "@webassemblyjs/wasm-parser" "1.9.0" +"@webassemblyjs/wasm-opt@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.9.1.tgz#fbdf8943a825e6dcc4cd69c3e092289fa4aec96c" + integrity sha512-gSf7I7YWVXZ5c6XqTEqkZjVs8K1kc1k57vsB6KBQscSagDNbAdxt6MwuJoMjsE1yWY1tsuL+pga268A6u+Fdkg== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-buffer" "1.9.1" + "@webassemblyjs/wasm-gen" "1.9.1" + "@webassemblyjs/wasm-parser" "1.9.1" + "@webassemblyjs/wasm-parser@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.0.tgz#9d48e44826df4a6598294aa6c87469d642fff65e" @@ -2324,6 +2462,18 @@ "@webassemblyjs/leb128" "1.9.0" "@webassemblyjs/utf8" "1.9.0" +"@webassemblyjs/wasm-parser@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.9.1.tgz#5e8352a246d3f605312c8e414f7990de55aaedfa" + integrity sha512-ImM4N2T1MEIond0MyE3rXvStVxEmivQrDKf/ggfh5pP6EHu3lL/YTAoSrR7shrbKNPpeKpGesW1LIK/L4kqduw== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-api-error" "1.9.1" + "@webassemblyjs/helper-wasm-bytecode" "1.9.1" + "@webassemblyjs/ieee754" "1.9.1" + "@webassemblyjs/leb128" "1.9.1" + "@webassemblyjs/utf8" "1.9.1" + "@webassemblyjs/wast-parser@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-parser/-/wast-parser-1.9.0.tgz#3031115d79ac5bd261556cecc3fa90a3ef451914" @@ -2336,6 +2486,18 @@ "@webassemblyjs/helper-fsm" "1.9.0" "@xtuc/long" "4.2.2" +"@webassemblyjs/wast-parser@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-parser/-/wast-parser-1.9.1.tgz#e25ef13585c060073c1db0d6bd94340fdeee7596" + integrity sha512-2xVxejXSvj3ls/o2TR/zI6p28qsGupjHhnHL6URULQRcXmryn3w7G83jQMcT7PHqUfyle65fZtWLukfdLdE7qw== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/floating-point-hex-parser" "1.9.1" + "@webassemblyjs/helper-api-error" "1.9.1" + "@webassemblyjs/helper-code-frame" "1.9.1" + "@webassemblyjs/helper-fsm" "1.9.1" + "@xtuc/long" "4.2.2" + "@webassemblyjs/wast-printer@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.9.0.tgz#4935d54c85fef637b00ce9f52377451d00d47899" @@ -2345,6 +2507,27 @@ "@webassemblyjs/wast-parser" "1.9.0" "@xtuc/long" "4.2.2" +"@webassemblyjs/wast-printer@1.9.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.9.1.tgz#b9f38e93652037d4f3f9c91584635af4191ed7c1" + integrity sha512-tDV8V15wm7mmbAH6XvQRU1X+oPGmeOzYsd6h7hlRLz6QpV4Ec/KKxM8OpLtFmQPLCreGxTp+HuxtH4pRIZyL9w== + dependencies: + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/wast-parser" "1.9.1" + "@xtuc/long" "4.2.2" + +"@webpack-cli/info@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@webpack-cli/info/-/info-1.1.0.tgz#c596d5bc48418b39df00c5ed7341bf0f102dbff1" + integrity sha512-uNWSdaYHc+f3LdIZNwhdhkjjLDDl3jP2+XBqAq9H8DjrJUvlOKdP8TNruy1yEaDfgpAIgbSAN7pye4FEHg9tYQ== + dependencies: + envinfo "^7.7.3" + +"@webpack-cli/serve@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.1.0.tgz#13ad38f89b6e53d1133bac0006a128217a6ebf92" + integrity sha512-7RfnMXCpJ/NThrhq4gYQYILB18xWyoQcBey81oIyVbmgbc6m5ZHHyFK+DyH7pLHJf0p14MxL4mTsoPAgBSTpIg== + "@xtuc/ieee754@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" @@ -2410,6 +2593,11 @@ acorn@^7.1.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c" integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w== +acorn@^8.0.4: + version "8.0.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.0.4.tgz#7a3ae4191466a6984eee0fe3407a4f3aa9db8354" + integrity sha512-XNP0PqF1XD19ZlLKvB7cMmnZswW4C/03pRHgirB30uSJTaS3A3V1/P4sS3HPvFmjoriPCJQs+JDSbm4bL1TxGQ== + address@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/address/-/address-1.1.2.tgz#bf1116c9c758c51b7a933d296b72c221ed9428b6" @@ -2479,7 +2667,7 @@ alphanum-sort@^1.0.0: resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= -ansi-colors@4.1.1: +ansi-colors@4.1.1, ansi-colors@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== @@ -2602,6 +2790,11 @@ arr-union@^3.1.0: resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= +array-back@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/array-back/-/array-back-4.0.1.tgz#9b80312935a52062e1a233a9c7abeb5481b30e90" + integrity sha512-Z/JnaVEXv+A9xabHzN43FiiiWEE7gPCRXMrVmRm00tWbjZRul1iHm7ECzlyNq1p4a4ATXz+G9FJ3GqGOkOV3fg== + array-differ@^2.0.3: version "2.1.0" resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-2.1.0.tgz#4b9c1c3f14b906757082925769e8ab904f4801b1" @@ -2661,10 +2854,10 @@ asn1@~0.2.3: dependencies: safer-buffer "~2.1.0" -assemblyscript@0.17.4: - version "0.17.4" - resolved "https://registry.yarnpkg.com/assemblyscript/-/assemblyscript-0.17.4.tgz#d4611db89a4294335ad47ec3c6661a26a4428771" - integrity sha512-4ZXY40CuB4kDYgUJr02oI0d201fvOkbRipcubplLd1U2mUC8LHdVKE/SJZw8MoRjU189GSGAEK25lkHmf6LiHw== +assemblyscript@0.17.9: + version "0.17.9" + resolved "https://registry.yarnpkg.com/assemblyscript/-/assemblyscript-0.17.9.tgz#b43bbf797b424a12f411c96f7f488549aab7f821" + integrity sha512-uy7c2+f0d2v8OJDrTJbyFPrNxtAwwzmw/1EcckSi75QnUlPqQhZhYPPSRpPIyWCfi94DRoRwsU389FszdrEZtw== dependencies: binaryen "98.0.0-nightly.20201109" long "^4.0.0" @@ -2674,7 +2867,7 @@ assert-plus@1.0.0, assert-plus@^1.0.0: resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= -assert@^1.1.1: +assert@^1.1.1, assert@^1.4.1: version "1.5.0" resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb" integrity sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA== @@ -3500,6 +3693,16 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" +command-line-usage@^6.1.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-6.1.1.tgz#c908e28686108917758a49f45efb4f02f76bc03f" + integrity sha512-F59pEuAR9o1SF/bD0dQBDluhpT4jJQNWUHEuVBqpDmCUo6gPjCi+m9fCWnWZVR/oG6cMTUms4h+3NPl74wGXvA== + dependencies: + array-back "^4.0.1" + chalk "^2.4.2" + table-layout "^1.0.1" + typical "^5.2.0" + commander@^2.19.0, commander@^2.20.0, commander@^2.7.1: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" @@ -3765,7 +3968,12 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@^6.0.0, cross-spawn@^6.0.5: +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -4101,6 +4309,11 @@ dedent@^0.7.0: resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= +deep-extend@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" @@ -4182,11 +4395,6 @@ des.js@^1.0.0: inherits "^2.0.1" minimalistic-assert "^1.0.0" -detect-file@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7" - integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc= - detect-indent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" @@ -4387,7 +4595,7 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0: dependencies: once "^1.4.0" -enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.1, enhanced-resolve@^4.3.0: +enhanced-resolve@^4.0.0, enhanced-resolve@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.3.0.tgz#3b806f3bfafc1ec7de69551ef93cca46c1704126" integrity sha512-3e87LvavsdxyoCfGusJnrZ5G8SLPOFeHSNpZI/ATL9a5leXo2k0w6MKnbqhdBad9qTobSfB20Ld7UmgoNbAZkQ== @@ -4396,6 +4604,21 @@ enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.1, enhanced-resolve@^4.3.0: memory-fs "^0.5.0" tapable "^1.0.0" +enhanced-resolve@^5.3.1: + version "5.4.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.4.0.tgz#a8bcf23b00affac9455cf71efd80844f4054f4dc" + integrity sha512-ZmqfWURB2lConOBM1JdCVfPyMRv5RdKWktLXO6123p97ovVm2CLBgw9t5MBj3jJWA6eHyOeIws9iJQoGFR4euQ== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.0.0" + +enquirer@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + entities@^1.1.1, entities@~1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" @@ -4411,7 +4634,7 @@ env-paths@^2.2.0: resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43" integrity sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA== -envinfo@^7.3.1: +envinfo@^7.3.1, envinfo@^7.7.3: version "7.7.3" resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.7.3.tgz#4b2d8622e3e7366afb8091b23ed95569ea0208cc" integrity sha512-46+j5QxbPWza0PB1i15nZx0xQ4I/EfQxg9J8Had3b408SV63nEtor2e+oiY63amTo9KTuh2a3XLObNwduxYwwA== @@ -4538,10 +4761,10 @@ escodegen@^1.14.1: optionalDependencies: source-map "~0.6.1" -esinstall@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/esinstall/-/esinstall-0.4.0.tgz#b228ed75919b0b87ca0c28ab28f6888d59b92788" - integrity sha512-aOGbM1/AYSPMBspYmmNcqlhmUEpVh0wEXj6+IKP8W+rdyyXPYzYOEtjilH8XDc9P7UFTeB8VIfdtJiLGQkpDVA== +esinstall@^0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/esinstall/-/esinstall-0.5.2.tgz#933650258e279a8689316e21db67459d972f3434" + integrity sha512-6vvYBxFXhmRSWl8xs8thEhysuSkhFhtHEYg5QN8nuHffAu4Vwg9DwfgNxGJnFjzxLRcPUpA/3/DKHZovJkidOQ== dependencies: "@rollup/plugin-alias" "^3.0.1" "@rollup/plugin-commonjs" "^16.0.0" @@ -4552,6 +4775,7 @@ esinstall@^0.4.0: cjs-module-lexer "^1.0.0" es-module-lexer "^0.3.24" is-builtin-module "^3.0.0" + is-valid-identifier "^2.0.2" kleur "^4.1.1" mkdirp "^1.0.3" rimraf "^3.0.0" @@ -4568,6 +4792,14 @@ eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" +eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" @@ -4580,11 +4812,23 @@ esrecurse@^4.1.0: dependencies: estraverse "^4.1.0" +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== +estraverse@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" + integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== + estree-walker@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" @@ -4620,7 +4864,7 @@ eventemitter3@^4.0.0, eventemitter3@^4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== -events@^3.0.0: +events@^3.0.0, events@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/events/-/events-3.2.0.tgz#93b87c18f8efcd4202a461aec4dfc0556b639379" integrity sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg== @@ -4646,7 +4890,7 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" -execa@^4.0.3: +execa@^4.0.3, execa@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== @@ -4674,13 +4918,6 @@ expand-brackets@^2.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" -expand-tilde@^2.0.0, expand-tilde@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" - integrity sha1-l+gBqgUt8CRU3kawK/YhZCzchQI= - dependencies: - homedir-polyfill "^1.0.1" - extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" @@ -4859,16 +5096,6 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -findup-sync@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1" - integrity sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg== - dependencies: - detect-file "^1.0.0" - is-glob "^4.0.0" - micromatch "^3.0.4" - resolve-dir "^1.0.1" - flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" @@ -5175,6 +5402,11 @@ glob-to-regexp@^0.3.0: resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= +glob-to-regexp@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" + integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== + glob@7.1.6, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" @@ -5187,42 +5419,6 @@ glob@7.1.6, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" -global-modules@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea" - integrity sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg== - dependencies: - global-prefix "^1.0.1" - is-windows "^1.0.1" - resolve-dir "^1.0.0" - -global-modules@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" - integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== - dependencies: - global-prefix "^3.0.0" - -global-prefix@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe" - integrity sha1-2/dDxsFJklk8ZVVoy2btMsASLr4= - dependencies: - expand-tilde "^2.0.2" - homedir-polyfill "^1.0.1" - ini "^1.3.4" - is-windows "^1.0.1" - which "^1.2.14" - -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -5259,7 +5455,7 @@ got@^11.1.4: p-cancelable "^2.0.0" responselike "^2.0.0" -graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2: +graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.4: version "4.2.4" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== @@ -5413,13 +5609,6 @@ hmac-drbg@^1.0.0: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -homedir-polyfill@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" - integrity sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== - dependencies: - parse-passwd "^1.0.0" - hosted-git-info@^2.1.4, hosted-git-info@^2.7.1: version "2.8.8" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" @@ -5641,6 +5830,14 @@ import-local@^2.0.0: pkg-dir "^3.0.0" resolve-cwd "^2.0.0" +import-local@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" + integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -5696,10 +5893,10 @@ inherits@2.0.3: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= -ini@^1.3.2, ini@^1.3.4, ini@^1.3.5: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== +ini@^1.3.2, ini@^1.3.4: + version "1.3.8" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== init-package-json@^1.10.3: version "1.10.3" @@ -5734,11 +5931,16 @@ inquirer@^6.2.0: strip-ansi "^5.1.0" through "^2.3.6" -interpret@^1.0.0, interpret@^1.4.0: +interpret@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== +interpret@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9" + integrity sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw== + ip-regex@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" @@ -6071,7 +6273,14 @@ is-utf8@^0.2.0: resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= -is-windows@^1.0.0, is-windows@^1.0.1, is-windows@^1.0.2: +is-valid-identifier@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-valid-identifier/-/is-valid-identifier-2.0.2.tgz#146d9dbf29821b8118580b039d2203aa4bd1da4b" + integrity sha512-mpS5EGqXOwzXtKAg6I44jIAqeBfntFLxpAth1rrKbxtKyI6LPktyDYpHBI+tHlduhhX/SF26mFXmxQu995QVqg== + dependencies: + assert "^1.4.1" + +is-windows@^1.0.0, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== @@ -6181,7 +6390,7 @@ istanbul-reports@^3.0.2: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-worker@^26.5.0: +jest-worker@^26.5.0, jest-worker@^26.6.1: version "26.6.2" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== @@ -6420,6 +6629,11 @@ lerna@^3.22.1: import-local "^2.0.0" npmlog "^4.1.2" +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" @@ -6470,6 +6684,11 @@ loader-runner@^2.4.0: resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== +loader-runner@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.1.0.tgz#f70bc0c29edbabdf2043e7ee73ccc3fe1c96b42d" + integrity sha512-oR4lB4WvwFoC70ocraKhn5nkKSs23t57h9udUgw8o0iH8hMXeEoRuUgfcvgUwAJ1ZpRqBvcou4N2SMvM1DwMrA== + loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" @@ -6830,7 +7049,7 @@ merge2@^1.2.3: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4: +micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== @@ -6875,7 +7094,7 @@ mime-db@1.44.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.45.0.tgz#cceeda21ccd7c3a745eba2decd55d4b73e7879ea" integrity sha512-CkqLUxUk15hofLoLyljJSrukZi8mAtgd+yE5uO4tqRZsdsAJKv0O+rFMhVDRJgozy+yG6md5KwuXhD4ocIoP+w== -mime-types@^2.1.12, mime-types@^2.1.26, mime-types@~2.1.19: +mime-types@^2.1.12, mime-types@^2.1.26, mime-types@^2.1.27, mime-types@~2.1.19: version "2.1.27" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f" integrity sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w== @@ -7168,7 +7387,7 @@ nanomatch@^1.2.9: snapdragon "^0.8.1" to-regex "^3.0.1" -neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1: +neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1, neo-async@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== @@ -7840,11 +8059,6 @@ parse-json@^5.0.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse-passwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" - integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= - parse-path@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.2.tgz#ef14f0d3d77bae8dd4bc66563a4c151aac9e65aa" @@ -8021,13 +8235,20 @@ pkg-dir@^3.0.0: dependencies: find-up "^3.0.0" -pkg-dir@^4.1.0: +pkg-dir@^4.1.0, pkg-dir@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== dependencies: find-up "^4.0.0" +pkg-dir@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760" + integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA== + dependencies: + find-up "^5.0.0" + platform@^1.3.3: version "1.3.6" resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.6.tgz#48b4ce983164b209c2d45a107adb31f473a6e7a7" @@ -8722,6 +8943,13 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" +rechoir@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.7.0.tgz#32650fd52c21ab252aa5d65b19310441c7e03aca" + integrity sha512-ADsDEH2bvbjltXEP+hTIAmeFekTFK0V2BTxMkok6qILyAJEXV0AFfoWcAq4yfll5VdIMd/RVXq0lR+wQi5ZU3Q== + dependencies: + resolve "^1.9.0" + redent@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" @@ -8746,6 +8974,11 @@ redent@^3.0.0: indent-string "^4.0.0" strip-indent "^3.0.0" +reduce-flatten@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-2.0.0.tgz#734fd84e65f375d7ca4465c69798c25c9d10ae27" + integrity sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w== + regenerate-unicode-properties@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec" @@ -8917,13 +9150,12 @@ resolve-cwd@^2.0.0: dependencies: resolve-from "^3.0.0" -resolve-dir@^1.0.0, resolve-dir@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43" - integrity sha1-eaQGRMNivoLybv/nOcm7U4IEb0M= +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== dependencies: - expand-tilde "^2.0.0" - global-modules "^1.0.0" + resolve-from "^5.0.0" resolve-from@^3.0.0: version "3.0.0" @@ -8952,7 +9184,7 @@ resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2, resolve@~1.17.0: dependencies: path-parse "^1.0.6" -resolve@^1.17.0: +resolve@^1.17.0, resolve@^1.9.0: version "1.19.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== @@ -9048,13 +9280,20 @@ rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2: dependencies: estree-walker "^0.6.1" -rollup@^2.23.0, rollup@^2.34.0, rollup@^2.34.1: +rollup@^2.23.0, rollup@^2.34.0: version "2.34.1" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.34.1.tgz#a387230df02c58b242794a213dfb68b42de2c8fb" integrity sha512-tGveB6NU5x4MS/iXaIsjfUkEv4hxzJJ4o0FRy5LO62Ndx3R2cmE1qsLYlSfRkvHUUPqWiFoxEm8pRftzh1a5HA== optionalDependencies: fsevents "~2.1.2" +rollup@^2.35.1: + version "2.35.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.35.1.tgz#e6bc8d10893556a638066f89e8c97f422d03968c" + integrity sha512-q5KxEyWpprAIcainhVy6HfRttD9kutQpHbeqDTWnqAFNJotiojetK6uqmcydNMymBEtC4I8bCYR+J3mTMqeaUA== + optionalDependencies: + fsevents "~2.1.2" + run-async@^2.2.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" @@ -9254,15 +9493,19 @@ skip-regex@^1.0.2: resolved "https://registry.yarnpkg.com/skip-regex/-/skip-regex-1.0.2.tgz#ac655d77e7c771ac2b9f37585fea37bff56ad65b" integrity sha512-pEjMUbwJ5Pl/6Vn6FsamXHXItJXSRftcibixDmNCWbWhic0hzHrwkMZo0IZ7fMRH9KxcWDFSkzhccB4285PutA== -skypack@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/skypack/-/skypack-0.1.0.tgz#6e954a08ecbe22b1541a07b80256bf74300a384d" - integrity sha512-VDMc0YLMh1RwLLuvlz0HcwwbN1vUILFD773y/52buwVsKxbsIIJ+bGKJ/01naKXRsr8HYUPV0KAJn47S6OYGLQ== +skypack@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/skypack/-/skypack-0.2.1.tgz#700380a639ba13e5dc5a861932430ee5606e8d71" + integrity sha512-+LE2zg5Hdcxnq2PYfo6k/jqLA7vlCljZuGo6x9x9+83GvGULvdBGLCLIa5wUhcHQUIts4m9hB+f3asTPL/TcsA== dependencies: cacache "^15.0.0" cachedir "^2.3.0" + esinstall "^0.5.1" + etag "^1.8.1" + find-up "^5.0.0" got "^11.1.4" kleur "^4.1.0" + mkdirp "^1.0.3" p-queue "^6.2.1" rimraf "^3.0.0" rollup "^2.23.0" @@ -9318,14 +9561,14 @@ snapdragon@^0.8.1: source-map-resolve "^0.5.0" use "^3.1.0" -snowpack@^2.18.0: - version "2.18.0" - resolved "https://registry.yarnpkg.com/snowpack/-/snowpack-2.18.0.tgz#13591b31305b1a23716483738e0b23cd4f491bcb" - integrity sha512-2uQEcdDZWAjyLUpOfvDI5Br54LoG51Dr3wY7ld/GSBJj+lRqb54dS9S9egBEyT0dAhyyG6/pjLbNX7KEumU+EA== +snowpack@^2.18.5: + version "2.18.5" + resolved "https://registry.yarnpkg.com/snowpack/-/snowpack-2.18.5.tgz#10a0130fb1eeecda6dfd3be1b1b60ff9849e3da4" + integrity sha512-UThUbGXn/wN7zRJDVpbC0F3uvkhu6PAgpTbV1hdAaqLvYBewT794iEMAY5mMxT27zQ+ZOyqbICaBtKtq0BgDcA== dependencies: "@snowpack/plugin-build-script" "^2.0.12" "@snowpack/plugin-run-script" "^2.2.1" - "@types/cheerio" "^0.22.22" + "@types/cheerio" "0.22.22" cacache "^15.0.0" cachedir "^2.3.0" cheerio "^1.0.0-rc.3" @@ -9336,7 +9579,7 @@ snowpack@^2.18.0: detect-port "^1.3.0" es-module-lexer "^0.3.24" esbuild "^0.8.7" - esinstall "^0.4.0" + esinstall "^0.5.1" etag "^1.8.1" execa "^4.0.3" find-cache-dir "^3.3.1" @@ -9358,7 +9601,7 @@ snowpack@^2.18.0: resolve-from "^5.0.0" rimraf "^3.0.0" signal-exit "^3.0.3" - skypack "^0.1.0" + skypack "^0.2.1" source-map "^0.7.3" strip-ansi "^6.0.0" strip-comments "^2.0.1" @@ -9389,7 +9632,7 @@ sort-keys@^2.0.0: dependencies: is-plain-obj "^1.0.0" -source-list-map@^2.0.0: +source-list-map@^2.0.0, source-list-map@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== @@ -9803,11 +10046,26 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== +table-layout@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-1.0.1.tgz#8411181ee951278ad0638aea2f779a9ce42894f9" + integrity sha512-dEquqYNJiGwY7iPfZ3wbXDI944iqanTSchrACLL2nOB+1r+h1Nzu2eH+DuPPvWvm5Ry7iAPeFlgEtP5bIp5U7Q== + dependencies: + array-back "^4.0.1" + deep-extend "~0.6.0" + typical "^5.2.0" + wordwrapjs "^4.0.0" + tapable@^1.0.0, tapable@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== +tapable@^2.0.0, tapable@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b" + integrity sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw== + tar@^4.4.10, tar@^4.4.12, tar@^4.4.8: version "4.4.13" resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" @@ -9880,6 +10138,18 @@ terser-webpack-plugin@^4.0.0: terser "^5.3.4" webpack-sources "^1.4.3" +terser-webpack-plugin@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.0.3.tgz#ec60542db2421f45735c719d2e17dabfbb2e3e42" + integrity sha512-zFdGk8Lh9ZJGPxxPE6jwysOlATWB8GMW8HcfGULWA/nPal+3VdATflQvSBSLQJRCmYZnfFJl6vkRTiwJGNgPiQ== + dependencies: + jest-worker "^26.6.1" + p-limit "^3.0.2" + schema-utils "^3.0.0" + serialize-javascript "^5.0.1" + source-map "^0.6.1" + terser "^5.3.8" + terser@^4.1.2, terser@^4.6.3: version "4.8.0" resolved "https://registry.yarnpkg.com/terser/-/terser-4.8.0.tgz#63056343d7c70bb29f3af665865a46fe03a0df17" @@ -9889,7 +10159,7 @@ terser@^4.1.2, terser@^4.6.3: source-map "~0.6.1" source-map-support "~0.5.12" -terser@^5.3.4, terser@^5.5.1: +terser@^5.3.4, terser@^5.3.8, terser@^5.5.1: version "5.5.1" resolved "https://registry.yarnpkg.com/terser/-/terser-5.5.1.tgz#540caa25139d6f496fdea056e414284886fb2289" integrity sha512-6VGWZNVP2KTUcltUQJ25TtNjx/XgdDsBDKGt8nN0MpydU36LmbPPcMBd2kmtZNNGVVDLg44k7GKeHHj+4zPIBQ== @@ -10059,10 +10329,10 @@ trim-off-newlines@^1.0.0: resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= -ts-loader@^8.0.11: - version "8.0.11" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.11.tgz#35d58a65932caacb120426eea59eca841786c899" - integrity sha512-06X+mWA2JXoXJHYAesUUL4mHFYhnmyoCdQVMXofXF552Lzd4wNwSGg7unJpttqUP7ziaruM8d7u8LUB6I1sgzA== +ts-loader@^8.0.12: + version "8.0.12" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-8.0.12.tgz#1de9f1de65176318c1e6d187bfc496182f8dc2a0" + integrity sha512-UIivVfGVJDdwwjgSrbtcL9Nf10c1BWnL1mxAQUVcnhNIn/P9W3nP5v60Z0aBMtc7ZrE11lMmU6+5jSgAXmGaYw== dependencies: chalk "^2.3.0" enhanced-resolve "^4.0.0" @@ -10070,12 +10340,13 @@ ts-loader@^8.0.11: micromatch "^4.0.0" semver "^6.0.0" -ts-node@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.0.0.tgz#e7699d2a110cc8c0d3b831715e417688683460b3" - integrity sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg== +ts-node@^9.1.1: + version "9.1.1" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" + integrity sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg== dependencies: arg "^4.1.0" + create-require "^1.1.0" diff "^4.0.1" make-error "^1.1.1" source-map-support "^0.5.17" @@ -10169,10 +10440,15 @@ typedoc@^0.19.2: shelljs "^0.8.4" typedoc-default-themes "^0.11.4" -typescript@^4.1.2, typescript@~4.0.5: - version "4.1.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9" - integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ== +typescript@^4.1.3, typescript@~4.0.5: + version "4.1.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7" + integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg== + +typical@^5.0.0, typical@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/typical/-/typical-5.2.0.tgz#4daaac4f2b5315460804f0acf6cb69c52bb93066" + integrity sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg== uglify-js@^3.1.4: version "3.10.2" @@ -10362,7 +10638,7 @@ uuid@^3.0.1, uuid@^3.3.2, uuid@^3.3.3: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -v8-compile-cache@^2.1.1: +v8-compile-cache@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz#9471efa3ef9128d2f7c6a7ca39c4dd6b5055b132" integrity sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q== @@ -10443,6 +10719,14 @@ watchpack@^1.7.4: chokidar "^3.4.1" watchpack-chokidar2 "^2.0.0" +watchpack@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.1.0.tgz#e63194736bf3aa22026f7b191cd57907b0f9f696" + integrity sha512-UjgD1mqjkG99+3lgG36at4wPnUXNvis2v1utwTgQ43C22c4LD71LsYMExdWXh4HZ+RmW+B0t1Vrg2GpXAkTOQw== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + wcwidth@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" @@ -10465,22 +10749,24 @@ webidl-conversions@^6.1.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== -webpack-cli@^3.3.12: - version "3.3.12" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.12.tgz#94e9ada081453cd0aa609c99e500012fd3ad2d4a" - integrity sha512-NVWBaz9k839ZH/sinurM+HcDvJOTXwSjYp1ku+5XKeOC03z8v5QitnK/x+lAxGXFyhdayoIf/GOpv85z3/xPag== +webpack-cli@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.2.0.tgz#10a09030ad2bd4d8b0f78322fba6ea43ec56aaaa" + integrity sha512-EIl3k88vaF4fSxWSgtAQR+VwicfLMTZ9amQtqS4o+TDPW9HGaEpbFBbAZ4A3ZOT5SOnMxNOzROsSTPiE8tBJPA== dependencies: - chalk "^2.4.2" - cross-spawn "^6.0.5" - enhanced-resolve "^4.1.1" - findup-sync "^3.0.0" - global-modules "^2.0.0" - import-local "^2.0.0" - interpret "^1.4.0" - loader-utils "^1.4.0" - supports-color "^6.1.0" - v8-compile-cache "^2.1.1" - yargs "^13.3.2" + "@webpack-cli/info" "^1.1.0" + "@webpack-cli/serve" "^1.1.0" + colorette "^1.2.1" + command-line-usage "^6.1.0" + commander "^6.2.0" + enquirer "^2.3.6" + execa "^4.1.0" + import-local "^3.0.2" + interpret "^2.2.0" + leven "^3.1.0" + rechoir "^0.7.0" + v8-compile-cache "^2.2.0" + webpack-merge "^4.2.2" webpack-manifest-plugin@^2.2.0: version "2.2.0" @@ -10492,6 +10778,13 @@ webpack-manifest-plugin@^2.2.0: object.entries "^1.1.0" tapable "^1.0.0" +webpack-merge@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-4.2.2.tgz#a27c52ea783d1398afd2087f547d7b9d2f43634d" + integrity sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g== + dependencies: + lodash "^4.17.15" + webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack-sources@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.4.3.tgz#eedd8ec0b928fbf1cbfe994e22d2d890f330a933" @@ -10500,7 +10793,15 @@ webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack- source-list-map "^2.0.0" source-map "~0.6.1" -webpack@^4.43.0, webpack@^4.44.1: +webpack-sources@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-2.2.0.tgz#058926f39e3d443193b6c31547229806ffd02bac" + integrity sha512-bQsA24JLwcnWGArOKUxYKhX3Mz/nK1Xf6hxullKERyktjNMC4x8koOeaDNTA2fEJ09BdWLbM/iTW0ithREUP0w== + dependencies: + source-list-map "^2.0.1" + source-map "^0.6.1" + +webpack@^4.43.0: version "4.44.2" resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.44.2.tgz#6bfe2b0af055c8b2d1e90ed2cd9363f841266b72" integrity sha512-6KJVGlCxYdISyurpQ0IPTklv+DULv05rs2hseIXer6D7KrUicRDLFb4IUM1S6LUAKypPM/nSiVSuv8jHu1m3/Q== @@ -10529,6 +10830,36 @@ webpack@^4.43.0, webpack@^4.44.1: watchpack "^1.7.4" webpack-sources "^1.4.1" +webpack@^5.11.0: + version "5.11.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.11.0.tgz#1647abc060441d86d01d8835b8f0fc1dae2fe76f" + integrity sha512-ubWv7iP54RqAC/VjixgpnLLogCFbAfSOREcSWnnOlZEU8GICC5eKmJSu6YEnph2N2amKqY9rvxSwgyHxVqpaRw== + dependencies: + "@types/eslint-scope" "^3.7.0" + "@types/estree" "^0.0.45" + "@webassemblyjs/ast" "1.9.1" + "@webassemblyjs/helper-module-context" "1.9.1" + "@webassemblyjs/wasm-edit" "1.9.1" + "@webassemblyjs/wasm-parser" "1.9.1" + acorn "^8.0.4" + browserslist "^4.14.5" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.3.1" + eslint-scope "^5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.4" + json-parse-better-errors "^1.0.2" + loader-runner "^4.1.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + pkg-dir "^5.0.0" + schema-utils "^3.0.0" + tapable "^2.1.1" + terser-webpack-plugin "^5.0.3" + watchpack "^2.0.0" + webpack-sources "^2.1.1" + whatwg-encoding@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" @@ -10571,7 +10902,7 @@ which@2.0.2, which@^2.0.1: dependencies: isexe "^2.0.0" -which@^1.2.14, which@^1.2.9, which@^1.3.1: +which@^1.2.9, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== @@ -10602,6 +10933,14 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= +wordwrapjs@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-4.0.0.tgz#9aa9394155993476e831ba8e59fb5795ebde6800" + integrity sha512-Svqw723a3R34KvsMgpjFBYCgNOSdcW3mQFK4wIfhGQhtaFVOJmdYoXgi63ne3dTlWgatVcUc7t4HtQ/+bUVIzQ== + dependencies: + reduce-flatten "^2.0.0" + typical "^5.0.0" + worker-farm@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8" @@ -10767,7 +11106,7 @@ yargs-unparser@2.0.0: flat "^5.0.2" is-plain-obj "^2.1.0" -yargs@13.3.2, yargs@^13.3.2: +yargs@13.3.2: version "13.3.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==