diff --git a/.gitattributes b/.gitattributes index 88be73abd7..974fcd1488 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,5 +5,5 @@ *.pdf -text *.png -text *.gz -text -tools/doc/typedoc-theme/* -linguist-detectable +tools/doc/* linguist-documentation yarn.lock -diff \ No newline at end of file diff --git a/examples/adaptive-threshold/snowpack.config.js b/examples/adaptive-threshold/snowpack.config.js index d887f95f87..f9d84314c9 100644 --- a/examples/adaptive-threshold/snowpack.config.js +++ b/examples/adaptive-threshold/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/async-effect/snowpack.config.js b/examples/async-effect/snowpack.config.js index 78c1b97e6f..fc01b2286a 100644 --- a/examples/async-effect/snowpack.config.js +++ b/examples/async-effect/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/bitmap-font/snowpack.config.js b/examples/bitmap-font/snowpack.config.js index 03aa70530c..5f9610f68f 100644 --- a/examples/bitmap-font/snowpack.config.js +++ b/examples/bitmap-font/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/canvas-dial/snowpack.config.js b/examples/canvas-dial/snowpack.config.js index 8f55f82a64..c60a8c1b95 100644 --- a/examples/canvas-dial/snowpack.config.js +++ b/examples/canvas-dial/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/cellular-automata/snowpack.config.js b/examples/cellular-automata/snowpack.config.js index e8bd16d1b3..13b9b35f52 100644 --- a/examples/cellular-automata/snowpack.config.js +++ b/examples/cellular-automata/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/color-themes/snowpack.config.js b/examples/color-themes/snowpack.config.js index e0e7fdbcf3..691fed3aed 100644 --- a/examples/color-themes/snowpack.config.js +++ b/examples/color-themes/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/crypto-chart/snowpack.config.js b/examples/crypto-chart/snowpack.config.js index 204e7836e2..03b4a7ffda 100644 --- a/examples/crypto-chart/snowpack.config.js +++ b/examples/crypto-chart/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/devcards/snowpack.config.js b/examples/devcards/snowpack.config.js index b616272e15..c0ed8c290a 100644 --- a/examples/devcards/snowpack.config.js +++ b/examples/devcards/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/dominant-colors/snowpack.config.js b/examples/dominant-colors/snowpack.config.js index 87c7f0ed64..f6ba6abad0 100644 --- a/examples/dominant-colors/snowpack.config.js +++ b/examples/dominant-colors/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/dominant-colors/src/api.ts b/examples/dominant-colors/src/api.ts new file mode 100644 index 0000000000..4a8b532599 --- /dev/null +++ b/examples/dominant-colors/src/api.ts @@ -0,0 +1,22 @@ +import type { Comparator } from "@thi.ng/api"; +import type { LCH } from "@thi.ng/color"; +import { compareByKey, compareByKeys2, compareNumDesc } from "@thi.ng/compare"; + +export type SortMode = "hue" | "luma" | "area"; + +export interface DominantColor { + col: LCH; + area: number; +} + +export const SORT_MODES: Record> = { + hue: compareByKeys2( + (x) => x.col.h, + (x) => x.col.l + ), + luma: compareByKeys2( + (x) => x.col.l, + (x) => x.col.h + ), + area: compareByKey("area", compareNumDesc), +}; diff --git a/examples/dominant-colors/src/components/pixelcanvas.ts b/examples/dominant-colors/src/components/pixelcanvas.ts new file mode 100644 index 0000000000..6a43a76916 --- /dev/null +++ b/examples/dominant-colors/src/components/pixelcanvas.ts @@ -0,0 +1,25 @@ +// thi.ng/rdom UI component +// creates a canvas element and blits given pixel buffer into it + +import { Component, NumOrElement } from "@thi.ng/rdom"; +import type { PackedBuffer } from "@thi.ng/pixel"; + +// when the component mounts +export class PixelCanvas extends Component { + constructor(protected buffer: PackedBuffer) { + super(); + } + + async mount(parent: Element, index?: NumOrElement) { + const buf = this.buffer; + this.el = this.$el( + "canvas", + { width: buf.width, height: buf.height }, + null, + parent, + index + ); + buf.blitCanvas(this.el); + return this.el; + } +} diff --git a/examples/dominant-colors/src/components/slider.ts b/examples/dominant-colors/src/components/slider.ts new file mode 100644 index 0000000000..d8c20b915a --- /dev/null +++ b/examples/dominant-colors/src/components/slider.ts @@ -0,0 +1,22 @@ +import { div, label } from "@thi.ng/hiccup-html"; +import { inputNumeric } from "@thi.ng/rdom-components"; +import type { ISubscription } from "@thi.ng/rstream"; + +export const slider = ( + dest: ISubscription, + desc: string, + attribs?: any +) => + div( + null, + label( + { class: "dib w-50 w-25-ns", for: `input-${desc}` }, + `${desc}: `, + dest + ), + inputNumeric(dest, { + class: "dib w-50 w-25-ns", + type: "range", + ...attribs, + }) + ); diff --git a/examples/dominant-colors/src/components/swatches.ts b/examples/dominant-colors/src/components/swatches.ts new file mode 100644 index 0000000000..ab942191c1 --- /dev/null +++ b/examples/dominant-colors/src/components/swatches.ts @@ -0,0 +1,14 @@ +import { dotsH, ReadonlyColor } from "@thi.ng/color"; +import { svg } from "@thi.ng/hiccup-svg"; + +export const svgSwatches = (colors: ReadonlyColor[], size: number) => + svg( + { + width: colors.length * (size * 2 + 2), + height: size * 2, + convert: true, + }, + dotsH(colors, size - 1, 2, { + translate: [size, size], + }) + ); diff --git a/examples/dominant-colors/src/index.ts b/examples/dominant-colors/src/index.ts index a200a45dbe..9dd3b5490d 100644 --- a/examples/dominant-colors/src/index.ts +++ b/examples/dominant-colors/src/index.ts @@ -1,63 +1,55 @@ -import { timed } from "@thi.ng/bench"; -import { swatchesH } from "@thi.ng/color"; -import { button, div, h1, inputFile } from "@thi.ng/hiccup-html"; -import { svg } from "@thi.ng/hiccup-svg"; -import { - ABGR8888, - dominantColors, - floatBuffer, - FLOAT_RGB, - PackedBuffer, -} from "@thi.ng/pixel"; -import { - $compile, - $input, - $refresh, - Component, - NumOrElement, -} from "@thi.ng/rdom"; +import { isMobile } from "@thi.ng/checks"; +import { button, div, h1, inputFile, label, span } from "@thi.ng/hiccup-html"; +import { $compile, $inputFile, $inputTrigger, $refresh } from "@thi.ng/rdom"; +import { staticRadio } from "@thi.ng/rdom-components"; import { reactive, stream, sync } from "@thi.ng/rstream"; +import { float } from "@thi.ng/strings"; import { map } from "@thi.ng/transducers"; +import type { SortMode } from "./api"; +import { PixelCanvas } from "./components/pixelcanvas"; +import { slider } from "./components/slider"; +import { svgSwatches } from "./components/swatches"; import { downloadACT } from "./palette"; +import { postProcess, processImage } from "./process"; -/** - * Converts image into pixel buffer, resizes it to max 256 pixels (longest side) - * and applies k-means clustering to obtain dominant colors and their coverage. - * Only colors with given `minArea` (normalized) are considered. - * - * @param img - * @param num - * @param minArea - */ -const processImage = (img: HTMLImageElement, num: number, minArea = 0.025) => - timed(() => { - let buf = PackedBuffer.fromImage(img, ABGR8888); - buf = buf.scale(256 / Math.max(buf.width, buf.height), "nearest"); - const colors = dominantColors(floatBuffer(buf, FLOAT_RGB), num).filter( - (c) => c.area >= minArea - ); - return { buf, colors }; - }); - +// stream of input files +const file = stream(); // images read from files const image = stream(); // number of dominant colors to extract -const num = reactive(5); +const num = reactive(8); +// min chromacity of result colors (percent) +const minChroma = reactive(10); +// min cluster area (percent) +const minArea = reactive(1); +const sortMode = reactive("hue"); // dummy stream to retrigger updates -const update = reactive(""); +const update = reactive(true); + +const size = (isMobile() ? 0.5 : 1) * 25; // stream combinator & image processor -const result = sync({ +const main = sync({ src: { image, num, + minChroma, _: update, }, - xform: map((params) => processImage(params.image, params.num)), + xform: map((params) => + processImage(params.image, params.num, params.minChroma * 0.01) + ), +}); + +// final result combinator & post-analysis/filtering +const result = sync({ + src: { main, minArea, sortMode }, + xform: map(({ main: { buf, colors }, minArea, sortMode }) => ({ + buf, + ...postProcess(colors, minArea, sortMode), + })), }); -// stream of input files -const file = stream(); // new values pushed into `file` will trigger reading file as an image // once ready, puts image into `image` stream for further processing file.subscribe({ @@ -72,71 +64,69 @@ file.subscribe({ }, }); -// thi.ng/rdom UI component -// creates a canvas element and blits given pixel buffer into it -// when the component mounts -class PixelCanvas extends Component { - constructor(protected buffer: PackedBuffer) { - super(); - } - - async mount(parent: Element, index?: NumOrElement) { - const buf = this.buffer; - this.el = this.$el( - "canvas", - { width: buf.width, height: buf.height }, - null, - parent, - index - ); - buf.blitCanvas(this.el); - return this.el; - } -} - // main UI $compile( div( + ".lh-copy.f6.f5-ns", {}, - h1({}, "Dominant colors"), + h1(".ma0", {}, "Dominant colors"), inputFile(".db.mv3", { - accept: ["image/jpg", "image/png", "image/gif"], + accept: ["image/jpg", "image/png", "image/gif", "image/webp"], multiple: false, - onchange: (e) => file.next((e.target).files![0]), + onchange: $inputFile(file), + }), + slider(num, "max. colors", { + min: 2, + max: 16, + step: 1, + }), + slider(minChroma, "min. chroma", { + min: 0, + max: 100, + step: 5, + }), + slider(minArea, "min. area", { + min: 0, + max: 25, + step: 1, }), - button(".db.mv3", { onclick: $input(update) }, "update"), + div(".mv3", {}, "Sort colors by:"), + staticRadio(["hue", "luma", "area"], sortMode, { + label: (id, radio) => + label( + ".db", + { for: id }, + span(".dib.w-50.w-25-ns", {}, id), + radio + ), + }), + button(".db.mv3", { onclick: $inputTrigger(update) }, "update"), div( {}, // this part of the UI will be replaced for each new processed image - $refresh>(result, async (res) => + $refresh(result, async (res) => div( {}, // resized image as canvas new PixelCanvas(res.buf), // swatches of dominant colors div( - ".mv3", {}, - svg( - { - width: res.colors.length * 50, - height: 50, - convert: true, - }, - swatchesH( - res.colors.map((c) => c.color), - 50, - 50, - { stroke: "black" } - ) + svgSwatches( + res.colors.map((c) => c.col), + size ) ), + div( + {}, + `hue range: ${res.hues.map(float(3)).join(" .. ")}` + ), // download palette button button( ".db.mv3", { onclick: () => - downloadACT(res.colors.map((c) => c.color)), + downloadACT(res.colors.map((c) => c.col)), }, "download .act palette" ) diff --git a/examples/dominant-colors/src/process.ts b/examples/dominant-colors/src/process.ts new file mode 100644 index 0000000000..dd4739961d --- /dev/null +++ b/examples/dominant-colors/src/process.ts @@ -0,0 +1,52 @@ +import { timed } from "@thi.ng/bench"; +import { lch, srgb } from "@thi.ng/color"; +import { + ABGR8888, + dominantColors, + floatBuffer, + FLOAT_RGB, + PackedBuffer, +} from "@thi.ng/pixel"; +import { map, minMax, transduce } from "@thi.ng/transducers"; +import { DominantColor, SortMode, SORT_MODES } from "./api"; + +/** + * Converts image into pixel buffer, resizes it to max 256 pixels (longest side) + * and applies k-means clustering to obtain dominant colors and their coverage. + * Returns object of pixel buffer and result colors (in LCH space). + * + * @param img + * @param num + * @param minChroma + */ +export const processImage = ( + img: HTMLImageElement, + num: number, + minChroma: number +) => + timed(() => { + let buf = PackedBuffer.fromImage(img, ABGR8888); + buf = buf.scale(256 / Math.max(buf.width, buf.height), "nearest"); + const colors = dominantColors(floatBuffer(buf, FLOAT_RGB), num, { + // use min chroma as pre-filter criteria + filter: (p) => lch(srgb(p)).c > minChroma, + }).map((c) => { col: lch(srgb(c.color)), area: c.area }); + return { buf, colors }; + }); + +export const postProcess = ( + colors: DominantColor[], + minArea: number, + sortMode: SortMode +) => { + minArea *= 0.01; + // min area as post-filter, sort colors by selected mode + colors = colors.filter((c) => c.area >= minArea).sort(SORT_MODES[sortMode]); + // determine hue range + const hues = transduce( + map((c) => c.col.h), + minMax(), + colors + ); + return { colors, hues }; +}; diff --git a/examples/ellipse-proximity/snowpack.config.js b/examples/ellipse-proximity/snowpack.config.js index b1ea631321..007abff340 100644 --- a/examples/ellipse-proximity/snowpack.config.js +++ b/examples/ellipse-proximity/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/fft-synth/snowpack.config.js b/examples/fft-synth/snowpack.config.js index ddad7825a7..3edc778173 100644 --- a/examples/fft-synth/snowpack.config.js +++ b/examples/fft-synth/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/geom-convex-hull/snowpack.config.js b/examples/geom-convex-hull/snowpack.config.js index efec4970fb..929214c0c5 100644 --- a/examples/geom-convex-hull/snowpack.config.js +++ b/examples/geom-convex-hull/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/geom-fuzz-basics/snowpack.config.js b/examples/geom-fuzz-basics/snowpack.config.js index 70e061db06..4ce01a1b25 100644 --- a/examples/geom-fuzz-basics/snowpack.config.js +++ b/examples/geom-fuzz-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/geom-knn/snowpack.config.js b/examples/geom-knn/snowpack.config.js index 32f3e94e15..74fc9ef1d8 100644 --- a/examples/geom-knn/snowpack.config.js +++ b/examples/geom-knn/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/geom-tessel/snowpack.config.js b/examples/geom-tessel/snowpack.config.js index b655ea2020..df2d2b82a0 100644 --- a/examples/geom-tessel/snowpack.config.js +++ b/examples/geom-tessel/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/geom-voronoi-mst/snowpack.config.js b/examples/geom-voronoi-mst/snowpack.config.js index ed61382992..4a9d8bd4da 100644 --- a/examples/geom-voronoi-mst/snowpack.config.js +++ b/examples/geom-voronoi-mst/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/gesture-analysis/snowpack.config.js b/examples/gesture-analysis/snowpack.config.js index 0b8ddd3915..97e363b1bb 100644 --- a/examples/gesture-analysis/snowpack.config.js +++ b/examples/gesture-analysis/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/grid-iterators/snowpack.config.js b/examples/grid-iterators/snowpack.config.js index e670af9d39..69c821a734 100644 --- a/examples/grid-iterators/snowpack.config.js +++ b/examples/grid-iterators/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-basics/snowpack.config.js b/examples/hdom-basics/snowpack.config.js index d81206e248..49f85757e1 100644 --- a/examples/hdom-basics/snowpack.config.js +++ b/examples/hdom-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-benchmark/snowpack.config.js b/examples/hdom-benchmark/snowpack.config.js index b541a0e9fa..5194d7d84f 100644 --- a/examples/hdom-benchmark/snowpack.config.js +++ b/examples/hdom-benchmark/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-benchmark2/snowpack.config.js b/examples/hdom-benchmark2/snowpack.config.js index 0c61b2f8f7..7caffb00fd 100644 --- a/examples/hdom-benchmark2/snowpack.config.js +++ b/examples/hdom-benchmark2/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-canvas-clock/snowpack.config.js b/examples/hdom-canvas-clock/snowpack.config.js index 029529640a..8edefefa1a 100644 --- a/examples/hdom-canvas-clock/snowpack.config.js +++ b/examples/hdom-canvas-clock/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-canvas-draw/snowpack.config.js b/examples/hdom-canvas-draw/snowpack.config.js index 9196c522bc..c414c948b8 100644 --- a/examples/hdom-canvas-draw/snowpack.config.js +++ b/examples/hdom-canvas-draw/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-canvas-particles/snowpack.config.js b/examples/hdom-canvas-particles/snowpack.config.js index e7ddde7138..8bfbc9225f 100644 --- a/examples/hdom-canvas-particles/snowpack.config.js +++ b/examples/hdom-canvas-particles/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-canvas-shapes/snowpack.config.js b/examples/hdom-canvas-shapes/snowpack.config.js index 91a6b9d7ec..4768edbb17 100644 --- a/examples/hdom-canvas-shapes/snowpack.config.js +++ b/examples/hdom-canvas-shapes/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-dropdown-fuzzy/snowpack.config.js b/examples/hdom-dropdown-fuzzy/snowpack.config.js index deb994eabc..cea3d1966e 100644 --- a/examples/hdom-dropdown-fuzzy/snowpack.config.js +++ b/examples/hdom-dropdown-fuzzy/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-dropdown/snowpack.config.js b/examples/hdom-dropdown/snowpack.config.js index 1499954853..7955aad568 100644 --- a/examples/hdom-dropdown/snowpack.config.js +++ b/examples/hdom-dropdown/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-dyn-context/snowpack.config.js b/examples/hdom-dyn-context/snowpack.config.js index 4c67607c78..6733bfc2ed 100644 --- a/examples/hdom-dyn-context/snowpack.config.js +++ b/examples/hdom-dyn-context/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-elm/snowpack.config.js b/examples/hdom-elm/snowpack.config.js index 6c0c940fc7..1718eb45e9 100644 --- a/examples/hdom-elm/snowpack.config.js +++ b/examples/hdom-elm/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-inner-html/snowpack.config.js b/examples/hdom-inner-html/snowpack.config.js index bae31261e6..34dc5a69bf 100644 --- a/examples/hdom-inner-html/snowpack.config.js +++ b/examples/hdom-inner-html/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-local-render/snowpack.config.js b/examples/hdom-local-render/snowpack.config.js index 3719c21c26..01c03881dc 100644 --- a/examples/hdom-local-render/snowpack.config.js +++ b/examples/hdom-local-render/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-localstate/snowpack.config.js b/examples/hdom-localstate/snowpack.config.js index 96d16d923c..7a0b498356 100644 --- a/examples/hdom-localstate/snowpack.config.js +++ b/examples/hdom-localstate/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-skip-nested/snowpack.config.js b/examples/hdom-skip-nested/snowpack.config.js index 10d3c550dd..1c07c865cc 100644 --- a/examples/hdom-skip-nested/snowpack.config.js +++ b/examples/hdom-skip-nested/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-skip/snowpack.config.js b/examples/hdom-skip/snowpack.config.js index f52e5dd7ce..4f2dae9bd8 100644 --- a/examples/hdom-skip/snowpack.config.js +++ b/examples/hdom-skip/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-theme-adr-0003/snowpack.config.js b/examples/hdom-theme-adr-0003/snowpack.config.js index 6ff3f842f9..2fb707a85b 100644 --- a/examples/hdom-theme-adr-0003/snowpack.config.js +++ b/examples/hdom-theme-adr-0003/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-toggle/snowpack.config.js b/examples/hdom-toggle/snowpack.config.js index 1f6f4a4188..1b6e025876 100644 --- a/examples/hdom-toggle/snowpack.config.js +++ b/examples/hdom-toggle/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hdom-vscroller/snowpack.config.js b/examples/hdom-vscroller/snowpack.config.js index 1a874831c6..241a09e6e7 100644 --- a/examples/hdom-vscroller/snowpack.config.js +++ b/examples/hdom-vscroller/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hiccup-canvas-arcs/snowpack.config.js b/examples/hiccup-canvas-arcs/snowpack.config.js index 560a417b9c..f19bc39795 100644 --- a/examples/hiccup-canvas-arcs/snowpack.config.js +++ b/examples/hiccup-canvas-arcs/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/hydrate-basics/snowpack.config.js b/examples/hydrate-basics/snowpack.config.js index 1247910c2f..5105d6271d 100644 --- a/examples/hydrate-basics/snowpack.config.js +++ b/examples/hydrate-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/imgui-basics/snowpack.config.js b/examples/imgui-basics/snowpack.config.js index 5eed73eda0..0b11cac257 100644 --- a/examples/imgui-basics/snowpack.config.js +++ b/examples/imgui-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/imgui/snowpack.config.js b/examples/imgui/snowpack.config.js index df2640772e..42329346d6 100644 --- a/examples/imgui/snowpack.config.js +++ b/examples/imgui/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/interceptor-basics/snowpack.config.js b/examples/interceptor-basics/snowpack.config.js index 84072659f9..b016b6e445 100644 --- a/examples/interceptor-basics/snowpack.config.js +++ b/examples/interceptor-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/interceptor-basics2/snowpack.config.js b/examples/interceptor-basics2/snowpack.config.js index 1db5bb79ac..cbff848b1f 100644 --- a/examples/interceptor-basics2/snowpack.config.js +++ b/examples/interceptor-basics2/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/iso-plasma/snowpack.config.js b/examples/iso-plasma/snowpack.config.js index 1d25b48b10..88da7eb2e7 100644 --- a/examples/iso-plasma/snowpack.config.js +++ b/examples/iso-plasma/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/json-components/snowpack.config.js b/examples/json-components/snowpack.config.js index dff3511b46..5588b03a35 100644 --- a/examples/json-components/snowpack.config.js +++ b/examples/json-components/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/login-form/snowpack.config.js b/examples/login-form/snowpack.config.js index e1c4dddfc9..76a5edf1ff 100644 --- a/examples/login-form/snowpack.config.js +++ b/examples/login-form/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/mandelbrot/snowpack.config.js b/examples/mandelbrot/snowpack.config.js index bb56bad87f..59dc900791 100644 --- a/examples/mandelbrot/snowpack.config.js +++ b/examples/mandelbrot/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/markdown/snowpack.config.js b/examples/markdown/snowpack.config.js index 33dcdd5494..60598aada7 100644 --- a/examples/markdown/snowpack.config.js +++ b/examples/markdown/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/multitouch/snowpack.config.js b/examples/multitouch/snowpack.config.js index fa4b99fd7c..719005c60b 100644 --- a/examples/multitouch/snowpack.config.js +++ b/examples/multitouch/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/parse-playground/snowpack.config.js b/examples/parse-playground/snowpack.config.js index ed8a05fcbb..4cf39196e2 100644 --- a/examples/parse-playground/snowpack.config.js +++ b/examples/parse-playground/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/pixel-basics/snowpack.config.js b/examples/pixel-basics/snowpack.config.js index ce5905ba94..bf4e4be304 100644 --- a/examples/pixel-basics/snowpack.config.js +++ b/examples/pixel-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/pixel-sorting/snowpack.config.js b/examples/pixel-sorting/snowpack.config.js index 1327308f55..d3b6b8baea 100644 --- a/examples/pixel-sorting/snowpack.config.js +++ b/examples/pixel-sorting/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/poisson-circles/snowpack.config.js b/examples/poisson-circles/snowpack.config.js index 1a0f70c17b..4d0d5367be 100644 --- a/examples/poisson-circles/snowpack.config.js +++ b/examples/poisson-circles/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/poly-spline/snowpack.config.js b/examples/poly-spline/snowpack.config.js index d826e3c308..8b5e81c9c1 100644 --- a/examples/poly-spline/snowpack.config.js +++ b/examples/poly-spline/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/porter-duff/snowpack.config.js b/examples/porter-duff/snowpack.config.js index fdeef090a5..09e0b0c93a 100644 --- a/examples/porter-duff/snowpack.config.js +++ b/examples/porter-duff/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/ramp-synth/snowpack.config.js b/examples/ramp-synth/snowpack.config.js index 4ee7678b60..9516744679 100644 --- a/examples/ramp-synth/snowpack.config.js +++ b/examples/ramp-synth/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rdom-basics/snowpack.config.js b/examples/rdom-basics/snowpack.config.js index 3f3d549b4e..5d54c96bcd 100644 --- a/examples/rdom-basics/snowpack.config.js +++ b/examples/rdom-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rdom-dnd/snowpack.config.js b/examples/rdom-dnd/snowpack.config.js index 11d1f18213..b4a95f9689 100644 --- a/examples/rdom-dnd/snowpack.config.js +++ b/examples/rdom-dnd/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rdom-lissajous/snowpack.config.js b/examples/rdom-lissajous/snowpack.config.js index a1f171890d..47c4a33151 100644 --- a/examples/rdom-lissajous/snowpack.config.js +++ b/examples/rdom-lissajous/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rdom-search-docs/snowpack.config.js b/examples/rdom-search-docs/snowpack.config.js index 671acd7853..4dc0d0a6c6 100644 --- a/examples/rdom-search-docs/snowpack.config.js +++ b/examples/rdom-search-docs/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rdom-svg-nodes/snowpack.config.js b/examples/rdom-svg-nodes/snowpack.config.js index 88365ddeb1..ae52062bfb 100644 --- a/examples/rdom-svg-nodes/snowpack.config.js +++ b/examples/rdom-svg-nodes/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rotating-voronoi/snowpack.config.js b/examples/rotating-voronoi/snowpack.config.js index f6e3a849f9..1edeac52d2 100644 --- a/examples/rotating-voronoi/snowpack.config.js +++ b/examples/rotating-voronoi/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/router-basics/snowpack.config.js b/examples/router-basics/snowpack.config.js index 48018c8da1..87f3d61c4b 100644 --- a/examples/router-basics/snowpack.config.js +++ b/examples/router-basics/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rstream-dataflow/snowpack.config.js b/examples/rstream-dataflow/snowpack.config.js index aec1867724..c58ce58d48 100644 --- a/examples/rstream-dataflow/snowpack.config.js +++ b/examples/rstream-dataflow/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rstream-event-loop/snowpack.config.js b/examples/rstream-event-loop/snowpack.config.js index 1773c240fc..d7f75cf7bb 100644 --- a/examples/rstream-event-loop/snowpack.config.js +++ b/examples/rstream-event-loop/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rstream-grid/snowpack.config.js b/examples/rstream-grid/snowpack.config.js index 77aa47749c..5fb754365a 100644 --- a/examples/rstream-grid/snowpack.config.js +++ b/examples/rstream-grid/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rstream-hdom/snowpack.config.js b/examples/rstream-hdom/snowpack.config.js index f363e4beea..e2f192094d 100644 --- a/examples/rstream-hdom/snowpack.config.js +++ b/examples/rstream-hdom/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/rstream-spreadsheet/snowpack.config.js b/examples/rstream-spreadsheet/snowpack.config.js index 38288ebd5e..ee6745c8da 100644 --- a/examples/rstream-spreadsheet/snowpack.config.js +++ b/examples/rstream-spreadsheet/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/scenegraph-image/snowpack.config.js b/examples/scenegraph-image/snowpack.config.js index fb6b7c7d04..8dbc8f97ec 100644 --- a/examples/scenegraph-image/snowpack.config.js +++ b/examples/scenegraph-image/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/scenegraph/snowpack.config.js b/examples/scenegraph/snowpack.config.js index de8b2a8287..659a20c7f4 100644 --- a/examples/scenegraph/snowpack.config.js +++ b/examples/scenegraph/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-canvas2d/snowpack.config.js b/examples/shader-ast-canvas2d/snowpack.config.js index e97bbbdc0f..92afe52898 100644 --- a/examples/shader-ast-canvas2d/snowpack.config.js +++ b/examples/shader-ast-canvas2d/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-evo/snowpack.config.js b/examples/shader-ast-evo/snowpack.config.js index 58e9631c77..231e6e48ff 100644 --- a/examples/shader-ast-evo/snowpack.config.js +++ b/examples/shader-ast-evo/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-noise/snowpack.config.js b/examples/shader-ast-noise/snowpack.config.js index d293a5bf66..d449b1cb9a 100644 --- a/examples/shader-ast-noise/snowpack.config.js +++ b/examples/shader-ast-noise/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-raymarch/snowpack.config.js b/examples/shader-ast-raymarch/snowpack.config.js index d7e204f0eb..0768f271c1 100644 --- a/examples/shader-ast-raymarch/snowpack.config.js +++ b/examples/shader-ast-raymarch/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-sdf2d/snowpack.config.js b/examples/shader-ast-sdf2d/snowpack.config.js index 605dca5538..b299dbea0b 100644 --- a/examples/shader-ast-sdf2d/snowpack.config.js +++ b/examples/shader-ast-sdf2d/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-tunnel/snowpack.config.js b/examples/shader-ast-tunnel/snowpack.config.js index bf9af47c85..d600db989f 100644 --- a/examples/shader-ast-tunnel/snowpack.config.js +++ b/examples/shader-ast-tunnel/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-ast-workers/snowpack.config.js b/examples/shader-ast-workers/snowpack.config.js index 9655a4f052..ce725ed683 100644 --- a/examples/shader-ast-workers/snowpack.config.js +++ b/examples/shader-ast-workers/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/shader-graph/snowpack.config.js b/examples/shader-graph/snowpack.config.js index 860f66b74d..c5d767c7cb 100644 --- a/examples/shader-graph/snowpack.config.js +++ b/examples/shader-graph/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/soa-ecs/snowpack.config.js b/examples/soa-ecs/snowpack.config.js index c471df0143..68c1ef6722 100644 --- a/examples/soa-ecs/snowpack.config.js +++ b/examples/soa-ecs/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/stratified-grid/snowpack.config.js b/examples/stratified-grid/snowpack.config.js index 1d0bdb3699..021e4bb142 100644 --- a/examples/stratified-grid/snowpack.config.js +++ b/examples/stratified-grid/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/svg-barchart/snowpack.config.js b/examples/svg-barchart/snowpack.config.js index 79869297f6..21b0793c1a 100644 --- a/examples/svg-barchart/snowpack.config.js +++ b/examples/svg-barchart/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/svg-particles/snowpack.config.js b/examples/svg-particles/snowpack.config.js index 03a956dbd2..fab17276f6 100644 --- a/examples/svg-particles/snowpack.config.js +++ b/examples/svg-particles/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/svg-waveform/snowpack.config.js b/examples/svg-waveform/snowpack.config.js index cdd5bccae2..2d5f2f297d 100644 --- a/examples/svg-waveform/snowpack.config.js +++ b/examples/svg-waveform/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/talk-slides/snowpack.config.js b/examples/talk-slides/snowpack.config.js index 6645088bdd..2874f2d764 100644 --- a/examples/talk-slides/snowpack.config.js +++ b/examples/talk-slides/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/text-canvas-image/snowpack.config.js b/examples/text-canvas-image/snowpack.config.js index fa368ce565..51b4b540d4 100644 --- a/examples/text-canvas-image/snowpack.config.js +++ b/examples/text-canvas-image/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/text-canvas/snowpack.config.js b/examples/text-canvas/snowpack.config.js index a7461f9f7b..dabcce6daf 100644 --- a/examples/text-canvas/snowpack.config.js +++ b/examples/text-canvas/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/todo-list/snowpack.config.js b/examples/todo-list/snowpack.config.js index c46afc9d5b..1eaab1a152 100644 --- a/examples/todo-list/snowpack.config.js +++ b/examples/todo-list/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/transducers-hdom/snowpack.config.js b/examples/transducers-hdom/snowpack.config.js index 6efc1ab7a5..9b7539cb63 100644 --- a/examples/transducers-hdom/snowpack.config.js +++ b/examples/transducers-hdom/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/triple-query/snowpack.config.js b/examples/triple-query/snowpack.config.js index 0c97c0ead2..646eef4ddb 100644 --- a/examples/triple-query/snowpack.config.js +++ b/examples/triple-query/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-cube/snowpack.config.js b/examples/webgl-cube/snowpack.config.js index 2e06c9b724..dcb66554b6 100644 --- a/examples/webgl-cube/snowpack.config.js +++ b/examples/webgl-cube/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-cubemap/snowpack.config.js b/examples/webgl-cubemap/snowpack.config.js index 264279a660..cdc203fb82 100644 --- a/examples/webgl-cubemap/snowpack.config.js +++ b/examples/webgl-cubemap/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-grid/snowpack.config.js b/examples/webgl-grid/snowpack.config.js index 3c90fd13ea..5a56a7bdf1 100644 --- a/examples/webgl-grid/snowpack.config.js +++ b/examples/webgl-grid/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-msdf/snowpack.config.js b/examples/webgl-msdf/snowpack.config.js index c08c69d235..57ee702c09 100644 --- a/examples/webgl-msdf/snowpack.config.js +++ b/examples/webgl-msdf/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-multipass/snowpack.config.js b/examples/webgl-multipass/snowpack.config.js index d68a43b653..0e638cf5d1 100644 --- a/examples/webgl-multipass/snowpack.config.js +++ b/examples/webgl-multipass/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-shadertoy/snowpack.config.js b/examples/webgl-shadertoy/snowpack.config.js index 17ad35408c..7b0e17b674 100644 --- a/examples/webgl-shadertoy/snowpack.config.js +++ b/examples/webgl-shadertoy/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/webgl-ssao/snowpack.config.js b/examples/webgl-ssao/snowpack.config.js index 661bd474cd..a08c932518 100644 --- a/examples/webgl-ssao/snowpack.config.js +++ b/examples/webgl-ssao/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/wolfram/snowpack.config.js b/examples/wolfram/snowpack.config.js index edaa748bac..8d69e7594d 100644 --- a/examples/wolfram/snowpack.config.js +++ b/examples/wolfram/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/examples/xml-converter/snowpack.config.js b/examples/xml-converter/snowpack.config.js index 9f5df18af6..dab5714f7e 100644 --- a/examples/xml-converter/snowpack.config.js +++ b/examples/xml-converter/snowpack.config.js @@ -10,10 +10,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/package.json b/package.json index 49f0a1691e..1f86a71b6b 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,15 @@ ], "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", - "@microsoft/api-documenter": "^7.13.33", + "@microsoft/api-documenter": "^7.13.34", "@microsoft/api-extractor": "^7.18.4", "@snowpack/plugin-typescript": "^1.2.1", "@snowpack/plugin-webpack": "^3.0.0", "@types/mocha": "^9.0.0", - "@types/node": "^16.4.3", + "@types/node": "^16.4.11", "@types/snowpack-env": "^2.3.4", "benchmark": "^2.1.4", - "browserslist": "^4.16.6", + "browserslist": "^4.16.7", "file-loader": "^6.2.0", "gzip-size": "^6.0.0", "html-minifier-terser": "^5.1.1", @@ -22,15 +22,15 @@ "nyc": "^15.1.0", "postcss": "^8.3.6", "rimraf": "^3.0.2", - "rollup": "^2.54.0", + "rollup": "^2.55.1", "rollup-plugin-cleanup": "^3.2.1", "snowpack": "^3.8.3", "terser": "^5.7.1", - "ts-loader": "^9.2.4", + "ts-loader": "^9.2.5", "ts-node": "^10.1.0", - "typedoc": "^0.21.4", + "typedoc": "^0.21.5", "typescript": "4.3.5", - "webpack": "^5.46.0", + "webpack": "^5.48.0", "webpack-cli": "^4.7.2" }, "dependencies": { diff --git a/packages/adjacency/CHANGELOG.md b/packages/adjacency/CHANGELOG.md index bd5bf3d07b..6ecc08a2bd 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.3.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.3.19...@thi.ng/adjacency@0.3.20) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/adjacency + + + + + ## [0.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.3.18...@thi.ng/adjacency@0.3.19) (2021-07-27) **Note:** Version bump only for package @thi.ng/adjacency diff --git a/packages/adjacency/package.json b/packages/adjacency/package.json index be19ae5971..301861ebf6 100644 --- a/packages/adjacency/package.json +++ b/packages/adjacency/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/adjacency", - "version": "0.3.19", + "version": "0.3.20", "description": "Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs", "module": "./index.js", "main": "./lib/index.js", @@ -38,15 +38,15 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/vectors": "^6.0.4" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", - "@thi.ng/bitfield": "^0.4.10", - "@thi.ng/dcons": "^2.3.26", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", + "@thi.ng/bitfield": "^0.4.11", + "@thi.ng/dcons": "^2.3.27", "@thi.ng/errors": "^1.3.2", - "@thi.ng/sparse": "^0.1.81" + "@thi.ng/sparse": "^0.1.82" }, "files": [ "*.js", diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 89502b376e..2fb122a47f 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/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. +## [7.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@7.1.6...@thi.ng/api@7.1.7) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/api + + + + + ## [7.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@7.1.5...@thi.ng/api@7.1.6) (2021-07-01) **Note:** Version bump only for package @thi.ng/api diff --git a/packages/api/README.md b/packages/api/README.md index 9a786c63e5..4f79035922 100644 --- a/packages/api/README.md +++ b/packages/api/README.md @@ -54,7 +54,7 @@ yarn add @thi.ng/api ``` -Package sizes (gzipped, pre-treeshake): ESM: 2.18 KB / CJS: 2.34 KB / UMD: 2.26 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.18 KB / CJS: 2.35 KB / UMD: 2.27 KB ## Dependencies diff --git a/packages/api/package.json b/packages/api/package.json index 40c55036ad..d637f722e9 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/api", - "version": "7.1.6", + "version": "7.1.7", "description": "Common, generic types, interfaces & mixins", "module": "./index.js", "main": "./lib/index.js", diff --git a/packages/api/src/mixins/ienable.ts b/packages/api/src/mixins/ienable.ts index 1d6eaa0469..c884f52dd5 100644 --- a/packages/api/src/mixins/ienable.ts +++ b/packages/api/src/mixins/ienable.ts @@ -23,17 +23,11 @@ export const IEnableMixin = mixin(>{ }, enable(this: _IEnable) { - this._enabled = true; - if (this.notify) { - this.notify({ id: EVENT_ENABLE, target: this }); - } + $enable(this, true, EVENT_ENABLE); }, disable(this: _IEnable) { - this._enabled = false; - if (this.notify) { - this.notify({ id: EVENT_DISABLE, target: this }); - } + $enable(this, false, EVENT_DISABLE); }, toggle(this: _IEnable) { @@ -41,3 +35,10 @@ export const IEnableMixin = mixin(>{ return this._enabled; }, }); + +const $enable = (target: _IEnable, state: boolean, id: string) => { + target._enabled = state; + if (target.notify) { + target.notify({ id, target }); + } +}; diff --git a/packages/args/CHANGELOG.md b/packages/args/CHANGELOG.md index c25d73d5ad..895716773c 100644 --- a/packages/args/CHANGELOG.md +++ b/packages/args/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. +## [0.7.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.7.1...@thi.ng/args@0.7.2) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/args + + + + + +## [0.7.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.7.0...@thi.ng/args@0.7.1) (2021-07-29) + + +### Bug Fixes + +* **args:** omit empty groups from usage() ([a66c19a](https://github.com/thi-ng/umbrella/commit/a66c19aa8d682a7f4b6ae5b3de51a26e806a02dc)) + + + + + # [0.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.6.0...@thi.ng/args@0.7.0) (2021-07-01) diff --git a/packages/args/README.md b/packages/args/README.md index 4414916547..de3457abee 100644 --- a/packages/args/README.md +++ b/packages/args/README.md @@ -62,7 +62,7 @@ yarn add @thi.ng/args ``` -Package sizes (gzipped, pre-treeshake): ESM: 2.32 KB / CJS: 2.45 KB / UMD: 2.38 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.38 KB / CJS: 2.52 KB / UMD: 2.43 KB ## Dependencies diff --git a/packages/args/package.json b/packages/args/package.json index e7d283e0f0..32b8059075 100644 --- a/packages/args/package.json +++ b/packages/args/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/args", - "version": "0.7.0", + "version": "0.7.2", "description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/strings": "^2.1.2" + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/args/src/usage.ts b/packages/args/src/usage.ts index 69e70b06e6..d6a822278e 100644 --- a/packages/args/src/usage.ts +++ b/packages/args/src/usage.ts @@ -1,4 +1,4 @@ -import type { IObjectOf } from "@thi.ng/api"; +import type { IObjectOf, Pair } from "@thi.ng/api"; import { kebab, lengthAnsi, @@ -29,54 +29,17 @@ export const usage = >( : {}; const indent = repeat(" ", opts.paramWidth!); const format = (ids: string[]) => - ids.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! - ) - : ""; - const defaults = - opts.showDefaults && - spec.default != null && - spec.default !== false - ? ansi( - ` (default: ${stringify(true)( - spec.defaultHint != undefined - ? spec.defaultHint - : spec.default - )})`, - theme.default - ) - : ""; - return ( - padRight(opts.paramWidth!)(params, lengthAnsi(params)) + - wrap( - prefix + (spec.desc || "") + defaults, - opts.lineWidth! - opts.paramWidth! - ) - .map((l, i) => (i > 0 ? indent + l : l)) - .join("\n") - ); - }); + ids.map((id) => argUsage(id, specs[id], opts, theme, indent)); const sortedIDs = Object.keys(specs).sort(); - const groups: [string, string[]][] = opts.groups - ? opts.groups.map((gid) => [ - gid, - sortedIDs.filter((id) => specs[id].group === gid), - ]) + const groups: Pair[] = opts.groups + ? opts.groups + .map( + (gid): Pair => [ + gid, + sortedIDs.filter((id) => specs[id].group === gid), + ] + ) + .filter((g) => !!g[1].length) : [["options", sortedIDs]]; return [ ...wrap(opts.prefix, opts.lineWidth!), @@ -91,6 +54,67 @@ export const usage = >( ].join("\n"); }; +const argUsage = ( + id: string, + spec: ArgSpecExt, + opts: Partial, + theme: ColorTheme, + indent: string +) => { + const hint = argHint(spec, theme); + const alias = argAlias(spec, theme, hint); + const name = ansi(`--${kebab(id)}`, theme.param!); + 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 body = + argPrefix(prefixes, theme, isRequired) + + (spec.desc || "") + + argDefault(spec, opts, theme); + return ( + padRight(opts.paramWidth!)(params, lengthAnsi(params)) + + wrap(body, opts.lineWidth! - opts.paramWidth!) + .map((l, i) => (i > 0 ? indent + l : l)) + .join("\n") + ); +}; + +const argHint = (spec: ArgSpecExt, theme: ColorTheme) => + spec.hint ? ansi(" " + spec.hint, theme.hint!) : ""; + +const argAlias = (spec: ArgSpecExt, theme: ColorTheme, hint: string) => + spec.alias ? `${ansi("-" + spec.alias, theme.param!)}${hint}, ` : ""; + +const argPrefix = ( + prefixes: string[], + theme: ColorTheme, + isRequired: boolean +) => + prefixes.length + ? ansi( + `[${prefixes.join(", ")}] `, + isRequired ? theme.required! : theme.multi! + ) + : ""; + +const argDefault = ( + spec: ArgSpecExt, + opts: Partial, + theme: ColorTheme +) => + opts.showDefaults && spec.default != null && spec.default !== false + ? ansi( + ` (default: ${stringify(true)( + spec.defaultHint != undefined + ? spec.defaultHint + : spec.default + )})`, + theme.default + ) + : ""; + const ansi = (x: string, col: number) => col != null ? `\x1b[${col}m${x}\x1b[0m` : x; diff --git a/packages/arrays/CHANGELOG.md b/packages/arrays/CHANGELOG.md index f8d4b74c60..8826533647 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.10.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.10.13...@thi.ng/arrays@0.10.14) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/arrays + + + + + ## [0.10.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.10.12...@thi.ng/arrays@0.10.13) (2021-07-01) **Note:** Version bump only for package @thi.ng/arrays diff --git a/packages/arrays/package.json b/packages/arrays/package.json index 0e7b31e383..258f65c09e 100644 --- a/packages/arrays/package.json +++ b/packages/arrays/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/arrays", - "version": "0.10.13", + "version": "0.10.14", "description": "Array / Arraylike utilities", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/compare": "^1.3.30", + "@thi.ng/compare": "^1.3.31", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/random": "^2.4.2" + "@thi.ng/random": "^2.4.3" }, "files": [ "*.js", diff --git a/packages/associative/CHANGELOG.md b/packages/associative/CHANGELOG.md index a587fa8642..f838176edc 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.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.2.7...@thi.ng/associative@5.2.8) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/associative + + + + + ## [5.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@5.2.6...@thi.ng/associative@5.2.7) (2021-07-27) **Note:** Version bump only for package @thi.ng/associative diff --git a/packages/associative/package.json b/packages/associative/package.json index 8c03365908..16b1c625a5 100644 --- a/packages/associative/package.json +++ b/packages/associative/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/associative", - "version": "5.2.7", + "version": "5.2.8", "description": "Alternative Map and Set implementations with customizable equality semantics & supporting operations", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/compare": "^1.3.30", - "@thi.ng/dcons": "^2.3.26", + "@thi.ng/compare": "^1.3.31", + "@thi.ng/dcons": "^2.3.27", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5", + "@thi.ng/transducers": "^7.8.0", "tslib": "^2.3.0" }, "files": [ diff --git a/packages/atom/CHANGELOG.md b/packages/atom/CHANGELOG.md index fb722f4a52..5ca5ed6086 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.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.37...@thi.ng/atom@4.1.38) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/atom + + + + + ## [4.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.36...@thi.ng/atom@4.1.37) (2021-07-01) **Note:** Version bump only for package @thi.ng/atom diff --git a/packages/atom/package.json b/packages/atom/package.json index fb5775269b..e23f3c494d 100644 --- a/packages/atom/package.json +++ b/packages/atom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/atom", - "version": "4.1.37", + "version": "4.1.38", "description": "Mutable wrappers for nested immutable values with optional undo/redo history and transaction support", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/paths": "^4.2.9", + "@thi.ng/paths": "^4.2.10", "tslib": "^2.3.0" }, "files": [ diff --git a/packages/bench/CHANGELOG.md b/packages/bench/CHANGELOG.md index f0a53965d2..e21faf7f79 100644 --- a/packages/bench/CHANGELOG.md +++ b/packages/bench/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.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.1.2...@thi.ng/bench@2.1.3) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/bench + + + + + ## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.1.1...@thi.ng/bench@2.1.2) (2021-07-01) **Note:** Version bump only for package @thi.ng/bench diff --git a/packages/bench/package.json b/packages/bench/package.json index 4850f44943..b5221884ac 100644 --- a/packages/bench/package.json +++ b/packages/bench/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bench", - "version": "2.1.2", + "version": "2.1.3", "description": "Benchmarking utilities w/ various statistics & formatters (CSV, Markdown etc.)", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/bencode/CHANGELOG.md b/packages/bencode/CHANGELOG.md index 737b3c60c7..bde4658eb1 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.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.66...@thi.ng/bencode@0.3.67) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/bencode + + + + + ## [0.3.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.65...@thi.ng/bencode@0.3.66) (2021-07-27) **Note:** Version bump only for package @thi.ng/bencode diff --git a/packages/bencode/package.json b/packages/bencode/package.json index c320bcc2dd..c22544b143 100644 --- a/packages/bencode/package.json +++ b/packages/bencode/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bencode", - "version": "0.3.66", + "version": "0.3.67", "description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support", "module": "./index.js", "main": "./lib/index.js", @@ -38,13 +38,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", + "@thi.ng/defmulti": "^1.3.14", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/transducers-binary": "^0.6.22" + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/transducers-binary": "^0.6.23" }, "files": [ "*.js", diff --git a/packages/binary/CHANGELOG.md b/packages/binary/CHANGELOG.md index c4c8f355e1..bd65bd5e30 100644 --- a/packages/binary/CHANGELOG.md +++ b/packages/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. +## [2.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.2.6...@thi.ng/binary@2.2.7) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/binary + + + + + ## [2.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.2.5...@thi.ng/binary@2.2.6) (2021-07-01) **Note:** Version bump only for package @thi.ng/binary diff --git a/packages/binary/package.json b/packages/binary/package.json index 9148def381..e524748d4f 100644 --- a/packages/binary/package.json +++ b/packages/binary/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/binary", - "version": "2.2.6", + "version": "2.2.7", "description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/bitfield/CHANGELOG.md b/packages/bitfield/CHANGELOG.md index 1d295f34f2..5ed4b367eb 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.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.4.10...@thi.ng/bitfield@0.4.11) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/bitfield + + + + + ## [0.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.4.9...@thi.ng/bitfield@0.4.10) (2021-07-01) **Note:** Version bump only for package @thi.ng/bitfield diff --git a/packages/bitfield/package.json b/packages/bitfield/package.json index a954482fb9..80871602c1 100644 --- a/packages/bitfield/package.json +++ b/packages/bitfield/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bitfield", - "version": "0.4.10", + "version": "0.4.11", "description": "1D / 2D bit field implementations", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/errors": "^1.3.2", - "@thi.ng/strings": "^2.1.2" + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 9296312595..a549ad59e4 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.87](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.86...@thi.ng/cache@1.0.87) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/cache + + + + + ## [1.0.86](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.85...@thi.ng/cache@1.0.86) (2021-07-27) **Note:** Version bump only for package @thi.ng/cache diff --git a/packages/cache/package.json b/packages/cache/package.json index 4586877bdc..288dd88f55 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/cache", - "version": "1.0.86", + "version": "1.0.87", "description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/dcons": "^2.3.26", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/api": "^7.1.7", + "@thi.ng/dcons": "^2.3.27", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/color/CHANGELOG.md b/packages/color/CHANGELOG.md index 3feb69ca94..733f27c35b 100644 --- a/packages/color/CHANGELOG.md +++ b/packages/color/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.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.18...@thi.ng/color@3.2.0) (2021-08-04) + + +### Features + +* **color:** add/update swatch functions ([391ae4a](https://github.com/thi-ng/umbrella/commit/391ae4aa2e57aa14b9a2acdb1e3365b191612470)) + + + + + ## [3.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.17...@thi.ng/color@3.1.18) (2021-07-27) **Note:** Version bump only for package @thi.ng/color diff --git a/packages/color/README.md b/packages/color/README.md index 6e6e2e8ebe..f74de8ce46 100644 --- a/packages/color/README.md +++ b/packages/color/README.md @@ -587,7 +587,7 @@ yarn add @thi.ng/color ``` -Package sizes (gzipped, pre-treeshake): ESM: 13.69 KB / CJS: 14.35 KB / UMD: 13.43 KB +Package sizes (gzipped, pre-treeshake): ESM: 13.74 KB / CJS: 14.41 KB / UMD: 13.48 KB ## Dependencies diff --git a/packages/color/package.json b/packages/color/package.json index 71fc6abcee..45b2e0d624 100644 --- a/packages/color/package.json +++ b/packages/color/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/color", - "version": "3.1.18", + "version": "3.2.0", "description": "Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets", "module": "./index.js", "main": "./lib/index.js", @@ -39,19 +39,19 @@ "tool:swatches": "ts-node -P tools/tsconfig.json tools/index.ts" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/compare": "^1.3.30", - "@thi.ng/compose": "^1.4.32", - "@thi.ng/defmulti": "^1.3.13", + "@thi.ng/compare": "^1.3.31", + "@thi.ng/compose": "^1.4.33", + "@thi.ng/defmulti": "^1.3.14", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/random": "^2.4.2", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/math": "^4.0.3", + "@thi.ng/random": "^2.4.3", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/color/src/ops/swatches.ts b/packages/color/src/ops/swatches.ts index 522023b7c5..f31df8450e 100644 --- a/packages/color/src/ops/swatches.ts +++ b/packages/color/src/ops/swatches.ts @@ -11,12 +11,48 @@ export const swatchesH = ( cols: (ReadonlyColor | string)[], w = 5, h = 50, + gap = 0, attribs?: IObjectOf -) => swatches(cols, (fill, i) => ["rect", { fill }, [i * w, 0], w, h], attribs); +) => + swatches( + cols, + (fill, i) => ["rect", { fill }, [i * (w + gap), 0], w, h], + attribs + ); + +export const dotsH = ( + cols: (ReadonlyColor | string)[], + r = 25, + gap = 0, + attribs?: IObjectOf +) => + swatches( + cols, + (fill, i) => ["circle", { fill }, [i * (r * 2 + gap), 0], r], + attribs + ); export const swatchesV = ( cols: (ReadonlyColor | string)[], w = 50, h = 5, + gap = 0, attribs: IObjectOf = {} -) => swatches(cols, (fill, i) => ["rect", { fill }, [0, i * h], w, h], attribs); +) => + swatches( + cols, + (fill, i) => ["rect", { fill }, [0, i * (h + gap)], w, h], + attribs + ); + +export const dotsV = ( + cols: (ReadonlyColor | string)[], + r = 25, + gap = 0, + attribs?: IObjectOf +) => + swatches( + cols, + (fill, i) => ["circle", { fill }, [0, i * (r * 2 + gap)], r], + attribs + ); diff --git a/packages/colored-noise/CHANGELOG.md b/packages/colored-noise/CHANGELOG.md index f16bbd989b..44e3094e8e 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.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.36...@thi.ng/colored-noise@0.1.37) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/colored-noise + + + + + ## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/colored-noise@0.1.35...@thi.ng/colored-noise@0.1.36) (2021-07-27) **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 418319ea1f..476565af9c 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.36", + "version": "0.1.37", "description": "Customizable O(1) ES6 generators for colored noise", "module": "./index.js", "main": "./lib/index.js", @@ -38,16 +38,16 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/dsp": "^3.0.22", - "@thi.ng/dsp-io-wav": "^0.1.56", - "@thi.ng/text-canvas": "^0.7.11", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/dsp": "^3.0.23", + "@thi.ng/dsp-io-wav": "^0.1.57", + "@thi.ng/text-canvas": "^0.7.12", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "dependencies": { - "@thi.ng/binary": "^2.2.6", - "@thi.ng/random": "^2.4.2" + "@thi.ng/binary": "^2.2.7", + "@thi.ng/random": "^2.4.3" }, "files": [ "*.js", diff --git a/packages/compare/CHANGELOG.md b/packages/compare/CHANGELOG.md index 1cc697fcf4..c13695014a 100644 --- a/packages/compare/CHANGELOG.md +++ b/packages/compare/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.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.30...@thi.ng/compare@1.3.31) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/compare + + + + + ## [1.3.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.29...@thi.ng/compare@1.3.30) (2021-07-01) **Note:** Version bump only for package @thi.ng/compare diff --git a/packages/compare/package.json b/packages/compare/package.json index 6830154e51..0d1536a48c 100644 --- a/packages/compare/package.json +++ b/packages/compare/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/compare", - "version": "1.3.30", + "version": "1.3.31", "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/compose/CHANGELOG.md b/packages/compose/CHANGELOG.md index 879b21221f..8a2cb9c161 100644 --- a/packages/compose/CHANGELOG.md +++ b/packages/compose/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.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.32...@thi.ng/compose@1.4.33) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/compose + + + + + ## [1.4.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.31...@thi.ng/compose@1.4.32) (2021-07-01) **Note:** Version bump only for package @thi.ng/compose diff --git a/packages/compose/package.json b/packages/compose/package.json index 7cbccb2bc7..4cc2af74e9 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/compose", - "version": "1.4.32", + "version": "1.4.33", "description": "Optimized functional composition helpers", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/errors": "^1.3.2" }, "files": [ diff --git a/packages/csp/CHANGELOG.md b/packages/csp/CHANGELOG.md index e45a22690c..45471d2d83 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.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.66...@thi.ng/csp@1.1.67) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/csp + + + + + ## [1.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.65...@thi.ng/csp@1.1.66) (2021-07-27) **Note:** Version bump only for package @thi.ng/csp diff --git a/packages/csp/package.json b/packages/csp/package.json index b8a0e0ff72..c6e20f6773 100644 --- a/packages/csp/package.json +++ b/packages/csp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csp", - "version": "1.1.66", + "version": "1.1.67", "description": "ES6 promise based CSP primitives & operations", "module": "./index.js", "main": "./lib/index.js", @@ -42,12 +42,12 @@ "testnode": "tsc -p test && node build/test/node.js" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", - "@thi.ng/dcons": "^2.3.26", + "@thi.ng/dcons": "^2.3.27", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/csv/CHANGELOG.md b/packages/csv/CHANGELOG.md index dadb859ed2..9443b40228 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.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@0.1.28...@thi.ng/csv@0.1.29) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/csv + + + + + ## [0.1.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/csv@0.1.27...@thi.ng/csv@0.1.28) (2021-07-27) **Note:** Version bump only for package @thi.ng/csv diff --git a/packages/csv/package.json b/packages/csv/package.json index afcb84da85..06a793f71a 100644 --- a/packages/csv/package.json +++ b/packages/csv/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csv", - "version": "0.1.28", + "version": "0.1.29", "description": "Customizable, transducer-based CSV parser/object mapper and transformer", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/date/CHANGELOG.md b/packages/date/CHANGELOG.md index 5a3b47a1a5..81a1b80350 100644 --- a/packages/date/CHANGELOG.md +++ b/packages/date/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.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@0.8.0...@thi.ng/date@0.9.0) (2021-08-04) + + +### Features + +* **date:** add/update i18n functions, rel. format ([144a02d](https://github.com/thi-ng/umbrella/commit/144a02d960e0de3ec10bddf97cd069e39ad1f41d)) + + + + + # [0.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/date@0.7.0...@thi.ng/date@0.8.0) (2021-07-27) diff --git a/packages/date/README.md b/packages/date/README.md index 1f8424e887..dd85486e96 100644 --- a/packages/date/README.md +++ b/packages/date/README.md @@ -28,7 +28,7 @@ This project is part of the ## About -Date/timestamp iterators, composable formatters, relative date parsing, rounding. +Datetime types, relative dates, math, iterators, composable formatters, locales. ### Status @@ -50,12 +50,13 @@ yarn add @thi.ng/date ``` -Package sizes (gzipped, pre-treeshake): ESM: 5.40 KB / CJS: 5.67 KB / UMD: 5.47 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.52 KB / CJS: 5.81 KB / UMD: 5.61 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/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings) ## API diff --git a/packages/date/package.json b/packages/date/package.json index 33153eb3b5..270c60c29f 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -1,7 +1,7 @@ { "name": "@thi.ng/date", - "version": "0.8.0", - "description": "Date/timestamp iterators, composable formatters, relative date parsing, rounding", + "version": "0.9.0", + "description": "Datetime types, relative dates, math, iterators, composable formatters, locales", "module": "./index.js", "main": "./lib/index.js", "umd:main": "./lib/index.umd.js", @@ -38,8 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/checks": "^2.9.8" + "@thi.ng/api": "^7.1.7", + "@thi.ng/checks": "^2.9.8", + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", @@ -51,13 +52,13 @@ "datastructure", "date", "format", + "i18n", "interval", "iterator", "math", "offset", "parser", "precision", - "presets", "relative", "smpte", "string", diff --git a/packages/date/src/api.ts b/packages/date/src/api.ts index 96c64c0905..870648e7f5 100644 --- a/packages/date/src/api.ts +++ b/packages/date/src/api.ts @@ -104,7 +104,8 @@ export interface Locale { */ units: Record; /** - * Translated version of "less than". + * Translated version of "less than" for use with {@link unitsLessThan}. + * (`%s` will be replaced with the provided numeric value). */ less: string; /** @@ -130,6 +131,14 @@ export interface LocaleUnit { * Plural */ p: string; + /** + * Singular dativ. If omitted, the same as singular. + */ + sd?: string; + /** + * Plural dativ. If omitted, the same as plural. + */ + pd?: string; } /** diff --git a/packages/date/src/datetime.ts b/packages/date/src/datetime.ts index e716fed63a..a18985dc72 100644 --- a/packages/date/src/datetime.ts +++ b/packages/date/src/datetime.ts @@ -1,5 +1,6 @@ import type { ICompare, ICopy, IEqualsDelta, IEquiv } from "@thi.ng/api"; import { isNumber, isString } from "@thi.ng/checks"; +import { Z2, Z3, Z4 } from "@thi.ng/strings"; import { DAY, HOUR, MaybeDate, MINUTE, Period, Precision, SECOND } from "./api"; import { defFormat } from "./format"; import { LOCALE } from "./i18n"; @@ -11,9 +12,6 @@ import { isLeapYear, precisionToID, weekInYear, - Z2, - Z3, - Z4, } from "./utils"; export const dateTime = (epoch?: MaybeDate, prec?: Precision) => diff --git a/packages/date/src/format.ts b/packages/date/src/format.ts index cf7f164c49..e29027820f 100644 --- a/packages/date/src/format.ts +++ b/packages/date/src/format.ts @@ -1,7 +1,8 @@ import { isFunction, isString } from "@thi.ng/checks"; +import { Z2, Z3, Z4 } from "@thi.ng/strings"; import { FormatFn, MaybeDate, MINUTE } from "./api"; import { LOCALE } from "./i18n"; -import { ensureDate, weekInYear, Z2, Z3, Z4 } from "./utils"; +import { ensureDate, weekInYear } from "./utils"; export const FORMATTERS: Record = { /** diff --git a/packages/date/src/i18n.ts b/packages/date/src/i18n.ts index 9012a92429..f05c6d8f4b 100644 --- a/packages/date/src/i18n.ts +++ b/packages/date/src/i18n.ts @@ -1,5 +1,6 @@ import type { Fn0 } from "@thi.ng/api"; -import type { Locale, LocaleSpec } from "./api"; +import { isString } from "@thi.ng/checks"; +import type { Locale, LocaleSpec, LocaleUnit, Precision } from "./api"; import { EN_SHORT } from "./i18n/en"; /** @@ -38,3 +39,103 @@ export const withLocale = (locale: LocaleSpec, fn: Fn0) => { }; export let LOCALE = setLocale(EN_SHORT); + +/** + * Returns a copy of current {@link LOCALE}'s weekday names array. + */ +export const weekdayNames = () => LOCALE.days.slice(); + +/** + * Returns a copy of current {@link LOCALE}'s month names array. + */ +export const monthNames = () => LOCALE.months.slice(); + +/** + * Returns a suitable version of requested `unit` from current {@link LOCALE}, + * based on quantity `x` and optional dativ grammar form. If `unitsOnly` is true + * (default false) only the unit (w/o quantity) will be returned. + * + * @remarks + * Also see {@link unitsLessThan}, {@link formatRelative}, + * {@link formatRelativeParts}. + * + * @example + * ```ts + * withLocale(FR_LONG, () => units(1, "y")); + * // "1 année" + * + * withLocale(FR_LONG, () => units(1, "y", true)); + * // "1 an" + * + * withLocale(FR_LONG, () => units(2, "y")); + * // "2 ans" + * + * withLocale(FR_LONG, () => units(2, "y", true)); + * // "2 ans" + * + * withLocale(DE_LONG, () => units(2, "y")); + * // "2 Jahre" + * + * withLocale(DE_LONG, () => units(2, "y", true)); + * // "2 Jahren" + * ``` + * + * @param x + * @param unit + * @param isDativ + * @param unitsOnly + */ +export const units = ( + x: number, + unit: Precision | LocaleUnit, + isDativ = false, + unitsOnly = false +) => { + unit = isString(unit) ? LOCALE.units[unit] : unit; + const res = + x > 1 || x === 0 + ? isDativ + ? unit.pd || unit.p + : unit.p + : isDativ + ? unit.sd || unit.s + : unit.s; + return unitsOnly ? res : `${x} ${res}`; +}; + +/** + * Similar to {@link units}, but for cases to express/format the phrase `less + * than {x} {unit(s)}`. + * + * @example + * ```ts + * withLocale(DE_LONG, () => unitsLessThan(1, "y")); + * // "weniger als 1 Jahr" + * ``` + * + * @param x + * @param unit + * @param isDativ + */ +export const unitsLessThan = ( + x: number, + unit: Precision | LocaleUnit, + isDativ = false +) => + `${LOCALE.less.replace("%s", String(x))} ${units( + Math.max(x, 1), + unit, + isDativ, + true + )}`; + +/** + * Wraps given (presumably localized) string in current {@link LOCALE}'s `past` + * or `future` phrases, depending on given `sign`. + * + * @param sign + * @param res + * @returns + */ +export const tense = (sign: number, res: string) => + (sign < 0 ? LOCALE.past : LOCALE.future).replace("%s", res); diff --git a/packages/date/src/i18n/de.ts b/packages/date/src/i18n/de.ts index 851491fbd6..cccefe6fed 100644 --- a/packages/date/src/i18n/de.ts +++ b/packages/date/src/i18n/de.ts @@ -33,7 +33,7 @@ export const DE_SHORT: LocaleSpec = { s: { s: "Sek.", p: "Sek." }, t: { s: "ms", p: "ms" }, }, - less: "<", + less: "< %s", past: "vor %s", now: "jetzt", future: "in %s", @@ -71,15 +71,15 @@ export const DE_LONG: LocaleSpec = { sepDM: ". ", sepMY: " ", units: { - y: { s: "Jahr", p: "Jahren" }, - M: { s: "Monat", p: "Monaten" }, - d: { s: "Tag", p: "Tagen" }, + y: { s: "Jahr", p: "Jahre", pd: "Jahren" }, + M: { s: "Monat", p: "Monate", pd: "Monaten" }, + d: { s: "Tag", p: "Tage", pd: "Tagen" }, h: { s: "Stunde", p: "Stunden" }, m: { s: "Minute", p: "Minuten" }, s: { s: "Sekunde", p: "Sekunden" }, t: { s: "Millisekunde", p: "Millisekunden" }, }, - less: "weniger als", + less: "weniger als %s", past: "vor %s", now: "jetzt", future: "in %s", diff --git a/packages/date/src/i18n/en.ts b/packages/date/src/i18n/en.ts index 68d8de77b0..03029d6475 100644 --- a/packages/date/src/i18n/en.ts +++ b/packages/date/src/i18n/en.ts @@ -32,7 +32,7 @@ export const EN_SHORT: LocaleSpec = { s: { s: "s", p: "s" }, t: { s: "ms", p: "ms" }, }, - less: "<", + less: "< %s", past: "%s ago", now: "just now", future: "in %s", @@ -79,7 +79,7 @@ export const EN_LONG: LocaleSpec = { s: { s: "second", p: "seconds" }, t: { s: "millisecond", p: "milliseconds" }, }, - less: "less than", + less: "less than %s", past: "%s ago", now: "just now", future: "in %s", diff --git a/packages/date/src/i18n/es.ts b/packages/date/src/i18n/es.ts index 6331049c5f..35b0159039 100644 --- a/packages/date/src/i18n/es.ts +++ b/packages/date/src/i18n/es.ts @@ -39,7 +39,7 @@ export const ES_LONG: LocaleSpec = { s: { s: "segundo", p: "segundos" }, t: { s: "millisegundo", p: "millisegundos" }, }, - less: "menos de", + less: "menos de %s", past: "hace %s", now: "ahora", future: "en %s", diff --git a/packages/date/src/i18n/fr.ts b/packages/date/src/i18n/fr.ts index 5be248142c..48ed08a8aa 100644 --- a/packages/date/src/i18n/fr.ts +++ b/packages/date/src/i18n/fr.ts @@ -32,16 +32,17 @@ export const FR_LONG: LocaleSpec = { sepMY: " ", sepHM: "h ", units: { - y: { s: "année", p: "ans" }, + y: { s: "année", sd: "an", p: "ans" }, M: { s: "mois", p: "mois" }, - d: { s: "jour", p: "jours" }, + d: { s: "jour", sd: "journée", p: "jours" }, h: { s: "heure", p: "heures" }, m: { s: "minute", p: "minutes" }, s: { s: "seconde", p: "secondes" }, t: { s: "milliseconde", p: "millisecondes" }, }, - less: "moins de", + less: "moins de %s", past: "il y a %s", now: "à présent", - future: "en %s", + // https://www.thoughtco.com/learn-essential-french-prepositions-4078684 + future: "dans %s", }; diff --git a/packages/date/src/i18n/it.ts b/packages/date/src/i18n/it.ts index 251574af57..b40f730c87 100644 --- a/packages/date/src/i18n/it.ts +++ b/packages/date/src/i18n/it.ts @@ -40,8 +40,9 @@ export const IT_LONG: LocaleSpec = { s: { s: "secondo", p: "secondi" }, t: { s: "millisecondo", p: "millisecondi" }, }, - less: "meno di", + less: "meno di %s", past: "%s fa", - now: "adesso", - future: "tra %s", + // https://dailyitalianwords.com/ora-vs-adesso/ + now: "ora", + future: "in %s", }; diff --git a/packages/date/src/relative.ts b/packages/date/src/relative.ts index 1754aaaf91..9e8d6d9212 100644 --- a/packages/date/src/relative.ts +++ b/packages/date/src/relative.ts @@ -1,7 +1,6 @@ import { DAY, HOUR, - LocaleUnit, MaybeDate, MINUTE, MONTH, @@ -11,7 +10,7 @@ import { YEAR, } from "./api"; import { DateTime, dateTime, ensureDateTime } from "./datetime"; -import { LOCALE } from "./i18n"; +import { LOCALE, tense, units, unitsLessThan } from "./i18n"; import { EN_LONG, EN_SHORT } from "./i18n/en"; import { ensureEpoch, idToPrecision, precisionToID } from "./utils"; @@ -211,12 +210,11 @@ export const decomposeDifference = ( /** * Takes a `date` and optional reference `base` date and (also optional - * `prec`ision). Computes the difference between given dates and returns it as - * formatted string. + * `prec`ision, i.e. number of fractional digits, default: 0). Computes the difference + * between given dates and returns it as formatted string. * * @remarks - * As with {@link parseRelative}, (currently) this function doesn't make use of - * the active {@link LOCALE} and only outputs English phrases. + * Returns {@link LOCALE.now} if absolute difference is < `eps` milliseconds (default: 100). * * @see {@link formatRelativeParts} for alternative output. * @@ -239,43 +237,45 @@ export const decomposeDifference = ( * @param date * @param base * @param prec + * @param eps */ export const formatRelative = ( date: MaybeDate, base: MaybeDate = new Date(), - prec = 1 + prec = 0, + eps = 100 ) => { const delta = difference(date, base); - if (delta === 0) return LOCALE.now; + if (Math.abs(delta) < eps) return LOCALE.now; let abs = Math.abs(delta); - let units: Precision; + let unit: Precision; if (abs < SECOND) { - units = "t"; + unit = "t"; } else if (abs < MINUTE) { abs /= SECOND; - units = "s"; + unit = "s"; } else if (abs < HOUR) { abs /= MINUTE; - units = "m"; + unit = "m"; } else if (abs < DAY) { abs /= HOUR; - units = "h"; + unit = "h"; } else if (abs < MONTH) { abs /= DAY; - units = "d"; + unit = "d"; } else if (abs < YEAR) { abs /= MONTH; - units = "M"; + unit = "M"; } else { abs /= YEAR; - units = "y"; + unit = "y"; } - return tense( - delta, - unitString(LOCALE.units[units], Math.round(abs / prec) * prec) - ); + const exp = 10 ** -prec; + abs = Math.round(abs / exp) * exp; + + return tense(delta, `${abs.toFixed(prec)} ${units(abs, unit, true, true)}`); }; /** @@ -285,8 +285,9 @@ export const formatRelative = ( * etc.). Only non-zero parts will be mentioned. * * @remarks - * Uses {@link decomposeDifference} for given dates to extract parts for - * formatting. + * Returns {@link LOCALE.now} if absolute difference is < `eps` milliseconds + * (default: 100). In all other cases uses {@link decomposeDifference} for + * given dates to extract parts for formatting. * * @example * ```ts @@ -305,14 +306,18 @@ export const formatRelative = ( * @param date * @param base * @param prec + * @param eps */ export const formatRelativeParts = ( date: MaybeDate, base: MaybeDate = Date.now(), - prec: Precision = "s" + prec: Precision = "s", + eps = 1000 ) => { + date = ensureEpoch(date); + base = ensureEpoch(base); + if (Math.abs(date - base) < eps) return LOCALE.now; const [sign, ...parts] = decomposeDifference(date, base); - if (!sign) return LOCALE.now; const precID = precisionToID(prec); let maxID = precID; while (!parts[maxID] && maxID > 0) maxID--; @@ -329,18 +334,12 @@ export const formatRelativeParts = ( .map((x, i) => { let unit = LOCALE.units[idToPrecision(i)]; return x > 0 - ? unitString(unit, x) + ? units(x, unit, true) : i === maxID && maxID < 6 - ? `${LOCALE.less} 1 ${unit.s}` + ? unitsLessThan(1, unit, true) : ""; }) .filter((x) => !!x) .join(", "); return tense(sign, res); }; - -const unitString = (unit: LocaleUnit, x: number) => - `${x} ${unit[x > 1 ? "p" : "s"]}`; - -const tense = (sign: number, res: string) => - (sign < 0 ? LOCALE.past : LOCALE.future).replace("%s", res); diff --git a/packages/date/src/timecode.ts b/packages/date/src/timecode.ts index ca65cb7cdd..0b16c75a1f 100644 --- a/packages/date/src/timecode.ts +++ b/packages/date/src/timecode.ts @@ -1,5 +1,5 @@ +import { Z2 } from "@thi.ng/strings"; import { DAY, HOUR, MINUTE, MONTH, SECOND, YEAR } from "./api"; -import { Z2 } from "./utils"; /** * Returns a time formatter for given FPS (frames / second, in [1..1000] range), diff --git a/packages/date/src/utils.ts b/packages/date/src/utils.ts index af45afee83..139e465725 100644 --- a/packages/date/src/utils.ts +++ b/packages/date/src/utils.ts @@ -1,4 +1,4 @@ -import type { FnN2, FnN3, NumOrString } from "@thi.ng/api"; +import type { FnN2, FnN3 } from "@thi.ng/api"; import { implementsFunction, isNumber, isString } from "@thi.ng/checks"; import { DAYS_IN_MONTH, @@ -7,24 +7,6 @@ import { Precision, } from "./api"; -/** @internal */ -export const Z2 = (x: NumOrString) => { - let xx = String(x); - return xx.length > 1 ? xx : "0" + xx; -}; - -/** @internal */ -export const Z3 = (x: NumOrString) => { - let xx = String(x); - return xx.length > 2 ? xx : "000".substr(0, 3 - xx.length) + xx; -}; - -/** @internal */ -export const Z4 = (x: NumOrString) => { - let xx = String(x); - return xx.length > 3 ? xx : "0000".substr(0, 4 - xx.length) + xx; -}; - /** * Coerces `x` to a native JS `Date` instance. * diff --git a/packages/date/test/i18n.ts b/packages/date/test/i18n.ts new file mode 100644 index 0000000000..2bd0faabe8 --- /dev/null +++ b/packages/date/test/i18n.ts @@ -0,0 +1,128 @@ +import * as assert from "assert"; +import { + DE_LONG, + EN_LONG, + ES_LONG, + FR_LONG, + IT_LONG, + LocaleSpec, + tense, + units, + unitsLessThan, + withLocale, +} from "../src"; + +interface I18NTestSpec { + year1: string; + in_year1: string; + year2: string; + in_year2: string; + in_less_year1: string; + ago_less_year1: string; + in_less_year2: string; + ago_less_year2: string; +} + +const check = (locale: LocaleSpec, spec: I18NTestSpec) => { + withLocale(locale, () => { + assert.strictEqual(units(1, "y"), spec.year1, "year1"); + assert.strictEqual(units(2, "y"), spec.year2, "year2"); + assert.strictEqual( + tense(1, units(1, "y", true)), + spec.in_year1, + "in_year1" + ); + assert.strictEqual( + tense(1, units(2, "y", true)), + spec.in_year2, + "in_year2" + ); + assert.strictEqual( + tense(1, unitsLessThan(1, "y", true)), + spec.in_less_year1, + "in_less_year1" + ); + assert.strictEqual( + tense(1, unitsLessThan(2, "y", true)), + spec.in_less_year2, + "in_less_year2" + ); + assert.strictEqual( + tense(-1, unitsLessThan(1, "y", true)), + spec.ago_less_year1, + "ago_less_year1" + ); + assert.strictEqual( + tense(-1, unitsLessThan(2, "y", true)), + spec.ago_less_year2, + "ago_less_year2" + ); + }); +}; + +describe("i18n", () => { + it("DE_LONG", () => { + check(DE_LONG, { + year1: "1 Jahr", + in_year1: "in 1 Jahr", + year2: "2 Jahre", + in_year2: "in 2 Jahren", + in_less_year1: "in weniger als 1 Jahr", + ago_less_year1: "vor weniger als 1 Jahr", + in_less_year2: "in weniger als 2 Jahren", + ago_less_year2: "vor weniger als 2 Jahren", + }); + }); + + it("EN_LONG", () => { + check(EN_LONG, { + year1: "1 year", + in_year1: "in 1 year", + year2: "2 years", + in_year2: "in 2 years", + in_less_year1: "in less than 1 year", + ago_less_year1: "less than 1 year ago", + in_less_year2: "in less than 2 years", + ago_less_year2: "less than 2 years ago", + }); + }); + + it("ES_LONG", () => { + check(ES_LONG, { + year1: "1 año", + in_year1: "en 1 año", + year2: "2 años", + in_year2: "en 2 años", + in_less_year1: "en menos de 1 año", + ago_less_year1: "hace menos de 1 año", + in_less_year2: "en menos de 2 años", + ago_less_year2: "hace menos de 2 años", + }); + }); + + it("FR_LONG", () => { + check(FR_LONG, { + year1: "1 année", + in_year1: "dans 1 an", + year2: "2 ans", + in_year2: "dans 2 ans", + in_less_year1: "dans moins de 1 an", + ago_less_year1: "il y a moins de 1 an", + in_less_year2: "dans moins de 2 ans", + ago_less_year2: "il y a moins de 2 ans", + }); + }); + + it("IT_LONG", () => { + check(IT_LONG, { + year1: "1 anno", + in_year1: "in 1 anno", + year2: "2 anni", + in_year2: "in 2 anni", + in_less_year1: "in meno di 1 anno", + ago_less_year1: "meno di 1 anno fa", + in_less_year2: "in meno di 2 anni", + ago_less_year2: "meno di 2 anni fa", + }); + }); +}); diff --git a/packages/dcons/CHANGELOG.md b/packages/dcons/CHANGELOG.md index 1ac34d67cb..8a21f30bd2 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.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.26...@thi.ng/dcons@2.3.27) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dcons + + + + + ## [2.3.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.3.25...@thi.ng/dcons@2.3.26) (2021-07-27) **Note:** Version bump only for package @thi.ng/dcons diff --git a/packages/dcons/package.json b/packages/dcons/package.json index 882a6aceec..b75cd70101 100644 --- a/packages/dcons/package.json +++ b/packages/dcons/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dcons", - "version": "2.3.26", + "version": "2.3.27", "description": "Double-linked lists with comprehensive set of operations (incl. optional self-organizing behaviors)", "module": "./index.js", "main": "./lib/index.js", @@ -38,13 +38,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/compare": "^1.3.30", + "@thi.ng/compare": "^1.3.31", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/defmulti/CHANGELOG.md b/packages/defmulti/CHANGELOG.md index 3c20a8c32b..d92fc3140d 100644 --- a/packages/defmulti/CHANGELOG.md +++ b/packages/defmulti/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.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.3.13...@thi.ng/defmulti@1.3.14) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/defmulti + + + + + ## [1.3.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.3.12...@thi.ng/defmulti@1.3.13) (2021-07-01) **Note:** Version bump only for package @thi.ng/defmulti diff --git a/packages/defmulti/package.json b/packages/defmulti/package.json index 3e38863f5a..6fb551bf54 100644 --- a/packages/defmulti/package.json +++ b/packages/defmulti/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/defmulti", - "version": "1.3.13", + "version": "1.3.14", "description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/errors": "^1.3.2" }, "files": [ diff --git a/packages/dgraph-dot/CHANGELOG.md b/packages/dgraph-dot/CHANGELOG.md index 45c2014a8a..c02615c6ad 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.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.55...@thi.ng/dgraph-dot@0.1.56) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dgraph-dot + + + + + ## [0.1.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.54...@thi.ng/dgraph-dot@0.1.55) (2021-07-27) **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 99fb65313c..4c65c19a06 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.55", + "version": "0.1.56", "description": "Customizable Graphviz DOT serialization for @thi.ng/dgraph", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/dgraph": "^1.3.26", - "@thi.ng/dot": "^1.2.33" + "@thi.ng/api": "^7.1.7", + "@thi.ng/dgraph": "^1.3.27", + "@thi.ng/dot": "^1.2.34" }, "files": [ "*.js", diff --git a/packages/dgraph/CHANGELOG.md b/packages/dgraph/CHANGELOG.md index a84c3c90d9..7179f0e74f 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.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.26...@thi.ng/dgraph@1.3.27) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dgraph + + + + + ## [1.3.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.3.25...@thi.ng/dgraph@1.3.26) (2021-07-27) **Note:** Version bump only for package @thi.ng/dgraph diff --git a/packages/dgraph/package.json b/packages/dgraph/package.json index f050867d42..187ec99ff5 100644 --- a/packages/dgraph/package.json +++ b/packages/dgraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dgraph", - "version": "1.3.26", + "version": "1.3.27", "description": "Type-agnostic directed acyclic graph (DAG) & graph operations", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/diff/CHANGELOG.md b/packages/diff/CHANGELOG.md index b991e355e7..af338f6c14 100644 --- a/packages/diff/CHANGELOG.md +++ b/packages/diff/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.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@4.0.9...@thi.ng/diff@4.0.10) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/diff + + + + + ## [4.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@4.0.8...@thi.ng/diff@4.0.9) (2021-07-01) **Note:** Version bump only for package @thi.ng/diff diff --git a/packages/diff/package.json b/packages/diff/package.json index d371c00ee9..9ef65ab561 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/diff", - "version": "4.0.9", + "version": "4.0.10", "description": "Customizable diff implementations for arrays (sequential) & objects (associative), with or without linear edit logs", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/equiv": "^1.0.43" }, "files": [ diff --git a/packages/distance/CHANGELOG.md b/packages/distance/CHANGELOG.md index 746c0789d6..f1f2f5fd91 100644 --- a/packages/distance/CHANGELOG.md +++ b/packages/distance/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.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/distance@0.3.4...@thi.ng/distance@0.3.5) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/distance + + + + + ## [0.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/distance@0.3.3...@thi.ng/distance@0.3.4) (2021-07-27) **Note:** Version bump only for package @thi.ng/distance diff --git a/packages/distance/package.json b/packages/distance/package.json index 20a980a8b2..93523cb601 100644 --- a/packages/distance/package.json +++ b/packages/distance/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/distance", - "version": "0.3.4", + "version": "0.3.5", "description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/heaps": "^1.2.40", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/heaps": "^1.2.41", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/dl-asset/CHANGELOG.md b/packages/dl-asset/CHANGELOG.md index bd0eac369f..cf28bf1a06 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.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.26...@thi.ng/dl-asset@0.4.27) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dl-asset + + + + + ## [0.4.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.4.25...@thi.ng/dl-asset@0.4.26) (2021-07-01) **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 ca8d50c3bd..c2bf226c73 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.26", + "version": "0.4.27", "description": "Local asset download for web apps, with automatic MIME type detection", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/mime": "^0.5.3" + "@thi.ng/mime": "^0.5.4" }, "files": [ "*.js", diff --git a/packages/dlogic/CHANGELOG.md b/packages/dlogic/CHANGELOG.md index 9359dfebb3..0a95a2ca2e 100644 --- a/packages/dlogic/CHANGELOG.md +++ b/packages/dlogic/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.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.45...@thi.ng/dlogic@1.0.46) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dlogic + + + + + ## [1.0.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.44...@thi.ng/dlogic@1.0.45) (2021-07-01) **Note:** Version bump only for package @thi.ng/dlogic diff --git a/packages/dlogic/package.json b/packages/dlogic/package.json index ff3920b8d0..d254261ee6 100644 --- a/packages/dlogic/package.json +++ b/packages/dlogic/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dlogic", - "version": "1.0.45", + "version": "1.0.46", "description": "Assorted digital logic ops / constructs", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/dot/CHANGELOG.md b/packages/dot/CHANGELOG.md index 8b6cc1e382..bc7bf53c2e 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.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.33...@thi.ng/dot@1.2.34) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dot + + + + + ## [1.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.32...@thi.ng/dot@1.2.33) (2021-07-01) **Note:** Version bump only for package @thi.ng/dot diff --git a/packages/dot/package.json b/packages/dot/package.json index f6f6bd5f99..3178bd8d44 100644 --- a/packages/dot/package.json +++ b/packages/dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dot", - "version": "1.2.33", + "version": "1.2.34", "description": "Graphviz document abstraction & serialization to DOT format", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8" }, "files": [ diff --git a/packages/dsp-io-wav/CHANGELOG.md b/packages/dsp-io-wav/CHANGELOG.md index d90667ac8f..a7f1d46b1e 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.57](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.56...@thi.ng/dsp-io-wav@0.1.57) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dsp-io-wav + + + + + ## [0.1.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.55...@thi.ng/dsp-io-wav@0.1.56) (2021-07-27) **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 6e3893c112..8a0217925f 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.56", + "version": "0.1.57", "description": "WAV file format generation", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/transducers-binary": "^0.6.22" + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/transducers-binary": "^0.6.23" }, "files": [ "*.js", diff --git a/packages/dsp/CHANGELOG.md b/packages/dsp/CHANGELOG.md index cfe39bbd3c..a88a098a19 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.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@3.0.22...@thi.ng/dsp@3.0.23) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dsp + + + + + ## [3.0.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@3.0.21...@thi.ng/dsp@3.0.22) (2021-07-27) **Note:** Version bump only for package @thi.ng/dsp diff --git a/packages/dsp/package.json b/packages/dsp/package.json index 077aad4c33..eef7c7fec1 100644 --- a/packages/dsp/package.json +++ b/packages/dsp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dsp", - "version": "3.0.22", + "version": "3.0.23", "description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/math": "^4.0.3", + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/dual-algebra/CHANGELOG.md b/packages/dual-algebra/CHANGELOG.md index 875d246173..3ec88c1a20 100644 --- a/packages/dual-algebra/CHANGELOG.md +++ b/packages/dual-algebra/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.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.14...@thi.ng/dual-algebra@0.1.15) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dual-algebra + + + + + ## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/dual-algebra@0.1.13...@thi.ng/dual-algebra@0.1.14) (2021-07-01) **Note:** Version bump only for package @thi.ng/dual-algebra diff --git a/packages/dual-algebra/package.json b/packages/dual-algebra/package.json index a9b4591744..c61bf5f327 100644 --- a/packages/dual-algebra/package.json +++ b/packages/dual-algebra/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dual-algebra", - "version": "0.1.14", + "version": "0.1.15", "description": "Multivariate dual number algebra, automatic differentiation", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/dynvar/CHANGELOG.md b/packages/dynvar/CHANGELOG.md index 95463d15e2..353bf912c0 100644 --- a/packages/dynvar/CHANGELOG.md +++ b/packages/dynvar/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.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.37...@thi.ng/dynvar@0.1.38) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/dynvar + + + + + ## [0.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.36...@thi.ng/dynvar@0.1.37) (2021-07-01) **Note:** Version bump only for package @thi.ng/dynvar diff --git a/packages/dynvar/package.json b/packages/dynvar/package.json index aae5608ba9..599865b34e 100644 --- a/packages/dynvar/package.json +++ b/packages/dynvar/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dynvar", - "version": "0.1.37", + "version": "0.1.38", "description": "Dynamically scoped variable bindings", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/ecs/CHANGELOG.md b/packages/ecs/CHANGELOG.md index 43848602f9..323ad89e99 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.5.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.5.17...@thi.ng/ecs@0.5.18) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/ecs + + + + + ## [0.5.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.5.16...@thi.ng/ecs@0.5.17) (2021-07-27) **Note:** Version bump only for package @thi.ng/ecs diff --git a/packages/ecs/package.json b/packages/ecs/package.json index b332efab86..8f19e07cf7 100644 --- a/packages/ecs/package.json +++ b/packages/ecs/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ecs", - "version": "0.5.17", + "version": "0.5.18", "description": "Entity Component System based around typed arrays & sparse sets", "module": "./index.js", "main": "./lib/index.js", @@ -41,14 +41,14 @@ "@thi.ng/equiv": "^1.0.43" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/dcons": "^2.3.26", - "@thi.ng/idgen": "^0.2.37", - "@thi.ng/malloc": "^5.0.9", - "@thi.ng/transducers": "^7.7.5", + "@thi.ng/dcons": "^2.3.27", + "@thi.ng/idgen": "^0.2.38", + "@thi.ng/malloc": "^5.0.10", + "@thi.ng/transducers": "^7.8.0", "tslib": "^2.3.0" }, "files": [ diff --git a/packages/egf/CHANGELOG.md b/packages/egf/CHANGELOG.md index 6d23038007..bb1b9a7bfb 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.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.4.9...@thi.ng/egf@0.4.10) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/egf + + + + + ## [0.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/egf@0.4.8...@thi.ng/egf@0.4.9) (2021-07-27) **Note:** Version bump only for package @thi.ng/egf diff --git a/packages/egf/package.json b/packages/egf/package.json index 0da5692656..d05a7537d3 100644 --- a/packages/egf/package.json +++ b/packages/egf/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/egf", - "version": "0.4.9", + "version": "0.4.10", "description": "Extensible Graph Format", "module": "./index.js", "main": "./lib/index.js", @@ -36,14 +36,14 @@ "@thi.ng/equiv": "^1.0.43" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", "@thi.ng/checks": "^2.9.8", - "@thi.ng/dot": "^1.2.33", + "@thi.ng/dot": "^1.2.34", "@thi.ng/errors": "^1.3.2", "@thi.ng/prefixes": "^0.1.19", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers-binary": "^0.6.22" + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers-binary": "^0.6.23" }, "files": [ "*.js", diff --git a/packages/fsm/CHANGELOG.md b/packages/fsm/CHANGELOG.md index e7fcd0c404..51e85f005b 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.56](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.55...@thi.ng/fsm@2.4.56) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/fsm + + + + + ## [2.4.55](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.54...@thi.ng/fsm@2.4.55) (2021-07-27) **Note:** Version bump only for package @thi.ng/fsm diff --git a/packages/fsm/package.json b/packages/fsm/package.json index 3383aa732e..7f9141401d 100644 --- a/packages/fsm/package.json +++ b/packages/fsm/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fsm", - "version": "2.4.55", + "version": "2.4.56", "description": "Composable primitives for building declarative, transducer based Finite-State Machines & matchers for arbitrary data streams", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/fuzzy-viz/CHANGELOG.md b/packages/fuzzy-viz/CHANGELOG.md index 7cb40a68ee..814776bd7e 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.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy-viz@0.1.30...@thi.ng/fuzzy-viz@0.1.31) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/fuzzy-viz + + + + + ## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy-viz@0.1.29...@thi.ng/fuzzy-viz@0.1.30) (2021-07-27) **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 5f77a36db9..c14bc3d437 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.30", + "version": "0.1.31", "description": "Visualization, instrumentation & introspection utils for @thi.ng/fuzzy", "module": "./index.js", "main": "./lib/index.js", @@ -38,13 +38,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/fuzzy": "^0.1.13", - "@thi.ng/hiccup": "^3.6.17", - "@thi.ng/hiccup-svg": "^3.7.26", - "@thi.ng/math": "^4.0.2", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/text-canvas": "^0.7.11" + "@thi.ng/api": "^7.1.7", + "@thi.ng/fuzzy": "^0.1.14", + "@thi.ng/hiccup": "^3.6.18", + "@thi.ng/hiccup-svg": "^3.7.27", + "@thi.ng/math": "^4.0.3", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/text-canvas": "^0.7.12" }, "files": [ "*.js", diff --git a/packages/fuzzy/CHANGELOG.md b/packages/fuzzy/CHANGELOG.md index e14396d0d8..39ff427ced 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.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy@0.1.13...@thi.ng/fuzzy@0.1.14) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/fuzzy + + + + + ## [0.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/fuzzy@0.1.12...@thi.ng/fuzzy@0.1.13) (2021-07-01) **Note:** Version bump only for package @thi.ng/fuzzy diff --git a/packages/fuzzy/package.json b/packages/fuzzy/package.json index 0af2358f7a..57dd8bcf31 100644 --- a/packages/fuzzy/package.json +++ b/packages/fuzzy/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fuzzy", - "version": "0.1.13", + "version": "0.1.14", "description": "Fuzzy logic operators & configurable rule inferencing engine", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/math": "^4.0.2" + "@thi.ng/api": "^7.1.7", + "@thi.ng/math": "^4.0.3" }, "files": [ "*.js", diff --git a/packages/geom-accel/CHANGELOG.md b/packages/geom-accel/CHANGELOG.md index b1debe7e7c..0e9efb716c 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.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.52...@thi.ng/geom-accel@2.1.53) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-accel + + + + + ## [2.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.1.51...@thi.ng/geom-accel@2.1.52) (2021-07-27) **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 418f9c8c03..5fde441782 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.52", + "version": "2.1.53", "description": "n-D spatial indexing data structures with a shared ES6 Map/Set-like API", "module": "./index.js", "main": "./lib/index.js", @@ -39,16 +39,16 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", "@thi.ng/equiv": "^1.0.43", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/heaps": "^1.2.40", - "@thi.ng/math": "^4.0.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/heaps": "^1.2.41", + "@thi.ng/math": "^4.0.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-api/CHANGELOG.md b/packages/geom-api/CHANGELOG.md index 1d2ceaecdb..54791d9227 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.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@2.0.23...@thi.ng/geom-api@2.0.24) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-api + + + + + ## [2.0.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@2.0.22...@thi.ng/geom-api@2.0.23) (2021-07-27) **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 fbeeb54c83..848df43cd5 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.23", + "version": "2.0.24", "description": "Shared type & interface declarations for @thi.ng/geom packages", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-arc/CHANGELOG.md b/packages/geom-arc/CHANGELOG.md index 3e14ef7681..8ec4e46215 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.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.41...@thi.ng/geom-arc@0.3.42) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-arc + + + + + ## [0.3.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.3.40...@thi.ng/geom-arc@0.3.41) (2021-07-27) **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 b7c2402251..a6d10ae48c 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.41", + "version": "0.3.42", "description": "2D circular / elliptic arc operations", "module": "./index.js", "main": "./lib/index.js", @@ -39,10 +39,10 @@ }, "dependencies": { "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-resample": "^0.2.74", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-resample": "^0.2.75", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-clip-line/CHANGELOG.md b/packages/geom-clip-line/CHANGELOG.md index ecd79214e2..4efe8f81a5 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.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.37...@thi.ng/geom-clip-line@1.2.38) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-clip-line + + + + + ## [1.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.2.36...@thi.ng/geom-clip-line@1.2.37) (2021-07-27) **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 2f04cd50d4..6565c139eb 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.37", + "version": "1.2.38", "description": "2D line clipping (Liang-Barsky)", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-clip-poly/CHANGELOG.md b/packages/geom-clip-poly/CHANGELOG.md index caf04231df..88460c5be2 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.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.62...@thi.ng/geom-clip-poly@1.0.63) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-clip-poly + + + + + ## [1.0.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.61...@thi.ng/geom-clip-poly@1.0.62) (2021-07-27) **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 4147b5745d..80c0c3d4e0 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.62", + "version": "1.0.63", "description": "2D convex polygon clipping (Sutherland-Hodgeman)", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/geom-poly-utils": "^0.3.23", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/geom-poly-utils": "^0.3.24", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-closest-point/CHANGELOG.md b/packages/geom-closest-point/CHANGELOG.md index 089c30dfcb..84f6cf1022 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.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.28...@thi.ng/geom-closest-point@0.5.29) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-closest-point + + + + + ## [0.5.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.5.27...@thi.ng/geom-closest-point@0.5.28) (2021-07-27) **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 b91a3126c9..a9a7c30e1d 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.28", + "version": "0.5.29", "description": "2D / 3D closest point / proximity helpers", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-fuzz/CHANGELOG.md b/packages/geom-fuzz/CHANGELOG.md index 9366b0020e..0d0b03a49e 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.54](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.53...@thi.ng/geom-fuzz@0.1.54) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-fuzz + + + + + ## [0.1.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-fuzz@0.1.52...@thi.ng/geom-fuzz@0.1.53) (2021-07-27) **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 f9b1481b7e..aa3b939f64 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.53", + "version": "0.1.54", "description": "Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support", "module": "./index.js", "main": "./lib/index.js", @@ -37,16 +37,16 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", - "@thi.ng/color": "^3.1.18", - "@thi.ng/geom": "^2.1.20", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-clip-line": "^1.2.37", - "@thi.ng/geom-resample": "^0.2.74", - "@thi.ng/grid-iterators": "^0.4.38", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", + "@thi.ng/color": "^3.2.0", + "@thi.ng/geom": "^2.1.21", + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-clip-line": "^1.2.38", + "@thi.ng/geom-resample": "^0.2.75", + "@thi.ng/grid-iterators": "^0.4.39", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-hull/CHANGELOG.md b/packages/geom-hull/CHANGELOG.md index 450c13b6a3..93c1dff200 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.95](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.94...@thi.ng/geom-hull@0.0.95) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-hull + + + + + ## [0.0.94](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.93...@thi.ng/geom-hull@0.0.94) (2021-07-27) **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 8a0ff6c40f..0d687d4dd5 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.94", + "version": "0.0.95", "description": "Fast 2D convex hull (Graham Scan)", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-io-obj/CHANGELOG.md b/packages/geom-io-obj/CHANGELOG.md index 225164f9ea..4443d2147a 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.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.52...@thi.ng/geom-io-obj@0.1.53) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-io-obj + + + + + ## [0.1.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-io-obj@0.1.51...@thi.ng/geom-io-obj@0.1.52) (2021-07-27) **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 f10257a2e6..4a79754d18 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.52", + "version": "0.1.53", "description": "Wavefront OBJ parser (& exporter soon)", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-isec/CHANGELOG.md b/packages/geom-isec/CHANGELOG.md index 936109e4bf..5b01d040d2 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.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.26...@thi.ng/geom-isec@0.7.27) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-isec + + + + + ## [0.7.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.7.25...@thi.ng/geom-isec@0.7.26) (2021-07-27) **Note:** Version bump only for package @thi.ng/geom-isec diff --git a/packages/geom-isec/package.json b/packages/geom-isec/package.json index 1475e2218c..6b2c5925bc 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.26", + "version": "0.7.27", "description": "2D/3D shape intersection checks", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-closest-point": "^0.5.28", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-closest-point": "^0.5.29", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-isoline/CHANGELOG.md b/packages/geom-isoline/CHANGELOG.md index 4c7c9559a8..2eb7b7a84c 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.93](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.92...@thi.ng/geom-isoline@0.1.93) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-isoline + + + + + ## [0.1.92](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.91...@thi.ng/geom-isoline@0.1.92) (2021-07-27) **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 d8be798666..0270d28be3 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.92", + "version": "0.1.93", "description": "Fast 2D contour line extraction / generation", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-poly-utils/CHANGELOG.md b/packages/geom-poly-utils/CHANGELOG.md index a87a3f021d..6ba11e10fa 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.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.3.23...@thi.ng/geom-poly-utils@0.3.24) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-poly-utils + + + + + ## [0.3.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.3.22...@thi.ng/geom-poly-utils@0.3.23) (2021-07-27) **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 22551b547f..5ab23d8b12 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.23", + "version": "0.3.24", "description": "2D polygon/polyline analysis & processing utilities", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/errors": "^1.3.2", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-resample/CHANGELOG.md b/packages/geom-resample/CHANGELOG.md index 4adbc01dbb..d47ef683a4 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.75](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.74...@thi.ng/geom-resample@0.2.75) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-resample + + + + + ## [0.2.74](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.73...@thi.ng/geom-resample@0.2.74) (2021-07-27) **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 91d576774d..dded0ccca1 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.74", + "version": "0.2.75", "description": "Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation", "module": "./index.js", "main": "./lib/index.js", @@ -39,10 +39,10 @@ }, "dependencies": { "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-closest-point": "^0.5.28", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-closest-point": "^0.5.29", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-splines/CHANGELOG.md b/packages/geom-splines/CHANGELOG.md index 5afe374177..0bfad47255 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.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.61...@thi.ng/geom-splines@0.5.62) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-splines + + + + + ## [0.5.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.60...@thi.ng/geom-splines@0.5.61) (2021-07-27) **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 84f7e6fc79..65bd31734d 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.61", + "version": "0.5.62", "description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting", "module": "./index.js", "main": "./lib/index.js", @@ -38,13 +38,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-arc": "^0.3.41", - "@thi.ng/geom-resample": "^0.2.74", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-arc": "^0.3.42", + "@thi.ng/geom-resample": "^0.2.75", + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-subdiv-curve/CHANGELOG.md b/packages/geom-subdiv-curve/CHANGELOG.md index c02ac5b010..3eeaef78af 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.93](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.92...@thi.ng/geom-subdiv-curve@0.1.93) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-subdiv-curve + + + + + ## [0.1.92](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.91...@thi.ng/geom-subdiv-curve@0.1.92) (2021-07-27) **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 fb8d6fcdf5..113320f9c9 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.92", + "version": "0.1.93", "description": "Freely customizable, iterative nD subdivision curves for open / closed geometries", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-tessellate/CHANGELOG.md b/packages/geom-tessellate/CHANGELOG.md index f44244a118..2073fd45b5 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.76](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.75...@thi.ng/geom-tessellate@0.2.76) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-tessellate + + + + + ## [0.2.75](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.74...@thi.ng/geom-tessellate@0.2.75) (2021-07-27) **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 02b223e556..d240b6e523 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.75", + "version": "0.2.76", "description": "2D/3D convex polygon tessellators", "module": "./index.js", "main": "./lib/index.js", @@ -39,11 +39,11 @@ }, "dependencies": { "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/geom-poly-utils": "^0.3.23", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/geom-poly-utils": "^0.3.24", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom-voronoi/CHANGELOG.md b/packages/geom-voronoi/CHANGELOG.md index e13980a6c0..29f0e7a83d 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.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.37...@thi.ng/geom-voronoi@0.2.38) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom-voronoi + + + + + ## [0.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.2.36...@thi.ng/geom-voronoi@0.2.37) (2021-07-27) **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 526dfe4d66..9c2c047da5 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.37", + "version": "0.2.38", "description": "Fast, incremental 2D Delaunay & Voronoi mesh implementation", "module": "./index.js", "main": "./lib/index.js", @@ -38,15 +38,15 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-clip-line": "^1.2.37", - "@thi.ng/geom-clip-poly": "^1.0.62", - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/geom-poly-utils": "^0.3.23", - "@thi.ng/math": "^4.0.2", + "@thi.ng/geom-clip-line": "^1.2.38", + "@thi.ng/geom-clip-poly": "^1.0.63", + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/geom-poly-utils": "^0.3.24", + "@thi.ng/math": "^4.0.3", "@thi.ng/quad-edge": "^0.2.36", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/geom/CHANGELOG.md b/packages/geom/CHANGELOG.md index 0bfdc26659..3cb73288ea 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.1.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@2.1.20...@thi.ng/geom@2.1.21) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/geom + + + + + ## [2.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@2.1.19...@thi.ng/geom@2.1.20) (2021-07-27) **Note:** Version bump only for package @thi.ng/geom diff --git a/packages/geom/package.json b/packages/geom/package.json index 54837df295..99beddcf1c 100644 --- a/packages/geom/package.json +++ b/packages/geom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom", - "version": "2.1.20", + "version": "2.1.21", "description": "Functional, polymorphic API for 2D geometry types & SVG generation", "module": "./index.js", "main": "./lib/index.js", @@ -38,32 +38,32 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", + "@thi.ng/defmulti": "^1.3.14", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-arc": "^0.3.41", - "@thi.ng/geom-clip-line": "^1.2.37", - "@thi.ng/geom-clip-poly": "^1.0.62", - "@thi.ng/geom-closest-point": "^0.5.28", - "@thi.ng/geom-hull": "^0.0.94", - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/geom-poly-utils": "^0.3.23", - "@thi.ng/geom-resample": "^0.2.74", - "@thi.ng/geom-splines": "^0.5.61", - "@thi.ng/geom-subdiv-curve": "^0.1.92", - "@thi.ng/geom-tessellate": "^0.2.75", - "@thi.ng/hiccup": "^3.6.17", - "@thi.ng/hiccup-svg": "^3.7.26", - "@thi.ng/math": "^4.0.2", - "@thi.ng/matrices": "^0.6.61", - "@thi.ng/random": "^2.4.2", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-arc": "^0.3.42", + "@thi.ng/geom-clip-line": "^1.2.38", + "@thi.ng/geom-clip-poly": "^1.0.63", + "@thi.ng/geom-closest-point": "^0.5.29", + "@thi.ng/geom-hull": "^0.0.95", + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/geom-poly-utils": "^0.3.24", + "@thi.ng/geom-resample": "^0.2.75", + "@thi.ng/geom-splines": "^0.5.62", + "@thi.ng/geom-subdiv-curve": "^0.1.93", + "@thi.ng/geom-tessellate": "^0.2.76", + "@thi.ng/hiccup": "^3.6.18", + "@thi.ng/hiccup-svg": "^3.7.27", + "@thi.ng/math": "^4.0.3", + "@thi.ng/matrices": "^0.6.62", + "@thi.ng/random": "^2.4.3", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/gp/CHANGELOG.md b/packages/gp/CHANGELOG.md index 8b19486240..aefb76adec 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.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.2.22...@thi.ng/gp@0.2.23) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/gp + + + + + ## [0.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.2.21...@thi.ng/gp@0.2.22) (2021-07-27) **Note:** Version bump only for package @thi.ng/gp diff --git a/packages/gp/package.json b/packages/gp/package.json index 5fc1eebd55..ebf5400282 100644 --- a/packages/gp/package.json +++ b/packages/gp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/gp", - "version": "0.2.22", + "version": "0.2.23", "description": "Genetic programming helpers & strategies (tree based & multi-expression programming)", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/math": "^4.0.2", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/zipper": "^0.1.47" + "@thi.ng/api": "^7.1.7", + "@thi.ng/math": "^4.0.3", + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/zipper": "^0.1.48" }, "files": [ "*.js", diff --git a/packages/grid-iterators/CHANGELOG.md b/packages/grid-iterators/CHANGELOG.md index 2a15a8b3ff..149b250626 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.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.38...@thi.ng/grid-iterators@0.4.39) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/grid-iterators + + + + + ## [0.4.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.4.37...@thi.ng/grid-iterators@0.4.38) (2021-07-27) **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 a7bf060504..bd9f3cc768 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.38", + "version": "0.4.39", "description": "2D grid iterators w/ multiple orderings", "module": "./index.js", "main": "./lib/index.js", @@ -39,11 +39,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/arrays": "^0.10.13", - "@thi.ng/binary": "^2.2.6", - "@thi.ng/morton": "^2.0.42", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/arrays": "^0.10.14", + "@thi.ng/binary": "^2.2.7", + "@thi.ng/morton": "^2.0.43", + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/hdiff/CHANGELOG.md b/packages/hdiff/CHANGELOG.md index 83a4b80e48..6711e4c916 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.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.45...@thi.ng/hdiff@0.1.46) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hdiff + + + + + ## [0.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdiff@0.1.44...@thi.ng/hdiff@0.1.45) (2021-07-27) **Note:** Version bump only for package @thi.ng/hdiff diff --git a/packages/hdiff/package.json b/packages/hdiff/package.json index 74ee3948f9..f9566d1212 100644 --- a/packages/hdiff/package.json +++ b/packages/hdiff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdiff", - "version": "0.1.45", + "version": "0.1.46", "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", @@ -40,11 +40,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/diff": "^4.0.9", - "@thi.ng/hiccup": "^3.6.17", - "@thi.ng/hiccup-css": "^1.1.65", - "@thi.ng/strings": "^2.1.2" + "@thi.ng/api": "^7.1.7", + "@thi.ng/diff": "^4.0.10", + "@thi.ng/hiccup": "^3.6.18", + "@thi.ng/hiccup-css": "^1.1.66", + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/hdom-canvas/CHANGELOG.md b/packages/hdom-canvas/CHANGELOG.md index b1a95812d5..6cd4ee0aab 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.53](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.52...@thi.ng/hdom-canvas@3.0.53) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hdom-canvas + + + + + ## [3.0.52](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@3.0.51...@thi.ng/hdom-canvas@3.0.52) (2021-07-27) **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 b70e6ac3af..530b51a797 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.52", + "version": "3.0.53", "description": "@thi.ng/hdom component wrapper for declarative canvas scenegraphs", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/diff": "^4.0.9", - "@thi.ng/hdom": "^8.2.27", - "@thi.ng/hiccup-canvas": "^1.2.7" + "@thi.ng/diff": "^4.0.10", + "@thi.ng/hdom": "^8.2.28", + "@thi.ng/hiccup-canvas": "^1.2.8" }, "files": [ "*.js", diff --git a/packages/hdom-components/CHANGELOG.md b/packages/hdom-components/CHANGELOG.md index 9a56e188c2..c0d0a97782 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.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.40...@thi.ng/hdom-components@4.0.41) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hdom-components + + + + + ## [4.0.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@4.0.39...@thi.ng/hdom-components@4.0.40) (2021-07-27) **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 738cbf6f4c..7b69091a7d 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.40", + "version": "4.0.41", "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -39,11 +39,11 @@ }, "dependencies": { "@thi.ng/adapt-dpi": "^1.0.21", - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/math": "^4.0.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/transducers-stats": "^1.1.66" + "@thi.ng/math": "^4.0.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/transducers-stats": "^1.1.67" }, "files": [ "*.js", diff --git a/packages/hdom-mock/CHANGELOG.md b/packages/hdom-mock/CHANGELOG.md index e0dde2c9c4..81269f9f87 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.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.59...@thi.ng/hdom-mock@1.1.60) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hdom-mock + + + + + ## [1.1.59](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.58...@thi.ng/hdom-mock@1.1.59) (2021-07-01) **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 7974b22e64..9ca1591981 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.59", + "version": "1.1.60", "description": "Mock base implementation for @thi.ng/hdom API", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/hdom": "^8.2.27" + "@thi.ng/hdom": "^8.2.28" }, "files": [ "*.js", diff --git a/packages/hdom/CHANGELOG.md b/packages/hdom/CHANGELOG.md index c3f193177a..89c0323658 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.28](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.27...@thi.ng/hdom@8.2.28) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hdom + + + + + ## [8.2.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.26...@thi.ng/hdom@8.2.27) (2021-07-01) **Note:** Version bump only for package @thi.ng/hdom diff --git a/packages/hdom/package.json b/packages/hdom/package.json index 0beb002a8b..677a59aa5b 100644 --- a/packages/hdom/package.json +++ b/packages/hdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom", - "version": "8.2.27", + "version": "8.2.28", "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors", "module": "./index.js", "main": "./lib/index.js", @@ -38,15 +38,15 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@thi.ng/atom": "^4.1.37" + "@thi.ng/atom": "^4.1.38" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/diff": "^4.0.9", + "@thi.ng/diff": "^4.0.10", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/hiccup": "^3.6.17", + "@thi.ng/hiccup": "^3.6.18", "@thi.ng/prefixes": "^0.1.19" }, "files": [ diff --git a/packages/heaps/CHANGELOG.md b/packages/heaps/CHANGELOG.md index 824f3d0100..d12cd64f5b 100644 --- a/packages/heaps/CHANGELOG.md +++ b/packages/heaps/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.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.40...@thi.ng/heaps@1.2.41) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/heaps + + + + + ## [1.2.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.39...@thi.ng/heaps@1.2.40) (2021-07-01) **Note:** Version bump only for package @thi.ng/heaps diff --git a/packages/heaps/package.json b/packages/heaps/package.json index c3dc138e7b..1290b24609 100644 --- a/packages/heaps/package.json +++ b/packages/heaps/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/heaps", - "version": "1.2.40", + "version": "1.2.41", "description": "Various heap implementations for arbitrary values and with customizable ordering", "module": "./index.js", "main": "./lib/index.js", @@ -39,8 +39,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/compare": "^1.3.30" + "@thi.ng/api": "^7.1.7", + "@thi.ng/compare": "^1.3.31" }, "files": [ "*.js", diff --git a/packages/hiccup-canvas/CHANGELOG.md b/packages/hiccup-canvas/CHANGELOG.md index 5be8c63c66..aa95227566 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.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.2.7...@thi.ng/hiccup-canvas@1.2.8) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup-canvas + + + + + ## [1.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-canvas@1.2.6...@thi.ng/hiccup-canvas@1.2.7) (2021-07-27) **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 b47b9ef461..21780192c2 100644 --- a/packages/hiccup-canvas/package.json +++ b/packages/hiccup-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-canvas", - "version": "1.2.7", + "version": "1.2.8", "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts", "module": "./index.js", "main": "./lib/index.js", @@ -40,12 +40,12 @@ "@thi.ng/pixel": "^0.9.0" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/color": "^3.1.18", - "@thi.ng/math": "^4.0.2", - "@thi.ng/pixel": "^0.10.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/color": "^3.2.0", + "@thi.ng/math": "^4.0.3", + "@thi.ng/pixel": "^0.11.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/hiccup-carbon-icons/CHANGELOG.md b/packages/hiccup-carbon-icons/CHANGELOG.md index b1ed486514..95838a81c8 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.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.20...@thi.ng/hiccup-carbon-icons@2.0.21) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons + + + + + ## [2.0.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@2.0.19...@thi.ng/hiccup-carbon-icons@2.0.20) (2021-07-01) **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 1a3cc0048d..94f5cbad96 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.20", + "version": "2.0.21", "description": "Full set of IBM's Carbon icons in hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -40,7 +40,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@thi.ng/hiccup": "^3.6.17" + "@thi.ng/hiccup": "^3.6.18" }, "files": [ "*.js", diff --git a/packages/hiccup-css/CHANGELOG.md b/packages/hiccup-css/CHANGELOG.md index bcfeb8d6cc..cf54c2ed53 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.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.65...@thi.ng/hiccup-css@1.1.66) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup-css + + + + + ## [1.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.64...@thi.ng/hiccup-css@1.1.65) (2021-07-27) **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 b34368a596..d87fecae1b 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.65", + "version": "1.1.66", "description": "CSS from nested JS data structures", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/hiccup-html/CHANGELOG.md b/packages/hiccup-html/CHANGELOG.md index 0a6c03ff5c..ac38f70e50 100644 --- a/packages/hiccup-html/CHANGELOG.md +++ b/packages/hiccup-html/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/hiccup-html@0.3.19...@thi.ng/hiccup-html@0.3.20) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup-html + + + + + ## [0.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.3.18...@thi.ng/hiccup-html@0.3.19) (2021-07-01) **Note:** Version bump only for package @thi.ng/hiccup-html diff --git a/packages/hiccup-html/package.json b/packages/hiccup-html/package.json index d920b332a1..4147a48596 100644 --- a/packages/hiccup-html/package.json +++ b/packages/hiccup-html/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-html", - "version": "0.3.19", + "version": "0.3.20", "description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure", "module": "./index.js", "main": "./lib/index.js", @@ -37,7 +37,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/hiccup-markdown/CHANGELOG.md b/packages/hiccup-markdown/CHANGELOG.md index 21712f5416..bcdf8bf2ec 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.3.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.3.23...@thi.ng/hiccup-markdown@1.3.24) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup-markdown + + + + + ## [1.3.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.3.22...@thi.ng/hiccup-markdown@1.3.23) (2021-07-27) **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 df2f05d38e..310bcdbec3 100644 --- a/packages/hiccup-markdown/package.json +++ b/packages/hiccup-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-markdown", - "version": "1.3.23", + "version": "1.3.24", "description": "Markdown parser & serializer from/to Hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -38,16 +38,16 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", + "@thi.ng/defmulti": "^1.3.14", "@thi.ng/errors": "^1.3.2", - "@thi.ng/fsm": "^2.4.55", - "@thi.ng/hiccup": "^3.6.17", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/text-canvas": "^0.7.11", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/fsm": "^2.4.56", + "@thi.ng/hiccup": "^3.6.18", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/text-canvas": "^0.7.12", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/hiccup-svg/CHANGELOG.md b/packages/hiccup-svg/CHANGELOG.md index db07a41eae..5eaf05531e 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.27](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.7.26...@thi.ng/hiccup-svg@3.7.27) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup-svg + + + + + ## [3.7.26](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.7.25...@thi.ng/hiccup-svg@3.7.26) (2021-07-27) **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 fdee4f4a5d..5f286d2eb4 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.26", + "version": "3.7.27", "description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -39,7 +39,7 @@ }, "dependencies": { "@thi.ng/checks": "^2.9.8", - "@thi.ng/color": "^3.1.18", + "@thi.ng/color": "^3.2.0", "@thi.ng/prefixes": "^0.1.19" }, "files": [ diff --git a/packages/hiccup/CHANGELOG.md b/packages/hiccup/CHANGELOG.md index 976eb13d4c..faa1b7b669 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.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.17...@thi.ng/hiccup@3.6.18) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/hiccup + + + + + ## [3.6.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.16...@thi.ng/hiccup@3.6.17) (2021-07-01) **Note:** Version bump only for package @thi.ng/hiccup diff --git a/packages/hiccup/package.json b/packages/hiccup/package.json index 1609ddcdd2..ffa88c595b 100644 --- a/packages/hiccup/package.json +++ b/packages/hiccup/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup", - "version": "3.6.17", + "version": "3.6.18", "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@thi.ng/atom": "^4.1.37" + "@thi.ng/atom": "^4.1.38" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2" }, diff --git a/packages/idgen/CHANGELOG.md b/packages/idgen/CHANGELOG.md index ae35830e94..5b399e72ed 100644 --- a/packages/idgen/CHANGELOG.md +++ b/packages/idgen/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.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.37...@thi.ng/idgen@0.2.38) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/idgen + + + + + ## [0.2.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.36...@thi.ng/idgen@0.2.37) (2021-07-01) **Note:** Version bump only for package @thi.ng/idgen diff --git a/packages/idgen/package.json b/packages/idgen/package.json index 0a93d863ab..3c299a681b 100644 --- a/packages/idgen/package.json +++ b/packages/idgen/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/idgen", - "version": "0.2.37", + "version": "0.2.38", "description": "Generator of opaque numeric identifiers with optional support for ID versioning and efficient re-use", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "tslib": "^2.3.0" }, "files": [ diff --git a/packages/iges/CHANGELOG.md b/packages/iges/CHANGELOG.md index d8c9b35ddc..ef03139993 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.80](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.79...@thi.ng/iges@1.1.80) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/iges + + + + + ## [1.1.79](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.78...@thi.ng/iges@1.1.79) (2021-07-27) **Note:** Version bump only for package @thi.ng/iges diff --git a/packages/iges/package.json b/packages/iges/package.json index 32e3eb5598..4da04a8798 100644 --- a/packages/iges/package.json +++ b/packages/iges/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iges", - "version": "1.1.79", + "version": "1.1.80", "description": "IGES 5.3 serializer for (currently only) polygonal geometry, both open & closed", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/defmulti": "^1.3.14", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/imgui/CHANGELOG.md b/packages/imgui/CHANGELOG.md index 00c9f33f85..80c3d328bc 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.74](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.73...@thi.ng/imgui@0.2.74) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/imgui + + + + + ## [0.2.73](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.72...@thi.ng/imgui@0.2.73) (2021-07-27) **Note:** Version bump only for package @thi.ng/imgui diff --git a/packages/imgui/package.json b/packages/imgui/package.json index 128033e65d..fc629075ac 100644 --- a/packages/imgui/package.json +++ b/packages/imgui/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/imgui", - "version": "0.2.73", + "version": "0.2.74", "description": "Immediate mode GUI with flexible state handling & data only shape output", "module": "./index.js", "main": "./lib/index.js", @@ -38,16 +38,16 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom": "^2.1.20", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/geom-isec": "^0.7.26", - "@thi.ng/geom-tessellate": "^0.2.75", + "@thi.ng/geom": "^2.1.21", + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/geom-isec": "^0.7.27", + "@thi.ng/geom-tessellate": "^0.2.76", "@thi.ng/layout": "^0.1.37", - "@thi.ng/math": "^4.0.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/math": "^4.0.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/interceptors/CHANGELOG.md b/packages/interceptors/CHANGELOG.md index d48b48c1d0..1fafd1f5af 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.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.48...@thi.ng/interceptors@2.2.49) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/interceptors + + + + + ## [2.2.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.47...@thi.ng/interceptors@2.2.48) (2021-07-01) **Note:** Version bump only for package @thi.ng/interceptors diff --git a/packages/interceptors/package.json b/packages/interceptors/package.json index 7acfc19dad..f18dff3a30 100644 --- a/packages/interceptors/package.json +++ b/packages/interceptors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/interceptors", - "version": "2.2.48", + "version": "2.2.49", "description": "Interceptor based event bus, side effect & immutable state handling", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/atom": "^4.1.37", + "@thi.ng/api": "^7.1.7", + "@thi.ng/atom": "^4.1.38", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/paths": "^4.2.9" + "@thi.ng/paths": "^4.2.10" }, "files": [ "*.js", diff --git a/packages/intervals/CHANGELOG.md b/packages/intervals/CHANGELOG.md index d4c4d51f77..3832fbebef 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. +## [3.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@3.0.9...@thi.ng/intervals@3.0.10) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/intervals + + + + + ## [3.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@3.0.8...@thi.ng/intervals@3.0.9) (2021-07-01) **Note:** Version bump only for package @thi.ng/intervals diff --git a/packages/intervals/package.json b/packages/intervals/package.json index 87d76e68b2..2bb4a8154f 100644 --- a/packages/intervals/package.json +++ b/packages/intervals/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/intervals", - "version": "3.0.9", + "version": "3.0.10", "description": "Closed/open/semi-open interval data type, queries & operations", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/dlogic": "^1.0.45", + "@thi.ng/dlogic": "^1.0.46", "@thi.ng/errors": "^1.3.2" }, "files": [ diff --git a/packages/iterators/CHANGELOG.md b/packages/iterators/CHANGELOG.md index 2cb024539a..1dfd802775 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.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.66...@thi.ng/iterators@5.1.67) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/iterators + + + + + ## [5.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.65...@thi.ng/iterators@5.1.66) (2021-07-27) **Note:** Version bump only for package @thi.ng/iterators diff --git a/packages/iterators/package.json b/packages/iterators/package.json index f3d8ce07a6..fa06cf1ca4 100644 --- a/packages/iterators/package.json +++ b/packages/iterators/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iterators", - "version": "5.1.66", + "version": "5.1.67", "description": "Clojure inspired, composable ES6 iterators & generators", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/dcons": "^2.3.26", + "@thi.ng/api": "^7.1.7", + "@thi.ng/dcons": "^2.3.27", "@thi.ng/errors": "^1.3.2" }, "files": [ diff --git a/packages/k-means/CHANGELOG.md b/packages/k-means/CHANGELOG.md index 4a68ee0079..725430a546 100644 --- a/packages/k-means/CHANGELOG.md +++ b/packages/k-means/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.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/k-means@0.2.4...@thi.ng/k-means@0.2.5) (2021-08-04) + + +### Bug Fixes + +* **k-means:** update initKmeanspp() ([dd0d965](https://github.com/thi-ng/umbrella/commit/dd0d9654b1aacce8a4bbbd921f2ce44d0eaa276a)) + + + + + ## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/k-means@0.2.3...@thi.ng/k-means@0.2.4) (2021-07-27) **Note:** Version bump only for package @thi.ng/k-means diff --git a/packages/k-means/README.md b/packages/k-means/README.md index 4b5c5d1a13..47b67ff4c8 100644 --- a/packages/k-means/README.md +++ b/packages/k-means/README.md @@ -42,7 +42,7 @@ yarn add @thi.ng/k-means ``` -Package sizes (gzipped, pre-treeshake): ESM: 928 bytes / CJS: 987 bytes / UMD: 1.07 KB +Package sizes (gzipped, pre-treeshake): ESM: 930 bytes / CJS: 991 bytes / UMD: 1.07 KB ## Dependencies diff --git a/packages/k-means/package.json b/packages/k-means/package.json index e6736ec955..477c31f405 100644 --- a/packages/k-means/package.json +++ b/packages/k-means/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/k-means", - "version": "0.2.4", + "version": "0.2.5", "description": "Configurable k-means & k-medians (with k-means++ initialization) for n-D vectors", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/distance": "^0.3.4", - "@thi.ng/random": "^2.4.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/api": "^7.1.7", + "@thi.ng/distance": "^0.3.5", + "@thi.ng/random": "^2.4.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/k-means/src/kmeans.ts b/packages/k-means/src/kmeans.ts index f1bf9236ee..babea558c3 100644 --- a/packages/k-means/src/kmeans.ts +++ b/packages/k-means/src/kmeans.ts @@ -85,11 +85,13 @@ export const initKmeanspp = ( const metric = dist.metric; while (centroidIDs.length < k) { let probs = samples.map( - (p) => dist.from(metric(p, centroids[argmin(p, centroids)!])) ** 2 + (p) => + dist.from(metric(p, centroids[argmin(p, centroids, dist)!])) ** + 2 ); let id: number; do { - id = weightedRandom(indices, probs)(); + id = weightedRandom(indices, probs, rnd)(); } while (centroidIDs.includes(id)); centroidIDs.push(id); centroids.push(samples[id]); diff --git a/packages/ksuid/CHANGELOG.md b/packages/ksuid/CHANGELOG.md index dd563f08ce..c7a0b94ab6 100644 --- a/packages/ksuid/CHANGELOG.md +++ b/packages/ksuid/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.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@0.2.4...@thi.ng/ksuid@0.2.5) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/ksuid + + + + + ## [0.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/ksuid@0.2.3...@thi.ng/ksuid@0.2.4) (2021-07-01) **Note:** Version bump only for package @thi.ng/ksuid diff --git a/packages/ksuid/package.json b/packages/ksuid/package.json index e3390e8d56..170bd956df 100644 --- a/packages/ksuid/package.json +++ b/packages/ksuid/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ksuid", - "version": "0.2.4", + "version": "0.2.5", "description": "Configurable K-sortable unique identifiers, binary & base-N encoded", "module": "./index.js", "main": "./lib/index.js", @@ -39,10 +39,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/base-n": "^0.1.8", - "@thi.ng/random": "^2.4.2", - "@thi.ng/strings": "^2.1.2" + "@thi.ng/random": "^2.4.3", + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/leb128/CHANGELOG.md b/packages/leb128/CHANGELOG.md index 28cf428121..0e56229c01 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.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.60...@thi.ng/leb128@1.0.61) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/leb128 + + + + + ## [1.0.60](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.59...@thi.ng/leb128@1.0.60) (2021-07-27) **Note:** Version bump only for package @thi.ng/leb128 diff --git a/packages/leb128/package.json b/packages/leb128/package.json index 3067cbaf06..19b1a104c4 100644 --- a/packages/leb128/package.json +++ b/packages/leb128/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/leb128", - "version": "1.0.60", + "version": "1.0.61", "description": "WASM based LEB128 encoder / decoder (signed & unsigned)", "module": "./index.js", "main": "./lib/index.js", @@ -41,7 +41,7 @@ "dependencies": { "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers-binary": "^0.6.22" + "@thi.ng/transducers-binary": "^0.6.23" }, "files": [ "*.js", diff --git a/packages/lowdisc/CHANGELOG.md b/packages/lowdisc/CHANGELOG.md index 144ad2eb07..0387e611f0 100644 --- a/packages/lowdisc/CHANGELOG.md +++ b/packages/lowdisc/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.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.1.3...@thi.ng/lowdisc@0.1.4) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/lowdisc + + + + + ## [0.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/lowdisc@0.1.2...@thi.ng/lowdisc@0.1.3) (2021-07-01) **Note:** Version bump only for package @thi.ng/lowdisc diff --git a/packages/lowdisc/package.json b/packages/lowdisc/package.json index 1201cae232..ccfc3f3f4b 100644 --- a/packages/lowdisc/package.json +++ b/packages/lowdisc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/lowdisc", - "version": "0.1.3", + "version": "0.1.4", "description": "n-dimensional low-discrepancy sequence generators/iterators", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/lsys/CHANGELOG.md b/packages/lsys/CHANGELOG.md index e755528283..3fed16e3e5 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.90](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.89...@thi.ng/lsys@0.2.90) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/lsys + + + + + ## [0.2.89](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.88...@thi.ng/lsys@0.2.89) (2021-07-27) **Note:** Version bump only for package @thi.ng/lsys diff --git a/packages/lsys/package.json b/packages/lsys/package.json index 734e88cf8d..2c95ee2f9f 100644 --- a/packages/lsys/package.json +++ b/packages/lsys/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/lsys", - "version": "0.2.89", + "version": "0.2.90", "description": "Functional, extensible L-System architecture w/ support for probabilistic rules", "module": "./index.js", "main": "./lib/index.js", @@ -38,13 +38,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/compose": "^1.4.32", + "@thi.ng/api": "^7.1.7", + "@thi.ng/compose": "^1.4.33", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/math": "^4.0.3", + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/malloc/CHANGELOG.md b/packages/malloc/CHANGELOG.md index 90baa443c6..aa0543b66b 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. +## [5.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@5.0.9...@thi.ng/malloc@5.0.10) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/malloc + + + + + ## [5.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@5.0.8...@thi.ng/malloc@5.0.9) (2021-07-01) **Note:** Version bump only for package @thi.ng/malloc diff --git a/packages/malloc/package.json b/packages/malloc/package.json index 11343b697d..cd2c6fb819 100644 --- a/packages/malloc/package.json +++ b/packages/malloc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/malloc", - "version": "5.0.9", + "version": "5.0.10", "description": "ArrayBuffer based malloc() impl for hybrid JS/WASM use cases, based on thi.ng/tinyalloc", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2" }, diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index 0a6ade8529..94ebbbacf9 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/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.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@4.0.2...@thi.ng/math@4.0.3) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/math + + + + + ## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@4.0.1...@thi.ng/math@4.0.2) (2021-07-01) **Note:** Version bump only for package @thi.ng/math diff --git a/packages/math/package.json b/packages/math/package.json index 10f3ec99e0..e6df63143e 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/math", - "version": "4.0.2", + "version": "4.0.3", "description": "Assorted common math functions & utilities", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/matrices/CHANGELOG.md b/packages/matrices/CHANGELOG.md index 408c0b6660..1ba8e3f97c 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.62](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.61...@thi.ng/matrices@0.6.62) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/matrices + + + + + ## [0.6.61](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.60...@thi.ng/matrices@0.6.61) (2021-07-27) **Note:** Version bump only for package @thi.ng/matrices diff --git a/packages/matrices/package.json b/packages/matrices/package.json index e8dc0bf545..833b3670f6 100644 --- a/packages/matrices/package.json +++ b/packages/matrices/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/matrices", - "version": "0.6.61", + "version": "0.6.62", "description": "Matrix & quaternion operations for 2D/3D geometry processing", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/math": "^4.0.2", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/math": "^4.0.3", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index 65018dc88f..3747ba7dce 100644 --- a/packages/memoize/CHANGELOG.md +++ b/packages/memoize/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.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.16...@thi.ng/memoize@2.1.17) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/memoize + + + + + ## [2.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.15...@thi.ng/memoize@2.1.16) (2021-07-01) **Note:** Version bump only for package @thi.ng/memoize diff --git a/packages/memoize/package.json b/packages/memoize/package.json index af7696297b..dd6000b7e8 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/memoize", - "version": "2.1.16", + "version": "2.1.17", "description": "Function memoization with configurable caching", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/mime/CHANGELOG.md b/packages/mime/CHANGELOG.md index fb533a0bb2..f0e5088d3b 100644 --- a/packages/mime/CHANGELOG.md +++ b/packages/mime/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.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.5.3...@thi.ng/mime@0.5.4) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/mime + + + + + ## [0.5.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.5.2...@thi.ng/mime@0.5.3) (2021-07-01) **Note:** Version bump only for package @thi.ng/mime diff --git a/packages/mime/package.json b/packages/mime/package.json index 6612091f79..1f1f5bd254 100644 --- a/packages/mime/package.json +++ b/packages/mime/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/mime", - "version": "0.5.3", + "version": "0.5.4", "description": "650+ file extension to MIME type mappings, based on mime-db", "module": "./index.js", "main": "./lib/index.js", @@ -39,7 +39,7 @@ "tool:convert": "ts-node -P tools/tsconfig.json tools/convert.ts" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/morton/CHANGELOG.md b/packages/morton/CHANGELOG.md index 2c9d3e107a..cbeadb2053 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.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.42...@thi.ng/morton@2.0.43) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/morton + + + + + ## [2.0.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.41...@thi.ng/morton@2.0.42) (2021-07-01) **Note:** Version bump only for package @thi.ng/morton diff --git a/packages/morton/package.json b/packages/morton/package.json index e47aebdeb0..9c5fe1aaaf 100644 --- a/packages/morton/package.json +++ b/packages/morton/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/morton", - "version": "2.0.42", + "version": "2.0.43", "description": "Z-order curve / Morton encoding, decoding & range extraction for arbitrary dimensions", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", - "@thi.ng/math": "^4.0.2" + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", + "@thi.ng/math": "^4.0.3" }, "files": [ "*.js", diff --git a/packages/oquery/CHANGELOG.md b/packages/oquery/CHANGELOG.md index df128290de..97d47a9972 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.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.3.3...@thi.ng/oquery@0.3.4) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/oquery + + + + + ## [0.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/oquery@0.3.2...@thi.ng/oquery@0.3.3) (2021-07-01) **Note:** Version bump only for package @thi.ng/oquery diff --git a/packages/oquery/package.json b/packages/oquery/package.json index 172851fbcc..56e365114f 100644 --- a/packages/oquery/package.json +++ b/packages/oquery/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/oquery", - "version": "0.3.3", + "version": "0.3.4", "description": "Datalog-inspired, optimized pattern/predicate query engine for JS objects & arrays", "module": "./index.js", "main": "./lib/index.js", @@ -37,9 +37,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", + "@thi.ng/defmulti": "^1.3.14", "@thi.ng/equiv": "^1.0.43" }, "files": [ diff --git a/packages/parse/CHANGELOG.md b/packages/parse/CHANGELOG.md index 170e3b1fe7..6c5b4afd63 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.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.24...@thi.ng/parse@0.9.25) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/parse + + + + + ## [0.9.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/parse@0.9.23...@thi.ng/parse@0.9.24) (2021-07-01) **Note:** Version bump only for package @thi.ng/parse diff --git a/packages/parse/package.json b/packages/parse/package.json index c1fc2c79ab..8fce4939bd 100644 --- a/packages/parse/package.json +++ b/packages/parse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/parse", - "version": "0.9.24", + "version": "0.9.25", "description": "Purely functional parser combinators & AST generation for generic inputs", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", + "@thi.ng/defmulti": "^1.3.14", "@thi.ng/errors": "^1.3.2", - "@thi.ng/strings": "^2.1.2" + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/paths/CHANGELOG.md b/packages/paths/CHANGELOG.md index a5c2851f40..efcdc696b3 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.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.2.9...@thi.ng/paths@4.2.10) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/paths + + + + + ## [4.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.2.8...@thi.ng/paths@4.2.9) (2021-07-01) **Note:** Version bump only for package @thi.ng/paths diff --git a/packages/paths/package.json b/packages/paths/package.json index d44722281c..83265af97f 100644 --- a/packages/paths/package.json +++ b/packages/paths/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/paths", - "version": "4.2.9", + "version": "4.2.10", "description": "Immutable, optimized and optionally typed path-based object property / array accessors with structural sharing", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2" }, diff --git a/packages/pixel-io-netpbm/CHANGELOG.md b/packages/pixel-io-netpbm/CHANGELOG.md index 4d22b93a94..a5b8c4a7bb 100644 --- a/packages/pixel-io-netpbm/CHANGELOG.md +++ b/packages/pixel-io-netpbm/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.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel-io-netpbm@0.1.14...@thi.ng/pixel-io-netpbm@0.1.15) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/pixel-io-netpbm + + + + + ## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel-io-netpbm@0.1.13...@thi.ng/pixel-io-netpbm@0.1.14) (2021-07-27) **Note:** Version bump only for package @thi.ng/pixel-io-netpbm diff --git a/packages/pixel-io-netpbm/package.json b/packages/pixel-io-netpbm/package.json index 04bb6aaae9..46c92b4285 100644 --- a/packages/pixel-io-netpbm/package.json +++ b/packages/pixel-io-netpbm/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pixel-io-netpbm", - "version": "0.1.14", + "version": "0.1.15", "description": "Multi-format NetPBM reader & writer support for @thi.ng/pixel", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/errors": "^1.3.2", - "@thi.ng/pixel": "^0.10.5" + "@thi.ng/pixel": "^0.11.0" }, "files": [ "*.js", diff --git a/packages/pixel/CHANGELOG.md b/packages/pixel/CHANGELOG.md index 6bd929efed..452885162d 100644 --- a/packages/pixel/CHANGELOG.md +++ b/packages/pixel/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.11.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.10.5...@thi.ng/pixel@0.11.0) (2021-08-04) + + +### Features + +* **pixel:** add DominantColorOpts ([a57882b](https://github.com/thi-ng/umbrella/commit/a57882bbbf2f3520eb5ec849d548fb47c08c3bff)) + + + + + ## [0.10.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.10.4...@thi.ng/pixel@0.10.5) (2021-07-27) **Note:** Version bump only for package @thi.ng/pixel diff --git a/packages/pixel/README.md b/packages/pixel/README.md index 96a1654b5b..96358a69f5 100644 --- a/packages/pixel/README.md +++ b/packages/pixel/README.md @@ -321,7 +321,7 @@ yarn add @thi.ng/pixel ``` -Package sizes (gzipped, pre-treeshake): ESM: 9.20 KB / CJS: 9.49 KB / UMD: 9.20 KB +Package sizes (gzipped, pre-treeshake): ESM: 9.22 KB / CJS: 9.52 KB / UMD: 9.23 KB ## Dependencies diff --git a/packages/pixel/package.json b/packages/pixel/package.json index b72cdad398..2dd8cc1d0e 100644 --- a/packages/pixel/package.json +++ b/packages/pixel/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pixel", - "version": "0.10.5", + "version": "0.11.0", "description": "Typedarray integer & float pixel buffers w/ customizable formats, blitting, dithering, convolution", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/k-means": "^0.2.4", - "@thi.ng/math": "^4.0.2", - "@thi.ng/porter-duff": "^0.1.48" + "@thi.ng/k-means": "^0.2.5", + "@thi.ng/math": "^4.0.3", + "@thi.ng/porter-duff": "^0.1.49" }, "files": [ "*.js", diff --git a/packages/pixel/src/dominant-colors.ts b/packages/pixel/src/dominant-colors.ts index cecc23431b..83de0ad507 100644 --- a/packages/pixel/src/dominant-colors.ts +++ b/packages/pixel/src/dominant-colors.ts @@ -1,6 +1,19 @@ +import type { Fn2 } from "@thi.ng/api"; import { kmeans, KMeansOpts } from "@thi.ng/k-means"; import type { FloatBuffer } from "./float"; +export interface DominantColorOpts extends KMeansOpts { + /** + * Predicate used to only include pixels in the analysis for which the + * filter returns truthy result. E.g. to pre-exclude weakly saturated or + * dark colors etc. The second arg is the index of the pixel in the image's + * pixel buffer. + * + * If omitted, all pixels will be included (default). + */ + filter: Fn2; +} + /** * Takes a {@link FloatBuffer} and applies k-means clustering to extract the * `num` dominant colors from the given image. The clustering can be configured @@ -18,14 +31,17 @@ import type { FloatBuffer } from "./float"; export const dominantColors = ( img: FloatBuffer, num: number, - opts?: Partial + opts: Partial = {} ) => { const n = img.width * img.height; const mapped: Float32Array[] = []; + const filter = opts.filter || (() => true); for (let i = 0, j = 0, s = img.stride; i < n; i++, j += s) { - mapped.push(img.pixels.subarray(j, j + s)); + const p = img.pixels.subarray(j, j + s); + if (filter(p, i)) mapped.push(p); } - return kmeans(num, mapped, opts) + if (!mapped.length) return []; + return kmeans(Math.min(num, mapped.length), mapped, opts) .sort((a, b) => b.items.length - a.items.length) .map((c) => ({ color: [...c.centroid], area: c.items.length / n })); }; diff --git a/packages/pointfree-lang/CHANGELOG.md b/packages/pointfree-lang/CHANGELOG.md index f434cb2559..7faad85eb7 100644 --- a/packages/pointfree-lang/CHANGELOG.md +++ b/packages/pointfree-lang/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.31...@thi.ng/pointfree-lang@1.4.32) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/pointfree-lang + + + + + +## [1.4.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.30...@thi.ng/pointfree-lang@1.4.31) (2021-07-29) + +**Note:** Version bump only for package @thi.ng/pointfree-lang + + + + + ## [1.4.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.4.29...@thi.ng/pointfree-lang@1.4.30) (2021-07-01) **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 6012e8bd45..f170632ce9 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.30", + "version": "1.4.32", "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL", "module": "./index.js", "main": "./lib/index.js", @@ -46,11 +46,11 @@ "pegjs": "0.11.0-master.b7b87ea" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/args": "^0.7.0", - "@thi.ng/bench": "^2.1.2", + "@thi.ng/api": "^7.1.7", + "@thi.ng/args": "^0.7.2", + "@thi.ng/bench": "^2.1.3", "@thi.ng/errors": "^1.3.2", - "@thi.ng/pointfree": "^2.0.31" + "@thi.ng/pointfree": "^2.0.32" }, "files": [ "*.js", diff --git a/packages/pointfree/CHANGELOG.md b/packages/pointfree/CHANGELOG.md index ac32882efb..4d7cc07bbb 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.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.31...@thi.ng/pointfree@2.0.32) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/pointfree + + + + + ## [2.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@2.0.30...@thi.ng/pointfree@2.0.31) (2021-07-01) **Note:** Version bump only for package @thi.ng/pointfree diff --git a/packages/pointfree/package.json b/packages/pointfree/package.json index b7f8d3201f..ecfd4cc071 100644 --- a/packages/pointfree/package.json +++ b/packages/pointfree/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pointfree", - "version": "2.0.31", + "version": "2.0.32", "description": "Pointfree functional composition / Forth style stack execution engine", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/compose": "^1.4.32", + "@thi.ng/compose": "^1.4.33", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2" }, diff --git a/packages/poisson/CHANGELOG.md b/packages/poisson/CHANGELOG.md index 4ed521ec8a..87c49e42c4 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.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.45...@thi.ng/poisson@1.1.46) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/poisson + + + + + ## [1.1.45](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.1.44...@thi.ng/poisson@1.1.45) (2021-07-27) **Note:** Version bump only for package @thi.ng/poisson diff --git a/packages/poisson/package.json b/packages/poisson/package.json index 9caf295f58..6a31eecd57 100644 --- a/packages/poisson/package.json +++ b/packages/poisson/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/poisson", - "version": "1.1.45", + "version": "1.1.46", "description": "nD Stratified grid and Poisson-disc sampling w/ support for spatial density functions and custom PRNGs", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-api": "^2.0.23", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/geom-api": "^2.0.24", + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/porter-duff/CHANGELOG.md b/packages/porter-duff/CHANGELOG.md index 1c2646047c..66ee1c6340 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.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.48...@thi.ng/porter-duff@0.1.49) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/porter-duff + + + + + ## [0.1.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.47...@thi.ng/porter-duff@0.1.48) (2021-07-01) **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 5f6d0d3f5b..85d57e06db 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.48", + "version": "0.1.49", "description": "Porter-Duff operators for packed ints & float-array alpha compositing", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/math": "^4.0.2" + "@thi.ng/api": "^7.1.7", + "@thi.ng/math": "^4.0.3" }, "files": [ "*.js", diff --git a/packages/ramp/CHANGELOG.md b/packages/ramp/CHANGELOG.md index 7ab4386150..a4b051fe22 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.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.63...@thi.ng/ramp@0.1.64) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/ramp + + + + + ## [0.1.63](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.62...@thi.ng/ramp@0.1.63) (2021-07-27) **Note:** Version bump only for package @thi.ng/ramp diff --git a/packages/ramp/package.json b/packages/ramp/package.json index fefd032705..13c2cde8c3 100644 --- a/packages/ramp/package.json +++ b/packages/ramp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ramp", - "version": "0.1.63", + "version": "0.1.64", "description": "Parametric interpolated 1D lookup tables for remapping values", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/arrays": "^0.10.13", - "@thi.ng/compare": "^1.3.30", - "@thi.ng/math": "^4.0.2", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/arrays": "^0.10.14", + "@thi.ng/compare": "^1.3.31", + "@thi.ng/math": "^4.0.3", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/random/CHANGELOG.md b/packages/random/CHANGELOG.md index 3ecc677f87..925a7e59ce 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.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.4.2...@thi.ng/random@2.4.3) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/random + + + + + ## [2.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@2.4.1...@thi.ng/random@2.4.2) (2021-07-01) **Note:** Version bump only for package @thi.ng/random diff --git a/packages/random/package.json b/packages/random/package.json index e42ea7fd3e..8b2109296d 100644 --- a/packages/random/package.json +++ b/packages/random/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/random", - "version": "2.4.2", + "version": "2.4.3", "description": "Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/hex": "^0.2.7" }, diff --git a/packages/range-coder/CHANGELOG.md b/packages/range-coder/CHANGELOG.md index ac89a55936..5a2eb8e690 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.86](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.85...@thi.ng/range-coder@1.0.86) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/range-coder + + + + + ## [1.0.85](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.84...@thi.ng/range-coder@1.0.85) (2021-07-27) **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 b7d4e1d08a..d85db1de28 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.85", + "version": "1.0.86", "description": "Binary data range encoder / decoder", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "devDependencies": { - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "dependencies": { "@thi.ng/bitstream": "^1.1.40" diff --git a/packages/rdom-canvas/CHANGELOG.md b/packages/rdom-canvas/CHANGELOG.md index 407426435e..263fc641db 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.51](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.50...@thi.ng/rdom-canvas@0.1.51) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rdom-canvas + + + + + ## [0.1.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-canvas@0.1.49...@thi.ng/rdom-canvas@0.1.50) (2021-07-27) **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 fa485e4593..e998e4ef1c 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.50", + "version": "0.1.51", "description": "@thi.ng/rdom component wrapper for @thi.ng/hiccup-canvas and declarative canvas drawing", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ }, "dependencies": { "@thi.ng/adapt-dpi": "^1.0.21", - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/hiccup-canvas": "^1.2.7", - "@thi.ng/rdom": "^0.5.0", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/hiccup-canvas": "^1.2.8", + "@thi.ng/rdom": "^0.6.0", + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rdom-components/CHANGELOG.md b/packages/rdom-components/CHANGELOG.md index dcf647ff00..3ddedb0aef 100644 --- a/packages/rdom-components/CHANGELOG.md +++ b/packages/rdom-components/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.46...@thi.ng/rdom-components@0.2.0) (2021-08-04) + + +### Features + +* **rdom-components:** add input components ([fb390c1](https://github.com/thi-ng/umbrella/commit/fb390c1c30d0224a20526eacae7df7d092709518)) +* **rdom-components:** add staticRadio() component ([ff3d1c4](https://github.com/thi-ng/umbrella/commit/ff3d1c4495191de814427e36b8ac7ff744fc98c2)) + + + + + ## [0.1.46](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom-components@0.1.45...@thi.ng/rdom-components@0.1.46) (2021-07-27) **Note:** Version bump only for package @thi.ng/rdom-components diff --git a/packages/rdom-components/README.md b/packages/rdom-components/README.md index abf7e9c3c4..427a33039f 100644 --- a/packages/rdom-components/README.md +++ b/packages/rdom-components/README.md @@ -50,7 +50,7 @@ yarn add @thi.ng/rdom-components ``` -Package sizes (gzipped, pre-treeshake): ESM: 929 bytes / CJS: 1007 bytes / UMD: 1.09 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.16 KB / CJS: 1.24 KB / UMD: 1.31 KB ## Dependencies diff --git a/packages/rdom-components/package.json b/packages/rdom-components/package.json index 945ed8f6b3..598aee643a 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.46", + "version": "0.2.0", "description": "Collection of unstyled, customizable components for @thi.ng/rdom", "module": "./index.js", "main": "./lib/index.js", @@ -37,13 +37,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", - "@thi.ng/hiccup-html": "^0.3.19", - "@thi.ng/rdom": "^0.5.0", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", + "@thi.ng/hiccup-html": "^0.3.20", + "@thi.ng/rdom": "^0.6.0", + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rdom-components/src/accordion.ts b/packages/rdom-components/src/accordion.ts index dad7c1e034..028bb87889 100644 --- a/packages/rdom-components/src/accordion.ts +++ b/packages/rdom-components/src/accordion.ts @@ -1,7 +1,7 @@ import type { Fn, Fn4 } from "@thi.ng/api"; import { Attribs, div, section } from "@thi.ng/hiccup-html"; import { $list, $promise, ComponentLike } from "@thi.ng/rdom"; -import type { Subscription } from "@thi.ng/rstream"; +import type { ISubscription } from "@thi.ng/rstream"; import { dedupe, map, range } from "@thi.ng/transducers"; export interface AccordionOpts { @@ -12,7 +12,7 @@ export interface AccordionOpts { content?: Partial; }; head: Fn4< - Subscription, + ISubscription, string, number, boolean, @@ -26,7 +26,7 @@ export interface AccordionOpts { } export const accordion = ( - src: Subscription, + src: ISubscription, { attribs, head, sections, error }: AccordionOpts ) => { return $list( diff --git a/packages/rdom-components/src/dropdown.ts b/packages/rdom-components/src/dropdown.ts index 1c807c982a..c486631b00 100644 --- a/packages/rdom-components/src/dropdown.ts +++ b/packages/rdom-components/src/dropdown.ts @@ -43,10 +43,12 @@ export const staticDropdown = ( ); }; -const $option = ( - sel: Subscription, - { label, value }: DropdownOpts -) => (x: T) => { - let v = value(x); - return option({ value: v, selected: v === sel.deref() }, label(x)); -}; +const $option = + (sel: Subscription, { label, value }: DropdownOpts) => + (x: T) => { + let v = value(x); + return option( + { value: v, selected: sel.map((x) => v === x) }, + label(x) + ); + }; diff --git a/packages/rdom-components/src/index.ts b/packages/rdom-components/src/index.ts index 4b75abe0e3..7706a87488 100644 --- a/packages/rdom-components/src/index.ts +++ b/packages/rdom-components/src/index.ts @@ -1,5 +1,7 @@ export * from "./accordion"; export * from "./dropdown"; -export * from "./icon-button"; export * from "./editor"; +export * from "./icon-button"; +export * from "./input"; +export * from "./radio"; export * from "./tabs"; diff --git a/packages/rdom-components/src/input.ts b/packages/rdom-components/src/input.ts new file mode 100644 index 0000000000..571baf10ed --- /dev/null +++ b/packages/rdom-components/src/input.ts @@ -0,0 +1,47 @@ +import type { NumericArray } from "@thi.ng/api"; +import { + Attribs, + div, + inputNumber, + InputNumericAttribs, +} from "@thi.ng/hiccup-html"; +import { $inputNum } from "@thi.ng/rdom"; +import type { ISubscription } from "@thi.ng/rstream"; +import { pluck, repeatedly } from "@thi.ng/transducers"; + +export const inputNumeric = ( + dest: ISubscription, + attribs?: Partial +) => + inputNumber({ + ...attribs, + value: dest, + oninput: $inputNum(dest), + }); + +export const inputVector = ( + dim: number, + dest: ISubscription, + outerAttribs: Partial = {}, + innerAttribs?: Partial +) => + div( + outerAttribs, + ...repeatedly((i) => inputVectorCoord(dim, i, dest, innerAttribs), dim) + ); + +export const inputVectorCoord = ( + dim: number, + i: number, + dest: ISubscription, + attribs?: Partial +) => + inputNumber({ + ...attribs, + value: dest.transform(pluck(i)), + oninput: (e: InputEvent) => { + const vec = (dest.deref() || new Array(dim).fill(0)).slice(); + vec[i] = parseFloat((e.target).value); + dest.next(vec); + }, + }); diff --git a/packages/rdom-components/src/radio.ts b/packages/rdom-components/src/radio.ts new file mode 100644 index 0000000000..b59414bd06 --- /dev/null +++ b/packages/rdom-components/src/radio.ts @@ -0,0 +1,40 @@ +import type { Fn, Fn2 } from "@thi.ng/api"; +import { div, InputRadioAttribs, label, radio } from "@thi.ng/hiccup-html"; +import { $input, ComponentLike } from "@thi.ng/rdom"; +import type { ISubscription } from "@thi.ng/rstream"; + +export interface RadioOpts { + attribs: Partial; + label: Fn2; + value: Fn; +} + +export const staticRadio = ( + items: T[], + sel: ISubscription, + opts?: Partial> +) => { + opts = { + label: (x, radio) => label({ for: String(x) }, String(x), radio), + value: String, + ...opts, + }; + return div( + { ...opts.attribs }, + ...items.map($radio(sel, >>opts)) + ); +}; + +const $radio = + (sel: ISubscription, opts: RadioOpts) => + (x: T) => { + let v = opts.value(x); + return opts.label( + x, + radio({ + value: v, + checked: sel.map((x) => v === x), + onchange: $input(sel), + }) + ); + }; diff --git a/packages/rdom-components/src/tabs.ts b/packages/rdom-components/src/tabs.ts index 3b2cf8d18a..6a63dcd116 100644 --- a/packages/rdom-components/src/tabs.ts +++ b/packages/rdom-components/src/tabs.ts @@ -1,7 +1,7 @@ import type { Fn, Fn4 } from "@thi.ng/api"; import { Attribs, div, section } from "@thi.ng/hiccup-html"; import { $list, $switch, ComponentLike } from "@thi.ng/rdom"; -import type { Subscription } from "@thi.ng/rstream"; +import type { ISubscription } from "@thi.ng/rstream"; import { dedupe, map, range } from "@thi.ng/transducers"; export interface TabOpts { @@ -11,7 +11,7 @@ export interface TabOpts { content: Partial; }>; head: Fn4< - Subscription, + ISubscription, string, number, boolean, @@ -23,7 +23,7 @@ export interface TabOpts { }[]; } -export const tabs = (src: Subscription, opts: TabOpts) => { +export const tabs = (src: ISubscription, opts: TabOpts) => { const { attribs, head, sections } = { attribs: {}, ...opts }; return div( attribs!.wrapper, diff --git a/packages/rdom/CHANGELOG.md b/packages/rdom/CHANGELOG.md index 265b1649e3..c1789df20c 100644 --- a/packages/rdom/CHANGELOG.md +++ b/packages/rdom/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.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.5.0...@thi.ng/rdom@0.6.0) (2021-08-04) + + +### Features + +* **rdom:** add $inputFile/Files() handlers ([7f8888b](https://github.com/thi-ng/umbrella/commit/7f8888b0f0857aa9abde8ca6ea666a6f37bb64f2)) + + + + + # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rdom@0.4.17...@thi.ng/rdom@0.5.0) (2021-07-27) diff --git a/packages/rdom/README.md b/packages/rdom/README.md index a11c08ddcc..bc8edebb14 100644 --- a/packages/rdom/README.md +++ b/packages/rdom/README.md @@ -155,7 +155,7 @@ yarn add @thi.ng/rdom ``` -Package sizes (gzipped, pre-treeshake): ESM: 3.80 KB / CJS: 3.96 KB / UMD: 3.92 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.83 KB / CJS: 3.99 KB / UMD: 3.94 KB ## Dependencies diff --git a/packages/rdom/package.json b/packages/rdom/package.json index a34cc3acf7..fcfef06053 100644 --- a/packages/rdom/package.json +++ b/packages/rdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rdom", - "version": "0.5.0", + "version": "0.6.0", "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ "pub:wip": "yarn publish --access public --no-git-tag-version" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/hiccup": "^3.6.17", - "@thi.ng/paths": "^4.2.9", + "@thi.ng/hiccup": "^3.6.18", + "@thi.ng/paths": "^4.2.10", "@thi.ng/prefixes": "^0.1.19", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/strings": "^2.1.2" + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/strings": "^2.1.3" }, "files": [ "*.js", diff --git a/packages/rdom/src/event.ts b/packages/rdom/src/event.ts index b57be275b6..387d5d797a 100644 --- a/packages/rdom/src/event.ts +++ b/packages/rdom/src/event.ts @@ -26,9 +26,10 @@ export const $input = (stream: ISubscriber) => (e: Event) => * @param stream - * @param fallback - */ -export const $inputNum = (stream: ISubscriber, fallback = 0) => ( - e: Event -) => stream.next(maybeParseFloat((e.target).value, fallback)); +export const $inputNum = + (stream: ISubscriber, fallback = 0) => + (e: Event) => + stream.next(maybeParseFloat((e.target).value, fallback)); /** * HOF DOM event listener to emit a checkbox input's value on given stream. @@ -46,3 +47,21 @@ export const $inputCheckbox = (stream: ISubscriber) => (e: Event) => */ export const $inputTrigger = (stream: ISubscriber) => () => stream.next(true); + +/** + * HOF DOM event listener to emit a file input's first selected file on given + * stream. + * + * @param stream + */ +export const $inputFile = (stream: ISubscriber) => (e: Event) => + stream.next((e.target).files![0]); + +/** + * HOF DOM event listener to emit a file input's entire selected list of files + * on given stream. + * + * @param stream + */ +export const $inputFiles = (stream: ISubscriber) => (e: Event) => + stream.next((e.target).files!); diff --git a/packages/resolve-map/CHANGELOG.md b/packages/resolve-map/CHANGELOG.md index ade8b5f612..d6268c994b 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.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.22...@thi.ng/resolve-map@4.2.23) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/resolve-map + + + + + ## [4.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.2.21...@thi.ng/resolve-map@4.2.22) (2021-07-01) **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 464e81a8cb..ad54af1786 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.22", + "version": "4.2.23", "description": "DAG resolution of vanilla objects & arrays with internally linked values", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/paths": "^4.2.9" + "@thi.ng/paths": "^4.2.10" }, "files": [ "*.js", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 4bfd8ed766..1101a6756e 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.50](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.49...@thi.ng/router@2.0.50) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/router + + + + + ## [2.0.49](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.48...@thi.ng/router@2.0.49) (2021-07-01) **Note:** Version bump only for package @thi.ng/router diff --git a/packages/router/package.json b/packages/router/package.json index f9a4b338d4..8aa923f392 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/router", - "version": "2.0.49", + "version": "2.0.50", "description": "Generic router for browser & non-browser based applications", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", diff --git a/packages/rstream-csp/CHANGELOG.md b/packages/rstream-csp/CHANGELOG.md index 33210bc29e..7c5b0b39c8 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.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.70...@thi.ng/rstream-csp@2.0.71) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-csp + + + + + ## [2.0.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.69...@thi.ng/rstream-csp@2.0.70) (2021-07-27) **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 d5263af50b..ea8703f5b0 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.70", + "version": "2.0.71", "description": "@thi.ng/csp bridge module for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/csp": "^1.1.66", - "@thi.ng/rstream": "^6.0.11" + "@thi.ng/csp": "^1.1.67", + "@thi.ng/rstream": "^6.0.12" }, "files": [ "*.js", diff --git a/packages/rstream-dot/CHANGELOG.md b/packages/rstream-dot/CHANGELOG.md index 271f7b0da6..b7ec2ff37f 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.2.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.2.19...@thi.ng/rstream-dot@1.2.20) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-dot + + + + + ## [1.2.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.2.18...@thi.ng/rstream-dot@1.2.19) (2021-07-27) **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 2e1ca16257..ddbfc126c6 100644 --- a/packages/rstream-dot/package.json +++ b/packages/rstream-dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-dot", - "version": "1.2.19", + "version": "1.2.20", "description": "Graphviz DOT conversion of @thi.ng/rstream dataflow graph topologies", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rstream-gestures/CHANGELOG.md b/packages/rstream-gestures/CHANGELOG.md index 8a34e39d73..6fbd6fa81e 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.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@3.0.24...@thi.ng/rstream-gestures@3.0.25) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-gestures + + + + + ## [3.0.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@3.0.23...@thi.ng/rstream-gestures@3.0.24) (2021-07-27) **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 4198f8e041..b4f26d696e 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.24", + "version": "3.0.25", "description": "Unified mouse, mouse wheel & multi-touch event stream abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/math": "^4.0.2", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/math": "^4.0.3", + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rstream-graph/CHANGELOG.md b/packages/rstream-graph/CHANGELOG.md index ab7b8e6a39..481f54d0ad 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.72](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.71...@thi.ng/rstream-graph@3.2.72) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-graph + + + + + ## [3.2.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.70...@thi.ng/rstream-graph@3.2.71) (2021-07-27) **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 d792332029..fea12b7bbe 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.71", + "version": "3.2.72", "description": "Declarative dataflow graph construction for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/atom": "^4.1.37", + "@thi.ng/api": "^7.1.7", + "@thi.ng/atom": "^4.1.38", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/paths": "^4.2.9", - "@thi.ng/resolve-map": "^4.2.22", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/paths": "^4.2.10", + "@thi.ng/resolve-map": "^4.2.23", + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rstream-log-file/CHANGELOG.md b/packages/rstream-log-file/CHANGELOG.md index 9e22e4fb9d..21681f25dc 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.93](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.92...@thi.ng/rstream-log-file@0.1.93) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-log-file + + + + + ## [0.1.92](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.91...@thi.ng/rstream-log-file@0.1.92) (2021-07-27) **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 e737d69084..b4d26966f7 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.92", + "version": "0.1.93", "description": "File output handler for structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/rstream": "^6.0.11" + "@thi.ng/rstream": "^6.0.12" }, "files": [ "*.js", diff --git a/packages/rstream-log/CHANGELOG.md b/packages/rstream-log/CHANGELOG.md index 9d5b93be09..99052ab196 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.2.24](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.2.23...@thi.ng/rstream-log@3.2.24) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-log + + + + + ## [3.2.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.2.22...@thi.ng/rstream-log@3.2.23) (2021-07-27) **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 91cf96447d..5c106d5d72 100644 --- a/packages/rstream-log/package.json +++ b/packages/rstream-log/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-log", - "version": "3.2.23", + "version": "3.2.24", "description": "Structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rstream-query/CHANGELOG.md b/packages/rstream-query/CHANGELOG.md index 4e685719b6..4b65b112a8 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.80](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.79...@thi.ng/rstream-query@1.1.80) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream-query + + + + + ## [1.1.79](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.78...@thi.ng/rstream-query@1.1.79) (2021-07-27) **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 2d19aff71a..edf0366c0a 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.79", + "version": "1.1.80", "description": "@thi.ng/rstream based triple store & reactive query engine", "module": "./index.js", "main": "./lib/index.js", @@ -38,15 +38,15 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", "@thi.ng/checks": "^2.9.8", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/rstream": "^6.0.11", - "@thi.ng/rstream-dot": "^1.2.19", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/math": "^4.0.3", + "@thi.ng/rstream": "^6.0.12", + "@thi.ng/rstream-dot": "^1.2.20", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/rstream/CHANGELOG.md b/packages/rstream/CHANGELOG.md index a0c95f83b7..d64ae5887a 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. +## [6.0.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@6.0.11...@thi.ng/rstream@6.0.12) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/rstream + + + + + ## [6.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@6.0.10...@thi.ng/rstream@6.0.11) (2021-07-27) **Note:** Version bump only for package @thi.ng/rstream diff --git a/packages/rstream/package.json b/packages/rstream/package.json index 655243927e..9d5bfec2ab 100644 --- a/packages/rstream/package.json +++ b/packages/rstream/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream", - "version": "6.0.11", + "version": "6.0.12", "description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines", "module": "./index.js", "main": "./lib/index.js", @@ -38,13 +38,13 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", - "@thi.ng/associative": "^5.2.7", - "@thi.ng/atom": "^4.1.37", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", + "@thi.ng/associative": "^5.2.8", + "@thi.ng/atom": "^4.1.38", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/sax/CHANGELOG.md b/packages/sax/CHANGELOG.md index 20c3289082..44e4d2d45b 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.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.65...@thi.ng/sax@1.1.66) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/sax + + + + + ## [1.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.64...@thi.ng/sax@1.1.65) (2021-07-27) **Note:** Version bump only for package @thi.ng/sax diff --git a/packages/sax/package.json b/packages/sax/package.json index 01787c6708..9cd08ce7c1 100644 --- a/packages/sax/package.json +++ b/packages/sax/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sax", - "version": "1.1.65", + "version": "1.1.66", "description": "Transducer-based, SAX-like, non-validating, speedy & tiny XML parser", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/transducers-fsm": "^1.1.65" + "@thi.ng/api": "^7.1.7", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/transducers-fsm": "^1.1.66" }, "files": [ "*.js", diff --git a/packages/scenegraph/CHANGELOG.md b/packages/scenegraph/CHANGELOG.md index a5c4cd8cac..63b120b0b9 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.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.35...@thi.ng/scenegraph@0.3.36) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/scenegraph + + + + + ## [0.3.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.3.34...@thi.ng/scenegraph@0.3.35) (2021-07-27) **Note:** Version bump only for package @thi.ng/scenegraph diff --git a/packages/scenegraph/package.json b/packages/scenegraph/package.json index cca7c1d86b..33251256ed 100644 --- a/packages/scenegraph/package.json +++ b/packages/scenegraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/scenegraph", - "version": "0.3.35", + "version": "0.3.36", "description": "Extensible 2D/3D scene graph with @thi.ng/hiccup-canvas support", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/matrices": "^0.6.61", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/matrices": "^0.6.62", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/seq/CHANGELOG.md b/packages/seq/CHANGELOG.md index a140104125..cc7c64a33b 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.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.39...@thi.ng/seq@0.2.40) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/seq + + + + + ## [0.2.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.38...@thi.ng/seq@0.2.39) (2021-07-01) **Note:** Version bump only for package @thi.ng/seq diff --git a/packages/seq/package.json b/packages/seq/package.json index 66998f27ac..707ec0b93c 100644 --- a/packages/seq/package.json +++ b/packages/seq/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/seq", - "version": "0.2.39", + "version": "0.2.40", "description": "Various implementations of the @thi.ng/api `ISeq` interface / sequence abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8" }, "files": [ diff --git a/packages/sexpr/CHANGELOG.md b/packages/sexpr/CHANGELOG.md index 25424ae3e1..3184967328 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.44](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.43...@thi.ng/sexpr@0.2.44) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/sexpr + + + + + ## [0.2.43](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.42...@thi.ng/sexpr@0.2.43) (2021-07-01) **Note:** Version bump only for package @thi.ng/sexpr diff --git a/packages/sexpr/package.json b/packages/sexpr/package.json index e03e021c5c..0c8332d0f6 100644 --- a/packages/sexpr/package.json +++ b/packages/sexpr/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sexpr", - "version": "0.2.43", + "version": "0.2.44", "description": "Extensible S-Expression parser & runtime infrastructure", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13" + "@thi.ng/defmulti": "^1.3.14" }, "files": [ "*.js", diff --git a/packages/shader-ast-glsl/CHANGELOG.md b/packages/shader-ast-glsl/CHANGELOG.md index 3ba8b75fa4..8cf09c8305 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.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.38...@thi.ng/shader-ast-glsl@0.2.39) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/shader-ast-glsl + + + + + ## [0.2.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.2.37...@thi.ng/shader-ast-glsl@0.2.38) (2021-07-27) **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 a56d7bec02..200615a287 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.38", + "version": "0.2.39", "description": "Customizable GLSL codegen for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/shader-ast": "^0.8.16" + "@thi.ng/shader-ast": "^0.8.17" }, "files": [ "*.js", diff --git a/packages/shader-ast-js/CHANGELOG.md b/packages/shader-ast-js/CHANGELOG.md index 7d5d25908e..439fa6758f 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.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.39...@thi.ng/shader-ast-js@0.5.40) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/shader-ast-js + + + + + ## [0.5.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.5.38...@thi.ng/shader-ast-js@0.5.39) (2021-07-27) **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 fde4098dc0..0c24f2bdad 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.39", + "version": "0.5.40", "description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/matrices": "^0.6.61", - "@thi.ng/pixel": "^0.10.5", - "@thi.ng/shader-ast": "^0.8.16", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/math": "^4.0.3", + "@thi.ng/matrices": "^0.6.62", + "@thi.ng/pixel": "^0.11.0", + "@thi.ng/shader-ast": "^0.8.17", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/shader-ast-stdlib/CHANGELOG.md b/packages/shader-ast-stdlib/CHANGELOG.md index ddc2bdc8c5..cbd03ec0c1 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.6.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.6.3...@thi.ng/shader-ast-stdlib@0.6.4) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/shader-ast-stdlib + + + + + ## [0.6.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.6.2...@thi.ng/shader-ast-stdlib@0.6.3) (2021-07-27) **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 7a81e79be7..6c8550f8d2 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.6.3", + "version": "0.6.4", "description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/shader-ast": "^0.8.16" + "@thi.ng/api": "^7.1.7", + "@thi.ng/shader-ast": "^0.8.17" }, "files": [ "*.js", diff --git a/packages/shader-ast/CHANGELOG.md b/packages/shader-ast/CHANGELOG.md index b1f0dbffe1..18ac79d480 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.8.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.8.16...@thi.ng/shader-ast@0.8.17) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/shader-ast + + + + + ## [0.8.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.8.15...@thi.ng/shader-ast@0.8.16) (2021-07-27) **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 5d4377eac1..e8162caf72 100644 --- a/packages/shader-ast/package.json +++ b/packages/shader-ast/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/shader-ast", - "version": "0.8.16", + "version": "0.8.17", "description": "DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/defmulti": "^1.3.13", - "@thi.ng/dgraph": "^1.3.26", + "@thi.ng/defmulti": "^1.3.14", + "@thi.ng/dgraph": "^1.3.27", "@thi.ng/errors": "^1.3.2" }, "files": [ diff --git a/packages/simd/CHANGELOG.md b/packages/simd/CHANGELOG.md index b49e4a71df..214410c284 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.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.33...@thi.ng/simd@0.4.34) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/simd + + + + + ## [0.4.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.4.32...@thi.ng/simd@0.4.33) (2021-07-27) **Note:** Version bump only for package @thi.ng/simd diff --git a/packages/simd/package.json b/packages/simd/package.json index 61f771292f..6aeb6849f7 100644 --- a/packages/simd/package.json +++ b/packages/simd/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/simd", - "version": "0.4.33", + "version": "0.4.34", "description": "WASM based SIMD vector operations for batch processing", "module": "./index.js", "main": "./lib/index.js", @@ -43,7 +43,7 @@ "assemblyscript": "0.19.8" }, "dependencies": { - "@thi.ng/transducers-binary": "^0.6.22" + "@thi.ng/transducers-binary": "^0.6.23" }, "files": [ "*.js", diff --git a/packages/soa/CHANGELOG.md b/packages/soa/CHANGELOG.md index f54e8c472a..821752e975 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.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.2.17...@thi.ng/soa@0.2.18) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/soa + + + + + ## [0.2.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.2.16...@thi.ng/soa@0.2.17) (2021-07-27) **Note:** Version bump only for package @thi.ng/soa diff --git a/packages/soa/package.json b/packages/soa/package.json index 28402056fd..17dc801667 100644 --- a/packages/soa/package.json +++ b/packages/soa/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/soa", - "version": "0.2.17", + "version": "0.2.18", "description": "SOA & AOS memory mapped structured views with optional & extensible serialization", "module": "./index.js", "main": "./lib/index.js", @@ -41,11 +41,11 @@ "@thi.ng/equiv": "^1.0.43" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers-binary": "^0.6.22", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/transducers-binary": "^0.6.23", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/sparse/CHANGELOG.md b/packages/sparse/CHANGELOG.md index 56fb87eb6e..e0a874e397 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.82](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.81...@thi.ng/sparse@0.1.82) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/sparse + + + + + ## [0.1.81](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.80...@thi.ng/sparse@0.1.81) (2021-07-27) **Note:** Version bump only for package @thi.ng/sparse diff --git a/packages/sparse/package.json b/packages/sparse/package.json index ee6ab390af..e3c29ee468 100644 --- a/packages/sparse/package.json +++ b/packages/sparse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sparse", - "version": "0.1.81", + "version": "0.1.82", "description": "Sparse vector & matrix implementations", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/strings/CHANGELOG.md b/packages/strings/CHANGELOG.md index 5ed5ae8746..563be0816b 100644 --- a/packages/strings/CHANGELOG.md +++ b/packages/strings/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.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@2.1.2...@thi.ng/strings@2.1.3) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/strings + + + + + ## [2.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@2.1.1...@thi.ng/strings@2.1.2) (2021-07-01) **Note:** Version bump only for package @thi.ng/strings diff --git a/packages/strings/package.json b/packages/strings/package.json index 25d5a3feb7..bc129d31be 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/strings", - "version": "2.1.2", + "version": "2.1.3", "description": "Various string formatting & utility functions", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/errors": "^1.3.2", "@thi.ng/hex": "^0.2.7", - "@thi.ng/memoize": "^2.1.16" + "@thi.ng/memoize": "^2.1.17" }, "files": [ "*.js", diff --git a/packages/system/CHANGELOG.md b/packages/system/CHANGELOG.md index bee44cffc9..6f0d189cc0 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.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.3.7...@thi.ng/system@0.3.8) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/system + + + + + ## [0.3.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.3.6...@thi.ng/system@0.3.7) (2021-07-27) **Note:** Version bump only for package @thi.ng/system diff --git a/packages/system/package.json b/packages/system/package.json index 1c9e8d14e1..09ee076000 100644 --- a/packages/system/package.json +++ b/packages/system/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/system", - "version": "0.3.7", + "version": "0.3.8", "description": "Minimal and explicit dependency-injection & lifecycle container for stateful app components", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/dgraph": "^1.3.26" + "@thi.ng/api": "^7.1.7", + "@thi.ng/dgraph": "^1.3.27" }, "files": [ "*.js", diff --git a/packages/text-canvas/CHANGELOG.md b/packages/text-canvas/CHANGELOG.md index 09dad33808..ea83765b1b 100644 --- a/packages/text-canvas/CHANGELOG.md +++ b/packages/text-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.7.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.7.11...@thi.ng/text-canvas@0.7.12) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/text-canvas + + + + + ## [0.7.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.7.10...@thi.ng/text-canvas@0.7.11) (2021-07-27) **Note:** Version bump only for package @thi.ng/text-canvas diff --git a/packages/text-canvas/package.json b/packages/text-canvas/package.json index 17d4a4f6a7..fde871e943 100644 --- a/packages/text-canvas/package.json +++ b/packages/text-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/text-canvas", - "version": "0.7.11", + "version": "0.7.12", "description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", - "@thi.ng/geom-clip-line": "^1.2.37", - "@thi.ng/math": "^4.0.2", - "@thi.ng/memoize": "^2.1.16", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/geom-clip-line": "^1.2.38", + "@thi.ng/math": "^4.0.3", + "@thi.ng/memoize": "^2.1.17", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/transducers-binary/CHANGELOG.md b/packages/transducers-binary/CHANGELOG.md index 7ca2ecbd10..535e100158 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.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.6.22...@thi.ng/transducers-binary@0.6.23) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/transducers-binary + + + + + ## [0.6.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.6.21...@thi.ng/transducers-binary@0.6.22) (2021-07-27) **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 5f22d709d7..d3b387876e 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.22", + "version": "0.6.23", "description": "Binary data related transducers & reducers", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/binary": "^2.2.6", - "@thi.ng/compose": "^1.4.32", + "@thi.ng/binary": "^2.2.7", + "@thi.ng/compose": "^1.4.33", "@thi.ng/errors": "^1.3.2", "@thi.ng/hex": "^0.2.7", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/transducers-fsm/CHANGELOG.md b/packages/transducers-fsm/CHANGELOG.md index 295d604382..1842ffd08e 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.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.65...@thi.ng/transducers-fsm@1.1.66) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/transducers-fsm + + + + + ## [1.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.64...@thi.ng/transducers-fsm@1.1.65) (2021-07-27) **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 54fc067b76..dfb01957b2 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.65", + "version": "1.1.66", "description": "Transducer-based Finite State Machine transformer", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/api": "^7.1.7", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/transducers-hdom/CHANGELOG.md b/packages/transducers-hdom/CHANGELOG.md index 906072579c..eed68bee29 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.98](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.97...@thi.ng/transducers-hdom@2.0.98) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/transducers-hdom + + + + + ## [2.0.97](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.96...@thi.ng/transducers-hdom@2.0.97) (2021-07-27) **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 d926d1c3bb..3dd350f595 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.97", + "version": "2.0.98", "description": "Transducer based UI updater for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -38,9 +38,9 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/hdom": "^8.2.27", - "@thi.ng/hiccup": "^3.6.17", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/hdom": "^8.2.28", + "@thi.ng/hiccup": "^3.6.18", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/transducers-patch/CHANGELOG.md b/packages/transducers-patch/CHANGELOG.md index ef7f5036c3..a7ab7daeed 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.23](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.2.22...@thi.ng/transducers-patch@0.2.23) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/transducers-patch + + + + + ## [0.2.22](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.2.21...@thi.ng/transducers-patch@0.2.22) (2021-07-27) **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 e74b376301..e4b399e64b 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.22", + "version": "0.2.23", "description": "Reducers for patch-based, immutable-by-default array & object editing", "module": "./index.js", "main": "./lib/index.js", @@ -38,11 +38,11 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", + "@thi.ng/api": "^7.1.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/errors": "^1.3.2", - "@thi.ng/paths": "^4.2.9", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/paths": "^4.2.10", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/transducers-stats/CHANGELOG.md b/packages/transducers-stats/CHANGELOG.md index 973bf91ed4..35cff51319 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.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.66...@thi.ng/transducers-stats@1.1.67) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/transducers-stats + + + + + ## [1.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.65...@thi.ng/transducers-stats@1.1.66) (2021-07-27) **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 56fda43c1b..d188f447bb 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.66", + "version": "1.1.67", "description": "Transducers for statistical / technical analysis", "module": "./index.js", "main": "./lib/index.js", @@ -39,9 +39,9 @@ }, "dependencies": { "@thi.ng/checks": "^2.9.8", - "@thi.ng/dcons": "^2.3.26", + "@thi.ng/dcons": "^2.3.27", "@thi.ng/errors": "^1.3.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/transducers/CHANGELOG.md b/packages/transducers/CHANGELOG.md index da94a3b3f9..dbab7c6c65 100644 --- a/packages/transducers/CHANGELOG.md +++ b/packages/transducers/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [7.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.7.5...@thi.ng/transducers@7.8.0) (2021-08-04) + + +### Features + +* **transducers:** add minMax() reducer ([5f8a722](https://github.com/thi-ng/umbrella/commit/5f8a72215010645cce039cedab3313fae722e363)) +* **transducers:** update repeatedly(), iterate() ([b7d9ba4](https://github.com/thi-ng/umbrella/commit/b7d9ba42b812c3b39909e86be5eebfa4e235f535)) + + + + + ## [7.7.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@7.7.4...@thi.ng/transducers@7.7.5) (2021-07-27) **Note:** Version bump only for package @thi.ng/transducers diff --git a/packages/transducers/README.md b/packages/transducers/README.md index 809de5a1c9..a2b40b3a6a 100644 --- a/packages/transducers/README.md +++ b/packages/transducers/README.md @@ -169,7 +169,7 @@ yarn add @thi.ng/transducers ``` -Package sizes (gzipped, pre-treeshake): ESM: 8.40 KB / CJS: 8.96 KB / UMD: 8.14 KB +Package sizes (gzipped, pre-treeshake): ESM: 8.44 KB / CJS: 9.00 KB / UMD: 8.18 KB ## Dependencies @@ -963,6 +963,7 @@ and return a reduced result (as if it would be called via `reduce()`). - [min](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min.ts) - [minCompare](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min-compare.ts) - [minMag](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min-mag.ts) +- [minMax](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min-max.ts) - [mul](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/mul.ts) - [push](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/push.ts) - [pushCopy](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/push-copy.ts) diff --git a/packages/transducers/package.json b/packages/transducers/package.json index beac5c244f..24473c0b09 100644 --- a/packages/transducers/package.json +++ b/packages/transducers/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers", - "version": "7.7.5", + "version": "7.8.0", "description": "Lightweight transducer implementations for ES6 / TypeScript", "module": "./index.js", "main": "./lib/index.js", @@ -38,14 +38,14 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8", - "@thi.ng/compare": "^1.3.30", - "@thi.ng/compose": "^1.4.32", + "@thi.ng/compare": "^1.3.31", + "@thi.ng/compose": "^1.4.33", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/random": "^2.4.2" + "@thi.ng/math": "^4.0.3", + "@thi.ng/random": "^2.4.3" }, "files": [ "*.js", diff --git a/packages/transducers/src/index.ts b/packages/transducers/src/index.ts index 6dedbe216c..be54bcce4f 100644 --- a/packages/transducers/src/index.ts +++ b/packages/transducers/src/index.ts @@ -27,6 +27,7 @@ export * from "./rfn/mean"; export * from "./rfn/min"; export * from "./rfn/min-compare"; export * from "./rfn/min-mag"; +export * from "./rfn/min-max"; export * from "./rfn/mul"; export * from "./rfn/push"; export * from "./rfn/push-copy"; diff --git a/packages/transducers/src/iter/iterate.ts b/packages/transducers/src/iter/iterate.ts index a5f1476e14..28245aeaf9 100644 --- a/packages/transducers/src/iter/iterate.ts +++ b/packages/transducers/src/iter/iterate.ts @@ -7,8 +7,8 @@ import type { Fn2 } from "@thi.ng/api"; * * @remarks * The first value emitted always is `seed` itself, then f(seed), - * f(f(seed)) etc. The given function is called with the current - * iteration counter as 2nd arg. + * f(f(seed, i)) etc. The given function is called with the current + * iteration counter as 2nd arg (starting w/ i=1). * * @example * ```ts @@ -28,9 +28,8 @@ export function* iterate( seed: T, num = Infinity ): IterableIterator { - let i = 0; - while (i < num) { + for (let i = 1; i <= num; i++) { yield seed; - seed = fn(seed, ++i); + seed = fn(seed, i); } } diff --git a/packages/transducers/src/iter/repeatedly.ts b/packages/transducers/src/iter/repeatedly.ts index 0d4b079df5..6875d769ff 100644 --- a/packages/transducers/src/iter/repeatedly.ts +++ b/packages/transducers/src/iter/repeatedly.ts @@ -1,21 +1,24 @@ -import type { Fn0 } from "@thi.ng/api"; +import type { Fn } from "@thi.ng/api"; /** - * Iterator yielding return values of given no-arg function `fn`. If `n` - * is given, only that many values will be produced, else the iterator - * is infinite. + * Iterator yielding return values of given single-arg function `fn` (called + * with `i`, current iteration count). If `n` is given, only that many values + * will be produced, else the iterator is infinite. * * @example * ```ts * [...repeatedly(() => Math.floor(Math.random() * 10), 5)] * // [7, 0, 9, 3, 1] + * + * [...repeatedly((i) => i, 5)] + * // [0, 1, 2, 3, 4] * ``` * * @param fn - value producer * @param n - num values (default: ∞) */ -export function* repeatedly(fn: Fn0, n = Infinity) { - while (n-- > 0) { - yield fn(); +export function* repeatedly(fn: Fn, n = Infinity) { + for (let i = 0; i < n; i++) { + yield fn(i); } } diff --git a/packages/transducers/src/rfn/min-max.ts b/packages/transducers/src/rfn/min-max.ts new file mode 100644 index 0000000000..d500088694 --- /dev/null +++ b/packages/transducers/src/rfn/min-max.ts @@ -0,0 +1,9 @@ +import { juxtR } from "../func/juxtr"; +import { max } from "./max"; +import { min } from "./min"; + +/** + * Returns a reducer which computes both the min and max values of given inputs. + * If the input source is empty the final result will be `[-∞,∞]`. + */ +export const minMax = () => juxtR(min(), max()); diff --git a/packages/transducers/tpl.readme.md b/packages/transducers/tpl.readme.md index decfe3dc11..836219bdf5 100644 --- a/packages/transducers/tpl.readme.md +++ b/packages/transducers/tpl.readme.md @@ -835,6 +835,7 @@ and return a reduced result (as if it would be called via `reduce()`). - [min](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min.ts) - [minCompare](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min-compare.ts) - [minMag](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min-mag.ts) +- [minMax](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/min-max.ts) - [mul](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/mul.ts) - [push](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/push.ts) - [pushCopy](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rfn/push-copy.ts) diff --git a/packages/vclock/CHANGELOG.md b/packages/vclock/CHANGELOG.md index 0816c23fa6..308acab93a 100644 --- a/packages/vclock/CHANGELOG.md +++ b/packages/vclock/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.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/vclock@0.1.11...@thi.ng/vclock@0.1.12) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/vclock + + + + + ## [0.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/vclock@0.1.10...@thi.ng/vclock@0.1.11) (2021-07-01) **Note:** Version bump only for package @thi.ng/vclock diff --git a/packages/vclock/package.json b/packages/vclock/package.json index 7ab4504da2..27076511fd 100644 --- a/packages/vclock/package.json +++ b/packages/vclock/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vclock", - "version": "0.1.11", + "version": "0.1.12", "description": "Vector clock functions for synchronizing distributed states & processes", "module": "./index.js", "main": "./lib/index.js", @@ -38,7 +38,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6" + "@thi.ng/api": "^7.1.7" }, "files": [ "*.js", diff --git a/packages/vector-pools/CHANGELOG.md b/packages/vector-pools/CHANGELOG.md index b3d9076308..daf2d7e63b 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. +## [2.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@2.0.17...@thi.ng/vector-pools@2.0.18) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/vector-pools + + + + + ## [2.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@2.0.16...@thi.ng/vector-pools@2.0.17) (2021-07-27) **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 983c600fa4..0e952e8352 100644 --- a/packages/vector-pools/package.json +++ b/packages/vector-pools/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vector-pools", - "version": "2.0.17", + "version": "2.0.18", "description": "Data structures for managing & working with strided, memory mapped vectors", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", - "@thi.ng/malloc": "^5.0.9", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/malloc": "^5.0.10", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/vectors/CHANGELOG.md b/packages/vectors/CHANGELOG.md index e6ca5c2fb2..ed630904d3 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. +## [6.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@6.0.3...@thi.ng/vectors@6.0.4) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/vectors + + + + + ## [6.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@6.0.2...@thi.ng/vectors@6.0.3) (2021-07-27) **Note:** Version bump only for package @thi.ng/vectors diff --git a/packages/vectors/package.json b/packages/vectors/package.json index 412c9840e5..4e3645d0c3 100644 --- a/packages/vectors/package.json +++ b/packages/vectors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vectors", - "version": "6.0.3", + "version": "6.0.4", "description": "Optimized 2d/3d/4d and arbitrary length vector operations", "module": "./index.js", "main": "./lib/index.js", @@ -38,15 +38,15 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/binary": "^2.2.6", + "@thi.ng/api": "^7.1.7", + "@thi.ng/binary": "^2.2.7", "@thi.ng/checks": "^2.9.8", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/math": "^4.0.2", - "@thi.ng/memoize": "^2.1.16", - "@thi.ng/random": "^2.4.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/math": "^4.0.3", + "@thi.ng/memoize": "^2.1.17", + "@thi.ng/random": "^2.4.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/viz/CHANGELOG.md b/packages/viz/CHANGELOG.md index 1c7dd00aa8..b672a72bcb 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.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.32...@thi.ng/viz@0.2.33) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/viz + + + + + ## [0.2.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/viz@0.2.31...@thi.ng/viz@0.2.32) (2021-07-27) **Note:** Version bump only for package @thi.ng/viz diff --git a/packages/viz/package.json b/packages/viz/package.json index 6a29805909..33a5ad0df1 100644 --- a/packages/viz/package.json +++ b/packages/viz/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/viz", - "version": "0.2.32", + "version": "0.2.33", "description": "Declarative, functional & multi-format data visualization toolkit based around @thi.ng/hiccup", "module": "./index.js", "main": "./lib/index.js", @@ -44,16 +44,16 @@ "tool:tags": "ts-node -P tools/tsconfig.json tools/tagcloud.ts" }, "devDependencies": { - "@thi.ng/date": "^0.8.0" + "@thi.ng/date": "^0.9.0" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", - "@thi.ng/associative": "^5.2.7", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", + "@thi.ng/associative": "^5.2.8", "@thi.ng/checks": "^2.9.8", - "@thi.ng/math": "^4.0.2", - "@thi.ng/strings": "^2.1.2", - "@thi.ng/transducers": "^7.7.5" + "@thi.ng/math": "^4.0.3", + "@thi.ng/strings": "^2.1.3", + "@thi.ng/transducers": "^7.8.0" }, "files": [ "*.js", diff --git a/packages/webgl-msdf/CHANGELOG.md b/packages/webgl-msdf/CHANGELOG.md index b3ad92c36f..f82498852a 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.93](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.92...@thi.ng/webgl-msdf@0.1.93) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/webgl-msdf + + + + + ## [0.1.92](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.91...@thi.ng/webgl-msdf@0.1.92) (2021-07-27) **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 2086cb4801..d7890bc650 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.92", + "version": "0.1.93", "description": "Multi-channel SDF font rendering & basic text layout for WebGL", "module": "./index.js", "main": "./lib/index.js", @@ -38,12 +38,12 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/shader-ast": "^0.8.16", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vector-pools": "^2.0.17", - "@thi.ng/vectors": "^6.0.3", - "@thi.ng/webgl": "^5.0.2" + "@thi.ng/api": "^7.1.7", + "@thi.ng/shader-ast": "^0.8.17", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vector-pools": "^2.0.18", + "@thi.ng/vectors": "^6.0.4", + "@thi.ng/webgl": "^5.0.3" }, "files": [ "*.js", diff --git a/packages/webgl-shadertoy/CHANGELOG.md b/packages/webgl-shadertoy/CHANGELOG.md index c2b1007aee..db9e057144 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.80](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.79...@thi.ng/webgl-shadertoy@0.2.80) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/webgl-shadertoy + + + + + ## [0.2.79](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.78...@thi.ng/webgl-shadertoy@0.2.79) (2021-07-27) **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 9cee43dcdc..fe5bda6c4f 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.79", + "version": "0.2.80", "description": "Basic WebGL scaffolding for running interactive fragment shaders via @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -38,10 +38,10 @@ "pub": "yarn build && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/shader-ast": "^0.8.16", - "@thi.ng/shader-ast-glsl": "^0.2.38", - "@thi.ng/webgl": "^5.0.2" + "@thi.ng/api": "^7.1.7", + "@thi.ng/shader-ast": "^0.8.17", + "@thi.ng/shader-ast-glsl": "^0.2.39", + "@thi.ng/webgl": "^5.0.3" }, "files": [ "*.js", diff --git a/packages/webgl/CHANGELOG.md b/packages/webgl/CHANGELOG.md index 481696a6f0..c0b28a4e11 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. +## [5.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@5.0.2...@thi.ng/webgl@5.0.3) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/webgl + + + + + ## [5.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@5.0.1...@thi.ng/webgl@5.0.2) (2021-07-27) **Note:** Version bump only for package @thi.ng/webgl diff --git a/packages/webgl/package.json b/packages/webgl/package.json index 7e91f89b86..d8d6bb4a15 100644 --- a/packages/webgl/package.json +++ b/packages/webgl/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/webgl", - "version": "5.0.2", + "version": "5.0.3", "description": "WebGL & GLSL abstraction layer", "module": "./index.js", "main": "./lib/index.js", @@ -39,20 +39,20 @@ }, "dependencies": { "@thi.ng/adapt-dpi": "^1.0.21", - "@thi.ng/api": "^7.1.6", - "@thi.ng/associative": "^5.2.7", + "@thi.ng/api": "^7.1.7", + "@thi.ng/associative": "^5.2.8", "@thi.ng/checks": "^2.9.8", "@thi.ng/equiv": "^1.0.43", "@thi.ng/errors": "^1.3.2", - "@thi.ng/matrices": "^0.6.61", - "@thi.ng/memoize": "^2.1.16", - "@thi.ng/pixel": "^0.10.5", - "@thi.ng/shader-ast": "^0.8.16", - "@thi.ng/shader-ast-glsl": "^0.2.38", - "@thi.ng/shader-ast-stdlib": "^0.6.3", - "@thi.ng/transducers": "^7.7.5", - "@thi.ng/vector-pools": "^2.0.17", - "@thi.ng/vectors": "^6.0.3" + "@thi.ng/matrices": "^0.6.62", + "@thi.ng/memoize": "^2.1.17", + "@thi.ng/pixel": "^0.11.0", + "@thi.ng/shader-ast": "^0.8.17", + "@thi.ng/shader-ast-glsl": "^0.2.39", + "@thi.ng/shader-ast-stdlib": "^0.6.4", + "@thi.ng/transducers": "^7.8.0", + "@thi.ng/vector-pools": "^2.0.18", + "@thi.ng/vectors": "^6.0.4" }, "files": [ "*.js", diff --git a/packages/zipper/CHANGELOG.md b/packages/zipper/CHANGELOG.md index debec53573..da49199a76 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.48](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.47...@thi.ng/zipper@0.1.48) (2021-08-04) + +**Note:** Version bump only for package @thi.ng/zipper + + + + + ## [0.1.47](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.46...@thi.ng/zipper@0.1.47) (2021-07-01) **Note:** Version bump only for package @thi.ng/zipper diff --git a/packages/zipper/package.json b/packages/zipper/package.json index 66b907c29a..dac7cf17ae 100644 --- a/packages/zipper/package.json +++ b/packages/zipper/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/zipper", - "version": "0.1.47", + "version": "0.1.48", "description": "Functional tree editing, manipulation & navigation", "module": "./index.js", "main": "./lib/index.js", @@ -38,8 +38,8 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/api": "^7.1.6", - "@thi.ng/arrays": "^0.10.13", + "@thi.ng/api": "^7.1.7", + "@thi.ng/arrays": "^0.10.14", "@thi.ng/checks": "^2.9.8" }, "files": [ diff --git a/scripts/deploy-example b/scripts/deploy-example index 7de2261cdf..5fb2251896 100755 --- a/scripts/deploy-example +++ b/scripts/deploy-example @@ -65,7 +65,7 @@ const include = (id) => args.has(id) || args.has("all"); uploadAssets("assets"); -uploadAssets("js"); +uploadAssets("js", { ext: ".js", depth: 2 }); uploadAssets("", { ext: ".js", depth: 1 }); uploadAssets("", { ext: ".html" }); diff --git a/scripts/make-example b/scripts/make-example index ec38a99742..1e0b225253 100755 --- a/scripts/make-example +++ b/scripts/make-example @@ -130,10 +130,12 @@ module.exports = { "@snowpack/plugin-webpack", { extendConfig: (config) => { - config.node = { - process: false, - setImmediate: false, - util: "empty", + config.node = false; + config.resolve = { + alias: { + process: false, + util: false, + } }; return config; }, diff --git a/yarn.lock b/yarn.lock index 680c39712b..aebdb59a53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1785,10 +1785,10 @@ npmlog "^4.1.2" write-file-atomic "^3.0.3" -"@microsoft/api-documenter@^7.13.33": - version "7.13.33" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.13.33.tgz#b4f5018078f588c2e08428234405d977d993dbd3" - integrity sha512-m+Yv/NTP2nvKaey20AszOv9QnQ0O3SxEGWeQF1mci920bQskcz9/5uaVMCtfq7PKPelc8k9NG4gqmzw1dRgKBA== +"@microsoft/api-documenter@^7.13.34": + version "7.13.34" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.13.34.tgz#f56866a574ca835f74f3eaaf342eb32eecfef69a" + integrity sha512-da15qQlV7j/cpWPVb/fdOh4KpXprerPg7Zka6cFPF+HPZtpPu+cFqdigaHZLdhcAOkSFbrH668a34oEKemfySA== dependencies: "@microsoft/api-extractor-model" "7.13.4" "@microsoft/tsdoc" "0.13.2" @@ -2387,10 +2387,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.13.tgz#ccebcdb990bd6139cd16e84c39dc2fb1023ca90c" integrity sha512-pMCcqU2zT4TjqYFrWtYHKal7Sl30Ims6ulZ4UFXxI4xbtQqK/qqKwkDoBFCfooRqqmRu9vY3xaJRwxSh673aYg== -"@types/node@^16.4.3": - version "16.4.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.3.tgz#c01c1a215721f6dec71b47d88b4687463601ba48" - integrity sha512-GKM4FLMkWDc0sfx7tXqPWkM6NBow1kge0fgQh0bOnlqo4iT1kvTvMEKE0c1RtUGnbLlGRXiAA8SumE//90uKAg== +"@types/node@^16.4.11": + version "16.4.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.11.tgz#245030af802c776c31f00eb0cdde40ee615db462" + integrity sha512-nWSFUbuNiPKJEe1IViuodSI+9cM+vpM8SWF/O6dJK7wmGRNq55U7XavJHrlRrPkSMuUZUFzg1xaZ1B+ZZCrRWw== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -2726,6 +2726,11 @@ acorn-globals@^6.0.0: acorn "^7.1.1" acorn-walk "^7.1.1" +acorn-import-assertions@^1.7.6: + version "1.7.6" + resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz#580e3ffcae6770eebeec76c3b9723201e9d01f78" + integrity sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA== + acorn-walk@^7.1.1: version "7.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" @@ -3157,6 +3162,17 @@ browserslist@^4.16.0, browserslist@^4.16.6: escalade "^3.1.1" node-releases "^1.1.71" +browserslist@^4.16.7: + version "4.16.7" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.7.tgz#108b0d1ef33c4af1b587c54f390e7041178e4335" + integrity sha512-7I4qVwqZltJ7j37wObBe3SoTz+nS8APaNcrBOlgoirb6/HbEU2XxW/LpUDTCngM6iauwFqmRTuOMfyKnFGY5JA== + dependencies: + caniuse-lite "^1.0.30001248" + colorette "^1.2.2" + electron-to-chromium "^1.3.793" + escalade "^3.1.1" + node-releases "^1.1.73" + buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" @@ -3336,6 +3352,11 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001111, caniuse-lite@^1.0.30001164, can resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001235.tgz" integrity sha512-zWEwIVqnzPkSAXOUlQnPW2oKoYb2aLQ4Q5ejdjBcnH63rfypaW34CxaeBn1VMya2XaEU3P/R2qHpWyj+l0BT1A== +caniuse-lite@^1.0.30001248: + version "1.0.30001248" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001248.tgz#26ab45e340f155ea5da2920dadb76a533cb8ebce" + integrity sha512-NwlQbJkxUFJ8nMErnGtT0QTM2TJ33xgz4KXJSMIrjXIbDVdaYueGyjOrLKRtJC+rTiWfi6j5cnZN1NBiSBJGNw== + caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" @@ -4223,6 +4244,11 @@ electron-to-chromium@^1.3.723: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.749.tgz#0ecebc529ceb49dd2a7c838ae425236644c3439a" integrity sha512-F+v2zxZgw/fMwPz/VUGIggG4ZndDsYy0vlpthi3tjmDZlcfbhN5mYW0evXUsBr2sUtuDANFtle410A9u/sd/4A== +electron-to-chromium@^1.3.793: + version "1.3.795" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.795.tgz#91f09b4c77f8dab562dd592ce929b009201c24ff" + integrity sha512-4TPxrLf9Fzsi4rVgTlDm+ubxoXm3/TN67/LGHx/a4UkVubKILa6L26O6eTnHewixG/knzU9L3lLmfL39eElwlQ== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -6587,7 +6613,7 @@ node-releases@^1.1.67: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.67.tgz#28ebfcccd0baa6aad8e8d4d8fe4cbc49ae239c12" integrity sha512-V5QF9noGFl3EymEwUYzO+3NTDpGfQB4ve6Qfnzf3UNydMhjQRVPR1DZTuvWiLzaFJYw2fmDwAfnRNEVb64hSIg== -node-releases@^1.1.71: +node-releases@^1.1.71, node-releases@^1.1.73: version "1.1.73" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.73.tgz#dd4e81ddd5277ff846b80b52bb40c49edf7a7b20" integrity sha512-uW7fodD6pyW2FZNZnp/Z3hvWKeEW1Y8R1+1CnErE8cXFXzl5blBOoVB41CvMer6P6Q0S5FXDwcHgFd1Wj0U9zg== @@ -8169,13 +8195,20 @@ rollup-pluginutils@^2.8.2: dependencies: estree-walker "^0.6.1" -rollup@^2.23.0, rollup@^2.54.0: +rollup@^2.23.0: version "2.54.0" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.54.0.tgz#99ea816e8e9b1c6af3ab957a4e7a8f78dbd87773" integrity sha512-RHzvstAVwm9A751NxWIbGPFXs3zL4qe/eYg+N7WwGtIXVLy1cK64MiU37+hXeFm1jqipK6DGgMi6Z2hhPuCC3A== optionalDependencies: fsevents "~2.3.2" +rollup@^2.55.1: + version "2.55.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.55.1.tgz#66a444648e2fb603d8e329e77a61c608a6510fda" + integrity sha512-1P9w5fpb6b4qroePh8vHKGIvPNxwoCQhjJpIqfZGHLKpZ0xcU2/XBmFxFbc9697/6bmHpmFTLk5R1dAQhFSo0g== + optionalDependencies: + fsevents "~2.3.2" + rollup@~2.37.1: version "2.37.1" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.37.1.tgz#aa7aadffd75c80393f9314f9857e851b0ffd34e7" @@ -8989,10 +9022,10 @@ trim-off-newlines@^1.0.0: resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= -ts-loader@^9.2.4: - version "9.2.4" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.2.4.tgz#55fe7e5eab29fe4bdfb01c1f941c2bab928b7f92" - integrity sha512-Ats2BCqPFBkgsoZUmmYMjuQu+iBNExt4o3QDsJqRMuPdStWlnOthdqX/GHHJnxSSgw7Gu6Hll/MD5b4usgKFOg== +ts-loader@^9.2.5: + version "9.2.5" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.2.5.tgz#127733a5e9243bf6dafcb8aa3b8a266d8041dca9" + integrity sha512-al/ATFEffybdRMUIr5zMEWQdVnCGMUA9d3fXJ8dBVvBlzytPvIszoG9kZoR+94k6/i293RnVOXwMaWbXhNy9pQ== dependencies: chalk "^4.1.0" enhanced-resolve "^5.0.0" @@ -9086,10 +9119,10 @@ typedoc-default-themes@^0.12.10: resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.10.tgz#614c4222fe642657f37693ea62cad4dafeddf843" integrity sha512-fIS001cAYHkyQPidWXmHuhs8usjP5XVJjWB8oZGqkTowZaz3v7g3KDZeeqE82FBrmkAnIBOY3jgy7lnPnqATbA== -typedoc@^0.21.4: - version "0.21.4" - resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.21.4.tgz#fced3cffdc30180db60a5dbfec9dbbb273cb5b31" - integrity sha512-slZQhvD9U0d9KacktYAyuNMMOXJRFNHy+Gd8xY2Qrqq3eTTTv3frv3N4au/cFnab9t3T5WA0Orb6QUjMc+1bDA== +typedoc@^0.21.5: + version "0.21.5" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.21.5.tgz#45643618ede5c3d75e2040b964d05fcffed7ca58" + integrity sha512-uRDRmYheE5Iju9Zz0X50pTASTpBorIHFt02F5Y8Dt4eBt55h3mwk1CBSY2+EfwBxY16N4Xm7f8KXhnfFZ0AmBw== dependencies: glob "^7.1.7" handlebars "^4.7.7" @@ -9391,13 +9424,10 @@ webpack-sources@^2.2.0, webpack-sources@^2.3.0: source-list-map "^2.0.1" source-map "^0.6.1" -webpack-sources@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-2.3.1.tgz#570de0af163949fe272233c2cefe1b56f74511fd" - integrity sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA== - dependencies: - source-list-map "^2.0.1" - source-map "^0.6.1" +webpack-sources@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.0.tgz#b16973bcf844ebcdb3afde32eda1c04d0b90f89d" + integrity sha512-fahN08Et7P9trej8xz/Z7eRu8ltyiygEo/hnRi9KqBUs80KeDcnf96ZJo++ewWd84fEf3xSX9bp4ZS9hbw0OBw== webpack@^5.34.0: version "5.41.1" @@ -9428,10 +9458,10 @@ webpack@^5.34.0: watchpack "^2.2.0" webpack-sources "^2.3.0" -webpack@^5.46.0: - version "5.46.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.46.0.tgz#105d20d96f79db59b316b0ae54316f0f630314b5" - integrity sha512-qxD0t/KTedJbpcXUmvMxY5PUvXDbF8LsThCzqomeGaDlCA6k998D8yYVwZMvO8sSM3BTEOaD4uzFniwpHaTIJw== +webpack@^5.48.0: + version "5.48.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.48.0.tgz#06180fef9767a6fd066889559a4c4d49bee19b83" + integrity sha512-CGe+nfbHrYzbk7SKoYITCgN3LRAG0yVddjNUecz9uugo1QtYdiyrVD8nP1PhkNqPfdxC2hknmmKpP355Epyn6A== dependencies: "@types/eslint-scope" "^3.7.0" "@types/estree" "^0.0.50" @@ -9439,6 +9469,7 @@ webpack@^5.46.0: "@webassemblyjs/wasm-edit" "1.11.1" "@webassemblyjs/wasm-parser" "1.11.1" acorn "^8.4.1" + acorn-import-assertions "^1.7.6" browserslist "^4.14.5" chrome-trace-event "^1.0.2" enhanced-resolve "^5.8.0" @@ -9455,7 +9486,7 @@ webpack@^5.46.0: tapable "^2.1.1" terser-webpack-plugin "^5.1.3" watchpack "^2.2.0" - webpack-sources "^2.3.1" + webpack-sources "^3.2.0" whatwg-encoding@^1.0.5: version "1.0.5"