diff --git a/examples/crypto-chart/src/index.ts b/examples/crypto-chart/src/index.ts index f9c6273644..70bdc7ec3d 100644 --- a/examples/crypto-chart/src/index.ts +++ b/examples/crypto-chart/src/index.ts @@ -21,7 +21,7 @@ import { sync, trace, } from "@thi.ng/rstream"; -import { padLeft } from "@thi.ng/strings"; +import { Z2 } from "@thi.ng/strings"; import { comp, filter, @@ -173,9 +173,6 @@ const API_URL = (market: string, symbol: string, period: number) => // stub for local testing // const API_URL = (..._) => `ohlc.json`; -// helper functions -const Z2 = padLeft(2, "0"); - const emitOnStream = (stream: Subscription) => (e: Event) => stream.next((e.target).value); diff --git a/examples/mandelbrot/src/index.ts b/examples/mandelbrot/src/index.ts index 3cd6f75562..72814649bf 100644 --- a/examples/mandelbrot/src/index.ts +++ b/examples/mandelbrot/src/index.ts @@ -4,7 +4,7 @@ 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 } from "@thi.ng/rstream-gestures"; -import { padLeft } from "@thi.ng/strings"; +import { Z4 } from "@thi.ng/strings"; import { map } from "@thi.ng/transducers"; import { updateDOM } from "@thi.ng/transducers-hdom"; @@ -14,7 +14,6 @@ const AUTO_ZOOM = false; // frame export helpers let frame = 0; -const Z4 = padLeft(4, "0"); // canvas size const SIZE = 640; diff --git a/examples/talk-slides/src/index.ts b/examples/talk-slides/src/index.ts index 06b41635a4..46de08f1e0 100644 --- a/examples/talk-slides/src/index.ts +++ b/examples/talk-slides/src/index.ts @@ -7,7 +7,7 @@ import { Stream, sync, } from "@thi.ng/rstream"; -import { padLeft } from "@thi.ng/strings"; +import { Z2 } from "@thi.ng/strings"; import { dedupe, map, reducer, scan, sideEffect } from "@thi.ng/transducers"; import { updateDOM } from "@thi.ng/transducers-hdom"; import { app, printApp } from "./components"; @@ -16,8 +16,6 @@ import { SLIDES } from "./slides"; const INTERACTIVE = true; -const D2 = padLeft(2, "0"); - const initKeys = (stream: Stream) => fromDOMEvent(window, "keydown").transform( map((e) => { @@ -59,7 +57,7 @@ const main = sync({ slideID, content: slideID.transform(map((id: number) => SLIDES[id])), time: fromInterval(1000).transform( - map((x: number) => `${D2((x / 60) | 0)}:${D2(x % 60)}`) + map((x: number) => `${Z2((x / 60) | 0)}:${Z2(x % 60)}`) ), }, }); diff --git a/packages/adjacency/CHANGELOG.md b/packages/adjacency/CHANGELOG.md index e8a84a3322..88a1afb473 100644 --- a/packages/adjacency/CHANGELOG.md +++ b/packages/adjacency/CHANGELOG.md @@ -3,6 +3,14 @@ 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/adjacency@0.2.2...@thi.ng/adjacency@0.2.3) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/adjacency + + + + + ## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.2.1...@thi.ng/adjacency@0.2.2) (2021-01-05) **Note:** Version bump only for package @thi.ng/adjacency diff --git a/packages/adjacency/package.json b/packages/adjacency/package.json index e8e1aa651e..74ecc10af6 100644 --- a/packages/adjacency/package.json +++ b/packages/adjacency/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/adjacency", - "version": "0.2.2", + "version": "0.2.3", "description": "Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs", "module": "./index.js", "main": "./lib/index.js", @@ -40,7 +40,7 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.12.1", - "@thi.ng/vectors": "^4.8.4", + "@thi.ng/vectors": "^4.8.5", "@types/mocha": "^8.2.0", "@types/node": "^14.14.14", "mocha": "^8.2.1", @@ -52,10 +52,10 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/bitfield": "^0.3.28", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/dcons": "^2.3.5", - "@thi.ng/sparse": "^0.1.60" + "@thi.ng/bitfield": "^0.3.29", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/dcons": "^2.3.6", + "@thi.ng/sparse": "^0.1.61" }, "files": [ "*.js", diff --git a/packages/args/CHANGELOG.md b/packages/args/CHANGELOG.md new file mode 100644 index 0000000000..34925c665a --- /dev/null +++ b/packages/args/CHANGELOG.md @@ -0,0 +1,16 @@ +# 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 (2021-01-10) + + +### Features + +* **args:** add kv args, callbacks, usage opts ([c306aba](https://github.com/thi-ng/umbrella/commit/c306abac31dc03bb15a19c36192ee5c07afa1063)) +* **args:** add strict mode kvArgs()/coerceKV(), add docs ([b76c4f1](https://github.com/thi-ng/umbrella/commit/b76c4f11ddbe3b7c1a195a93ceed3a953666ef5d)) +* **args:** add tuple arg type support ([a05dde9](https://github.com/thi-ng/umbrella/commit/a05dde957be54ae7ed6aeab8233bff0d8573c675)) +* **args:** import as new package ([af5d943](https://github.com/thi-ng/umbrella/commit/af5d943153b3012be04ed0e9a044ee944465d035)) +* **args:** major general package update ([26ec49a](https://github.com/thi-ng/umbrella/commit/26ec49afc0fa389b7a2551b116a85d95df4aaeee)) +* **args:** update multi arg specs, parse ([dbdf913](https://github.com/thi-ng/umbrella/commit/dbdf913b4ed730c2c07246c24ecbafb32d9dc37e)) diff --git a/packages/args/LICENSE b/packages/args/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/packages/args/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/args/README.md b/packages/args/README.md new file mode 100644 index 0000000000..fd28ef4ca2 --- /dev/null +++ b/packages/args/README.md @@ -0,0 +1,210 @@ + + +# ![args](https://media.thi.ng/umbrella/banners/thing-args.svg?396fd2a1) + +[![npm version](https://img.shields.io/npm/v/@thi.ng/args.svg)](https://www.npmjs.com/package/@thi.ng/args) +![npm downloads](https://img.shields.io/npm/dm/@thi.ng/args.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) + - [Basic usage](#basic-usage) + - [Generate & display help](#generate--display-help) + - [Parsing, value coercions & side effects](#parsing-value-coercions--side-effects) +- [Authors](#authors) +- [License](#license) + +## About + +Declarative, functional & typechecked CLI argument/options parser, value coercions etc.. + +Includes built-in support for the following argument types (of course custom arg types are supported too): + +| **Argument type** | **Multiple** | **Example** | **Result** | +|----------------------|--------------|----------------------------|-------------------------------| +| **Flag** | | `--force`, `-f` | `force: true` | +| **String** | ✅ | `--foo bar` | `foo: "bar"` | +| **Float/int/hex** | ✅ | `--bg ff997f` | `bg: 16750975` | +| **Enum** | ✅ | `--type png` | `type: "png"` | +| **KV pairs** | ✅ | `--define foo=bar` | `define: { foo: "bar" }` | +| **JSON** | | `--config '{"foo": [23]}'` | `config: { foo: [23] }` | +| **Fixed size tuple** | | `--size 640x480` | `size: { value: [640, 480] }` | + +If multiple values/repetitions are allowed for an argument, the values will be +collected into an array (apart from KV pairs, which will yield an object). +Furthermore, for multi-args, an optional delimiter can be specified to extract +individual values, e.g. `-a 1,2,3` equals `-a 1 -a 2 -a 3` + +### Status + +**BETA** - possibly breaking changes forthcoming + +[Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bargs%5D+in%3Atitle) + +## Installation + +```bash +yarn add @thi.ng/args +``` + +```html +// ES module + + +// UMD + +``` + +Package sizes (gzipped, pre-treeshake): ESM: 1.79 KB / CJS: 1.92 KB / UMD: 1.92 KB + +## Dependencies + +- [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) +- [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks) +- [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors) +- [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings) + +## API + +[Generated API docs](https://docs.thi.ng/umbrella/args/) + +### Basic usage + +```ts +type ImgType = "png" | "jpg" | "gif" | "tiff"; + +// CLI args will be validated against this interface +interface TestArgs { + configPath?: string; + force: boolean; + bg: number; + type: ImgType; + size?: Tuple; + xtra?: { a: number; b: string }; + define?: KVDict; +} + +// arg specifications +const specs: Args = { + // string arg + configPath: string({ + alias: "c", + hint: "PATH", + desc: "Config file path (CLI args always take precedence over those settings)", + }), + // boolean flag (default: false) + force: flag({ + alias: "f", + desc: "Force operation", + // side effect & predicate + // parsing only continues if fn returns true + fn: (_) => (console.log("force mode enabled"), true), + }), + // hex int value + bg: hex({ + desc: "Background color", + // mandatory args require a `default` value and/or `optional: false` + default: 0xffffff, + }), + // enum value (mandatory) + type: oneOf(["png", "jpg", "gif", "tiff"], { + alias: "t", + desc: "Image type", + // mandatory args require a `default` value and/or `optional: false` + optional: false, + }), + // fixed size numeric tuple w/ `x` as delimiter + // size: tuple(coerceInt, 2, { hint: "WxH", desc: "Target size" }, "x"), + // syntax sugar for above: + size: size(2, { hint: "WxH", desc: "Target size" }), + // JSON string arg + xtra: json({ + alias: "x", + desc: "Extra options", + }), + // key-value pairs parsed into an object + define: kvPairs({ alias: "D", desc: "Define dict entry" }), +}; + +try { + // parse argv w/ above argument specs & default options + // (by default usage is shown if error occurs) + const args = parse(specs, process.argv); + console.log(args); +} catch (_) {} +``` + +#### Generate & display help + +By default uses ANSI colors (see +[`UsageOpts`](https://github.com/thi-ng/umbrella/blob/develop/packages/args/src/api.ts)), +`--help` is always available as built-in: + +```text +ts-node index.ts --help + +--bg HEX Background color +-c PATH, --config-path PATH Config file path (CLI args always take + precedence over those settings) +-D key=val, --define key=val [multiple] Define dict entry +-f, --force Force operation +--size WxH Target size +-t ID, --type ID [required] Image type: 'png', 'jpg', 'gif', + 'tiff' +-x JSON, --xtra JSON Extra options +``` + +#### Parsing, value coercions & side effects + +The below invocation demonstrates how the various argument types are handled & +represented in the result. Parsing stops with the first non-argument value (here +`sourcefile.png`) and the remaining values are made available via `rest` in the +result object. + +```bash +ts-node index.ts \ + -f -t png --bg ff00ff --size 640x480 \ + -D author=toxi -D date=2018-03-24 \ + --xtra '{"foo": [23]}' \ + sourcefile.png + +# force mode enabled +# { +# result: { +# force: true, +# type: 'png', +# bg: 16711935, +# size: Tuple { value: [640, 480] } +# define: { author: 'toxi', date: '2018-03-24' }, +# xtra: { foo: [23] }, +# }, +# index: 15, +# rest: [ 'sourcefile.png' ], +# done: false +# } +``` + +## Authors + +Karsten Schmidt + +If this project contributes to an academic publication, please cite it as: + +```bibtex +@misc{thing-args, + title = "@thi.ng/args", + author = "Karsten Schmidt", + note = "https://thi.ng/args", + year = 2018 +} +``` + +## License + +© 2018 - 2021 Karsten Schmidt // Apache Software License 2.0 diff --git a/packages/args/api-extractor.json b/packages/args/api-extractor.json new file mode 100644 index 0000000000..94972e6bed --- /dev/null +++ b/packages/args/api-extractor.json @@ -0,0 +1,3 @@ +{ + "extends": "../../api-extractor.json" +} diff --git a/packages/args/package.json b/packages/args/package.json new file mode 100644 index 0000000000..da312c2098 --- /dev/null +++ b/packages/args/package.json @@ -0,0 +1,84 @@ +{ + "name": "@thi.ng/args", + "version": "0.1.0", + "description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.", + "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/args#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 --out doc --theme ../../tools/doc/typedoc-theme src/index.ts", + "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.20.4", + "typescript": "^4.1.3" + }, + "dependencies": { + "@thi.ng/api": "^6.13.6", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/errors": "^1.2.26", + "@thi.ng/strings": "^1.13.0" + }, + "files": [ + "*.js", + "*.d.ts", + "lib" + ], + "keywords": [ + "argument", + "cli", + "coerce", + "convert", + "declarative", + "functional", + "hex", + "node", + "parser", + "tuple", + "typescript", + "validate" + ], + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "thi.ng": { + "status": "beta", + "year": 2018 + } +} diff --git a/packages/args/src/api.ts b/packages/args/src/api.ts new file mode 100644 index 0000000000..12f7e9137c --- /dev/null +++ b/packages/args/src/api.ts @@ -0,0 +1,120 @@ +import type { Fn, IDeref, IObjectOf } from "@thi.ng/api"; + +export interface ArgSpecBase { + alias?: string; + desc?: string; + hint?: string; + fn?: Fn; +} + +export type ArgSpecRestrict = undefined extends T + ? {} + : { optional: false } | { default: T }; + +export type ArgSpec = ArgSpecBase & ArgSpecRestrict; + +export type ArgSpecExt = ArgSpec & { + coerce?: Fn; + delim?: string; + default?: any; + flag?: boolean; + fn?: Fn; + multi?: boolean; + optional?: any; +}; + +export type Args> = { + [id in keyof T]: boolean extends T[id] + ? ArgSpec & { flag: true } + : any[] extends T[id] + ? ArgSpec & { + coerce: Fn>; + multi: true; + delim?: string; + } + : KVDict extends T[id] + ? ArgSpec & { + coerce: Fn>; + multi: true; + } + : ArgSpec & { + coerce: Fn>; + }; +}; + +export type KVDict = IObjectOf; + +export interface ParseResult { + result: T; + index: number; + done: boolean; + rest: string[]; +} + +export interface ParseOpts { + /** + * Start index in `process.argv` to start parsing arguments from. + * + * @defaultValue 2 + */ + start: number; + /** + * True, if {@link usage} should be called automatically when a parse error + * occurs. Note: Errors will always be thrown, regardless of this setting. + * + * @defaultValue true + */ + showUsage: boolean; + /** + * Only used if `showUsage` is enabled. + * + * @see {@link UsageOpts} + */ + usageOpts: Partial; +} + +export interface UsageOpts { + /** + * Line width for usage information (used for word wrapping). + * + * @defaultValue 80 + */ + lineWidth: number; + /** + * Column width for params + * + * @defaultValue 32 + */ + paramWidth: number; + /** + * If false, ANSI colors will be stripped from output. + * + * @defaultValue true + */ + color: Partial | false; +} + +export interface ColorTheme { + hint: number; + multi: number; + param: number; + required: number; +} + +export const DEFAULT_THEME: ColorTheme = { + hint: 90, + multi: 90, + param: 96, + required: 33, +}; + +/** + * Wrapper for fixed size tuple values produced by {@link tuple}. + */ +export class Tuple implements IDeref { + constructor(public value: T[]) {} + + deref() { + return this.value; + } +} diff --git a/packages/args/src/args.ts b/packages/args/src/args.ts new file mode 100644 index 0000000000..3d6cd4e3a3 --- /dev/null +++ b/packages/args/src/args.ts @@ -0,0 +1,253 @@ +import type { Fn } from "@thi.ng/api"; +import { repeat } from "@thi.ng/strings"; +import type { ArgSpec, KVDict, Tuple } from "./api"; +import { + coerceFloat, + coerceFloats, + coerceHexInt, + coerceHexInts, + coerceInt, + coerceInts, + coerceJson, + coerceKV, + coerceOneOf, + coerceTuple, +} from "./coerce"; + +const $single = (coerce: Fn, hint: string) => < + S extends Partial> +>( + spec: S +): S & { coerce: Fn; hint: string } => ({ + coerce, + hint, + ...spec, +}); + +const $multi = (coerce: Fn, hint: string) => < + S extends Partial & { delim: string }> +>( + spec: S +): S & { coerce: Fn; hint: string; multi: true } => ({ + hint: $hint(hint, spec.delim), + multi: true, + coerce, + ...spec, +}); + +const $hint = (hint: string, delim?: string) => + hint + (delim ? `[${delim}..]` : ""); + +/** + * Returns a full {@link ArgSpec} for a boolean flag. The mere presence of this + * arg will enable the flag. + * + * @param spec + */ +export const flag = >>( + spec: S +): S & { flag: true; default: boolean } => ({ + flag: true, + default: false, + ...spec, +}); + +/** + * Returns a full {@link ArgSpec} for a string value arg. + * + * @param spec + */ +export const string = $single((x) => x, "STR"); + +/** + * Multi-arg version of {@link string}. Returns a full {@link ArgSpec} for a + * multi string value arg. This argument can be provided mutiple times with + * values collected into an array. + * + * @param spec + */ +export const strings = $multi((x) => x, "STR"); + +/** + * Returns a full {@link ArgSpec} for a floating point value arg. The value + * will be autoatically coerced into a number using {@link coerceFloat}. + * + * @param spec + */ +export const float = $single(coerceFloat, "NUM"); + +/** + * Returns a full {@link ArgSpec} for a single hex integer value arg. The value + * will be autoatically coerced into a number using {@link coerceHexInt}. + * + * @param spec + */ +export const hex = $single(coerceHexInt, "HEX"); + +/** + * Returns a full {@link ArgSpec} for a single integer value arg. The value + * will be autoatically coerced into a number using {@link coerceInt}. + * + * @param spec + */ +export const int = $single(coerceInt, "INT"); + +/** + * Multi-arg version of {@link float}. Returns a full {@link ArgSpec} for a + * multi floating point value arg. This argument can be provided mutiple times + * with values being coerced into numbers and collected into an array. + * + * @param spec + */ +export const floats = $multi(coerceFloats, "NUM"); + +/** + * Multi-arg version of {@link hex}. Returns a full {@link ArgSpec} for a multi + * hex integer value arg. This argument can be provided mutiple times with + * values being coerced into numbers and collected into an array. + * + * @param spec + */ +export const hexes = $multi(coerceHexInts, "HEX"); + +/** + * Multi-arg version of {@link int}. Returns a full {@link ArgSpec} for a multi + * integer value arg. This argument can be provided mutiple times with values + * being coerced into numbers and collected into an array. + * + * @param spec + */ +export const ints = $multi(coerceInts, "INT"); + +/** + * Returns full {@link ArgSpec} for a JSON value arg. The raw CLI value string + * will be automcatically coerced using {@link coerceJson}. + * + * @param spec + */ +export const json = >>( + spec: S +): S & { coerce: Fn; hint: string } => ({ + coerce: coerceJson, + hint: "JSON", + ...spec, +}); + +const $desc = (opts: readonly string[], prefix?: string) => + `${prefix ? prefix + ": " : ""}${opts.map((x) => `'${x}'`).join(", ")}`; + +/** + * Returns full {@link ArgSpec} for an enum-like string value arg. The raw CLI + * value string will be automcatically validated using {@link coerceOneOf}. + * + * @param opts + * @param spec + */ +export const oneOf = >>( + opts: readonly K[], + spec: S +): S & { coerce: Fn; hint: string } & { desc: string } => ({ + coerce: coerceOneOf(opts), + hint: "ID", + ...spec, + desc: $desc(opts, spec.desc), +}); + +/** + * Multi-arg version of {@link oneOf}. Returns full {@link ArgSpec} for multiple + * enum-like string value args. The raw CLI value strings will be automcatically + * validated using {@link coerceOneOf} and collected into an array. + * + * @param opts + * @param spec + */ +export const oneOfMulti = < + K extends string, + S extends Partial & { delim: string }> +>( + opts: readonly K[], + spec: S +): S & { + coerce: Fn; + hint: string; + multi: true; +} & { desc: string } => ({ + coerce: (xs) => xs.map(coerceOneOf(opts)), + hint: $hint("ID", spec.delim), + multi: true, + ...spec, + desc: $desc(opts, spec.desc), +}); + +/** + * Returns a full {@link ArgSpec} for multiple `key=value` pair args, coerced + * into a result object. + * + * @remarks + * The default delimiter (`=`) can be overridden. Also by default, key-only args + * are allowed and will receive a `"true"` as their value. However, if `strict` + * is true, only full KV pairs are allowed. + * + * @param spec + * @param delim + */ +export const kvPairs = >>( + spec: S, + delim = "=", + strict?: boolean +): S & { coerce: Fn; hint: string; multi: true } => ({ + coerce: coerceKV(delim, strict), + hint: `key${delim}val`, + multi: true, + ...spec, +}); + +/** + * Returns a full {@link ArgSpec} for a fixed `size` tuple extracted from a + * single value string. The individual values are delimited by `delim` and will + * be coerced into their target type via `coerce`. The result tuple will be + * wrapped in a {@link Tuple} instance. + * + * @remarks + * An error will be thrown if the number of extracted values differs from the + * specified tuple size or any value coercion fails. + * + * @example + * ```ts + * parse({ a: tuple(coerceInt, 2, {})}, ["--a", "1,2"]) + * // { + * // result: { a: Tuple { value: [1, 2] } }, + * // index: 2, + * // rest: [], + * // done: true + * // } + * ``` + * + * @param coerce + * @param size + * @param spec + * @param delim + */ +export const tuple = >>>( + coerce: Fn, + size: number, + spec: S, + delim = "," +): S & { coerce: Fn>; hint: string } => ({ + coerce: coerceTuple(coerce, size, delim), + hint: [...repeat("N", size)].join(delim), + ...spec, +}); + +/** + * Syntax sugar for `tuple(coerceInt, size, {...}, delim)`. + * + * @param size + * @param spec + * @param delim + */ +export const size = >>>( + size: number, + spec: S, + delim = "x" +) => tuple(coerceInt, size, spec, delim); diff --git a/packages/args/src/coerce.ts b/packages/args/src/coerce.ts new file mode 100644 index 0000000000..ec363807c8 --- /dev/null +++ b/packages/args/src/coerce.ts @@ -0,0 +1,52 @@ +import type { Fn } from "@thi.ng/api"; +import { isHex, isNumericFloat, isNumericInt } from "@thi.ng/checks"; +import { illegalArgs } from "@thi.ng/errors"; +import { KVDict, Tuple } from "./api"; + +export const coerceString = (x: string) => x; + +export const coerceFloat = (x: string) => + isNumericFloat(x) + ? parseFloat(x) + : illegalArgs(`not a numeric value: ${x}`); + +export const coerceFloats = (xs: string[]) => xs.map(coerceFloat); + +export const coerceHexInt = (x: string) => + isHex(x) ? parseInt(x, 16) : illegalArgs(`not a hex value: ${x}`); + +export const coerceHexInts = (xs: string[]) => xs.map(coerceHexInt); + +export const coerceInt = (x: string) => + isNumericInt(x) ? parseInt(x) : illegalArgs(`not an integer: ${x}`); + +export const coerceInts = (xs: string[]) => xs.map(coerceInt); + +export const coerceJson = (x: string): T => JSON.parse(x); + +export const coerceOneOf = (xs: readonly K[]) => ( + x: string +) => (xs.includes(x) ? x : illegalArgs(`invalid option: ${x}`)); + +export const coerceKV = (delim = "=", strict = false) => (pairs: string[]) => + pairs.reduce((acc, x) => { + const idx = x.indexOf(delim); + strict && + idx < 1 && + illegalArgs(`got '${x}', but expected a 'key${delim}value' pair`); + idx > 0 + ? (acc[x.substr(0, idx)] = x.substr(idx + 1)) + : (acc[x] = "true"); + return acc; + }, {}); + +export const coerceTuple = ( + coerce: Fn, + size: number, + delim = "," +) => (src: string) => { + const parts = src.split(delim); + parts.length !== size && + illegalArgs(`got '${src}', but expected a tuple of ${size} values`); + return new Tuple(parts.map(coerce)); +}; diff --git a/packages/args/src/index.ts b/packages/args/src/index.ts new file mode 100644 index 0000000000..81a1dd961a --- /dev/null +++ b/packages/args/src/index.ts @@ -0,0 +1,5 @@ +export * from "./api"; +export * from "./args"; +export * from "./coerce"; +export * from "./parse"; +export * from "./usage"; diff --git a/packages/args/src/parse.ts b/packages/args/src/parse.ts new file mode 100644 index 0000000000..385562bb46 --- /dev/null +++ b/packages/args/src/parse.ts @@ -0,0 +1,101 @@ +import type { IObjectOf, Nullable } from "@thi.ng/api"; +import { isArray } from "@thi.ng/checks"; +import { illegalArgs } from "@thi.ng/errors"; +import { camel } from "@thi.ng/strings"; +import type { Args, ArgSpecExt, ParseOpts, ParseResult } from "./api"; +import { usage } from "./usage"; + +export const parse = >( + specs: Args, + argv: string[], + opts?: Partial +): ParseResult | undefined => { + opts = { start: 2, showUsage: true, ...opts }; + const acc: any = {}; + const aliases = Object.entries(specs).reduce( + (acc, [k, v]) => (v.alias ? ((acc[v.alias] = k), acc) : acc), + >{} + ); + let id: Nullable; + let spec: Nullable; + let i = opts.start!; + try { + for (; i < argv.length; ) { + const a = argv[i]; + if (!id) { + if (a[0] === "-") { + if (a[1] === "-") { + if (a === "--") { + i++; + break; + } + id = camel(a.substr(2)); + } else { + id = aliases[a[1]]; + !id && illegalArgs(`unknown alias: ${a}`); + } + if (id === "help") { + console.log(usage(specs, opts.usageOpts)); + return; + } + spec = specs[id]; + !spec && illegalArgs(id); + i++; + if (spec.flag) { + acc[id] = true; + id = null; + if (spec.fn && !spec.fn("true")) break; + } + } else break; + } else { + /^-[a-z]/i.test(a) && illegalArgs(`missing value for: --${id}`); + if (spec!.multi) { + isArray(acc[id]) ? acc[id].push(a) : (acc[id] = [a]); + } else { + acc[id] = a; + } + id = null; + i++; + if (spec!.fn && !spec!.fn(a)) break; + } + } + id && illegalArgs(`missing value for: --${id}`); + for (id in specs) { + spec = specs[id]; + if (acc[id] === undefined) { + if (spec.default !== undefined) { + acc[id] = spec.default; + } else if (spec.optional === false) { + illegalArgs(`missing arg: --${id}`); + } + } else { + if (spec.coerce) { + try { + if (spec.multi && spec.delim) { + acc[id] = (acc[id]).reduce( + (acc, x) => ( + acc.push(...x.split(spec!.delim!)), acc + ), + [] + ); + } + acc[id] = spec.coerce(acc[id]); + } catch (e) { + throw new Error(`arg --${id}: ${e.message}`); + } + } + } + } + return { + result: acc, + index: i, + rest: argv.slice(i), + done: i >= argv.length, + }; + } catch (e) { + if (opts.showUsage) { + console.log(e.message + "\n\n" + usage(specs, opts.usageOpts)); + } + throw e; + } +}; diff --git a/packages/args/src/usage.ts b/packages/args/src/usage.ts new file mode 100644 index 0000000000..c78737dbe0 --- /dev/null +++ b/packages/args/src/usage.ts @@ -0,0 +1,59 @@ +import type { IObjectOf } from "@thi.ng/api"; +import { + kebab, + padRight, + repeat, + stripAnsi, + wordWrapLines, +} from "@thi.ng/strings"; +import { Args, ArgSpecExt, ColorTheme, DEFAULT_THEME, UsageOpts } from "./api"; + +export const usage = >( + specs: Args, + opts: Partial = {} +) => { + opts = { + lineWidth: 80, + paramWidth: 32, + ...opts, + }; + const theme = + opts.color !== false + ? { ...DEFAULT_THEME, ...opts.color } + : {}; + const indent = repeat(" ", opts.paramWidth!); + const ansi = (x: string, col: number) => + col != null ? `\x1b[${col}m${x}\x1b[0m` : x; + return Object.keys(specs) + .sort() + .map((id) => { + const spec: ArgSpecExt = specs[id]; + const hint = spec.hint ? ansi(" " + spec.hint, theme.hint!) : ""; + const name = ansi(`--${kebab(id)}`, theme.param!); + const alias = spec.alias + ? `${ansi("-" + spec.alias, theme.param!)}${hint}, ` + : ""; + const params = `${alias}${name}${hint}`; + const isRequired = + spec.optional === false && spec.default === undefined; + const prefixes: string[] = []; + isRequired && prefixes.push("required"); + spec.multi && prefixes.push("multiple"); + const prefix = prefixes.length + ? ansi( + `[${prefixes.join(", ")}] `, + isRequired ? theme.required! : theme.multi! + ) + : ""; + return ( + padRight(opts.paramWidth!)(params, stripAnsi(params).length) + + wordWrapLines( + prefix + (spec.desc || ""), + opts.lineWidth! - opts.paramWidth! + ) + .map((l, i) => (i > 0 ? indent : "") + l) + .join("\n") + ); + }) + .join("\n"); +}; diff --git a/packages/args/test/index.ts b/packages/args/test/index.ts new file mode 100644 index 0000000000..4569a6a525 --- /dev/null +++ b/packages/args/test/index.ts @@ -0,0 +1,229 @@ +import * as assert from "assert"; +import { + coerceInt, + flag, + float, + hex, + int, + ints, + json, + KVDict, + kvPairs, + oneOf, + parse, + size, + string, + tuple, + Tuple, +} from "../src"; + +describe("args", () => { + it("basic / string", () => { + assert.deepStrictEqual( + parse<{ a?: string }>({ a: string({}) }, ["--a", "a"], { + start: 0, + }), + { result: { a: "a" }, index: 2, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a?: string }>({ a: string({ alias: "A" }) }, ["-A", "a"], { + start: 0, + }), + { result: { a: "a" }, index: 2, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a?: string }>({ a: string({}) }, [], { + start: 0, + }), + { result: {}, index: 0, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a: string }>({ a: string({ default: "a" }) }, [], { + start: 0, + }), + { result: { a: "a" }, index: 0, done: true, rest: [] } + ); + assert.throws(() => + parse<{ a: string }>({ a: string({ optional: false }) }, [], { + showUsage: false, + }) + ); + }); + + it("flag", () => { + assert.deepStrictEqual( + parse<{ a?: boolean }>({ a: flag({}) }, ["--a"], { + start: 0, + }), + { result: { a: true }, index: 1, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a: boolean }>({ a: flag({ default: false }) }, [], { + start: 0, + }), + { result: { a: false }, index: 0, done: true, rest: [] } + ); + }); + + it("number", () => { + assert.deepStrictEqual( + parse<{ a?: number }>({ a: float({}) }, ["--a", "1.23"], { + start: 0, + }), + { result: { a: 1.23 }, index: 2, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a?: number }>({ a: int({}) }, ["--a", "123"], { + start: 0, + }), + { result: { a: 123 }, index: 2, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a?: number }>({ a: hex({}) }, ["--a", "123"], { + start: 0, + }), + { result: { a: 0x123 }, index: 2, done: true, rest: [] } + ); + assert.throws(() => + parse<{ a?: number }>({ a: int({}) }, ["--a", "a"], { + start: 0, + showUsage: false, + }) + ); + }); + + it("enum", () => { + type E = "abc" | "xyz"; + const opts: E[] = ["abc", "xyz"]; + assert.deepStrictEqual( + parse<{ a?: E }>({ a: oneOf(opts, {}) }, ["--a", "abc"], { + start: 0, + }), + { result: { a: "abc" }, index: 2, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a?: E }>({ a: oneOf(opts, { default: "xyz" }) }, []), + { result: { a: "xyz" }, index: 2, done: true, rest: [] } + ); + assert.throws(() => + parse<{ a?: E }>({ a: oneOf(opts, {}) }, ["--a", "def"], { + start: 0, + showUsage: false, + }) + ); + }); + + it("kv", () => { + assert.deepStrictEqual( + parse<{ a?: KVDict }>( + { a: kvPairs({}) }, + ["--a", "foo=bar", "--a", "baz"], + { + start: 0, + } + ), + { + result: { a: { foo: "bar", baz: "true" } }, + index: 4, + done: true, + rest: [], + } + ); + assert.deepStrictEqual( + parse<{ a?: KVDict }>({ a: kvPairs({}, ":") }, ["--a", "foo:bar"], { + start: 0, + }), + { result: { a: { foo: "bar" } }, index: 2, done: true, rest: [] } + ); + assert.throws(() => + parse<{ a?: KVDict }>( + { a: kvPairs({}, ":", true) }, + ["--a", "foo"], + { + start: 0, + showUsage: false, + } + ) + ); + }); + + it("json", () => { + assert.deepStrictEqual( + parse<{ a: any }>( + { a: json({}) }, + ["--a", '{"foo":[23]}'], + { + start: 0, + } + ), + { result: { a: { foo: [23] } }, index: 2, done: true, rest: [] } + ); + }); + + it("number[]", () => { + assert.deepStrictEqual( + parse<{ a?: number[] }>({ a: ints({}) }, ["--a", "1", "--a", "2"], { + start: 0, + }), + { result: { a: [1, 2] }, index: 4, done: true, rest: [] } + ); + assert.deepStrictEqual( + parse<{ a?: number[] }>( + { a: ints({ delim: "," }) }, + ["--a", "1,2", "--a", "3,4"], + { + start: 0, + } + ), + { result: { a: [1, 2, 3, 4] }, index: 4, done: true, rest: [] } + ); + }); + + it("tuple", () => { + const res = { + result: { a: new Tuple([1, 2, 3]) }, + index: 2, + done: true, + rest: [], + }; + assert.deepStrictEqual( + parse<{ a?: Tuple }>( + { a: tuple(coerceInt, 3, {}) }, + ["--a", "1,2,3"], + { + start: 0, + } + ), + res + ); + assert.deepStrictEqual( + parse<{ a?: Tuple }>( + { a: size(3, {}, "x") }, + ["--a", "1x2x3"], + { + start: 0, + } + ), + res + ); + }); + + it("stop early", () => { + assert.deepStrictEqual( + parse<{ a?: number }>({ a: int({}) }, ["--a", "1", "foo"], { + start: 0, + }), + { result: { a: 1 }, index: 2, done: false, rest: ["foo"] } + ); + assert.deepStrictEqual( + parse<{ a?: number }>( + { a: int({}) }, + ["--a", "1", "--", "ignore"], + { + start: 0, + } + ), + { result: { a: 1 }, index: 3, done: false, rest: ["ignore"] } + ); + }); +}); diff --git a/packages/args/test/tsconfig.json b/packages/args/test/tsconfig.json new file mode 100644 index 0000000000..f6e63560dd --- /dev/null +++ b/packages/args/test/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "module": "commonjs" + }, + "include": [ + "./**/*.ts", + "../src/**/*.ts" + ] +} diff --git a/packages/args/tpl.readme.md b/packages/args/tpl.readme.md new file mode 100644 index 0000000000..9ce97481fe --- /dev/null +++ b/packages/args/tpl.readme.md @@ -0,0 +1,181 @@ +# ${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} + +Includes built-in support for the following argument types (of course custom arg types are supported too): + +| **Argument type** | **Multiple** | **Example** | **Result** | +|----------------------|--------------|----------------------------|-------------------------------| +| **Flag** | | `--force`, `-f` | `force: true` | +| **String** | ✅ | `--foo bar` | `foo: "bar"` | +| **Float/int/hex** | ✅ | `--bg ff997f` | `bg: 16750975` | +| **Enum** | ✅ | `--type png` | `type: "png"` | +| **KV pairs** | ✅ | `--define foo=bar` | `define: { foo: "bar" }` | +| **JSON** | | `--config '{"foo": [23]}'` | `config: { foo: [23] }` | +| **Fixed size tuple** | | `--size 640x480` | `size: { value: [640, 480] }` | + +If multiple values/repetitions are allowed for an argument, the values will be +collected into an array (apart from KV pairs, which will yield an object). +Furthermore, for multi-args, an optional delimiter can be specified to extract +individual values, e.g. `-a 1,2,3` equals `-a 1 -a 2 -a 3` + +${status} + +${supportPackages} + +${relatedPackages} + +${blogPosts} + +## Installation + +${pkg.install} + +${pkg.size} + +## Dependencies + +${pkg.deps} + +${examples} + +## API + +${docLink} + +### Basic usage + +```ts +type ImgType = "png" | "jpg" | "gif" | "tiff"; + +// CLI args will be validated against this interface +interface TestArgs { + configPath?: string; + force: boolean; + bg: number; + type: ImgType; + size?: Tuple; + xtra?: { a: number; b: string }; + define?: KVDict; +} + +// arg specifications +const specs: Args = { + // string arg + configPath: string({ + alias: "c", + hint: "PATH", + desc: "Config file path (CLI args always take precedence over those settings)", + }), + // boolean flag (default: false) + force: flag({ + alias: "f", + desc: "Force operation", + // side effect & predicate + // parsing only continues if fn returns true + fn: (_) => (console.log("force mode enabled"), true), + }), + // hex int value + bg: hex({ + desc: "Background color", + // mandatory args require a `default` value and/or `optional: false` + default: 0xffffff, + }), + // enum value (mandatory) + type: oneOf(["png", "jpg", "gif", "tiff"], { + alias: "t", + desc: "Image type", + // mandatory args require a `default` value and/or `optional: false` + optional: false, + }), + // fixed size numeric tuple w/ `x` as delimiter + // size: tuple(coerceInt, 2, { hint: "WxH", desc: "Target size" }, "x"), + // syntax sugar for above: + size: size(2, { hint: "WxH", desc: "Target size" }), + // JSON string arg + xtra: json({ + alias: "x", + desc: "Extra options", + }), + // key-value pairs parsed into an object + define: kvPairs({ alias: "D", desc: "Define dict entry" }), +}; + +try { + // parse argv w/ above argument specs & default options + // (by default usage is shown if error occurs) + const args = parse(specs, process.argv); + console.log(args); +} catch (_) {} +``` + +#### Generate & display help + +By default uses ANSI colors (see +[`UsageOpts`](https://github.com/thi-ng/umbrella/blob/develop/packages/args/src/api.ts)), +`--help` is always available as built-in: + +```text +ts-node index.ts --help + +--bg HEX Background color +-c PATH, --config-path PATH Config file path (CLI args always take + precedence over those settings) +-D key=val, --define key=val [multiple] Define dict entry +-f, --force Force operation +--size WxH Target size +-t ID, --type ID [required] Image type: 'png', 'jpg', 'gif', + 'tiff' +-x JSON, --xtra JSON Extra options +``` + +#### Parsing, value coercions & side effects + +The below invocation demonstrates how the various argument types are handled & +represented in the result. Parsing stops with the first non-argument value (here +`sourcefile.png`) and the remaining values are made available via `rest` in the +result object. + +```bash +ts-node index.ts \ + -f -t png --bg ff00ff --size 640x480 \ + -D author=toxi -D date=2018-03-24 \ + --xtra '{"foo": [23]}' \ + sourcefile.png + +# force mode enabled +# { +# result: { +# force: true, +# type: 'png', +# bg: 16711935, +# size: Tuple { value: [640, 480] } +# define: { author: 'toxi', date: '2018-03-24' }, +# xtra: { foo: [23] }, +# }, +# index: 15, +# rest: [ 'sourcefile.png' ], +# done: false +# } +``` + +## Authors + +${authors} + +${pkg.cite} + +## License + +© ${copyright} // ${license} diff --git a/packages/args/tsconfig.json b/packages/args/tsconfig.json new file mode 100644 index 0000000000..bd6481a5a6 --- /dev/null +++ b/packages/args/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "." + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/packages/arrays/CHANGELOG.md b/packages/arrays/CHANGELOG.md index 5e47416c83..3ef4e4b0d6 100644 --- a/packages/arrays/CHANGELOG.md +++ b/packages/arrays/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.9.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.9.0...@thi.ng/arrays@0.9.1) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/arrays + + + + + # [0.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.8.5...@thi.ng/arrays@0.9.0) (2021-01-02) diff --git a/packages/arrays/package.json b/packages/arrays/package.json index bb0173ad8a..d5f638fb1f 100644 --- a/packages/arrays/package.json +++ b/packages/arrays/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/arrays", - "version": "0.9.0", + "version": "0.9.1", "description": "Array / Arraylike utilities", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/compare": "^1.3.22", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/random": "^2.1.4" + "@thi.ng/random": "^2.1.5" }, "files": [ "*.js", diff --git a/packages/associative/CHANGELOG.md b/packages/associative/CHANGELOG.md index 4dcfdded25..99d680f8ad 100644 --- a/packages/associative/CHANGELOG.md +++ b/packages/associative/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.0.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.13...@thi.ng/associative@5.0.14) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/associative + + + + + ## [5.0.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.0.12...@thi.ng/associative@5.0.13) (2021-01-02) **Note:** Version bump only for package @thi.ng/associative diff --git a/packages/associative/package.json b/packages/associative/package.json index 4333821793..8d65019428 100644 --- a/packages/associative/package.json +++ b/packages/associative/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/associative", - "version": "5.0.13", + "version": "5.0.14", "description": "Alternative Map and Set implementations with customizable equality semantics & supporting operations", "module": "./index.js", "main": "./lib/index.js", @@ -51,12 +51,12 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/compare": "^1.3.22", - "@thi.ng/dcons": "^2.3.5", + "@thi.ng/dcons": "^2.3.6", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4", + "@thi.ng/transducers": "^7.5.5", "tslib": "2.0.1" }, "files": [ diff --git a/packages/atom/CHANGELOG.md b/packages/atom/CHANGELOG.md index 5bbb75cfa1..c363607a9e 100644 --- a/packages/atom/CHANGELOG.md +++ b/packages/atom/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.26...@thi.ng/atom@4.1.27) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/atom + + + + + ## [4.1.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.25...@thi.ng/atom@4.1.26) (2021-01-02) **Note:** Version bump only for package @thi.ng/atom diff --git a/packages/atom/package.json b/packages/atom/package.json index 5db6cc7ea5..7c9acaf4b4 100644 --- a/packages/atom/package.json +++ b/packages/atom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/atom", - "version": "4.1.26", + "version": "4.1.27", "description": "Mutable wrappers for nested immutable values with optional undo/redo history and transaction support", "module": "./index.js", "main": "./lib/index.js", @@ -52,7 +52,7 @@ "@thi.ng/api": "^6.13.6", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/paths": "^4.1.12", + "@thi.ng/paths": "^4.1.13", "tslib": "2.0.1" }, "files": [ diff --git a/packages/bencode/CHANGELOG.md b/packages/bencode/CHANGELOG.md index a053ec4cd7..c6542261a1 100644 --- a/packages/bencode/CHANGELOG.md +++ b/packages/bencode/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.45...@thi.ng/bencode@0.3.46) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/bencode + + + + + ## [0.3.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.44...@thi.ng/bencode@0.3.45) (2021-01-02) **Note:** Version bump only for package @thi.ng/bencode diff --git a/packages/bencode/package.json b/packages/bencode/package.json index 4064dbb3d6..c9c70015e1 100644 --- a/packages/bencode/package.json +++ b/packages/bencode/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bencode", - "version": "0.3.45", + "version": "0.3.46", "description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support", "module": "./index.js", "main": "./lib/index.js", @@ -50,12 +50,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/transducers-binary": "^0.6.1" + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/transducers-binary": "^0.6.2" }, "files": [ "*.js", diff --git a/packages/bitfield/CHANGELOG.md b/packages/bitfield/CHANGELOG.md index 435ebe96ee..b95c109aad 100644 --- a/packages/bitfield/CHANGELOG.md +++ b/packages/bitfield/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.28...@thi.ng/bitfield@0.3.29) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/bitfield + + + + + ## [0.3.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.27...@thi.ng/bitfield@0.3.28) (2021-01-05) **Note:** Version bump only for package @thi.ng/bitfield diff --git a/packages/bitfield/package.json b/packages/bitfield/package.json index 11d18d1ab2..2bd623d26f 100644 --- a/packages/bitfield/package.json +++ b/packages/bitfield/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bitfield", - "version": "0.3.28", + "version": "0.3.29", "description": "1D / 2D bit field implementations", "module": "./index.js", "main": "./lib/index.js", @@ -51,7 +51,7 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/strings": "^1.12.0" + "@thi.ng/strings": "^1.13.0" }, "files": [ "*.js", diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 4053f30c70..b0898534c8 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.65...@thi.ng/cache@1.0.66) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/cache + + + + + ## [1.0.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.64...@thi.ng/cache@1.0.65) (2021-01-02) **Note:** Version bump only for package @thi.ng/cache diff --git a/packages/cache/package.json b/packages/cache/package.json index 30deaa21db..19279d4f67 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/cache", - "version": "1.0.65", + "version": "1.0.66", "description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/dcons": "^2.3.5", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/dcons": "^2.3.6", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/checks/CHANGELOG.md b/packages/checks/CHANGELOG.md index 558867d0f0..f44ffe3b54 100644 --- a/packages/checks/CHANGELOG.md +++ b/packages/checks/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.13...@thi.ng/checks@2.8.0) (2021-01-10) + + +### Features + +* **checks:** add isNumericInt/Float() checks ([7e054c1](https://github.com/thi-ng/umbrella/commit/7e054c14b06850800869ba0bc8c8174e233dda53)) + + + + + ## [2.7.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.7.12...@thi.ng/checks@2.7.13) (2021-01-02) **Note:** Version bump only for package @thi.ng/checks diff --git a/packages/checks/package.json b/packages/checks/package.json index 0c63ad0233..dbfa8cfe07 100644 --- a/packages/checks/package.json +++ b/packages/checks/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/checks", - "version": "2.7.13", + "version": "2.8.0", "description": "Collection of 50+ type, feature & value checks", "module": "./index.js", "main": "./lib/index.js", diff --git a/packages/checks/src/index.ts b/packages/checks/src/index.ts index 6fe5d26d4a..cff744c075 100644 --- a/packages/checks/src/index.ts +++ b/packages/checks/src/index.ts @@ -41,6 +41,7 @@ export * from "./is-node"; export * from "./is-not-string-iterable"; export * from "./is-null"; export * from "./is-number"; +export * from "./is-numeric"; export * from "./is-object"; export * from "./is-odd"; export * from "./is-plain-object"; diff --git a/packages/checks/src/is-numeric.ts b/packages/checks/src/is-numeric.ts new file mode 100644 index 0000000000..7cb70cae15 --- /dev/null +++ b/packages/checks/src/is-numeric.ts @@ -0,0 +1,16 @@ +/** + * Returns true if given string contains only digits, and optionally, a sign + * prefix. + * + * @param x + */ +export const isNumericInt = (x: string) => /^[-+]?\d+$/.test(x); + +/** + * Returns true if given string only contains an integer or floating point + * number, optionally in scientific notiation (e.g. `-123.45e-6`). + * + * @param x + */ +export const isNumericFloat = (x: string) => + /^[-+]?\d*\.?\d+(e[-+]?\d+)?$/i.test(x); diff --git a/packages/color/CHANGELOG.md b/packages/color/CHANGELOG.md index 4d4f284764..f5c674a912 100644 --- a/packages/color/CHANGELOG.md +++ b/packages/color/CHANGELOG.md @@ -3,6 +3,14 @@ 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/color@2.1.1...@thi.ng/color@2.1.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/color + + + + + ## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@2.1.0...@thi.ng/color@2.1.1) (2021-01-05) **Note:** Version bump only for package @thi.ng/color diff --git a/packages/color/package.json b/packages/color/package.json index 469c9152ea..47351d12d9 100644 --- a/packages/color/package.json +++ b/packages/color/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/color", - "version": "2.1.1", + "version": "2.1.2", "description": "Array-based color types, conversions, transformations, declarative theme generation, multi-color gradients, presets", "module": "./index.js", "main": "./lib/index.js", @@ -51,17 +51,17 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", "@thi.ng/compare": "^1.3.22", "@thi.ng/compose": "^1.4.23", "@thi.ng/defmulti": "^1.3.4", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", - "@thi.ng/random": "^2.1.4", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/random": "^2.1.5", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/colored-noise/CHANGELOG.md b/packages/colored-noise/CHANGELOG.md index ecab0ab422..7427108386 100644 --- a/packages/colored-noise/CHANGELOG.md +++ b/packages/colored-noise/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.9...@thi.ng/colored-noise@0.1.10) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/colored-noise + + + + + ## [0.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.8...@thi.ng/colored-noise@0.1.9) (2021-01-05) **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 43cf64d005..fbdc4f0641 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.9", + "version": "0.1.10", "description": "Customizable O(1) ES6 generators for colored noise", "module": "./index.js", "main": "./lib/index.js", @@ -41,11 +41,11 @@ "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.12.1", "@thi.ng/api": "^6.13.6", - "@thi.ng/dsp": "^3.0.1", - "@thi.ng/dsp-io-wav": "^0.1.35", - "@thi.ng/text-canvas": "^0.4.0", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4", + "@thi.ng/dsp": "^3.0.2", + "@thi.ng/dsp-io-wav": "^0.1.36", + "@thi.ng/text-canvas": "^0.4.1", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5", "@types/mocha": "^8.2.0", "@types/node": "^14.14.14", "mocha": "^8.2.1", @@ -56,7 +56,7 @@ }, "dependencies": { "@thi.ng/binary": "^2.0.21", - "@thi.ng/random": "^2.1.4" + "@thi.ng/random": "^2.1.5" }, "files": [ "*.js", diff --git a/packages/csp/CHANGELOG.md b/packages/csp/CHANGELOG.md index 14fbbb02bf..5e9a9fc9e4 100644 --- a/packages/csp/CHANGELOG.md +++ b/packages/csp/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.45...@thi.ng/csp@1.1.46) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/csp + + + + + ## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.44...@thi.ng/csp@1.1.45) (2021-01-02) **Note:** Version bump only for package @thi.ng/csp diff --git a/packages/csp/package.json b/packages/csp/package.json index 01a6cdc1f5..0a36ea2611 100644 --- a/packages/csp/package.json +++ b/packages/csp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csp", - "version": "1.1.45", + "version": "1.1.46", "description": "ES6 promise based CSP primitives & operations", "module": "./index.js", "main": "./lib/index.js", @@ -54,11 +54,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/dcons": "^2.3.5", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/dcons": "^2.3.6", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/csv/CHANGELOG.md b/packages/csv/CHANGELOG.md index 07261663f0..b5d215568f 100644 --- a/packages/csv/CHANGELOG.md +++ b/packages/csv/CHANGELOG.md @@ -3,6 +3,14 @@ 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/csv@0.1.5...@thi.ng/csv@0.1.6) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/csv + + + + + ## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@0.1.4...@thi.ng/csv@0.1.5) (2021-01-05) **Note:** Version bump only for package @thi.ng/csv diff --git a/packages/csv/package.json b/packages/csv/package.json index 2a3339ee2b..40ca10341d 100644 --- a/packages/csv/package.json +++ b/packages/csv/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csv", - "version": "0.1.5", + "version": "0.1.6", "description": "Customizable, transducer-based CSV parser/object mapper and transformer", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/dcons/CHANGELOG.md b/packages/dcons/CHANGELOG.md index d5cfccbf63..94c1c979ff 100644 --- a/packages/dcons/CHANGELOG.md +++ b/packages/dcons/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.5...@thi.ng/dcons@2.3.6) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dcons + + + + + ## [2.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.4...@thi.ng/dcons@2.3.5) (2021-01-02) **Note:** Version bump only for package @thi.ng/dcons diff --git a/packages/dcons/package.json b/packages/dcons/package.json index 8f7ff42450..512c6c6d7f 100644 --- a/packages/dcons/package.json +++ b/packages/dcons/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dcons", - "version": "2.3.5", + "version": "2.3.6", "description": "Double-linked lists with comprehensive set of operations (incl. optional self-organizing behaviors)", "module": "./index.js", "main": "./lib/index.js", @@ -50,12 +50,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/compare": "^1.3.22", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/dgraph-dot/CHANGELOG.md b/packages/dgraph-dot/CHANGELOG.md index a6075ba06e..ed050c0795 100644 --- a/packages/dgraph-dot/CHANGELOG.md +++ b/packages/dgraph-dot/CHANGELOG.md @@ -3,6 +3,14 @@ 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/dgraph-dot@0.1.33...@thi.ng/dgraph-dot@0.1.34) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dgraph-dot + + + + + ## [0.1.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.32...@thi.ng/dgraph-dot@0.1.33) (2021-01-02) **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 dfc9f9c0d3..bb63d848cc 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.33", + "version": "0.1.34", "description": "Customizable Graphviz DOT serialization for @thi.ng/dgraph", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/dgraph": "^1.3.4", - "@thi.ng/dot": "^1.2.23" + "@thi.ng/dgraph": "^1.3.5", + "@thi.ng/dot": "^1.2.24" }, "files": [ "*.js", diff --git a/packages/dgraph/CHANGELOG.md b/packages/dgraph/CHANGELOG.md index 43670bf14e..60f511edc9 100644 --- a/packages/dgraph/CHANGELOG.md +++ b/packages/dgraph/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.4...@thi.ng/dgraph@1.3.5) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dgraph + + + + + ## [1.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.3...@thi.ng/dgraph@1.3.4) (2021-01-02) **Note:** Version bump only for package @thi.ng/dgraph diff --git a/packages/dgraph/package.json b/packages/dgraph/package.json index b0fc940cdc..d94932422c 100644 --- a/packages/dgraph/package.json +++ b/packages/dgraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dgraph", - "version": "1.3.4", + "version": "1.3.5", "description": "Type-agnostic directed acyclic graph (DAG) & graph operations", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", + "@thi.ng/associative": "^5.0.14", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/dl-asset/CHANGELOG.md b/packages/dl-asset/CHANGELOG.md index ca4fb5e14f..92e82291ff 100644 --- a/packages/dl-asset/CHANGELOG.md +++ b/packages/dl-asset/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.4.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.11...@thi.ng/dl-asset@0.4.12) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dl-asset + + + + + ## [0.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.10...@thi.ng/dl-asset@0.4.11) (2021-01-02) **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 0b411b1b5b..4d635f6f70 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.11", + "version": "0.4.12", "description": "Local asset download for web apps, with automatic MIME type detection", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/mime": "^0.1.27" }, "files": [ diff --git a/packages/dot/CHANGELOG.md b/packages/dot/CHANGELOG.md index 4fa5897226..bc693eec5d 100644 --- a/packages/dot/CHANGELOG.md +++ b/packages/dot/CHANGELOG.md @@ -3,6 +3,14 @@ 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/dot@1.2.23...@thi.ng/dot@1.2.24) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dot + + + + + ## [1.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.22...@thi.ng/dot@1.2.23) (2021-01-02) **Note:** Version bump only for package @thi.ng/dot diff --git a/packages/dot/package.json b/packages/dot/package.json index 7fc0742fc6..94b0393bd0 100644 --- a/packages/dot/package.json +++ b/packages/dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dot", - "version": "1.2.23", + "version": "1.2.24", "description": "Graphviz document abstraction & serialization to DOT format", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13" + "@thi.ng/checks": "^2.8.0" }, "files": [ "*.js", diff --git a/packages/dsp-io-wav/CHANGELOG.md b/packages/dsp-io-wav/CHANGELOG.md index 14ccd89e94..c0cd69ae59 100644 --- a/packages/dsp-io-wav/CHANGELOG.md +++ b/packages/dsp-io-wav/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.35...@thi.ng/dsp-io-wav@0.1.36) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dsp-io-wav + + + + + ## [0.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.34...@thi.ng/dsp-io-wav@0.1.35) (2021-01-02) **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 bf323de9b3..9170724ccf 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.35", + "version": "0.1.36", "description": "WAV file format generation", "module": "./index.js", "main": "./lib/index.js", @@ -51,8 +51,8 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/transducers-binary": "^0.6.1" + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/transducers-binary": "^0.6.2" }, "files": [ "*.js", diff --git a/packages/dsp/CHANGELOG.md b/packages/dsp/CHANGELOG.md index c47acbcf98..4df37c5c06 100644 --- a/packages/dsp/CHANGELOG.md +++ b/packages/dsp/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@3.0.1...@thi.ng/dsp@3.0.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/dsp + + + + + ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@3.0.0...@thi.ng/dsp@3.0.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/dsp diff --git a/packages/dsp/package.json b/packages/dsp/package.json index 52bf124f8b..0eb7a59ae7 100644 --- a/packages/dsp/package.json +++ b/packages/dsp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dsp", - "version": "3.0.1", + "version": "3.0.2", "description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/ecs/CHANGELOG.md b/packages/ecs/CHANGELOG.md index a25e71614c..df79e40146 100644 --- a/packages/ecs/CHANGELOG.md +++ b/packages/ecs/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.4.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.4.5...@thi.ng/ecs@0.4.6) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/ecs + + + + + ## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.4.4...@thi.ng/ecs@0.4.5) (2021-01-02) **Note:** Version bump only for package @thi.ng/ecs diff --git a/packages/ecs/package.json b/packages/ecs/package.json index 46e0038690..63d1689a71 100644 --- a/packages/ecs/package.json +++ b/packages/ecs/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ecs", - "version": "0.4.5", + "version": "0.4.6", "description": "Entity Component System based around typed arrays & sparse sets", "module": "./index.js", "main": "./lib/index.js", @@ -51,13 +51,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", + "@thi.ng/associative": "^5.0.14", "@thi.ng/binary": "^2.0.21", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/dcons": "^2.3.5", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/dcons": "^2.3.6", "@thi.ng/idgen": "^0.2.29", - "@thi.ng/malloc": "^4.2.5", - "@thi.ng/transducers": "^7.5.4", + "@thi.ng/malloc": "^4.2.6", + "@thi.ng/transducers": "^7.5.5", "tslib": "2.0.1" }, "files": [ diff --git a/packages/egf/CHANGELOG.md b/packages/egf/CHANGELOG.md index 096450dd94..cc0f001380 100644 --- a/packages/egf/CHANGELOG.md +++ b/packages/egf/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.7...@thi.ng/egf@0.3.8) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/egf + + + + + ## [0.3.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.3.6...@thi.ng/egf@0.3.7) (2021-01-05) **Note:** Version bump only for package @thi.ng/egf diff --git a/packages/egf/package.json b/packages/egf/package.json index 528eb3129d..0f89ba81b4 100644 --- a/packages/egf/package.json +++ b/packages/egf/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/egf", - "version": "0.3.7", + "version": "0.3.8", "description": "Extensible Graph Format", "module": "./index.js", "main": "./lib/index.js", @@ -46,13 +46,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/dot": "^1.2.23", + "@thi.ng/associative": "^5.0.14", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/dot": "^1.2.24", "@thi.ng/errors": "^1.2.26", "@thi.ng/prefixes": "^0.1.10", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers-binary": "^0.6.1" + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers-binary": "^0.6.2" }, "files": [ "*.js", diff --git a/packages/fsm/CHANGELOG.md b/packages/fsm/CHANGELOG.md index 1cb3e29528..37153ffc05 100644 --- a/packages/fsm/CHANGELOG.md +++ b/packages/fsm/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.4.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.32...@thi.ng/fsm@2.4.33) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/fsm + + + + + ## [2.4.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.31...@thi.ng/fsm@2.4.32) (2021-01-05) **Note:** Version bump only for package @thi.ng/fsm diff --git a/packages/fsm/package.json b/packages/fsm/package.json index a337b20503..091b532c08 100644 --- a/packages/fsm/package.json +++ b/packages/fsm/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fsm", - "version": "2.4.32", + "version": "2.4.33", "description": "Composable primitives for building declarative, transducer based Finite-State Machines & matchers for arbitrary data streams", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", + "@thi.ng/arrays": "^0.9.1", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/fuzzy-viz/CHANGELOG.md b/packages/fuzzy-viz/CHANGELOG.md index 9e52c2893a..27263a736c 100644 --- a/packages/fuzzy-viz/CHANGELOG.md +++ b/packages/fuzzy-viz/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy-viz@0.1.2...@thi.ng/fuzzy-viz@0.1.3) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/fuzzy-viz + + + + + ## [0.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy-viz@0.1.1...@thi.ng/fuzzy-viz@0.1.2) (2021-01-05) **Note:** Version bump only for package @thi.ng/fuzzy-viz diff --git a/packages/fuzzy-viz/package.json b/packages/fuzzy-viz/package.json index 8a78b645f7..5f19b35eb3 100644 --- a/packages/fuzzy-viz/package.json +++ b/packages/fuzzy-viz/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fuzzy-viz", - "version": "0.1.2", + "version": "0.1.3", "description": "Visualization, instrumentation & introspection utils for @thi.ng/fuzzy", "module": "./index.js", "main": "./lib/index.js", @@ -50,12 +50,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/fuzzy": "^0.1.1", - "@thi.ng/hiccup": "^3.6.6", - "@thi.ng/hiccup-svg": "^3.7.1", - "@thi.ng/math": "^3.0.1", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/text-canvas": "^0.4.0" + "@thi.ng/fuzzy": "^0.1.2", + "@thi.ng/hiccup": "^3.6.7", + "@thi.ng/hiccup-svg": "^3.7.2", + "@thi.ng/math": "^3.1.0", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/text-canvas": "^0.4.1" }, "files": [ "*.js", diff --git a/packages/fuzzy/CHANGELOG.md b/packages/fuzzy/CHANGELOG.md index 086d4de26f..118397a489 100644 --- a/packages/fuzzy/CHANGELOG.md +++ b/packages/fuzzy/CHANGELOG.md @@ -3,6 +3,14 @@ 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/fuzzy@0.1.1...@thi.ng/fuzzy@0.1.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/fuzzy + + + + + ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy@0.1.0...@thi.ng/fuzzy@0.1.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/fuzzy diff --git a/packages/fuzzy/package.json b/packages/fuzzy/package.json index cb35cddd32..27e77759d0 100644 --- a/packages/fuzzy/package.json +++ b/packages/fuzzy/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fuzzy", - "version": "0.1.1", + "version": "0.1.2", "description": "Fuzzy logic operators & configurable rule inferencing engine", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/math": "^3.0.1" + "@thi.ng/math": "^3.1.0" }, "files": [ "*.js", diff --git a/packages/geom-accel/CHANGELOG.md b/packages/geom-accel/CHANGELOG.md index 221b51265d..cad9db3135 100644 --- a/packages/geom-accel/CHANGELOG.md +++ b/packages/geom-accel/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.30...@thi.ng/geom-accel@2.1.31) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-accel + + + + + ## [2.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.29...@thi.ng/geom-accel@2.1.30) (2021-01-02) **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 093228e69a..902d5488b3 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.30", + "version": "2.1.31", "description": "n-D spatial indexing data structures with a shared ES6 Map/Set-like API", "module": "./index.js", "main": "./lib/index.js", @@ -51,15 +51,15 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", "@thi.ng/equiv": "^1.0.35", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-isec": "^0.7.4", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-isec": "^0.7.5", "@thi.ng/heaps": "^1.2.30", - "@thi.ng/math": "^3.0.1", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-api/CHANGELOG.md b/packages/geom-api/CHANGELOG.md index 0e48f8b6d3..f0d2a54149 100644 --- a/packages/geom-api/CHANGELOG.md +++ b/packages/geom-api/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@2.0.1...@thi.ng/geom-api@2.0.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-api + + + + + ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@2.0.0...@thi.ng/geom-api@2.0.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/geom-api diff --git a/packages/geom-api/package.json b/packages/geom-api/package.json index 3bb6f2da85..0da9094d6e 100644 --- a/packages/geom-api/package.json +++ b/packages/geom-api/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-api", - "version": "2.0.1", + "version": "2.0.2", "description": "Shared type & interface declarations for @thi.ng/geom packages", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-arc/CHANGELOG.md b/packages/geom-arc/CHANGELOG.md index 39590ab3cc..06c1dce692 100644 --- a/packages/geom-arc/CHANGELOG.md +++ b/packages/geom-arc/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.19...@thi.ng/geom-arc@0.3.20) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-arc + + + + + ## [0.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.18...@thi.ng/geom-arc@0.3.19) (2021-01-02) **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 1c92c91fce..0c22967212 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.19", + "version": "0.3.20", "description": "2D circular / elliptic arc operations", "module": "./index.js", "main": "./lib/index.js", @@ -49,11 +49,11 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-resample": "^0.2.52", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-resample": "^0.2.53", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-clip-line/CHANGELOG.md b/packages/geom-clip-line/CHANGELOG.md index b1d49da33b..e601abfb3b 100644 --- a/packages/geom-clip-line/CHANGELOG.md +++ b/packages/geom-clip-line/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.15...@thi.ng/geom-clip-line@1.2.16) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-clip-line + + + + + ## [1.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.14...@thi.ng/geom-clip-line@1.2.15) (2021-01-02) **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 d6b3b0d8d0..b5e9baa21a 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.15", + "version": "1.2.16", "description": "2D line clipping (Liang-Barsky)", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/geom-isec": "^0.7.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/geom-isec": "^0.7.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-clip-poly/CHANGELOG.md b/packages/geom-clip-poly/CHANGELOG.md index 693912f8f4..2d0b745924 100644 --- a/packages/geom-clip-poly/CHANGELOG.md +++ b/packages/geom-clip-poly/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.40...@thi.ng/geom-clip-poly@1.0.41) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-clip-poly + + + + + ## [1.0.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.39...@thi.ng/geom-clip-poly@1.0.40) (2021-01-02) **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 8a6593ce0f..5680560eba 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.40", + "version": "1.0.41", "description": "2D convex polygon clipping (Sutherland-Hodgeman)", "module": "./index.js", "main": "./lib/index.js", @@ -49,10 +49,10 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/geom-isec": "^0.7.4", - "@thi.ng/geom-poly-utils": "^0.3.1", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/geom-isec": "^0.7.5", + "@thi.ng/geom-poly-utils": "^0.3.2", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-closest-point/CHANGELOG.md b/packages/geom-closest-point/CHANGELOG.md index fff036f96c..575263cd62 100644 --- a/packages/geom-closest-point/CHANGELOG.md +++ b/packages/geom-closest-point/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.6...@thi.ng/geom-closest-point@0.5.7) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-closest-point + + + + + ## [0.5.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.5...@thi.ng/geom-closest-point@0.5.6) (2021-01-02) **Note:** Version bump only for package @thi.ng/geom-closest-point diff --git a/packages/geom-closest-point/package.json b/packages/geom-closest-point/package.json index edad76563c..d1afcb132f 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.6", + "version": "0.5.7", "description": "2D / 3D closest point / proximity helpers", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-fuzz/CHANGELOG.md b/packages/geom-fuzz/CHANGELOG.md index 4fe09a39ae..2f8ca2afc8 100644 --- a/packages/geom-fuzz/CHANGELOG.md +++ b/packages/geom-fuzz/CHANGELOG.md @@ -3,6 +3,14 @@ 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/geom-fuzz@0.1.28...@thi.ng/geom-fuzz@0.1.29) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-fuzz + + + + + ## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.27...@thi.ng/geom-fuzz@0.1.28) (2021-01-05) **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 3474768a56..7a7c8969ff 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.28", + "version": "0.1.29", "description": "Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support", "module": "./index.js", "main": "./lib/index.js", @@ -49,15 +49,15 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", - "@thi.ng/color": "^2.1.1", - "@thi.ng/geom": "^2.0.2", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-clip-line": "^1.2.15", - "@thi.ng/geom-resample": "^0.2.52", - "@thi.ng/grid-iterators": "^0.4.17", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/associative": "^5.0.14", + "@thi.ng/color": "^2.1.2", + "@thi.ng/geom": "^2.0.3", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-clip-line": "^1.2.16", + "@thi.ng/geom-resample": "^0.2.53", + "@thi.ng/grid-iterators": "^0.4.18", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-hull/CHANGELOG.md b/packages/geom-hull/CHANGELOG.md index 7f61a1ff1b..74f4a52aa2 100644 --- a/packages/geom-hull/CHANGELOG.md +++ b/packages/geom-hull/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.0.73](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.72...@thi.ng/geom-hull@0.0.73) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-hull + + + + + ## [0.0.72](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.71...@thi.ng/geom-hull@0.0.72) (2021-01-02) **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 00ea9a2bdb..9dec900935 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.72", + "version": "0.0.73", "description": "Fast 2D convex hull (Graham Scan)", "module": "./index.js", "main": "./lib/index.js", @@ -49,8 +49,8 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-io-obj/CHANGELOG.md b/packages/geom-io-obj/CHANGELOG.md index 104c337a6a..7cab7b6c2f 100644 --- a/packages/geom-io-obj/CHANGELOG.md +++ b/packages/geom-io-obj/CHANGELOG.md @@ -3,6 +3,14 @@ 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/geom-io-obj@0.1.30...@thi.ng/geom-io-obj@0.1.31) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-io-obj + + + + + ## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.29...@thi.ng/geom-io-obj@0.1.30) (2021-01-02) **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 aaf9b54ab2..2182a0007b 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.30", + "version": "0.1.31", "description": "Wavefront OBJ parser (& exporter soon)", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-isec/CHANGELOG.md b/packages/geom-isec/CHANGELOG.md index fe7108d0af..1c07dfd67c 100644 --- a/packages/geom-isec/CHANGELOG.md +++ b/packages/geom-isec/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.7.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.4...@thi.ng/geom-isec@0.7.5) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-isec + + + + + ## [0.7.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.3...@thi.ng/geom-isec@0.7.4) (2021-01-02) diff --git a/packages/geom-isec/package.json b/packages/geom-isec/package.json index 6711e32693..a6c3882a78 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.4", + "version": "0.7.5", "description": "2D/3D shape intersection checks", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-closest-point": "^0.5.6", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-closest-point": "^0.5.7", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-isoline/CHANGELOG.md b/packages/geom-isoline/CHANGELOG.md index 265549bf68..a1eaf47a0b 100644 --- a/packages/geom-isoline/CHANGELOG.md +++ b/packages/geom-isoline/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.70...@thi.ng/geom-isoline@0.1.71) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-isoline + + + + + ## [0.1.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.69...@thi.ng/geom-isoline@0.1.70) (2021-01-02) **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 d4da9b2461..532db64112 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.70", + "version": "0.1.71", "description": "Fast 2D contour line extraction / generation", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-poly-utils/CHANGELOG.md b/packages/geom-poly-utils/CHANGELOG.md index 66f24495ef..ea9a52f16d 100644 --- a/packages/geom-poly-utils/CHANGELOG.md +++ b/packages/geom-poly-utils/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.3.1...@thi.ng/geom-poly-utils@0.3.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-poly-utils + + + + + ## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.3.0...@thi.ng/geom-poly-utils@0.3.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/geom-poly-utils diff --git a/packages/geom-poly-utils/package.json b/packages/geom-poly-utils/package.json index e10f8bd71a..291ca67e64 100644 --- a/packages/geom-poly-utils/package.json +++ b/packages/geom-poly-utils/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-poly-utils", - "version": "0.3.1", + "version": "0.3.2", "description": "2D polygon/polyline analysis & processing utilities", "module": "./index.js", "main": "./lib/index.js", @@ -51,9 +51,9 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/errors": "^1.2.26", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-resample/CHANGELOG.md b/packages/geom-resample/CHANGELOG.md index 87ae3dc261..060ffccd09 100644 --- a/packages/geom-resample/CHANGELOG.md +++ b/packages/geom-resample/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.52...@thi.ng/geom-resample@0.2.53) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-resample + + + + + ## [0.2.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.51...@thi.ng/geom-resample@0.2.52) (2021-01-02) **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 05400363e1..2b83ace81b 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.52", + "version": "0.2.53", "description": "Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation", "module": "./index.js", "main": "./lib/index.js", @@ -49,11 +49,11 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-closest-point": "^0.5.6", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-closest-point": "^0.5.7", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-splines/CHANGELOG.md b/packages/geom-splines/CHANGELOG.md index 502cd4b726..54e671728c 100644 --- a/packages/geom-splines/CHANGELOG.md +++ b/packages/geom-splines/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.39...@thi.ng/geom-splines@0.5.40) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-splines + + + + + ## [0.5.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.38...@thi.ng/geom-splines@0.5.39) (2021-01-02) **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 c4e0a0b0b3..7bfa13db66 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.39", + "version": "0.5.40", "description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting", "module": "./index.js", "main": "./lib/index.js", @@ -50,12 +50,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-arc": "^0.3.19", - "@thi.ng/geom-resample": "^0.2.52", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-arc": "^0.3.20", + "@thi.ng/geom-resample": "^0.2.53", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-subdiv-curve/CHANGELOG.md b/packages/geom-subdiv-curve/CHANGELOG.md index 221d55bb94..a32279554b 100644 --- a/packages/geom-subdiv-curve/CHANGELOG.md +++ b/packages/geom-subdiv-curve/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.70...@thi.ng/geom-subdiv-curve@0.1.71) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-subdiv-curve + + + + + ## [0.1.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.69...@thi.ng/geom-subdiv-curve@0.1.70) (2021-01-02) **Note:** Version bump only for package @thi.ng/geom-subdiv-curve diff --git a/packages/geom-subdiv-curve/package.json b/packages/geom-subdiv-curve/package.json index 7d8e24939c..99c15c41bf 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.70", + "version": "0.1.71", "description": "Freely customizable, iterative nD subdivision curves for open / closed geometries", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-tessellate/CHANGELOG.md b/packages/geom-tessellate/CHANGELOG.md index 5e332a8843..f470e046ef 100644 --- a/packages/geom-tessellate/CHANGELOG.md +++ b/packages/geom-tessellate/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.53...@thi.ng/geom-tessellate@0.2.54) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-tessellate + + + + + ## [0.2.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.52...@thi.ng/geom-tessellate@0.2.53) (2021-01-02) **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 41df21cf0f..6295c11da0 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.53", + "version": "0.2.54", "description": "2D/3D convex polygon tessellators", "module": "./index.js", "main": "./lib/index.js", @@ -49,12 +49,12 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-isec": "^0.7.4", - "@thi.ng/geom-poly-utils": "^0.3.1", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-isec": "^0.7.5", + "@thi.ng/geom-poly-utils": "^0.3.2", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom-voronoi/CHANGELOG.md b/packages/geom-voronoi/CHANGELOG.md index 8b829e3e1a..5537e051de 100644 --- a/packages/geom-voronoi/CHANGELOG.md +++ b/packages/geom-voronoi/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.15...@thi.ng/geom-voronoi@0.2.16) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom-voronoi + + + + + ## [0.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.14...@thi.ng/geom-voronoi@0.2.15) (2021-01-02) **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 88882a06ab..11d94a35a4 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.15", + "version": "0.2.16", "description": "Fast, incremental 2D Delaunay & Voronoi mesh implementation", "module": "./index.js", "main": "./lib/index.js", @@ -50,14 +50,14 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-clip-line": "^1.2.15", - "@thi.ng/geom-clip-poly": "^1.0.40", - "@thi.ng/geom-isec": "^0.7.4", - "@thi.ng/geom-poly-utils": "^0.3.1", - "@thi.ng/math": "^3.0.1", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-clip-line": "^1.2.16", + "@thi.ng/geom-clip-poly": "^1.0.41", + "@thi.ng/geom-isec": "^0.7.5", + "@thi.ng/geom-poly-utils": "^0.3.2", + "@thi.ng/math": "^3.1.0", "@thi.ng/quad-edge": "^0.2.28", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/geom/CHANGELOG.md b/packages/geom/CHANGELOG.md index 5cf8b6d31a..53de92597b 100644 --- a/packages/geom/CHANGELOG.md +++ b/packages/geom/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@2.0.2...@thi.ng/geom@2.0.3) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/geom + + + + + ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@2.0.1...@thi.ng/geom@2.0.2) (2021-01-05) **Note:** Version bump only for package @thi.ng/geom diff --git a/packages/geom/package.json b/packages/geom/package.json index 25d5a6f38c..486b1062ae 100644 --- a/packages/geom/package.json +++ b/packages/geom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom", - "version": "2.0.2", + "version": "2.0.3", "description": "Functional, polymorphic API for 2D geometry types & SVG generation", "module": "./index.js", "main": "./lib/index.js", @@ -50,31 +50,31 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-arc": "^0.3.19", - "@thi.ng/geom-clip-line": "^1.2.15", - "@thi.ng/geom-clip-poly": "^1.0.40", - "@thi.ng/geom-closest-point": "^0.5.6", - "@thi.ng/geom-hull": "^0.0.72", - "@thi.ng/geom-isec": "^0.7.4", - "@thi.ng/geom-poly-utils": "^0.3.1", - "@thi.ng/geom-resample": "^0.2.52", - "@thi.ng/geom-splines": "^0.5.39", - "@thi.ng/geom-subdiv-curve": "^0.1.70", - "@thi.ng/geom-tessellate": "^0.2.53", - "@thi.ng/hiccup": "^3.6.6", - "@thi.ng/hiccup-svg": "^3.7.1", - "@thi.ng/math": "^3.0.1", - "@thi.ng/matrices": "^0.6.39", - "@thi.ng/random": "^2.1.4", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-arc": "^0.3.20", + "@thi.ng/geom-clip-line": "^1.2.16", + "@thi.ng/geom-clip-poly": "^1.0.41", + "@thi.ng/geom-closest-point": "^0.5.7", + "@thi.ng/geom-hull": "^0.0.73", + "@thi.ng/geom-isec": "^0.7.5", + "@thi.ng/geom-poly-utils": "^0.3.2", + "@thi.ng/geom-resample": "^0.2.53", + "@thi.ng/geom-splines": "^0.5.40", + "@thi.ng/geom-subdiv-curve": "^0.1.71", + "@thi.ng/geom-tessellate": "^0.2.54", + "@thi.ng/hiccup": "^3.6.7", + "@thi.ng/hiccup-svg": "^3.7.2", + "@thi.ng/math": "^3.1.0", + "@thi.ng/matrices": "^0.6.40", + "@thi.ng/random": "^2.1.5", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/gp/CHANGELOG.md b/packages/gp/CHANGELOG.md index 45028fe8df..21f80d8bf1 100644 --- a/packages/gp/CHANGELOG.md +++ b/packages/gp/CHANGELOG.md @@ -3,6 +3,14 @@ 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/gp@0.2.1...@thi.ng/gp@0.2.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/gp + + + + + ## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.2.0...@thi.ng/gp@0.2.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/gp diff --git a/packages/gp/package.json b/packages/gp/package.json index 498ad3c5ad..e82d48b763 100644 --- a/packages/gp/package.json +++ b/packages/gp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/gp", - "version": "0.2.1", + "version": "0.2.2", "description": "Genetic programming helpers & strategies (tree based & multi-expression programming)", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/math": "^3.0.1", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/zipper": "^0.1.31" + "@thi.ng/math": "^3.1.0", + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/zipper": "^0.1.32" }, "files": [ "*.js", diff --git a/packages/grid-iterators/CHANGELOG.md b/packages/grid-iterators/CHANGELOG.md index dc5f207e66..f5a70064d1 100644 --- a/packages/grid-iterators/CHANGELOG.md +++ b/packages/grid-iterators/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.4.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.17...@thi.ng/grid-iterators@0.4.18) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/grid-iterators + + + + + ## [0.4.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.16...@thi.ng/grid-iterators@0.4.17) (2021-01-02) **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 9aacaddca0..471ee16fee 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.17", + "version": "0.4.18", "description": "2D grid iterators w/ multiple orderings", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/arrays": "^0.9.0", + "@thi.ng/arrays": "^0.9.1", "@thi.ng/binary": "^2.0.21", - "@thi.ng/morton": "^2.0.30", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/morton": "^2.0.31", + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/hdiff/CHANGELOG.md b/packages/hdiff/CHANGELOG.md index 46269bdfc4..602928fc70 100644 --- a/packages/hdiff/CHANGELOG.md +++ b/packages/hdiff/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.22...@thi.ng/hdiff@0.1.23) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hdiff + + + + + ## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.21...@thi.ng/hdiff@0.1.22) (2021-01-05) **Note:** Version bump only for package @thi.ng/hdiff diff --git a/packages/hdiff/package.json b/packages/hdiff/package.json index 9393626163..5a1c4a16df 100644 --- a/packages/hdiff/package.json +++ b/packages/hdiff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdiff", - "version": "0.1.22", + "version": "0.1.23", "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", @@ -53,9 +53,9 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/diff": "^4.0.1", - "@thi.ng/hiccup": "^3.6.6", - "@thi.ng/hiccup-css": "^1.1.44", - "@thi.ng/strings": "^1.12.0" + "@thi.ng/hiccup": "^3.6.7", + "@thi.ng/hiccup-css": "^1.1.45", + "@thi.ng/strings": "^1.13.0" }, "files": [ "*.js", diff --git a/packages/hdom-canvas/CHANGELOG.md b/packages/hdom-canvas/CHANGELOG.md index 98223a8481..c25b919822 100644 --- a/packages/hdom-canvas/CHANGELOG.md +++ b/packages/hdom-canvas/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.26...@thi.ng/hdom-canvas@3.0.27) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hdom-canvas + + + + + ## [3.0.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.25...@thi.ng/hdom-canvas@3.0.26) (2021-01-05) **Note:** Version bump only for package @thi.ng/hdom-canvas diff --git a/packages/hdom-canvas/package.json b/packages/hdom-canvas/package.json index 6744eaca73..0e7229bf18 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.26", + "version": "3.0.27", "description": "@thi.ng/hdom component wrapper for declarative canvas scenegraphs", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/diff": "^4.0.1", - "@thi.ng/hdom": "^8.2.15", - "@thi.ng/hiccup-canvas": "^1.1.16" + "@thi.ng/hdom": "^8.2.16", + "@thi.ng/hiccup-canvas": "^1.1.17" }, "files": [ "*.js", diff --git a/packages/hdom-components/CHANGELOG.md b/packages/hdom-components/CHANGELOG.md index 46940a76cd..9edbd60061 100644 --- a/packages/hdom-components/CHANGELOG.md +++ b/packages/hdom-components/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.19...@thi.ng/hdom-components@4.0.20) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hdom-components + + + + + ## [4.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.18...@thi.ng/hdom-components@4.0.19) (2021-01-02) **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 d92d7103dd..7e16994e01 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.19", + "version": "4.0.20", "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -51,10 +51,10 @@ "dependencies": { "@thi.ng/adapt-dpi": "^1.0.13", "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/math": "^3.0.1", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/transducers-stats": "^1.1.45" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/math": "^3.1.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/transducers-stats": "^1.1.46" }, "files": [ "*.js", diff --git a/packages/hdom-mock/CHANGELOG.md b/packages/hdom-mock/CHANGELOG.md index bbde1a88f7..fca63a018a 100644 --- a/packages/hdom-mock/CHANGELOG.md +++ b/packages/hdom-mock/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.47...@thi.ng/hdom-mock@1.1.48) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hdom-mock + + + + + ## [1.1.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.46...@thi.ng/hdom-mock@1.1.47) (2021-01-02) **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 eea567caa3..092295141d 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.47", + "version": "1.1.48", "description": "Mock base implementation for @thi.ng/hdom API", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/hdom": "^8.2.15" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/hdom": "^8.2.16" }, "files": [ "*.js", diff --git a/packages/hdom/CHANGELOG.md b/packages/hdom/CHANGELOG.md index f599ffbc5b..94f9120584 100644 --- a/packages/hdom/CHANGELOG.md +++ b/packages/hdom/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [8.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.15...@thi.ng/hdom@8.2.16) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hdom + + + + + ## [8.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.14...@thi.ng/hdom@8.2.15) (2021-01-02) **Note:** Version bump only for package @thi.ng/hdom diff --git a/packages/hdom/package.json b/packages/hdom/package.json index 984f349c42..bca94e5842 100644 --- a/packages/hdom/package.json +++ b/packages/hdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom", - "version": "8.2.15", + "version": "8.2.16", "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors", "module": "./index.js", "main": "./lib/index.js", @@ -40,7 +40,7 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.12.1", - "@thi.ng/atom": "^4.1.26", + "@thi.ng/atom": "^4.1.27", "@types/mocha": "^8.2.0", "@types/node": "^14.14.14", "mocha": "^8.2.1", @@ -51,11 +51,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/diff": "^4.0.1", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/hiccup": "^3.6.6", + "@thi.ng/hiccup": "^3.6.7", "@thi.ng/prefixes": "^0.1.10" }, "files": [ diff --git a/packages/hiccup-canvas/CHANGELOG.md b/packages/hiccup-canvas/CHANGELOG.md index 7eabf56085..9a4dec5d84 100644 --- a/packages/hiccup-canvas/CHANGELOG.md +++ b/packages/hiccup-canvas/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.16...@thi.ng/hiccup-canvas@1.1.17) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hiccup-canvas + + + + + ## [1.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.1.15...@thi.ng/hiccup-canvas@1.1.16) (2021-01-05) **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 b916c99242..c377aa8778 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.16", + "version": "1.1.17", "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts", "module": "./index.js", "main": "./lib/index.js", @@ -49,10 +49,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/color": "^2.1.1", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/color": "^2.1.2", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/hiccup-carbon-icons/CHANGELOG.md b/packages/hiccup-carbon-icons/CHANGELOG.md index 37b057f0cc..671b98f7e4 100644 --- a/packages/hiccup-carbon-icons/CHANGELOG.md +++ b/packages/hiccup-carbon-icons/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.9...@thi.ng/hiccup-carbon-icons@2.0.10) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons + + + + + ## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.8...@thi.ng/hiccup-carbon-icons@2.0.9) (2021-01-02) **Note:** Version bump only for package @thi.ng/hiccup-carbon-icons diff --git a/packages/hiccup-carbon-icons/package.json b/packages/hiccup-carbon-icons/package.json index 56862b9617..3a9c81b63f 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.9", + "version": "2.0.10", "description": "Full set of IBM's Carbon icons in hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -42,7 +42,7 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.12.1", - "@thi.ng/hiccup": "^3.6.6", + "@thi.ng/hiccup": "^3.6.7", "@types/mocha": "^8.2.0", "@types/node": "^14.14.14", "mocha": "^8.2.1", diff --git a/packages/hiccup-css/CHANGELOG.md b/packages/hiccup-css/CHANGELOG.md index 777c94748a..b5a0580fbc 100644 --- a/packages/hiccup-css/CHANGELOG.md +++ b/packages/hiccup-css/CHANGELOG.md @@ -3,6 +3,14 @@ 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/hiccup-css@1.1.44...@thi.ng/hiccup-css@1.1.45) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hiccup-css + + + + + ## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.43...@thi.ng/hiccup-css@1.1.44) (2021-01-02) **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 802e2d3557..a6b919c356 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.44", + "version": "1.1.45", "description": "CSS from nested JS data structures", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/hiccup-markdown/CHANGELOG.md b/packages/hiccup-markdown/CHANGELOG.md index c3b8a4f792..8237136b9a 100644 --- a/packages/hiccup-markdown/CHANGELOG.md +++ b/packages/hiccup-markdown/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.41...@thi.ng/hiccup-markdown@1.2.42) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hiccup-markdown + + + + + ## [1.2.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.40...@thi.ng/hiccup-markdown@1.2.41) (2021-01-05) **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 27bf4cc4bd..b20733dd41 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.41", + "version": "1.2.42", "description": "Markdown parser & serializer from/to Hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -50,15 +50,15 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", "@thi.ng/errors": "^1.2.26", - "@thi.ng/fsm": "^2.4.32", - "@thi.ng/hiccup": "^3.6.6", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/text-canvas": "^0.4.0", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/fsm": "^2.4.33", + "@thi.ng/hiccup": "^3.6.7", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/text-canvas": "^0.4.1", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/hiccup-svg/CHANGELOG.md b/packages/hiccup-svg/CHANGELOG.md index 253eea4ecf..2f84be17fb 100644 --- a/packages/hiccup-svg/CHANGELOG.md +++ b/packages/hiccup-svg/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.7.1...@thi.ng/hiccup-svg@3.7.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hiccup-svg + + + + + ## [3.7.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.7.0...@thi.ng/hiccup-svg@3.7.1) (2021-01-05) **Note:** Version bump only for package @thi.ng/hiccup-svg diff --git a/packages/hiccup-svg/package.json b/packages/hiccup-svg/package.json index c4668101e0..352360e4f8 100644 --- a/packages/hiccup-svg/package.json +++ b/packages/hiccup-svg/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-svg", - "version": "3.7.1", + "version": "3.7.2", "description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -49,8 +49,8 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13", - "@thi.ng/color": "^2.1.1", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/color": "^2.1.2", "@thi.ng/prefixes": "^0.1.10" }, "files": [ diff --git a/packages/hiccup/CHANGELOG.md b/packages/hiccup/CHANGELOG.md index 1780831b9b..58017caeff 100644 --- a/packages/hiccup/CHANGELOG.md +++ b/packages/hiccup/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.6.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.6...@thi.ng/hiccup@3.6.7) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/hiccup + + + + + ## [3.6.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.5...@thi.ng/hiccup@3.6.6) (2021-01-02) **Note:** Version bump only for package @thi.ng/hiccup diff --git a/packages/hiccup/package.json b/packages/hiccup/package.json index 61ca6593da..88ee7bec24 100644 --- a/packages/hiccup/package.json +++ b/packages/hiccup/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup", - "version": "3.6.6", + "version": "3.6.7", "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures", "module": "./index.js", "main": "./lib/index.js", @@ -40,7 +40,7 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.12.1", - "@thi.ng/atom": "^4.1.26", + "@thi.ng/atom": "^4.1.27", "@types/mocha": "^8.2.0", "@types/node": "^14.14.14", "mocha": "^8.2.1", @@ -51,7 +51,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26" }, "files": [ diff --git a/packages/iges/CHANGELOG.md b/packages/iges/CHANGELOG.md index 8a5334f695..22ac4a6d86 100644 --- a/packages/iges/CHANGELOG.md +++ b/packages/iges/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.55...@thi.ng/iges@1.1.56) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/iges + + + + + ## [1.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.54...@thi.ng/iges@1.1.55) (2021-01-05) **Note:** Version bump only for package @thi.ng/iges diff --git a/packages/iges/package.json b/packages/iges/package.json index 529c51f54a..425eebbdf1 100644 --- a/packages/iges/package.json +++ b/packages/iges/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iges", - "version": "1.1.55", + "version": "1.1.56", "description": "IGES 5.3 serializer for (currently only) polygonal geometry, both open & closed", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/iges/src/index.ts b/packages/iges/src/index.ts index 8bf7bf891e..5ec92cc713 100644 --- a/packages/iges/src/index.ts +++ b/packages/iges/src/index.ts @@ -155,7 +155,7 @@ const formatTerminate = (doc: IGESDocument) => const formatStatus = (s: Partial) => [s.blank || 0, s.subord || 0, s.usage || 0, s.hierarchy || 0] - .map($Z2) + .map((x) => $Z2(x)) .join(""); const formatDictEntry = (e: DictEntry) => diff --git a/packages/imgui/CHANGELOG.md b/packages/imgui/CHANGELOG.md index cff9a66e69..11b0aa1c1c 100644 --- a/packages/imgui/CHANGELOG.md +++ b/packages/imgui/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.48...@thi.ng/imgui@0.2.49) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/imgui + + + + + ## [0.2.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.47...@thi.ng/imgui@0.2.48) (2021-01-05) **Note:** Version bump only for package @thi.ng/imgui diff --git a/packages/imgui/package.json b/packages/imgui/package.json index fd8d99db78..fa9123e974 100644 --- a/packages/imgui/package.json +++ b/packages/imgui/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/imgui", - "version": "0.2.48", + "version": "0.2.49", "description": "Immediate mode GUI with flexible state handling & data only shape output", "module": "./index.js", "main": "./lib/index.js", @@ -50,15 +50,15 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom": "^2.0.2", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/geom-isec": "^0.7.4", - "@thi.ng/geom-tessellate": "^0.2.53", - "@thi.ng/layout": "^0.1.27", - "@thi.ng/math": "^3.0.1", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom": "^2.0.3", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/geom-isec": "^0.7.5", + "@thi.ng/geom-tessellate": "^0.2.54", + "@thi.ng/layout": "^0.1.28", + "@thi.ng/math": "^3.1.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/interceptors/CHANGELOG.md b/packages/interceptors/CHANGELOG.md index 8edea82041..fe954d5790 100644 --- a/packages/interceptors/CHANGELOG.md +++ b/packages/interceptors/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.2.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.37...@thi.ng/interceptors@2.2.38) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/interceptors + + + + + ## [2.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.36...@thi.ng/interceptors@2.2.37) (2021-01-02) **Note:** Version bump only for package @thi.ng/interceptors diff --git a/packages/interceptors/package.json b/packages/interceptors/package.json index f0d7fc72c4..72450dc702 100644 --- a/packages/interceptors/package.json +++ b/packages/interceptors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/interceptors", - "version": "2.2.37", + "version": "2.2.38", "description": "Interceptor based event bus, side effect & immutable state handling", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/atom": "^4.1.26", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/atom": "^4.1.27", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/paths": "^4.1.12" + "@thi.ng/paths": "^4.1.13" }, "files": [ "*.js", diff --git a/packages/intervals/CHANGELOG.md b/packages/intervals/CHANGELOG.md index abe0e81298..79650e4e0d 100644 --- a/packages/intervals/CHANGELOG.md +++ b/packages/intervals/CHANGELOG.md @@ -3,6 +3,14 @@ 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/intervals@2.1.4...@thi.ng/intervals@2.1.5) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/intervals + + + + + ## [2.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.1.3...@thi.ng/intervals@2.1.4) (2021-01-02) **Note:** Version bump only for package @thi.ng/intervals diff --git a/packages/intervals/package.json b/packages/intervals/package.json index 4584282fb4..dfb1399a03 100644 --- a/packages/intervals/package.json +++ b/packages/intervals/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/intervals", - "version": "2.1.4", + "version": "2.1.5", "description": "Closed/open/semi-open interval data type, queries & operations", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/dlogic": "^1.0.37", "@thi.ng/errors": "^1.2.26" }, diff --git a/packages/iterators/CHANGELOG.md b/packages/iterators/CHANGELOG.md index b8a0c81870..dde9f7e40e 100644 --- a/packages/iterators/CHANGELOG.md +++ b/packages/iterators/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.45...@thi.ng/iterators@5.1.46) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/iterators + + + + + ## [5.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.44...@thi.ng/iterators@5.1.45) (2021-01-02) **Note:** Version bump only for package @thi.ng/iterators diff --git a/packages/iterators/package.json b/packages/iterators/package.json index 57f7c53422..24cf1497d5 100644 --- a/packages/iterators/package.json +++ b/packages/iterators/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iterators", - "version": "5.1.45", + "version": "5.1.46", "description": "Clojure inspired, composable ES6 iterators & generators", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/dcons": "^2.3.5", + "@thi.ng/dcons": "^2.3.6", "@thi.ng/errors": "^1.2.26" }, "files": [ diff --git a/packages/layout/CHANGELOG.md b/packages/layout/CHANGELOG.md index 7bbba1b312..e5d924ca4e 100644 --- a/packages/layout/CHANGELOG.md +++ b/packages/layout/CHANGELOG.md @@ -3,6 +3,14 @@ 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/layout@0.1.27...@thi.ng/layout@0.1.28) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/layout + + + + + ## [0.1.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.26...@thi.ng/layout@0.1.27) (2021-01-02) **Note:** Version bump only for package @thi.ng/layout diff --git a/packages/layout/package.json b/packages/layout/package.json index ced9e41222..c3141196f3 100644 --- a/packages/layout/package.json +++ b/packages/layout/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/layout", - "version": "0.1.27", + "version": "0.1.28", "description": "Configurable nested 2D grid layout manager", "module": "./index.js", "main": "./lib/index.js", @@ -49,7 +49,7 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13" + "@thi.ng/checks": "^2.8.0" }, "files": [ "*.js", diff --git a/packages/leb128/CHANGELOG.md b/packages/leb128/CHANGELOG.md index 6715726ca8..151753e8af 100644 --- a/packages/leb128/CHANGELOG.md +++ b/packages/leb128/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.39...@thi.ng/leb128@1.0.40) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/leb128 + + + + + ## [1.0.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.38...@thi.ng/leb128@1.0.39) (2021-01-02) **Note:** Version bump only for package @thi.ng/leb128 diff --git a/packages/leb128/package.json b/packages/leb128/package.json index a2340a727b..9faf577b2a 100644 --- a/packages/leb128/package.json +++ b/packages/leb128/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/leb128", - "version": "1.0.39", + "version": "1.0.40", "description": "WASM based LEB128 encoder / decoder (signed & unsigned)", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers-binary": "^0.6.1" + "@thi.ng/transducers-binary": "^0.6.2" }, "files": [ "*.js", diff --git a/packages/lsys/CHANGELOG.md b/packages/lsys/CHANGELOG.md index 54a1699653..e67a74076e 100644 --- a/packages/lsys/CHANGELOG.md +++ b/packages/lsys/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.68](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.67...@thi.ng/lsys@0.2.68) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/lsys + + + + + ## [0.2.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.66...@thi.ng/lsys@0.2.67) (2021-01-02) **Note:** Version bump only for package @thi.ng/lsys diff --git a/packages/lsys/package.json b/packages/lsys/package.json index e7299085f7..0ae30f5b5a 100644 --- a/packages/lsys/package.json +++ b/packages/lsys/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/lsys", - "version": "0.2.67", + "version": "0.2.68", "description": "Functional, extensible L-System architecture w/ support for probabilistic rules", "module": "./index.js", "main": "./lib/index.js", @@ -52,10 +52,10 @@ "@thi.ng/api": "^6.13.6", "@thi.ng/compose": "^1.4.23", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/malloc/CHANGELOG.md b/packages/malloc/CHANGELOG.md index ef64b546bc..8045010bcc 100644 --- a/packages/malloc/CHANGELOG.md +++ b/packages/malloc/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.2.5...@thi.ng/malloc@4.2.6) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/malloc + + + + + ## [4.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.2.4...@thi.ng/malloc@4.2.5) (2021-01-02) **Note:** Version bump only for package @thi.ng/malloc diff --git a/packages/malloc/package.json b/packages/malloc/package.json index 2b39733df2..01d8efde7d 100644 --- a/packages/malloc/package.json +++ b/packages/malloc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/malloc", - "version": "4.2.5", + "version": "4.2.6", "description": "ArrayBuffer based malloc() impl for hybrid JS/WASM use cases, based on thi.ng/tinyalloc", "module": "./index.js", "main": "./lib/index.js", @@ -51,7 +51,7 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26" }, "files": [ diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index 8d76992fb4..9072f4531e 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.0.1...@thi.ng/math@3.1.0) (2021-01-10) + + +### Features + +* **math:** add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83475f4a4080408033d3448fd4c36ef1652)) + + + + + ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@3.0.0...@thi.ng/math@3.0.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/math diff --git a/packages/math/package.json b/packages/math/package.json index b701791c9b..3087a69498 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/math", - "version": "3.0.1", + "version": "3.1.0", "description": "Assorted common math functions & utilities", "module": "./index.js", "main": "./lib/index.js", diff --git a/packages/math/src/prec.ts b/packages/math/src/prec.ts index bfab3adfcb..bcd94d6aca 100644 --- a/packages/math/src/prec.ts +++ b/packages/math/src/prec.ts @@ -15,6 +15,10 @@ export const trunc: FnN = (x) => (x < 0 ? Math.ceil(x) : Math.floor(x)); export const roundTo = (x: number, prec = 1) => Math.round(x / prec) * prec; +export const floorTo = (x: number, prec = 1) => Math.floor(x / prec) * prec; + +export const ceilTo = (x: number, prec = 1) => Math.ceil(x / prec) * prec; + /** * Only rounds `x` to nearest int if `fract(x)` <= `eps` or >= `1-eps`. * diff --git a/packages/matrices/CHANGELOG.md b/packages/matrices/CHANGELOG.md index 2bac474494..f34e0004d3 100644 --- a/packages/matrices/CHANGELOG.md +++ b/packages/matrices/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.6.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.39...@thi.ng/matrices@0.6.40) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/matrices + + + + + ## [0.6.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.38...@thi.ng/matrices@0.6.39) (2021-01-02) **Note:** Version bump only for package @thi.ng/matrices diff --git a/packages/matrices/package.json b/packages/matrices/package.json index f26a495c6e..dafcf41954 100644 --- a/packages/matrices/package.json +++ b/packages/matrices/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/matrices", - "version": "0.6.39", + "version": "0.6.40", "description": "Matrix & quaternion operations for 2D/3D geometry processing", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/math": "^3.0.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/math": "^3.1.0", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/morton/CHANGELOG.md b/packages/morton/CHANGELOG.md index eca4b7ffc0..7bf0252642 100644 --- a/packages/morton/CHANGELOG.md +++ b/packages/morton/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.30...@thi.ng/morton@2.0.31) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/morton + + + + + ## [2.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.29...@thi.ng/morton@2.0.30) (2021-01-02) **Note:** Version bump only for package @thi.ng/morton diff --git a/packages/morton/package.json b/packages/morton/package.json index f0184a1c69..1b9509005a 100644 --- a/packages/morton/package.json +++ b/packages/morton/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/morton", - "version": "2.0.30", + "version": "2.0.31", "description": "Z-order curve / Morton encoding, decoding & range extraction for arbitrary dimensions", "module": "./index.js", "main": "./lib/index.js", @@ -51,7 +51,7 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/math": "^3.0.1" + "@thi.ng/math": "^3.1.0" }, "files": [ "*.js", diff --git a/packages/oquery/CHANGELOG.md b/packages/oquery/CHANGELOG.md index 0db85af39b..bb348ab3f1 100644 --- a/packages/oquery/CHANGELOG.md +++ b/packages/oquery/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.2.3...@thi.ng/oquery@0.2.4) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/oquery + + + + + ## [0.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.2.2...@thi.ng/oquery@0.2.3) (2021-01-02) **Note:** Version bump only for package @thi.ng/oquery diff --git a/packages/oquery/package.json b/packages/oquery/package.json index df89a67043..808c3699e4 100644 --- a/packages/oquery/package.json +++ b/packages/oquery/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/oquery", - "version": "0.2.3", + "version": "0.2.4", "description": "Datalog-inspired, optimized pattern/predicate query engine for JS objects & arrays", "module": "./index.js", "main": "./lib/index.js", @@ -49,7 +49,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", "@thi.ng/equiv": "^1.0.35" }, diff --git a/packages/parse/CHANGELOG.md b/packages/parse/CHANGELOG.md index 86f8614fdd..429b78a634 100644 --- a/packages/parse/CHANGELOG.md +++ b/packages/parse/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.9.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.10...@thi.ng/parse@0.9.11) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/parse + + + + + ## [0.9.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.9...@thi.ng/parse@0.9.10) (2021-01-05) **Note:** Version bump only for package @thi.ng/parse diff --git a/packages/parse/package.json b/packages/parse/package.json index dcf9bbfa94..cde44d0281 100644 --- a/packages/parse/package.json +++ b/packages/parse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/parse", - "version": "0.9.10", + "version": "0.9.11", "description": "Purely functional parser combinators & AST generation for generic inputs", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", "@thi.ng/errors": "^1.2.26", - "@thi.ng/strings": "^1.12.0" + "@thi.ng/strings": "^1.13.0" }, "files": [ "*.js", diff --git a/packages/paths/CHANGELOG.md b/packages/paths/CHANGELOG.md index f911cedfa2..d9144a8729 100644 --- a/packages/paths/CHANGELOG.md +++ b/packages/paths/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.12...@thi.ng/paths@4.1.13) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/paths + + + + + ## [4.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.1.11...@thi.ng/paths@4.1.12) (2021-01-02) **Note:** Version bump only for package @thi.ng/paths diff --git a/packages/paths/package.json b/packages/paths/package.json index 3080b84446..f4edfee6f6 100644 --- a/packages/paths/package.json +++ b/packages/paths/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/paths", - "version": "4.1.12", + "version": "4.1.13", "description": "Immutable, optimized and optionally typed path-based object property / array accessors with structural sharing", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26" }, "files": [ diff --git a/packages/pixel/CHANGELOG.md b/packages/pixel/CHANGELOG.md index 0a8a1de379..3e1b2d158a 100644 --- a/packages/pixel/CHANGELOG.md +++ b/packages/pixel/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.5.0...@thi.ng/pixel@0.5.1) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/pixel + + + + + # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.4.10...@thi.ng/pixel@0.5.0) (2021-01-02) diff --git a/packages/pixel/package.json b/packages/pixel/package.json index cc4324d6f9..6158a9323f 100644 --- a/packages/pixel/package.json +++ b/packages/pixel/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pixel", - "version": "0.5.0", + "version": "0.5.1", "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", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/math": "^3.0.1", - "@thi.ng/porter-duff": "^0.1.36" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/math": "^3.1.0", + "@thi.ng/porter-duff": "^0.1.37" }, "files": [ "*.js", diff --git a/packages/pointfree-lang/CHANGELOG.md b/packages/pointfree-lang/CHANGELOG.md index 6ded68346c..22cb6d6893 100644 --- a/packages/pointfree-lang/CHANGELOG.md +++ b/packages/pointfree-lang/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.19...@thi.ng/pointfree-lang@1.4.20) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/pointfree-lang + + + + + ## [1.4.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.18...@thi.ng/pointfree-lang@1.4.19) (2021-01-02) **Note:** Version bump only for package @thi.ng/pointfree-lang diff --git a/packages/pointfree-lang/package.json b/packages/pointfree-lang/package.json index 7c1e46a696..7e78dca2ae 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.19", + "version": "1.4.20", "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL", "module": "./index.js", "main": "./lib/index.js", @@ -56,7 +56,7 @@ "@thi.ng/api": "^6.13.6", "@thi.ng/bench": "^2.0.26", "@thi.ng/errors": "^1.2.26", - "@thi.ng/pointfree": "^2.0.20", + "@thi.ng/pointfree": "^2.0.21", "commander": "^6.2.0" }, "files": [ diff --git a/packages/pointfree/CHANGELOG.md b/packages/pointfree/CHANGELOG.md index f7fcc8a236..dee1c69ffd 100644 --- a/packages/pointfree/CHANGELOG.md +++ b/packages/pointfree/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.20...@thi.ng/pointfree@2.0.21) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/pointfree + + + + + ## [2.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.19...@thi.ng/pointfree@2.0.20) (2021-01-02) **Note:** Version bump only for package @thi.ng/pointfree diff --git a/packages/pointfree/package.json b/packages/pointfree/package.json index aff9008086..594d3c1558 100644 --- a/packages/pointfree/package.json +++ b/packages/pointfree/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pointfree", - "version": "2.0.20", + "version": "2.0.21", "description": "Pointfree functional composition / Forth style stack execution engine", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/compose": "^1.4.23", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26" diff --git a/packages/poisson/CHANGELOG.md b/packages/poisson/CHANGELOG.md index fd4129f2f5..b9bd6ef172 100644 --- a/packages/poisson/CHANGELOG.md +++ b/packages/poisson/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.23...@thi.ng/poisson@1.1.24) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/poisson + + + + + ## [1.1.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.22...@thi.ng/poisson@1.1.23) (2021-01-02) **Note:** Version bump only for package @thi.ng/poisson diff --git a/packages/poisson/package.json b/packages/poisson/package.json index 2aea61b6ae..c80b9b73d8 100644 --- a/packages/poisson/package.json +++ b/packages/poisson/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/poisson", - "version": "1.1.23", + "version": "1.1.24", "description": "nD Stratified grid and Poisson-disc sampling w/ support for spatial density functions and custom PRNGs", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-api": "^2.0.1", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-api": "^2.0.2", + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/porter-duff/CHANGELOG.md b/packages/porter-duff/CHANGELOG.md index 066f37ace2..20c676f6bd 100644 --- a/packages/porter-duff/CHANGELOG.md +++ b/packages/porter-duff/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.36...@thi.ng/porter-duff@0.1.37) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/porter-duff + + + + + ## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.35...@thi.ng/porter-duff@0.1.36) (2021-01-02) **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 76654e623a..ed69833920 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.36", + "version": "0.1.37", "description": "Porter-Duff operators for packed ints & float-array alpha compositing", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/math": "^3.0.1" + "@thi.ng/math": "^3.1.0" }, "files": [ "*.js", diff --git a/packages/ramp/CHANGELOG.md b/packages/ramp/CHANGELOG.md index 021b1f1ed1..9fd4c82233 100644 --- a/packages/ramp/CHANGELOG.md +++ b/packages/ramp/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.41...@thi.ng/ramp@0.1.42) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/ramp + + + + + ## [0.1.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.40...@thi.ng/ramp@0.1.41) (2021-01-02) **Note:** Version bump only for package @thi.ng/ramp diff --git a/packages/ramp/package.json b/packages/ramp/package.json index 24f0620382..428c3db0a9 100644 --- a/packages/ramp/package.json +++ b/packages/ramp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ramp", - "version": "0.1.41", + "version": "0.1.42", "description": "Parametric interpolated 1D lookup tables for remapping values", "module": "./index.js", "main": "./lib/index.js", @@ -49,11 +49,11 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/arrays": "^0.9.0", + "@thi.ng/arrays": "^0.9.1", "@thi.ng/compare": "^1.3.22", - "@thi.ng/math": "^3.0.1", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/random/CHANGELOG.md b/packages/random/CHANGELOG.md index fa2eb801ee..5dd77c24c4 100644 --- a/packages/random/CHANGELOG.md +++ b/packages/random/CHANGELOG.md @@ -3,6 +3,14 @@ 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/random@2.1.4...@thi.ng/random@2.1.5) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/random + + + + + ## [2.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.1.3...@thi.ng/random@2.1.4) (2021-01-02) **Note:** Version bump only for package @thi.ng/random diff --git a/packages/random/package.json b/packages/random/package.json index a87373163b..576a298021 100644 --- a/packages/random/package.json +++ b/packages/random/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/random", - "version": "2.1.4", + "version": "2.1.5", "description": "Pseudo-random number generators w/ unified API", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/hex": "^0.1.3" }, "files": [ diff --git a/packages/range-coder/CHANGELOG.md b/packages/range-coder/CHANGELOG.md index de230803ff..70710f9df3 100644 --- a/packages/range-coder/CHANGELOG.md +++ b/packages/range-coder/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.64...@thi.ng/range-coder@1.0.65) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/range-coder + + + + + ## [1.0.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.63...@thi.ng/range-coder@1.0.64) (2021-01-02) **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 fbcee368a8..4deb896072 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.64", + "version": "1.0.65", "description": "Binary data range encoder / decoder", "module": "./index.js", "main": "./lib/index.js", @@ -40,7 +40,7 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.12.1", - "@thi.ng/transducers": "^7.5.4", + "@thi.ng/transducers": "^7.5.5", "@types/mocha": "^8.2.0", "@types/node": "^14.14.14", "mocha": "^8.2.1", diff --git a/packages/rdom-canvas/CHANGELOG.md b/packages/rdom-canvas/CHANGELOG.md index 8e4d55f653..8cb8af5061 100644 --- a/packages/rdom-canvas/CHANGELOG.md +++ b/packages/rdom-canvas/CHANGELOG.md @@ -3,6 +3,14 @@ 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/rdom-canvas@0.1.24...@thi.ng/rdom-canvas@0.1.25) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rdom-canvas + + + + + ## [0.1.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.23...@thi.ng/rdom-canvas@0.1.24) (2021-01-05) **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 9b272d5ca5..4fa25cae65 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.24", + "version": "0.1.25", "description": "@thi.ng/rdom component wrapper for @thi.ng/hiccup-canvas and declarative canvas drawing", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ "dependencies": { "@thi.ng/adapt-dpi": "^1.0.13", "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/hiccup-canvas": "^1.1.16", - "@thi.ng/rdom": "^0.3.3", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/hiccup-canvas": "^1.1.17", + "@thi.ng/rdom": "^0.3.4", + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/rdom-components/CHANGELOG.md b/packages/rdom-components/CHANGELOG.md index 043f89bb85..d14987ce5f 100644 --- a/packages/rdom-components/CHANGELOG.md +++ b/packages/rdom-components/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.21...@thi.ng/rdom-components@0.1.22) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rdom-components + + + + + ## [0.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.20...@thi.ng/rdom-components@0.1.21) (2021-01-05) **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 78bef9ed03..042e79ec34 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.21", + "version": "0.1.22", "description": "Collection of unstyled, customizable components for @thi.ng/rdom", "module": "./index.js", "main": "./lib/index.js", @@ -49,12 +49,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", + "@thi.ng/associative": "^5.0.14", "@thi.ng/hiccup-html": "^0.3.11", - "@thi.ng/rdom": "^0.3.3", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/rdom": "^0.3.4", + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/rdom/CHANGELOG.md b/packages/rdom/CHANGELOG.md index 9c6a3bc95a..f256cb07c1 100644 --- a/packages/rdom/CHANGELOG.md +++ b/packages/rdom/CHANGELOG.md @@ -3,6 +3,14 @@ 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/rdom@0.3.3...@thi.ng/rdom@0.3.4) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rdom + + + + + ## [0.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.3.2...@thi.ng/rdom@0.3.3) (2021-01-05) **Note:** Version bump only for package @thi.ng/rdom diff --git a/packages/rdom/package.json b/packages/rdom/package.json index d0cb9ad3a3..d2190bef5f 100644 --- a/packages/rdom/package.json +++ b/packages/rdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rdom", - "version": "0.3.3", + "version": "0.3.4", "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible", "module": "./index.js", "main": "./lib/index.js", @@ -50,13 +50,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/hiccup": "^3.6.6", - "@thi.ng/paths": "^4.1.12", + "@thi.ng/hiccup": "^3.6.7", + "@thi.ng/paths": "^4.1.13", "@thi.ng/prefixes": "^0.1.10", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/strings": "^1.12.0" + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/strings": "^1.13.0" }, "files": [ "*.js", diff --git a/packages/resolve-map/CHANGELOG.md b/packages/resolve-map/CHANGELOG.md index 0303e7d7e8..5161ef7b7a 100644 --- a/packages/resolve-map/CHANGELOG.md +++ b/packages/resolve-map/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.11...@thi.ng/resolve-map@4.2.12) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/resolve-map + + + + + ## [4.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.10...@thi.ng/resolve-map@4.2.11) (2021-01-02) **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 5dcee4a3ff..19586c4937 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.11", + "version": "4.2.12", "description": "DAG resolution of vanilla objects & arrays with internally linked values", "module": "./index.js", "main": "./lib/index.js", @@ -49,9 +49,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/paths": "^4.1.12" + "@thi.ng/paths": "^4.1.13" }, "files": [ "*.js", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 7901cfb159..f7c2eea857 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.38...@thi.ng/router@2.0.39) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/router + + + + + ## [2.0.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.37...@thi.ng/router@2.0.38) (2021-01-02) **Note:** Version bump only for package @thi.ng/router diff --git a/packages/router/package.json b/packages/router/package.json index c4a56cb20b..3cc4a1bb0f 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/router", - "version": "2.0.38", + "version": "2.0.39", "description": "Generic router for browser & non-browser based applications", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", "tslib": "2.0.1" diff --git a/packages/rstream-csp/CHANGELOG.md b/packages/rstream-csp/CHANGELOG.md index 489ad4fe48..9282cd9854 100644 --- a/packages/rstream-csp/CHANGELOG.md +++ b/packages/rstream-csp/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.47...@thi.ng/rstream-csp@2.0.48) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-csp + + + + + ## [2.0.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.46...@thi.ng/rstream-csp@2.0.47) (2021-01-02) **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 a1902fdc61..b73e0e8db2 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.47", + "version": "2.0.48", "description": "@thi.ng/csp bridge module for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -49,8 +49,8 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/csp": "^1.1.45", - "@thi.ng/rstream": "^5.0.12" + "@thi.ng/csp": "^1.1.46", + "@thi.ng/rstream": "^5.0.13" }, "files": [ "*.js", diff --git a/packages/rstream-dot/CHANGELOG.md b/packages/rstream-dot/CHANGELOG.md index cb95b68787..d0f7dfe37b 100644 --- a/packages/rstream-dot/CHANGELOG.md +++ b/packages/rstream-dot/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.54...@thi.ng/rstream-dot@1.1.55) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-dot + + + + + ## [1.1.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.53...@thi.ng/rstream-dot@1.1.54) (2021-01-02) **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 2ff98e0aed..906a6894d9 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.54", + "version": "1.1.55", "description": "Graphviz DOT conversion of @thi.ng/rstream dataflow graph topologies", "module": "./index.js", "main": "./lib/index.js", @@ -49,7 +49,7 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/rstream": "^5.0.12" + "@thi.ng/rstream": "^5.0.13" }, "files": [ "*.js", diff --git a/packages/rstream-gestures/CHANGELOG.md b/packages/rstream-gestures/CHANGELOG.md index 9d2322cd8b..8a3dc36dc6 100644 --- a/packages/rstream-gestures/CHANGELOG.md +++ b/packages/rstream-gestures/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@3.0.1...@thi.ng/rstream-gestures@3.0.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-gestures + + + + + ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@3.0.0...@thi.ng/rstream-gestures@3.0.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/rstream-gestures diff --git a/packages/rstream-gestures/package.json b/packages/rstream-gestures/package.json index 0b0b9085e4..82c40a8e73 100644 --- a/packages/rstream-gestures/package.json +++ b/packages/rstream-gestures/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-gestures", - "version": "3.0.1", + "version": "3.0.2", "description": "Unified mouse, mouse wheel & multi-touch event stream abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/math": "^3.0.1", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/math": "^3.1.0", + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/rstream-graph/CHANGELOG.md b/packages/rstream-graph/CHANGELOG.md index 539e119ee4..8a65eb7b2d 100644 --- a/packages/rstream-graph/CHANGELOG.md +++ b/packages/rstream-graph/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.2.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.48...@thi.ng/rstream-graph@3.2.49) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-graph + + + + + ## [3.2.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.47...@thi.ng/rstream-graph@3.2.48) (2021-01-02) **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 7d0daf77a3..232c9b3024 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.48", + "version": "3.2.49", "description": "Declarative dataflow graph construction for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -50,13 +50,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/atom": "^4.1.26", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/atom": "^4.1.27", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/paths": "^4.1.12", - "@thi.ng/resolve-map": "^4.2.11", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/paths": "^4.1.13", + "@thi.ng/resolve-map": "^4.2.12", + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/rstream-log-file/CHANGELOG.md b/packages/rstream-log-file/CHANGELOG.md index 59dae42821..226a1b64de 100644 --- a/packages/rstream-log-file/CHANGELOG.md +++ b/packages/rstream-log-file/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.69...@thi.ng/rstream-log-file@0.1.70) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-log-file + + + + + ## [0.1.69](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.68...@thi.ng/rstream-log-file@0.1.69) (2021-01-02) **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 1c284ce462..0a0178d259 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.69", + "version": "0.1.70", "description": "File output handler for structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -49,7 +49,7 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/rstream": "^5.0.12" + "@thi.ng/rstream": "^5.0.13" }, "files": [ "*.js", diff --git a/packages/rstream-log/CHANGELOG.md b/packages/rstream-log/CHANGELOG.md index 47aaa1665b..d3e29c6876 100644 --- a/packages/rstream-log/CHANGELOG.md +++ b/packages/rstream-log/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.54...@thi.ng/rstream-log@3.1.55) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-log + + + + + ## [3.1.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.53...@thi.ng/rstream-log@3.1.54) (2021-01-02) **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 45fe181beb..8a5a59e218 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.54", + "version": "3.1.55", "description": "Structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/rstream-query/CHANGELOG.md b/packages/rstream-query/CHANGELOG.md index 66fb30f2a7..ffb8825c9f 100644 --- a/packages/rstream-query/CHANGELOG.md +++ b/packages/rstream-query/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.54...@thi.ng/rstream-query@1.1.55) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream-query + + + + + ## [1.1.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.53...@thi.ng/rstream-query@1.1.54) (2021-01-02) **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 610921b854..16e0dbca11 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.54", + "version": "1.1.55", "description": "@thi.ng/rstream based triple store & reactive query engine", "module": "./index.js", "main": "./lib/index.js", @@ -50,14 +50,14 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/associative": "^5.0.14", + "@thi.ng/checks": "^2.8.0", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", - "@thi.ng/rstream": "^5.0.12", - "@thi.ng/rstream-dot": "^1.1.54", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/rstream": "^5.0.13", + "@thi.ng/rstream-dot": "^1.1.55", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/rstream/CHANGELOG.md b/packages/rstream/CHANGELOG.md index d174974bf8..ac959bcdd2 100644 --- a/packages/rstream/CHANGELOG.md +++ b/packages/rstream/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.0.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.12...@thi.ng/rstream@5.0.13) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/rstream + + + + + ## [5.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@5.0.11...@thi.ng/rstream@5.0.12) (2021-01-02) **Note:** Version bump only for package @thi.ng/rstream diff --git a/packages/rstream/package.json b/packages/rstream/package.json index d1e4bb9e0f..d56d521ae2 100644 --- a/packages/rstream/package.json +++ b/packages/rstream/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream", - "version": "5.0.12", + "version": "5.0.13", "description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines", "module": "./index.js", "main": "./lib/index.js", @@ -50,12 +50,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/associative": "^5.0.13", - "@thi.ng/atom": "^4.1.26", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/associative": "^5.0.14", + "@thi.ng/atom": "^4.1.27", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/sax/CHANGELOG.md b/packages/sax/CHANGELOG.md index c38f302867..eb86e57cf8 100644 --- a/packages/sax/CHANGELOG.md +++ b/packages/sax/CHANGELOG.md @@ -3,6 +3,14 @@ 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/sax@1.1.44...@thi.ng/sax@1.1.45) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/sax + + + + + ## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.43...@thi.ng/sax@1.1.44) (2021-01-02) **Note:** Version bump only for package @thi.ng/sax diff --git a/packages/sax/package.json b/packages/sax/package.json index 0f0880ad2b..ded9275ca0 100644 --- a/packages/sax/package.json +++ b/packages/sax/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sax", - "version": "1.1.44", + "version": "1.1.45", "description": "Transducer-based, SAX-like, non-validating, speedy & tiny XML parser", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/transducers-fsm": "^1.1.44" + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/transducers-fsm": "^1.1.45" }, "files": [ "*.js", diff --git a/packages/scenegraph/CHANGELOG.md b/packages/scenegraph/CHANGELOG.md index 401e5a2886..b64d3fc228 100644 --- a/packages/scenegraph/CHANGELOG.md +++ b/packages/scenegraph/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.13...@thi.ng/scenegraph@0.3.14) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/scenegraph + + + + + ## [0.3.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.12...@thi.ng/scenegraph@0.3.13) (2021-01-02) **Note:** Version bump only for package @thi.ng/scenegraph diff --git a/packages/scenegraph/package.json b/packages/scenegraph/package.json index 94cb40fd94..e592fda210 100644 --- a/packages/scenegraph/package.json +++ b/packages/scenegraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/scenegraph", - "version": "0.3.13", + "version": "0.3.14", "description": "Extensible 2D/3D scene graph with @thi.ng/hiccup-canvas support", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/matrices": "^0.6.39", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/matrices": "^0.6.40", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/seq/CHANGELOG.md b/packages/seq/CHANGELOG.md index 2bab81f850..1ce56470e0 100644 --- a/packages/seq/CHANGELOG.md +++ b/packages/seq/CHANGELOG.md @@ -3,6 +3,14 @@ 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/seq@0.2.29...@thi.ng/seq@0.2.30) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/seq + + + + + ## [0.2.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.28...@thi.ng/seq@0.2.29) (2021-01-02) **Note:** Version bump only for package @thi.ng/seq diff --git a/packages/seq/package.json b/packages/seq/package.json index a0218de53e..38a0d2fc98 100644 --- a/packages/seq/package.json +++ b/packages/seq/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/seq", - "version": "0.2.29", + "version": "0.2.30", "description": "Various implementations of the @thi.ng/api `ISeq` interface / sequence abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13" + "@thi.ng/checks": "^2.8.0" }, "files": [ "*.js", diff --git a/packages/sexpr/CHANGELOG.md b/packages/sexpr/CHANGELOG.md index 0a4b4fd88c..adca154aed 100644 --- a/packages/sexpr/CHANGELOG.md +++ b/packages/sexpr/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.32...@thi.ng/sexpr@0.2.33) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/sexpr + + + + + ## [0.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.31...@thi.ng/sexpr@0.2.32) (2021-01-02) **Note:** Version bump only for package @thi.ng/sexpr diff --git a/packages/sexpr/package.json b/packages/sexpr/package.json index 8400a96534..8e24eb99f0 100644 --- a/packages/sexpr/package.json +++ b/packages/sexpr/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sexpr", - "version": "0.2.32", + "version": "0.2.33", "description": "Extensible S-Expression parser & runtime infrastructure", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4" }, "files": [ diff --git a/packages/shader-ast-glsl/CHANGELOG.md b/packages/shader-ast-glsl/CHANGELOG.md index 8c530209d1..8a512e7a1f 100644 --- a/packages/shader-ast-glsl/CHANGELOG.md +++ b/packages/shader-ast-glsl/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.16...@thi.ng/shader-ast-glsl@0.2.17) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/shader-ast-glsl + + + + + ## [0.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.15...@thi.ng/shader-ast-glsl@0.2.16) (2021-01-02) **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 e9acabeb8c..8add408625 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.16", + "version": "0.2.17", "description": "Customizable GLSL codegen for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/shader-ast": "^0.7.8" + "@thi.ng/shader-ast": "^0.7.9" }, "files": [ "*.js", diff --git a/packages/shader-ast-js/CHANGELOG.md b/packages/shader-ast-js/CHANGELOG.md index 4a97abd548..8c99b75f78 100644 --- a/packages/shader-ast-js/CHANGELOG.md +++ b/packages/shader-ast-js/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.14...@thi.ng/shader-ast-js@0.5.15) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/shader-ast-js + + + + + ## [0.5.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.13...@thi.ng/shader-ast-js@0.5.14) (2021-01-02) **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 807c6e9353..c1871e5c62 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.14", + "version": "0.5.15", "description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -50,13 +50,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", - "@thi.ng/matrices": "^0.6.39", - "@thi.ng/pixel": "^0.5.0", - "@thi.ng/shader-ast": "^0.7.8", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/matrices": "^0.6.40", + "@thi.ng/pixel": "^0.5.1", + "@thi.ng/shader-ast": "^0.7.9", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/shader-ast-stdlib/CHANGELOG.md b/packages/shader-ast-stdlib/CHANGELOG.md index 7c0720a77a..a5f96e319c 100644 --- a/packages/shader-ast-stdlib/CHANGELOG.md +++ b/packages/shader-ast-stdlib/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.8...@thi.ng/shader-ast-stdlib@0.5.9) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/shader-ast-stdlib + + + + + ## [0.5.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.7...@thi.ng/shader-ast-stdlib@0.5.8) (2021-01-02) **Note:** Version bump only for package @thi.ng/shader-ast-stdlib diff --git a/packages/shader-ast-stdlib/package.json b/packages/shader-ast-stdlib/package.json index bdd071fbb0..6775451a62 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.8", + "version": "0.5.9", "description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/shader-ast": "^0.7.8" + "@thi.ng/shader-ast": "^0.7.9" }, "files": [ "*.js", diff --git a/packages/shader-ast/CHANGELOG.md b/packages/shader-ast/CHANGELOG.md index b0a34c7833..0644005a1e 100644 --- a/packages/shader-ast/CHANGELOG.md +++ b/packages/shader-ast/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.7.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.8...@thi.ng/shader-ast@0.7.9) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/shader-ast + + + + + ## [0.7.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.7.7...@thi.ng/shader-ast@0.7.8) (2021-01-02) **Note:** Version bump only for package @thi.ng/shader-ast diff --git a/packages/shader-ast/package.json b/packages/shader-ast/package.json index f2fcef41f2..8e02e286ba 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.8", + "version": "0.7.9", "description": "DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/defmulti": "^1.3.4", - "@thi.ng/dgraph": "^1.3.4", + "@thi.ng/dgraph": "^1.3.5", "@thi.ng/errors": "^1.2.26" }, "files": [ diff --git a/packages/simd/CHANGELOG.md b/packages/simd/CHANGELOG.md index d309d4d179..9cba0e4f4a 100644 --- a/packages/simd/CHANGELOG.md +++ b/packages/simd/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.4.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.12...@thi.ng/simd@0.4.13) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/simd + + + + + ## [0.4.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.11...@thi.ng/simd@0.4.12) (2021-01-02) **Note:** Version bump only for package @thi.ng/simd diff --git a/packages/simd/package.json b/packages/simd/package.json index c487479e1a..f6d22c7691 100644 --- a/packages/simd/package.json +++ b/packages/simd/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/simd", - "version": "0.4.12", + "version": "0.4.13", "description": "WASM based SIMD vector operations for batch processing", "module": "./index.js", "main": "./lib/index.js", @@ -52,7 +52,7 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/transducers-binary": "^0.6.1" + "@thi.ng/transducers-binary": "^0.6.2" }, "files": [ "*.js", diff --git a/packages/soa/CHANGELOG.md b/packages/soa/CHANGELOG.md index 2e2f0816c2..5e49292cc5 100644 --- a/packages/soa/CHANGELOG.md +++ b/packages/soa/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.43...@thi.ng/soa@0.1.44) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/soa + + + + + ## [0.1.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.42...@thi.ng/soa@0.1.43) (2021-01-02) **Note:** Version bump only for package @thi.ng/soa diff --git a/packages/soa/package.json b/packages/soa/package.json index 93d3efb7e7..831770dd42 100644 --- a/packages/soa/package.json +++ b/packages/soa/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/soa", - "version": "0.1.43", + "version": "0.1.44", "description": "SOA & AOS memory mapped structured views with optional & extensible serialization", "module": "./index.js", "main": "./lib/index.js", @@ -52,8 +52,8 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/transducers-binary": "^0.6.1", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/transducers-binary": "^0.6.2", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/sparse/CHANGELOG.md b/packages/sparse/CHANGELOG.md index 7dca1f7dc8..c25080233d 100644 --- a/packages/sparse/CHANGELOG.md +++ b/packages/sparse/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.60...@thi.ng/sparse@0.1.61) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/sparse + + + + + ## [0.1.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.59...@thi.ng/sparse@0.1.60) (2021-01-02) **Note:** Version bump only for package @thi.ng/sparse diff --git a/packages/sparse/package.json b/packages/sparse/package.json index 99b21f4411..8334803823 100644 --- a/packages/sparse/package.json +++ b/packages/sparse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sparse", - "version": "0.1.60", + "version": "0.1.61", "description": "Sparse vector & matrix implementations", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/strings/CHANGELOG.md b/packages/strings/CHANGELOG.md index 4f2225f2be..7ebe7aa9b1 100644 --- a/packages/strings/CHANGELOG.md +++ b/packages/strings/CHANGELOG.md @@ -3,6 +3,25 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.13.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.12.0...@thi.ng/strings@1.13.0) (2021-01-10) + + +### Features + +* **strings:** add stripAnsi(), lengthAnsi() fns ([86fa81a](https://github.com/thi-ng/umbrella/commit/86fa81acb7dfcf1dc3d6f5600cbf427ee44cf722)) +* **strings:** add tab conversion fns ([aefdd97](https://github.com/thi-ng/umbrella/commit/aefdd97e27fce2405860e817b9c5b4aedb6e59e4)) +* **strings:** add wordWrap*() fns ([2a283c0](https://github.com/thi-ng/umbrella/commit/2a283c018592d8cc76f4ef83b69c6ce3c378aca6)) +* **strings:** update padLeft/Right() args ([118f97f](https://github.com/thi-ng/umbrella/commit/118f97f1fca27671c53d184484a7b435e6eedf88)) + + +### Performance Improvements + +* **strings:** simplify string default delim regexp ([bb62760](https://github.com/thi-ng/umbrella/commit/bb62760f2069a1f7edeaa09ce0e0639047789af3)) + + + + + # [1.12.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.11.4...@thi.ng/strings@1.12.0) (2021-01-05) diff --git a/packages/strings/package.json b/packages/strings/package.json index a9723733a8..b57afb03cc 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/strings", - "version": "1.12.0", + "version": "1.13.0", "description": "Various string formatting & utility functions", "module": "./index.js", "main": "./lib/index.js", diff --git a/packages/strings/src/ansi.ts b/packages/strings/src/ansi.ts new file mode 100644 index 0000000000..b6155c45d9 --- /dev/null +++ b/packages/strings/src/ansi.ts @@ -0,0 +1,22 @@ +const RE = /\x1b\[[0-9;]+m/g; + +/** + * Removes all ANSI control sequences from given string. + * + * @example + * ```ts + * stripAnsi("\x1B[32mhello\x1B[0m \x1B[91mworld\x1B[0m!""); + * // 'hello world!' + * ``` + * + * @param x + */ +export const stripAnsi = (x: string) => x.replace(RE, ""); + +/** + * Returns length of `x` excluding any ANSI control sequences (via + * {@link stripAnsi}). + * + * @param x + */ +export const lengthAnsi = (x: string) => stripAnsi(x).length; diff --git a/packages/strings/src/index.ts b/packages/strings/src/index.ts index da5fdb4e5c..6808bfc5f6 100644 --- a/packages/strings/src/index.ts +++ b/packages/strings/src/index.ts @@ -1,4 +1,6 @@ export * from "./api"; + +export * from "./ansi"; export * from "./case"; export * from "./center"; export * from "./cursor"; @@ -19,9 +21,11 @@ export * from "./repeat"; export * from "./slugify"; export * from "./splice"; export * from "./split"; +export * from "./tabs"; export * from "./trim"; export * from "./truncate"; export * from "./truncate-left"; export * from "./units"; export * from "./uuid"; export * from "./wrap"; +export * from "./word-wrap"; diff --git a/packages/strings/src/pad-left.ts b/packages/strings/src/pad-left.ts index d0d0ff2417..ce21563659 100644 --- a/packages/strings/src/pad-left.ts +++ b/packages/strings/src/pad-left.ts @@ -9,16 +9,18 @@ import { repeat } from "./repeat"; export const padLeft: ( n: number, ch?: string | number -) => Stringer = memoizeJ< +) => (x: any, length?: number) => string = memoizeJ< number, string | number | undefined, Stringer >((n, ch = " ") => { const buf = repeat(String(ch), n); - return (x: any) => - x != null - ? ((x = x.toString()), x.length < n ? buf.substr(x.length) + x : x) - : buf; + return (x: any, len?: number) => { + if (x == null) return buf; + x = x.toString(); + len = len !== undefined ? len : x.length; + return len! < n ? buf.substr(len!) + x : x; + }; }); /** diff --git a/packages/strings/src/pad-right.ts b/packages/strings/src/pad-right.ts index 4dac93af60..cbf65e18d6 100644 --- a/packages/strings/src/pad-right.ts +++ b/packages/strings/src/pad-right.ts @@ -9,14 +9,16 @@ import { repeat } from "./repeat"; export const padRight: ( n: number, ch?: string | number -) => Stringer = memoizeJ< +) => (x: any, length?: number) => string = memoizeJ< number, string | number | undefined, Stringer >((n, ch = " ") => { const buf = repeat(String(ch), n); - return (x: any) => - x != null - ? ((x = x.toString()), x.length < n ? x + buf.substr(x.length) : x) - : buf; + return (x, len?: number) => { + if (x == null) return buf; + x = x.toString(); + len = len !== undefined ? len : x.length; + return len! < n ? x + buf.substr(len!) : x; + }; }); diff --git a/packages/strings/src/split.ts b/packages/strings/src/split.ts index 657a11ac2e..de4efc39b6 100644 --- a/packages/strings/src/split.ts +++ b/packages/strings/src/split.ts @@ -12,11 +12,7 @@ * @param delim * @param includeDelim */ -export function* split( - src: string, - delim = /(\r\n)|\n|\r/g, - includeDelim = false -) { +export function* split(src: string, delim = /\r?\n/g, includeDelim = false) { let i = 0; const n = src.length; const include = ~~includeDelim; diff --git a/packages/strings/src/tabs.ts b/packages/strings/src/tabs.ts new file mode 100644 index 0000000000..64723dc7f9 --- /dev/null +++ b/packages/strings/src/tabs.ts @@ -0,0 +1,94 @@ +import { repeat } from "./repeat"; + +const nextTab = (x: number, tabSize: number) => + Math.floor((x + tabSize) / tabSize) * tabSize; + +/** + * Multi-line version of {@link tabsToSpacesLine}. + * + * @example + * ```ts + * console.log( + * tabsToSpaces("0\t1\t2", 10) + * + "\n" + + * tabsToSpaces("0\t45\t890\t\t6\t0") + * + "\n" + + * tabsToSpaces("^\t^\t^\t^\t^\t^") + * ); + * // 0 1 2 + * // 0 45 890 6 0 + * // ^ ^ ^ ^ ^ ^ + * ``` + * + * @param src + * @param tabSize + */ +export const tabsToSpaces = (src: string, tabSize = 4) => + src + .split(/\r?\n/g) + .map((line) => tabsToSpacesLine(line, tabSize)) + .join("\n"); + +/** + * Takes a single line string and converts all tab characters to spaces, using + * given `tabSize`. + * + * @param line + * @param tabSize + */ +export const tabsToSpacesLine = (line: string, tabSize = 4) => { + let res = ""; + let words = line.split(/\t/g); + let n = words.length - 1; + for (let i = 0; i < n; i++) { + const w = words[i]; + res += w; + res += repeat(" ", nextTab(res.length, tabSize) - res.length); + } + res += words[n]; + return res; +}; + +/** + * Multi-line version of {@link spacesToTabsLine}. + * + * @param src + * @param tabSize + */ +export const spacesToTabs = (src: string, tabSize = 4) => + src + .split(/\r?\n/g) + .map((line) => spacesToTabsLine(line, tabSize)) + .join("\n"); + +/** + * Takes a single line string and converts all tab characters to spaces, using + * given `tabSize`. Inverse op of {@link tabsToSpacesLine}. + * + * @param line + * @param tabSize + */ +export const spacesToTabsLine = (line: string, tabSize = 4) => { + const re = /\s{2,}/g; + let i = 0; + let res = ""; + let m: RegExpExecArray | null; + while ((m = re.exec(line))) { + const numSpaces = m[0].length; + res += line.substring(i, m.index); + i = m.index; + const end = m.index + numSpaces; + while (i < end) { + const j = nextTab(i, tabSize); + if (j <= end) { + res += "\t"; + i = j; + } else { + res += repeat(" ", end - i); + i = end; + } + } + i = end; + } + return res + line.substr(i); +}; diff --git a/packages/strings/src/word-wrap.ts b/packages/strings/src/word-wrap.ts new file mode 100644 index 0000000000..a8deece03d --- /dev/null +++ b/packages/strings/src/word-wrap.ts @@ -0,0 +1,43 @@ +import { lengthAnsi } from "./ansi"; + +export const wordWrap = (str: string, lineWidth?: number) => + wordWrapLines(str, lineWidth).join("\n"); + +export const wordWrapLines = (str: string, lineWidth = 80) => { + const res: string[] = []; + for (let line of str.split("\n")) { + if (!line.length) { + res.push(""); + continue; + } + wordWrapLine(line, lineWidth, res); + } + return res; +}; + +export const wordWrapLine = ( + line: string, + lineWidth = 80, + acc: string[] = [] +) => { + let ln = 0; + let curr: string[] = []; + for (let w of line.split(" ")) { + const l = lengthAnsi(w) + (ln > 0 ? 1 : 0); + if (ln + l <= lineWidth) { + curr.push(w, " "); + ln += l; + } else { + acc.push(trimLine(curr)); + curr = [w, " "]; + ln = l; + } + } + ln && acc.push(trimLine(curr)); + return acc; +}; + +const trimLine = (x: string[]) => { + /^\s+$/.test(x[x.length - 1]) && x.pop(); + return x.join(""); +}; diff --git a/packages/system/CHANGELOG.md b/packages/system/CHANGELOG.md index b949211f43..011ecf4aae 100644 --- a/packages/system/CHANGELOG.md +++ b/packages/system/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.33...@thi.ng/system@0.2.34) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/system + + + + + ## [0.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.32...@thi.ng/system@0.2.33) (2021-01-02) **Note:** Version bump only for package @thi.ng/system diff --git a/packages/system/package.json b/packages/system/package.json index 2696bc5c4c..b660c77ebc 100644 --- a/packages/system/package.json +++ b/packages/system/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/system", - "version": "0.2.33", + "version": "0.2.34", "description": "Minimal DI / life cycle container for stateful app components", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/dgraph": "^1.3.4" + "@thi.ng/dgraph": "^1.3.5" }, "files": [ "*.js", diff --git a/packages/text-canvas/CHANGELOG.md b/packages/text-canvas/CHANGELOG.md index ac04e12ce5..af358f2f9a 100644 --- a/packages/text-canvas/CHANGELOG.md +++ b/packages/text-canvas/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.4.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.4.0...@thi.ng/text-canvas@0.4.1) (2021-01-10) + + +### Bug Fixes + +* **text-canvas:** fix FMT_ANSI256 bg bitshift ([b50a0f9](https://github.com/thi-ng/umbrella/commit/b50a0f9c0464774f3b62888d718da89381b3014c)) + + + + + # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.3.0...@thi.ng/text-canvas@0.4.0) (2021-01-05) diff --git a/packages/text-canvas/README.md b/packages/text-canvas/README.md index eff30cca73..f43ca4e4db 100644 --- a/packages/text-canvas/README.md +++ b/packages/text-canvas/README.md @@ -247,6 +247,8 @@ const ansi = defFormatPresets(FMT_ANSI16); // '\x1B[32mhello\x1B[0m \x1B[91mworld\x1B[0m!' const html = defFormatPresets(FMT_HTML_TACHYONS); + +`${html.green("hello")} ${html.lightRed("world")}!`; // 'hello world!' ``` diff --git a/packages/text-canvas/package.json b/packages/text-canvas/package.json index 7d7bd80ad3..f8fc41a1b6 100644 --- a/packages/text-canvas/package.json +++ b/packages/text-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/text-canvas", - "version": "0.4.0", + "version": "0.4.1", "description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)", "module": "./index.js", "main": "./lib/index.js", @@ -50,13 +50,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/geom-clip-line": "^1.2.15", - "@thi.ng/math": "^3.0.1", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/geom-clip-line": "^1.2.16", + "@thi.ng/math": "^3.1.0", "@thi.ng/memoize": "^2.1.8", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/text-canvas/src/ansi.ts b/packages/text-canvas/src/ansi.ts index 2c74386f24..202d1ad7b9 100644 --- a/packages/text-canvas/src/ansi.ts +++ b/packages/text-canvas/src/ansi.ts @@ -29,7 +29,7 @@ export const FMT_ANSI16: StringFormat = { }; export const FMT_ANSI256: StringFormat = { - start: (x: number) => `\x1b[38;5;${x & 0xff};48;5;${x >>> 16}m`, + start: (x: number) => `\x1b[38;5;${x & 0xff};48;5;${x >>> 8}m`, end: ANSI_RESET, prefix: ANSI_RESET, suffix: "\n", diff --git a/packages/text-canvas/tpl.readme.md b/packages/text-canvas/tpl.readme.md index 6e118df4b4..4bebec7d53 100644 --- a/packages/text-canvas/tpl.readme.md +++ b/packages/text-canvas/tpl.readme.md @@ -195,6 +195,8 @@ const ansi = defFormatPresets(FMT_ANSI16); // '\x1B[32mhello\x1B[0m \x1B[91mworld\x1B[0m!' const html = defFormatPresets(FMT_HTML_TACHYONS); + +`${html.green("hello")} ${html.lightRed("world")}!`; // 'hello world!' ``` diff --git a/packages/transducers-binary/CHANGELOG.md b/packages/transducers-binary/CHANGELOG.md index 0d167f7064..bf3d522db5 100644 --- a/packages/transducers-binary/CHANGELOG.md +++ b/packages/transducers-binary/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.6.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.6.1...@thi.ng/transducers-binary@0.6.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/transducers-binary + + + + + ## [0.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.6.0...@thi.ng/transducers-binary@0.6.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/transducers-binary diff --git a/packages/transducers-binary/package.json b/packages/transducers-binary/package.json index c8905f7b54..05acc32400 100644 --- a/packages/transducers-binary/package.json +++ b/packages/transducers-binary/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-binary", - "version": "0.6.1", + "version": "0.6.2", "description": "Binary data related transducers & reducers", "module": "./index.js", "main": "./lib/index.js", @@ -53,8 +53,8 @@ "@thi.ng/compose": "^1.4.23", "@thi.ng/errors": "^1.2.26", "@thi.ng/hex": "^0.1.3", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/transducers-fsm/CHANGELOG.md b/packages/transducers-fsm/CHANGELOG.md index 612e6b6168..49cb84cb7c 100644 --- a/packages/transducers-fsm/CHANGELOG.md +++ b/packages/transducers-fsm/CHANGELOG.md @@ -3,6 +3,14 @@ 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/transducers-fsm@1.1.44...@thi.ng/transducers-fsm@1.1.45) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/transducers-fsm + + + + + ## [1.1.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.43...@thi.ng/transducers-fsm@1.1.44) (2021-01-02) **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 440e9b4df3..6c7fe81154 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.44", + "version": "1.1.45", "description": "Transducer-based Finite State Machine transformer", "module": "./index.js", "main": "./lib/index.js", @@ -50,7 +50,7 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/transducers-hdom/CHANGELOG.md b/packages/transducers-hdom/CHANGELOG.md index eaee82f37c..dfba263d16 100644 --- a/packages/transducers-hdom/CHANGELOG.md +++ b/packages/transducers-hdom/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.77](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.76...@thi.ng/transducers-hdom@2.0.77) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/transducers-hdom + + + + + ## [2.0.76](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.75...@thi.ng/transducers-hdom@2.0.76) (2021-01-02) **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 182b7c1937..af2ace6db7 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.76", + "version": "2.0.77", "description": "Transducer based UI updater for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -49,9 +49,9 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/hdom": "^8.2.15", - "@thi.ng/hiccup": "^3.6.6", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/hdom": "^8.2.16", + "@thi.ng/hiccup": "^3.6.7", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/transducers-patch/CHANGELOG.md b/packages/transducers-patch/CHANGELOG.md index d4d45f84fd..d2d3bb017c 100644 --- a/packages/transducers-patch/CHANGELOG.md +++ b/packages/transducers-patch/CHANGELOG.md @@ -3,6 +3,14 @@ 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/transducers-patch@0.2.1...@thi.ng/transducers-patch@0.2.2) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/transducers-patch + + + + + ## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.2.0...@thi.ng/transducers-patch@0.2.1) (2021-01-02) **Note:** Version bump only for package @thi.ng/transducers-patch diff --git a/packages/transducers-patch/package.json b/packages/transducers-patch/package.json index 8a30884071..6d2392afa0 100644 --- a/packages/transducers-patch/package.json +++ b/packages/transducers-patch/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-patch", - "version": "0.2.1", + "version": "0.2.2", "description": "Reducers for patch-based, immutable-by-default array & object editing", "module": "./index.js", "main": "./lib/index.js", @@ -50,10 +50,10 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/errors": "^1.2.26", - "@thi.ng/paths": "^4.1.12", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/paths": "^4.1.13", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/transducers-stats/CHANGELOG.md b/packages/transducers-stats/CHANGELOG.md index 428b9171b7..931f28d638 100644 --- a/packages/transducers-stats/CHANGELOG.md +++ b/packages/transducers-stats/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.45...@thi.ng/transducers-stats@1.1.46) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/transducers-stats + + + + + ## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.44...@thi.ng/transducers-stats@1.1.45) (2021-01-02) **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 3b25288e27..e8599255ac 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.45", + "version": "1.1.46", "description": "Transducers for statistical / technical analysis", "module": "./index.js", "main": "./lib/index.js", @@ -49,10 +49,10 @@ "typescript": "^4.1.3" }, "dependencies": { - "@thi.ng/checks": "^2.7.13", - "@thi.ng/dcons": "^2.3.5", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/dcons": "^2.3.6", "@thi.ng/errors": "^1.2.26", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/transducers/CHANGELOG.md b/packages/transducers/CHANGELOG.md index 97f4bd416b..a7f2a4a931 100644 --- a/packages/transducers/CHANGELOG.md +++ b/packages/transducers/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.5.4...@thi.ng/transducers@7.5.5) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/transducers + + + + + ## [7.5.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.5.3...@thi.ng/transducers@7.5.4) (2021-01-02) **Note:** Version bump only for package @thi.ng/transducers diff --git a/packages/transducers/package.json b/packages/transducers/package.json index 720d885aae..8f4cb2abd2 100644 --- a/packages/transducers/package.json +++ b/packages/transducers/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers", - "version": "7.5.4", + "version": "7.5.5", "description": "Lightweight transducer implementations for ES6 / TypeScript", "module": "./index.js", "main": "./lib/index.js", @@ -50,13 +50,13 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0", "@thi.ng/compare": "^1.3.22", "@thi.ng/compose": "^1.4.23", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", - "@thi.ng/random": "^2.1.4" + "@thi.ng/math": "^3.1.0", + "@thi.ng/random": "^2.1.5" }, "files": [ "*.js", diff --git a/packages/vector-pools/CHANGELOG.md b/packages/vector-pools/CHANGELOG.md index 0499987256..6a04e26ed8 100644 --- a/packages/vector-pools/CHANGELOG.md +++ b/packages/vector-pools/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.53...@thi.ng/vector-pools@1.0.54) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/vector-pools + + + + + ## [1.0.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.52...@thi.ng/vector-pools@1.0.53) (2021-01-02) **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 f6c981e84c..ed1607ce01 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.53", + "version": "1.0.54", "description": "Data structures for managing & working with strided, memory mapped vectors", "module": "./index.js", "main": "./lib/index.js", @@ -51,10 +51,10 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/malloc": "^4.2.5", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/checks": "^2.8.0", + "@thi.ng/malloc": "^4.2.6", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/vectors/CHANGELOG.md b/packages/vectors/CHANGELOG.md index b3bc22e78e..bfd3c45fe6 100644 --- a/packages/vectors/CHANGELOG.md +++ b/packages/vectors/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.8.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.8.4...@thi.ng/vectors@4.8.5) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/vectors + + + + + ## [4.8.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.8.3...@thi.ng/vectors@4.8.4) (2021-01-02) **Note:** Version bump only for package @thi.ng/vectors diff --git a/packages/vectors/package.json b/packages/vectors/package.json index 2b03ea6043..8e39805523 100644 --- a/packages/vectors/package.json +++ b/packages/vectors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vectors", - "version": "4.8.4", + "version": "4.8.5", "description": "Optimized 2d/3d/4d and arbitrary length vector operations", "module": "./index.js", "main": "./lib/index.js", @@ -51,13 +51,13 @@ "dependencies": { "@thi.ng/api": "^6.13.6", "@thi.ng/binary": "^2.0.21", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/checks": "^2.8.0", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/math": "^3.0.1", + "@thi.ng/math": "^3.1.0", "@thi.ng/memoize": "^2.1.8", - "@thi.ng/random": "^2.1.4", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/random": "^2.1.5", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/viz/CHANGELOG.md b/packages/viz/CHANGELOG.md index 42cffdd0dc..26e9f38b50 100644 --- a/packages/viz/CHANGELOG.md +++ b/packages/viz/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.5...@thi.ng/viz@0.2.6) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/viz + + + + + ## [0.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.4...@thi.ng/viz@0.2.5) (2021-01-05) **Note:** Version bump only for package @thi.ng/viz diff --git a/packages/viz/package.json b/packages/viz/package.json index d8444662cf..d97d2d021c 100644 --- a/packages/viz/package.json +++ b/packages/viz/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/viz", - "version": "0.2.5", + "version": "0.2.6", "description": "Declarative, functional & multi-format data visualization toolkit based around @thi.ng/hiccup", "module": "./index.js", "main": "./lib/index.js", @@ -57,12 +57,12 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/associative": "^5.0.13", - "@thi.ng/checks": "^2.7.13", - "@thi.ng/math": "^3.0.1", - "@thi.ng/strings": "^1.12.0", - "@thi.ng/transducers": "^7.5.4" + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/associative": "^5.0.14", + "@thi.ng/checks": "^2.8.0", + "@thi.ng/math": "^3.1.0", + "@thi.ng/strings": "^1.13.0", + "@thi.ng/transducers": "^7.5.5" }, "files": [ "*.js", diff --git a/packages/webgl-msdf/CHANGELOG.md b/packages/webgl-msdf/CHANGELOG.md index 7119e5a156..bec1a91a50 100644 --- a/packages/webgl-msdf/CHANGELOG.md +++ b/packages/webgl-msdf/CHANGELOG.md @@ -3,6 +3,14 @@ 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/webgl-msdf@0.1.67...@thi.ng/webgl-msdf@0.1.68) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/webgl-msdf + + + + + ## [0.1.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.66...@thi.ng/webgl-msdf@0.1.67) (2021-01-02) **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 576c5010c9..09985df1e5 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.67", + "version": "0.1.68", "description": "Multi-channel SDF font rendering & basic text layout for WebGL", "module": "./index.js", "main": "./lib/index.js", @@ -50,11 +50,11 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/shader-ast": "^0.7.8", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vector-pools": "^1.0.53", - "@thi.ng/vectors": "^4.8.4", - "@thi.ng/webgl": "^3.3.10" + "@thi.ng/shader-ast": "^0.7.9", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vector-pools": "^1.0.54", + "@thi.ng/vectors": "^4.8.5", + "@thi.ng/webgl": "^3.3.11" }, "files": [ "*.js", diff --git a/packages/webgl-shadertoy/CHANGELOG.md b/packages/webgl-shadertoy/CHANGELOG.md index 841e049a42..1b4420a36f 100644 --- a/packages/webgl-shadertoy/CHANGELOG.md +++ b/packages/webgl-shadertoy/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.2.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.54...@thi.ng/webgl-shadertoy@0.2.55) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/webgl-shadertoy + + + + + ## [0.2.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.53...@thi.ng/webgl-shadertoy@0.2.54) (2021-01-02) **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 c0e75b2459..9c59fbc0b8 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.54", + "version": "0.2.55", "description": "Basic WebGL scaffolding for running interactive fragment shaders via @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -50,9 +50,9 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/shader-ast": "^0.7.8", - "@thi.ng/shader-ast-glsl": "^0.2.16", - "@thi.ng/webgl": "^3.3.10" + "@thi.ng/shader-ast": "^0.7.9", + "@thi.ng/shader-ast-glsl": "^0.2.17", + "@thi.ng/webgl": "^3.3.11" }, "files": [ "*.js", diff --git a/packages/webgl/CHANGELOG.md b/packages/webgl/CHANGELOG.md index 8f0c25f4f3..3994e560ba 100644 --- a/packages/webgl/CHANGELOG.md +++ b/packages/webgl/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.10...@thi.ng/webgl@3.3.11) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/webgl + + + + + ## [3.3.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.9...@thi.ng/webgl@3.3.10) (2021-01-02) **Note:** Version bump only for package @thi.ng/webgl diff --git a/packages/webgl/package.json b/packages/webgl/package.json index ce66d8997d..d4369eafd3 100644 --- a/packages/webgl/package.json +++ b/packages/webgl/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/webgl", - "version": "3.3.10", + "version": "3.3.11", "description": "WebGL & GLSL abstraction layer", "module": "./index.js", "main": "./lib/index.js", @@ -51,19 +51,19 @@ "dependencies": { "@thi.ng/adapt-dpi": "^1.0.13", "@thi.ng/api": "^6.13.6", - "@thi.ng/associative": "^5.0.13", - "@thi.ng/checks": "^2.7.13", + "@thi.ng/associative": "^5.0.14", + "@thi.ng/checks": "^2.8.0", "@thi.ng/equiv": "^1.0.35", "@thi.ng/errors": "^1.2.26", - "@thi.ng/matrices": "^0.6.39", + "@thi.ng/matrices": "^0.6.40", "@thi.ng/memoize": "^2.1.8", - "@thi.ng/pixel": "^0.5.0", - "@thi.ng/shader-ast": "^0.7.8", - "@thi.ng/shader-ast-glsl": "^0.2.16", - "@thi.ng/shader-ast-stdlib": "^0.5.8", - "@thi.ng/transducers": "^7.5.4", - "@thi.ng/vector-pools": "^1.0.53", - "@thi.ng/vectors": "^4.8.4" + "@thi.ng/pixel": "^0.5.1", + "@thi.ng/shader-ast": "^0.7.9", + "@thi.ng/shader-ast-glsl": "^0.2.17", + "@thi.ng/shader-ast-stdlib": "^0.5.9", + "@thi.ng/transducers": "^7.5.5", + "@thi.ng/vector-pools": "^1.0.54", + "@thi.ng/vectors": "^4.8.5" }, "files": [ "*.js", diff --git a/packages/zipper/CHANGELOG.md b/packages/zipper/CHANGELOG.md index 3431b748bb..aff435a028 100644 --- a/packages/zipper/CHANGELOG.md +++ b/packages/zipper/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.31...@thi.ng/zipper@0.1.32) (2021-01-10) + +**Note:** Version bump only for package @thi.ng/zipper + + + + + ## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.30...@thi.ng/zipper@0.1.31) (2021-01-02) **Note:** Version bump only for package @thi.ng/zipper diff --git a/packages/zipper/package.json b/packages/zipper/package.json index 7f1b7c837e..298a7cac59 100644 --- a/packages/zipper/package.json +++ b/packages/zipper/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/zipper", - "version": "0.1.31", + "version": "0.1.32", "description": "Functional tree editing, manipulation & navigation", "module": "./index.js", "main": "./lib/index.js", @@ -50,8 +50,8 @@ }, "dependencies": { "@thi.ng/api": "^6.13.6", - "@thi.ng/arrays": "^0.9.0", - "@thi.ng/checks": "^2.7.13" + "@thi.ng/arrays": "^0.9.1", + "@thi.ng/checks": "^2.8.0" }, "files": [ "*.js", diff --git a/scripts/deploy-docs b/scripts/deploy-docs index edbd7560f3..ce868c6f57 100755 --- a/scripts/deploy-docs +++ b/scripts/deploy-docs @@ -4,10 +4,12 @@ const execSync = require("child_process").execSync; const PKG = process.argv[2]; -const BUCKET = "s3://docs.thi.ng"; -const PREFIX = "/umbrella"; -const S3_OPTS = `--profile thing-umbrella --acl public-read`; +const AWS_PROFILE = "--profile thing-umbrella"; +const S3_BUCKET = "s3://docs.thi.ng"; +const S3_PREFIX = "/umbrella"; +const S3_OPTS = `${AWS_PROFILE} --acl public-read`; const SYNC_OPTS = `${S3_OPTS} --include "*" --exclude "*.sass" --exclude "*.ts"`; +const CF_DISTRO = "E2855K70PVNL1D"; const MINIFY_OPTS = "--file-ext html --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true"; @@ -31,14 +33,14 @@ const sanitizeFile = (f) => { /\{@link @thi\.ng\/([a-z0-9-]+)(#(\w+))?\s*\|\s*([^\}]+)\}/g, (_, id, label) => { updated = true; - return `${label}`; + return `${label}`; } ) .replace( /\{@link @thi\.ng\/([a-z0-9-]+)#(\w+)?\s*\}/g, (_, id, sym) => { updated = true; - let path = `${PREFIX}/${id}/`; + let path = `${S3_PREFIX}/${id}/`; if (sym.startsWith("I")) { path += `interfaces/${sym.toLowerCase()}.html`; } else if (/^[a-z]/.test(sym)) { @@ -49,7 +51,7 @@ const sanitizeFile = (f) => { ) .replace(/\{@link @thi\.ng\/([a-z0-9-]+)#?\s*\}/g, (_, id) => { updated = true; - return `@thi.ng/${id}`; + return `@thi.ng/${id}`; }); if (updated) { console.log("sanitizing:", f); @@ -74,11 +76,16 @@ const syncPackage = (id, root) => { console.log("syncing", root); console.log( execSync( - `aws s3 sync ${root} ${BUCKET}${PREFIX}/${id} ${SYNC_OPTS}` + `aws s3 sync ${root} ${S3_BUCKET}${S3_PREFIX}/${id} ${SYNC_OPTS}` ).toString() ); }; +const invalidatePackage = (id) => + execSync( + `aws cloudfront create-invalidation --distribution-id ${CF_DISTRO} --paths "${S3_PREFIX}/${id}/*" ${AWS_PROFILE}` + ); + const processPackage = (id) => { console.log("processing", id); const root = `packages/${id}/doc`; @@ -86,6 +93,7 @@ const processPackage = (id) => { sanitizePackage(root); minifyPackage(root); syncPackage(id, root); + invalidatePackage(id); } catch (e) { console.warn(e); } @@ -105,4 +113,4 @@ execSync( `node_modules/.bin/ts-node -P tools/tsconfig.json tools/src/doc-table.ts` ); -execSync(`aws s3 cp docs.html ${BUCKET}/index.html ${S3_OPTS}`); +execSync(`aws s3 cp docs.html ${S3_BUCKET}/index.html ${S3_OPTS}`);