diff --git a/.gitignore b/.gitignore index 0bbaeb3086..c16517e425 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .ae .cache +.parcel-cache .DS_Store .meta .nyc_output @@ -16,6 +17,7 @@ *.zip /.gtm/ ae-docs +assets/banners build bundle.* coverage diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f29043e999..3790433a94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,27 +2,91 @@ Firstly, thanks for taking an interest in these projects! -There're many ways you can contribute and help to improve these projects -and help spread the word. This doc describes some guidelines for some of -them. +There're many ways you can contribute, help to improve these projects +and spread the word. This doc describes some loose guidelines for some +of them. + + + +- [Usage questions & issues](#usage-questions--issues) + - [Join our Discord](#join-our-discord) + - [Submit an issue](#submit-an-issue) +- [Documentation, examples & advocacy](#documentation-examples--advocacy) + - [Changes to readme files](#changes-to-readme-files) + - [Wiki additions, blog posts, examples](#wiki-additions-blog-posts-examples) + - [Small, standalone examples in the repo](#small-standalone-examples-in-the-repo) +- [Contributing code](#contributing-code) + - [Fork it](#fork-it) + - [Create a feature branch](#create-a-feature-branch) + - [Commit your changes](#commit-your-changes) + - [Run & add tests](#run--add-tests) + - [Push to the branch](#push-to-the-branch) + - [Create new Pull Request](#create-new-pull-request) +- [Code style guide](#code-style-guide) + - [Project layout](#project-layout) + - [Imports](#imports) + - [Sorted imports](#sorted-imports) + - [No default exports](#no-default-exports) + - [No 3rd party dependencies](#no-3rd-party-dependencies) + - [Inter-repo dependencies](#inter-repo-dependencies) + - [No exported `const enums`](#no-exported-const-enums) + - [Arrow functions preferred](#arrow-functions-preferred) + - [Function / ctor arguments](#function--ctor-arguments) + - [Naming conventions](#naming-conventions) + - [Doc strings](#doc-strings) + - [Formatting](#formatting) +- [Donations](#donations) + + ## Usage questions & issues -Please feel free to use the GH issue tracker for submitting any -questions related to any package in this repo. When doing so, please -also follow the instructions in the "new issue" template and use issue -labels to tag your issue. +### Join our Discord -When running into code troubles, please try to include a minimal +We have a [Discord community](https://discord.gg/JhYcmBw) where it's +usually the faster to get some answers to any burning questions and +where we generally share & discuss feedback / ideas / interesting things +loosely related to this project. Come and say Hi! + +### Submit an issue + +In many cases it might be better to [submit an +issue](https://github.com/thi-ng/umbrella/issues) here on GitHub, +especially if you've discovered some kind of bug and/or want to propose +new features etc., which require longer discussion. I'd also encourage +using the issue tracker for any topic which might be beneficial to +know/discover for other users in the future (much like a forum), since +this format & discussion has more longevity/discoverability than a +Discord channel. + +When submitting an issue, please follow the instructions in the "new +issue" template. + +When running into code troubles, please also try to include a minimal reproducible example. If the example is too large for including in the issue, please create a gist or repo and add a link to it. ## Documentation, examples & advocacy -Documentation is still sparse in some areas, so any contributions in the -form listed below are very welcome. I primarily can only work on this -project in my spare time, so have to balance between adding new features -(always my priority) & documentation whenever I can. +Due to the wide scope of this project, documentation is still sparse in +some areas, so any contributions in the form listed below are very +welcome. I primarily can only work on this project in my spare time, so +have to balance between adding new features (always my priority) & +documentation whenever I can. + +Please also see further information about [doc strings in the source +code](#doc-strings) below. + +### Changes to readme files + +The readme files for all packages are generated from their respective +templated versions (`README.tpl.md` files). Please only ever edit the +template and then re-generate the actual readme like so: + +```bash +cd umbrella +lerna run doc:readme --scope @thi.ng/ +``` ### Wiki additions, blog posts, examples @@ -34,8 +98,8 @@ please do get in touch. ### Small, standalone examples in the repo -"Learning by example" has been my life's motto. The ~60 examples -included in the repo are each focused on a specific feature and kept +"Learning by example" has been my life's motto. The ~85 examples +included in the repo are each focused on specific features and kept quite lowkey for reasons of simplicity. Since many of the projects are meant to be integrated with other 3rd party projects, I'm always on the lookout for similar small demos showcasing these integrations (e.g. w/ @@ -45,22 +109,20 @@ The repo contains a generator bash script to create a new example project skeleton in the repo's `/examples` dir. Use it like below (and make sure the name isn't already taken :) -``` +```bash cd umbrella scripts/make-example my-example cd examples/my-example ``` -(Note 1: the package versions used by this generator MIGHT be -occasionally out-of-date) +Currently, it's recommended to install +[Parcel](https://github.com/parcel-bundler/parcel/) globally for running +the example. Please consult the [example build +instructions](https://github.com/thi-ng/umbrella/wiki/Example-build-instructions) +in the wiki. -(Note 2: **If you've cloned the repo and built all packages, DO NOT run -`yarn install` in the example dir. `yarn start` will work without and -re-use the built packages (irrespective of their version) in the project -root**) - -FWIW I usually launch examples from the repo root like this: +FWIW I usually launch examples from the repo root via a subshell: ```bash (cd examples/webgl-msdf && yarn start) @@ -75,13 +137,14 @@ interweb), please also read the next section... always first submit an issue discussing any new feature or large refactoring before starting to code and submitting PRs. For small bug fixes or new examples it's usually fine without, though. I'm not trying -to complicate things, but it's always good to first talk about larger -contributions and there're also various feature branches, incl. some -existing WIP relevant to your issue / proposal. +to complicate things, but it's always a good idea to first talk about +larger contributions and there're also various (sometime still +unpublished) feature branches, incl. some existing WIP relevant to your +issue / proposal... ### Fork it -``` +```bash git clone https://github.com/thi-ng/umbrella.git cd umbrella @@ -91,27 +154,36 @@ yarn build ### Create a feature branch -**Always use `develop` as base branch!** +**Always use `develop` as base branch, which also is the default branch +of this repo...** -``` +```bash git checkout -b feature/my-feature develop ``` This repo is using the `git-flow` branching model and all new development should be done on feature branches based off the current `develop` branch. PR's submitted directly against the `master` branch -MIGHT be refused. +WILL be refused (with a few exceptions). -### Commit your changes +With the `git-flow` CLI tool installed, you can also run: +```bash +git-flow feature start my-feature ``` + +### Commit your changes + +```bash git commit -am 'feat(module): description' ``` -**Please do use the [Convential Commits convention](https://conventionalcommits.org/) for -your commit messages.** This format is used to generate changelogs and ensures consistency -and better filtering. Since this is a mono repository the convention ensures commit messages -can be easily mapped to their sub-project. Also see existing commits for reference +**Please do use the [Convential Commits +convention](https://conventionalcommits.org/) for your commit +messages.** This format is used to generate changelogs and ensures +consistency and better filtering. Since this is a mono repository the +convention ensures commit messages can be easily mapped to their +sub-project. Also see existing commits for reference ([example](https://github.com/thi-ng/umbrella/commit/ebbc4910f64c90df7bb93010a75307df51c80b6e)). The Conventional Commits classifiers/prefixes used in this project are: @@ -119,6 +191,7 @@ The Conventional Commits classifiers/prefixes used in this project are: - `feat` - new feature - `fix` - bug fixes - `refactor` - refactoring +- `test` - testing related - `perf` - any type of optimization (not just performance) - `build` - build/dependency related updates - `doc` - documentation related only (e.g. readme, doc strings...) @@ -127,15 +200,30 @@ The Conventional Commits classifiers/prefixes used in this project are: ### Run & add tests -I'm heavily using the node REPL during development and do much of my +I'm heavily using the Node REPL during development and do much of my testing as part of that workflow. Still, I'm aware that this is no full replacement for a large suite of tests, therefore most packages do have -a varying (and growing) number of unit tests. If you're adding a new +a varying (but growing) number of unit tests. If you're adding a new feature (or think you've fixed a bug), please add some related tests (if possible) too for extra brownie points. Either add a new file under a project's `/test` dir or add / edit one of the existing test cases in there. +Tests can be run via: + +```bash +lerna run test --scope @thi.ng/ + +# or +(cd packages/ && yarn test) + +# or all tests (from repo root) + +yarn test # also builds all packages first + +yarn test:only # assumes all packages have been build already +``` + ### Push to the branch ``` @@ -150,10 +238,12 @@ Go to your fork on GH and create a PR. ### Project layout -Most packages in this repo share this pattern: +Unless the package is very small, all larger ones in this repo share this +pattern: - `/src/index.ts` - only used for re-exports -- `/src/api.ts` - interface, enum, type alias and module global consts definitions +- `/src/api.ts` - interfaces, enums, type aliases & module global consts + definitions - `/test` - Mocha unit tests In larger packages (e.g. @@ -162,13 +252,19 @@ topically related files are grouped in sub-folders under `/src`. ### Imports -To encourage small(er) file sizes of production artefacts most source +To encourage small(er) file sizes of production artefacts, most source files are organized to only contain a small number of related functions / classes. Package internal imports MUST always refer to the actual source file, whereas imports from other packages MUST only use the package name. This is because of the way each package is built and output in 3 different module formats (ES6, CJS, UMD). +### Sorted imports + +Please ensure you're updating the list imports in changed files to be +sorted by package name. In VSCode it's as easy as hitting `Alt + Shift + +O` or choosing "Organize imports" from the command pallette. + ### No default exports Nuff said. They're potentially problematic in terms of refactoring and @@ -181,24 +277,237 @@ too cause inconsistencies compared to the above named import pattern. Unless absolutely warranted. Yes, this is somewhat a case of _Not-Invented-Here_, but here done for reasons of sanity & clarity, not to prove a point. If you plan to submit code with 3rd party deps, please -get in touch first and explain why it's necessary IYHO. +get in touch first and explain why it's necessary (in your humble opinion). + +### Inter-repo dependencies + +Please use your best judgement before introducing a new dependency on +another package within this repo and remember that even though these +packages are developed under one "umbrella", the aim is NOT to form a +tightly coupled framework. In general, it's absolutely fine to depend on +any of the "low level" packages, e.g. + +- [@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/equiv](https://github.com/thi-ng/umbrella/tree/develop/packages/equiv) +- [@thi.ng/compare](https://github.com/thi-ng/umbrella/tree/develop/packages/compare) +- [@thi.ng/compose](https://github.com/thi-ng/umbrella/tree/develop/packages/compose) +- [@thi.ng/arrays](https://github.com/thi-ng/umbrella/tree/develop/packages/arrays) +- [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings) +- [@thi.ng/defmulti](http://github.com/thi-ng/umbrella/tree/develop/packages/defmulti) etc. + +...since these are purely existing for providing general plumbing and +are primarily meant for wide re-use. However, consider if adding a +dependency on one of the larger packages (e.g. +[@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers), +[@thi.ng/geom](https://github.com/thi-ng/umbrella/tree/develop/packages/geom)) +is absolutely required / beneficial. + +If in doubt, please ask first... + +### No exported `const enums` + +It has been [brought to my +attention](https://github.com/thi-ng/umbrella/issues/154) (thanks to +@Bnaya) that exported `const enums` negatively interfere with some +downstream workflows related to Babel transpilation and TypeScript's +`isolatedModules` compilation feature. For that reason, that latter +option is now enabled for all packages and exported `const enum`s are +NOT to be used anymore in this project. The only exception are packages +where `const enums` are used internally. For all others we have reverted +to using normal `enum`s, but might introduce alternatives in the +future... + +### Arrow functions preferred + +Again, this is highly subjective - but unless a function requires +overrides, please use arrow functions for succinctness and avoidance of +potential scoping issues. + +```ts +const add = (a: number, b: number) => a + b; + +// vs. + +function add(xs: Iterable): number; +function add(a: number, b: number): number; +function add(a: any, b?: number): number { + if (typeof a === "number") { + return a + b; + } + let sum = 0; + for (let x of a) { + sum += x; + } + return sum; +}; +``` + +### Function / ctor arguments + +If a function or constructor takes multiple optional arguments, please +consider using a typed options argument instead of positional args. This +pattern is used in various existing packages already and involves +introducing a new `interface` for the options (see [naming +conventions](#naming-conventions)), e.g.: + +```ts +import type { Fn, Comparator } from "@thi.ng/api"; + +// type arg is optional / context specific +interface SortOpts { + /** + * Key extractor + */ + key: Fn; + /** + * Optional comparator + */ + cmp?: Comparator; +} + +const sort = (coll: T[], opts: FooOpts) => { + const cmp = opts.cmp || ((a, b) => a - b); + return coll.sort((a, b) => cmp(opts.key(a), opts.key(b))); +}; +``` + +### Naming conventions + +These are not fully set in stone, but there's been recent effort +underway to unify naming conventions & patterns for several +aspects/groups of functions / types: + +#### General naming + +Prefer short (though not cryptic) names over +`highlyDescriptiveLongCompoundName` style variable (or function) names, +which completely destroy formatting and resulting code comprehension (a +kind of counter-effect of the supposedly more descriptive longer name). + +- Packages: `lower-kebab-case` +- Classes: capitalized `CamelCase` +- Functions, class methods & Variables: lower-initial `camelCase` +- Exported constants: `UPPER_SNAKE_CASE` +- Enums: + - type name itself: capitalized `CamelCase` + - constants: `UPPER_SNAKE_CASE` + +#### Interfaces + +If the interface is primarily defining a set of operations, we prefix +its name with `I` to distinguish it from a data descriptor. + +```ts +interface IBind { + bind(opts: T): boolean; + unbind(): boolean; +} + +interface BindOpts { + texID: string; + texOpts: TextureOpts; +} + +interface TextureOpts { + filter: Filter; + wrap: WrapMode; + ... +} +``` + +#### Factory functions + +Not (yet?) used consistently, but in order to encourage a more function +driven coding style (regardless of using some OOP concepts internally), +functions which create some form of resource / object / class instance +*should* be using the `def` prefix (inspired by Clojure and other +Lisps). For classes, this means adding a factory function delegating to +the class constructor and potentially performing additional preparation +tasks. This is not just done for stylistic reasons, but also to work +around the limitation of not being able to provide overrides for class +ctors (however function overrides are supported, of course). + +```ts +/** + * Returns a new {@link Particle} instance with given initial position + * + * @param pos - initial position + */ +export const defParticle = (pos: Vec) => new Particle(pos); + +export class Particle { + constructor(public pos: Vec) {} +} + +// usage + +const particles = [[0, 0], [1, 0], [2, 0]].map(defParticle); + +// vs + +const particles = [[0, 0], [1, 0], [2, 0]].map((p) => new Particle(p)); +``` + +There're other situations (e.g. +[@thi.ng/geom](https://github.com/thi-ng/umbrella/tree/develop/packages/geom) +or +[@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream)) +where this naming convention is not making much sense, but the above is +the currently *preferred* approach. Not dogma! + +Standalone factory functions are also favored over `static` class +methods (though some are currently still in use, soon to be refactored). + +#### Options objects + +As stated [above](#function--ctor-arguments), interfaces describing a +collection of optional function / ctor arguments should always be +suffixed with `Opts`. + +### Doc strings + +In 2019 we refactored doc strings across all 120+ packages to become an +early adopter of the [TSDoc](https://github.com/microsoft/tsdoc) +documentation standard and [API extractor](https://api-extractor.com/) +toolchain, both developed by Microsoft. + +Whilst that tooling is still WIP, please familiarize yourself with the +available documentation tags and use the format when adding/updating doc +strings. + +There's been some initial work done on generating a better documentation +site than the current [docs.thi.ng](https://docs.thi.ng), but currently +on hold until the TSDoc standard is finalized / stable... + +More discussion & context can be found in [this +issue](https://github.com/thi-ng/umbrella/issues/174). + +### Formatting -### 4 spaces +All source code is to be formatted with [Prettier](https://prettier.io) +and a config file is included in the repo root. -Sorry tab folk :) +If you're using VSCode, I recommend installing the [Prettier +extension](https://github.com/prettier/prettier-vscode) and configuring +it to auto-format on save. -### Misc +For others, the important rules are: -Personally I use VSCode with TSLint's recommended rules +- 4 spaces, no tabs (sorry!) +- semicolons enabled +- unix line breaks ## Donations -I've been developing this project (as well as several large other open -source projects since the late '90s) in my spare time since early 2016 -(some packages even older). If you would like to support the continued -development of this project, your donations to the following addresses -would be greatly appreciated: +This this project has been in development since early 2016 (some +packages even older). If you would like to support the continued +development & ever increasing maintenance effort of this project, please +consider a financial contribution (anything helps!) via any of the +following channels: +- [GitHub Sponsors](https://github.com/sponsors/postspectacular) +- [Patreon](https://www.patreon.com/thing_umbrella) - BTC: 132aMfzNypBPgEy4Lz2tPQsKGimixdFrsb - LTC: LMyfhJoXTq62W9zvUBvk9o6pCDZJx12dPV - ETH: 0x8530bD57cCfCD5e95939E5bA3d81D8c9C9581941 diff --git a/README.md b/README.md index 49ccd62642..a36485872b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Travis status](https://api.travis-ci.org/thi-ng/umbrella.svg?branch=master)](https://travis-ci.org/thi-ng/umbrella) [![Code Climate](https://api.codeclimate.com/v1/badges/592940419adb5bf8abaf/maintainability)](https://codeclimate.com/github/thi-ng/umbrella/maintainability) -[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org/) +[![Become a patron](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/thing_umbrella) [![Discord chat](https://img.shields.io/discord/445761008837984256.svg)](https://discord.gg/JhYcmBw) [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?label=%40thing_umbrella&style=social)](https://twitter.com/thing_umbrella) @@ -49,16 +49,16 @@ Most packages: - have detailed, individual README files w/ small usage examples - are versioned independently -- distributed in ES6 syntax and multiple format (ESM, CommonJS, UMD) +- distributed in ES6 syntax and multiple formats (ESM, CommonJS, UMD) with TypeScript typings & changelogs - highly modular with largely only a few closely related functions or single function / class per file to help w/ tree shaking - provide re-exports of all their publics for full library imports - have either none or only @thi.ng internal runtime dependencies - have been used in production -- declare public interfaces, enums & types in an `src/api.ts` file - (larger packages only) -- auto-generated online documentation at [docs.thi.ng](http://docs.thi.ng) +- declare public interfaces, enums & types in an `api.ts` and/or + `constants.ts` file (larger packages only) +- have auto-generated online documentation at [docs.thi.ng](http://docs.thi.ng) - licensed under Apache Software License 2.0 ## Examples @@ -101,24 +101,25 @@ contribute, please first read [this document](./CONTRIBUTING.md). ### Fundamentals -| Project | Version | Changelog | Description | -|-------------------------------------------|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------------|----------------------------------------------| -| [`@thi.ng/api`](./packages/api) | [![version](https://img.shields.io/npm/v/@thi.ng/api.svg)](https://www.npmjs.com/package/@thi.ng/api) | [changelog](./packages/api/CHANGELOG.md) | Common types, decorators, mixins | -| [`@thi.ng/bench`](./packages/bench) | [![version](https://img.shields.io/npm/v/@thi.ng/bench.svg)](https://www.npmjs.com/package/@thi.ng/bench) | [changelog](./packages/bench/CHANGELOG.md) | Basic benchmarking helpers | -| [`@thi.ng/checks`](./packages/checks) | [![version](https://img.shields.io/npm/v/@thi.ng/checks.svg)](https://www.npmjs.com/package/@thi.ng/checks) | [changelog](./packages/checks/CHANGELOG.md) | Type & value checks | -| [`@thi.ng/compare`](./packages/compare) | [![version](https://img.shields.io/npm/v/@thi.ng/compare.svg)](https://www.npmjs.com/package/@thi.ng/compare) | [changelog](./packages/compare/CHANGELOG.md) | Comparator | -| [`@thi.ng/compose`](./packages/compose) | [![version](https://img.shields.io/npm/v/@thi.ng/compose.svg)](https://www.npmjs.com/package/@thi.ng/compose) | [changelog](./packages/compose/CHANGELOG.md) | Functional composition helpers | -| [`@thi.ng/defmulti`](./packages/defmulti) | [![version](https://img.shields.io/npm/v/@thi.ng/defmulti.svg)](https://www.npmjs.com/package/@thi.ng/defmulti) | [changelog](./packages/defmulti/CHANGELOG.md) | Dynamic multiple dispatch | -| [`@thi.ng/dsp`](./packages/dsp) | [![version](https://img.shields.io/npm/v/@thi.ng/dsp.svg)](https://www.npmjs.com/package/@thi.ng/dsp) | [changelog](./packages/dsp/CHANGELOG.md) | DSP utils, oscillators | -| [`@thi.ng/ecs`](./packages/ecs) | [![version](https://img.shields.io/npm/v/@thi.ng/ecs.svg)](https://www.npmjs.com/package/@thi.ng/ecs) | [changelog](./packages/ecs/CHANGELOG.md) | Entity-Component System | -| [`@thi.ng/equiv`](./packages/equiv) | [![version](https://img.shields.io/npm/v/@thi.ng/equiv.svg)](https://www.npmjs.com/package/@thi.ng/equiv) | [changelog](./packages/equiv/CHANGELOG.md) | Deep value equivalence checking | -| [`@thi.ng/errors`](./packages/errors) | [![version](https://img.shields.io/npm/v/@thi.ng/errors.svg)](https://www.npmjs.com/package/@thi.ng/errors) | [changelog](./packages/errors/CHANGELOG.md) | Custom error types | -| [`@thi.ng/math`](./packages/math) | [![version](https://img.shields.io/npm/v/@thi.ng/math.svg)](https://www.npmjs.com/package/@thi.ng/math) | [changelog](./packages/math/CHANGELOG.md) | Assorted common math functions & utilities | -| [`@thi.ng/memoize`](./packages/memoize) | [![version](https://img.shields.io/npm/v/@thi.ng/memoize.svg)](https://www.npmjs.com/package/@thi.ng/memoize) | [changelog](./packages/memoize/CHANGELOG.md) | Function memoization w/ customizable caching | -| [`@thi.ng/mime`](./packages/mime) | [![version](https://img.shields.io/npm/v/@thi.ng/mime.svg)](https://www.npmjs.com/package/@thi.ng/mime) | [changelog](./packages/mime/CHANGELOG.md) | File extension to MIME type mappings | -| [`@thi.ng/paths`](./packages/paths) | [![version](https://img.shields.io/npm/v/@thi.ng/paths.svg)](https://www.npmjs.com/package/@thi.ng/paths) | [changelog](./packages/paths/CHANGELOG.md) | Immutable nested object accessors | -| [`@thi.ng/random`](./packages/random) | [![version](https://img.shields.io/npm/v/@thi.ng/random.svg)](https://www.npmjs.com/package/@thi.ng/random) | [changelog](./packages/random/CHANGELOG.md) | Seedable PRNG implementations w/ unified API | -| [`@thi.ng/strings`](./packages/strings) | [![version](https://img.shields.io/npm/v/@thi.ng/strings.svg)](https://www.npmjs.com/package/@thi.ng/strings) | [changelog](./packages/strings/CHANGELOG.md) | Higher-order string formatting utils | +| Project | Version | Changelog | Description | +|-------------------------------------------|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------------|----------------------------------------------------------| +| [`@thi.ng/api`](./packages/api) | [![version](https://img.shields.io/npm/v/@thi.ng/api.svg)](https://www.npmjs.com/package/@thi.ng/api) | [changelog](./packages/api/CHANGELOG.md) | Common types, decorators, mixins | +| [`@thi.ng/bench`](./packages/bench) | [![version](https://img.shields.io/npm/v/@thi.ng/bench.svg)](https://www.npmjs.com/package/@thi.ng/bench) | [changelog](./packages/bench/CHANGELOG.md) | Basic benchmarking helpers | +| [`@thi.ng/checks`](./packages/checks) | [![version](https://img.shields.io/npm/v/@thi.ng/checks.svg)](https://www.npmjs.com/package/@thi.ng/checks) | [changelog](./packages/checks/CHANGELOG.md) | Type & value checks | +| [`@thi.ng/compare`](./packages/compare) | [![version](https://img.shields.io/npm/v/@thi.ng/compare.svg)](https://www.npmjs.com/package/@thi.ng/compare) | [changelog](./packages/compare/CHANGELOG.md) | Comparator | +| [`@thi.ng/compose`](./packages/compose) | [![version](https://img.shields.io/npm/v/@thi.ng/compose.svg)](https://www.npmjs.com/package/@thi.ng/compose) | [changelog](./packages/compose/CHANGELOG.md) | Functional composition helpers | +| [`@thi.ng/defmulti`](./packages/defmulti) | [![version](https://img.shields.io/npm/v/@thi.ng/defmulti.svg)](https://www.npmjs.com/package/@thi.ng/defmulti) | [changelog](./packages/defmulti/CHANGELOG.md) | Dynamic multiple dispatch | +| [`@thi.ng/dsp`](./packages/dsp) | [![version](https://img.shields.io/npm/v/@thi.ng/dsp.svg)](https://www.npmjs.com/package/@thi.ng/dsp) | [changelog](./packages/dsp/CHANGELOG.md) | DSP utils, oscillators | +| [`@thi.ng/ecs`](./packages/ecs) | [![version](https://img.shields.io/npm/v/@thi.ng/ecs.svg)](https://www.npmjs.com/package/@thi.ng/ecs) | [changelog](./packages/ecs/CHANGELOG.md) | Entity-Component System | +| [`@thi.ng/equiv`](./packages/equiv) | [![version](https://img.shields.io/npm/v/@thi.ng/equiv.svg)](https://www.npmjs.com/package/@thi.ng/equiv) | [changelog](./packages/equiv/CHANGELOG.md) | Deep value equivalence checking | +| [`@thi.ng/errors`](./packages/errors) | [![version](https://img.shields.io/npm/v/@thi.ng/errors.svg)](https://www.npmjs.com/package/@thi.ng/errors) | [changelog](./packages/errors/CHANGELOG.md) | Custom error types | +| [`@thi.ng/math`](./packages/math) | [![version](https://img.shields.io/npm/v/@thi.ng/math.svg)](https://www.npmjs.com/package/@thi.ng/math) | [changelog](./packages/math/CHANGELOG.md) | Assorted common math functions & utilities | +| [`@thi.ng/memoize`](./packages/memoize) | [![version](https://img.shields.io/npm/v/@thi.ng/memoize.svg)](https://www.npmjs.com/package/@thi.ng/memoize) | [changelog](./packages/memoize/CHANGELOG.md) | Function memoization w/ customizable caching | +| [`@thi.ng/mime`](./packages/mime) | [![version](https://img.shields.io/npm/v/@thi.ng/mime.svg)](https://www.npmjs.com/package/@thi.ng/mime) | [changelog](./packages/mime/CHANGELOG.md) | File extension to MIME type mappings | +| [`@thi.ng/paths`](./packages/paths) | [![version](https://img.shields.io/npm/v/@thi.ng/paths.svg)](https://www.npmjs.com/package/@thi.ng/paths) | [changelog](./packages/paths/CHANGELOG.md) | Immutable nested object accessors | +| [`@thi.ng/random`](./packages/random) | [![version](https://img.shields.io/npm/v/@thi.ng/random.svg)](https://www.npmjs.com/package/@thi.ng/random) | [changelog](./packages/random/CHANGELOG.md) | Seedable PRNG implementations w/ unified API | +| [`@thi.ng/strings`](./packages/strings) | [![version](https://img.shields.io/npm/v/@thi.ng/strings.svg)](https://www.npmjs.com/package/@thi.ng/strings) | [changelog](./packages/strings/CHANGELOG.md) | Higher-order string formatting utils | +| [`@thi.ng/system`](./packages/system) | [![version](https://img.shields.io/npm/v/@thi.ng/system.svg)](https://www.npmjs.com/package/@thi.ng/system) | [changelog](./packages/system/CHANGELOG.md) | Minimal life cycle container for stateful app components | ### Iterator, stream & sequence processing @@ -167,7 +168,7 @@ contribute, please first read [this document](./CONTRIBUTING.md). | [`@thi.ng/heaps`](./packages/heaps) | [![version](https://img.shields.io/npm/v/@thi.ng/heaps.svg)](https://www.npmjs.com/package/@thi.ng/heaps) | [changelog](./packages/heaps/CHANGELOG.md) | Binary & d-ary heap impls | | [`@thi.ng/idgen`](./packages/idgen) | [![version](https://img.shields.io/npm/v/@thi.ng/idgen.svg)](https://www.npmjs.com/package/@thi.ng/idgen) | [changelog](./packages/idgen/CHANGELOG.md) | Versioned ID generation / free-list | | [`@thi.ng/intervals`](./packages/intervals) | [![version](https://img.shields.io/npm/v/@thi.ng/intervals.svg)](https://www.npmjs.com/package/@thi.ng/intervals) | [changelog](./packages/intervals/CHANGELOG.md) | Open/closed intervals, queries, set ops | -| [`@thi.ng/ramp`](./packages/ramp) | [![version](https://img.shields.io/npm/v/@thi.ng/ramp.svg)](https://www.npmjs.com/package/@thi.ng/ramp) | [changelog](./packages/ramp/CHANGELOG.md) | Parametric, interpolated lookup tables | +| [`@thi.ng/ramp`](./packages/ramp) | [![version](https://img.shields.io/npm/v/@thi.ng/ramp.svg)](https://www.npmjs.com/package/@thi.ng/ramp) | [changelog](./packages/ramp/CHANGELOG.md) | Parametric, interpolated lookup tables | | [`@thi.ng/quad-edge`](./packages/quad-edge) | [![version](https://img.shields.io/npm/v/@thi.ng/quad-edge.svg)](https://www.npmjs.com/package/@thi.ng/quad-edge) | [changelog](./packages/quad-edge/CHANGELOG.md) | Quad-edge, dual-graph data structure | | [`@thi.ng/resolve-map`](./packages/resolve-map) | [![version](https://img.shields.io/npm/v/@thi.ng/resolve-map.svg)](https://www.npmjs.com/package/@thi.ng/resolve-map) | [changelog](./packages/resolve-map/CHANGELOG.md) | DAG computations & value resolution | | [`@thi.ng/sparse`](./packages/sparse) | [![version](https://img.shields.io/npm/v/@thi.ng/sparse.svg)](https://www.npmjs.com/package/@thi.ng/sparse) | [changelog](./packages/sparse/CHANGELOG.md) | Sparse matrix & vector impls | @@ -197,6 +198,7 @@ contribute, please first read [this document](./CONTRIBUTING.md). | Project | Version | Changelog | Description | |---------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|------------------------------------------| | [`@thi.ng/color`](./packages/color) | [![version](https://img.shields.io/npm/v/@thi.ng/color.svg)](https://www.npmjs.com/package/@thi.ng/color) | [changelog](./packages/color/CHANGELOG.md) | Color conversions, gradients | +| [`@thi.ng/dgraph-dot`](./packages/dgraph-dot) | [![version](https://img.shields.io/npm/v/@thi.ng/dgraph-dot.svg)](https://www.npmjs.com/package/@thi.ng/dgraph-dot) | [changelog](./packages/dgraph-dot/CHANGELOG.md) | Dependency graph -> Graphviz | | [`@thi.ng/dot`](./packages/dot) | [![version](https://img.shields.io/npm/v/@thi.ng/dot.svg)](https://www.npmjs.com/package/@thi.ng/dot) | [changelog](./packages/dot/CHANGELOG.md) | Graphviz DOM & export | | [`@thi.ng/geom`](./packages/geom) | [![version](https://img.shields.io/npm/v/@thi.ng/geom.svg)](https://www.npmjs.com/package/@thi.ng/geom) | [changelog](./packages/geom/CHANGELOG.md) | 2D only geometry types & ops | | [`@thi.ng/geom-accel`](./packages/geom-accel) | [![version](https://img.shields.io/npm/v/@thi.ng/geom-accel.svg)](https://www.npmjs.com/package/@thi.ng/geom-accel) | [changelog](./packages/geom-accel/CHANGELOG.md) | Spatial indexing data structures | diff --git a/assets/system/basic.png b/assets/system/basic.png new file mode 100644 index 0000000000..52109b1769 Binary files /dev/null and b/assets/system/basic.png differ diff --git a/examples/component/src/index.ts b/examples/component/src/index.ts new file mode 100644 index 0000000000..a526600a20 --- /dev/null +++ b/examples/component/src/index.ts @@ -0,0 +1,124 @@ +import { IObjectOf, Fn, Keys } from "@thi.ng/api"; +import { DGraph } from "@thi.ng/dgraph"; + +interface IComponent { + start(): boolean; + stop(): boolean; +} + +class Logger implements IComponent { + info(msg: string) { + console.log(`[info] ${msg}`); + } + start() { + this.info("start logger"); + return true; + } + stop() { + this.info("stop logger"); + return true; + } +} + +class DB implements IComponent { + constructor(protected logger: Logger, protected state: State) {} + + start() { + this.logger.info("start db"); + return true; + } + stop() { + this.logger.info("stop db"); + return true; + } +} + +class State implements IComponent { + constructor(protected logger: Logger) {} + + start() { + this.logger.info("start state"); + return true; + } + stop() { + this.logger.info("stop state"); + return true; + } +} + +type SystemMap = Record, IComponent>; + +type ComponentFactory> = Fn; + +type SystemSpecs> = IObjectOf<{ + factory: ComponentFactory; + deps?: Keys[]; +}>; + +class System> { + components: T; + topo: Keys[]; + + constructor(map: SystemSpecs) { + const graph = new DGraph>(); + for (let id in map) { + const deps = map[id].deps; + if (deps) { + for (let d of deps) { + graph.addDependency(>id, d); + } + } else { + graph.addNode(>id); + } + } + this.topo = graph.sort(); + this.components = {}; + for (let id of this.topo) { + (this.components)[id] = map[id].factory(this.components); + } + } + + start() { + for (let id of this.topo) { + if (!this.components[id].start()) { + console.warn(`error starting component: ${id}`); + } + } + } + stop() { + for (let id of this.topo.slice().reverse()) { + if (!this.components[id].stop()) { + console.warn(`error stopping component: ${id}`); + } + } + } +} + +interface FooSys { + db: DB; + logger: Logger; + state: State; + dummy: IComponent; +} + +const foo = new System({ + db: { + factory: (deps) => new DB(deps.logger, deps.state), + deps: ["logger", "state"], + }, + logger: { factory: () => new Logger() }, + state: { + factory: (deps) => new State(deps.logger), + deps: ["logger"], + }, + dummy: { + factory: ({ logger }) => ({ + start: () => ((logger).info("dummy start"), true), + stop: () => ((logger).info("dummy stop"), true), + }), + }, +}); + +foo.start(); + +foo.stop(); diff --git a/package.json b/package.json index fd790d3edf..922b029972 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "gzip-size": "^5.1.0", "lerna": "^3.20.2", "lodash.template": "^4.5.0", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "parcel-bundler": "^1.12.4", "rimraf": "^3.0.2", diff --git a/packages/adjacency/CHANGELOG.md b/packages/adjacency/CHANGELOG.md index 00386f873f..45869570ef 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.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.34...@thi.ng/adjacency@0.1.35) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/adjacency + + + + + ## [0.1.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/adjacency@0.1.33...@thi.ng/adjacency@0.1.34) (2020-03-28) **Note:** Version bump only for package @thi.ng/adjacency diff --git a/packages/adjacency/README.md b/packages/adjacency/README.md index 008d7ea7d6..147b782b96 100644 --- a/packages/adjacency/README.md +++ b/packages/adjacency/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/adjacency](https://media.thi.ng/umbrella/banners/thing-adjacency.svg?1585427390) +# ![adjacency](https://media.thi.ng/umbrella/banners/thing-adjacency.svg?48d8da32) [![npm version](https://img.shields.io/npm/v/@thi.ng/adjacency.svg)](https://www.npmjs.com/package/@thi.ng/adjacency) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/adjacency.svg) @@ -32,7 +32,7 @@ Sparse & bitwise adjacency matrices and related functions for directed & undirec yarn add @thi.ng/adjacency ``` -Package sizes (gzipped): ESM: 1.80 KB / CJS: 1.87 KB / UMD: 1.95 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.80 KB / CJS: 1.88 KB / UMD: 1.96 KB ## Dependencies diff --git a/packages/adjacency/package.json b/packages/adjacency/package.json index 53974108cb..d29fbac51a 100644 --- a/packages/adjacency/package.json +++ b/packages/adjacency/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/adjacency", - "version": "0.1.34", + "version": "0.1.35", "description": "Sparse & bitwise adjacency matrices and related functions for directed & undirected graphs", "module": "./index.js", "main": "./lib/index.js", @@ -29,22 +29,22 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/vectors": "^4.2.3", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/bitfield": "^0.3.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/sparse": "^0.1.31", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/bitfield": "^0.3.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/sparse": "^0.1.32", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/adjacency/src/api.ts b/packages/adjacency/src/api.ts index 448ba44e44..f171b55f38 100644 --- a/packages/adjacency/src/api.ts +++ b/packages/adjacency/src/api.ts @@ -1,9 +1,9 @@ import type { Fn2, Pair } from "@thi.ng/api"; -export const enum DegreeType { +export enum DegreeType { IN, OUT, - BOTH + BOTH, } export interface IGraph { diff --git a/packages/adjacency/test/tsconfig.json b/packages/adjacency/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/adjacency/test/tsconfig.json +++ b/packages/adjacency/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 7794f39315..d91be11530 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. +## [6.9.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.9.0...@thi.ng/api@6.9.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/api + + + + + # [6.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.8.3...@thi.ng/api@6.9.0) (2020-03-28) diff --git a/packages/api/README.md b/packages/api/README.md index 6b321e576a..48ffc5d36e 100644 --- a/packages/api/README.md +++ b/packages/api/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/api](https://media.thi.ng/umbrella/banners/thing-api.svg?1585427305) +# ![api](https://media.thi.ng/umbrella/banners/thing-api.svg?56b8f72e) [![npm version](https://img.shields.io/npm/v/@thi.ng/api.svg)](https://www.npmjs.com/package/@thi.ng/api) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/api.svg) @@ -44,7 +44,7 @@ repository. It defines: yarn add @thi.ng/api ``` -Package sizes (gzipped): ESM: 1.97 KB / CJS: 2.07 KB / UMD: 2.05 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.01 KB / CJS: 2.14 KB / UMD: 2.12 KB ## Dependencies diff --git a/packages/api/package.json b/packages/api/package.json index e697f95b99..846b367a10 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/api", - "version": "6.9.0", + "version": "6.9.1", "description": "Common, generic types, interfaces & mixins", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/api/src/api/typedarray.ts b/packages/api/src/api/typedarray.ts index 74eb430d22..b1745f89c0 100644 --- a/packages/api/src/api/typedarray.ts +++ b/packages/api/src/api/typedarray.ts @@ -35,7 +35,7 @@ export type TypedArrayConstructor = * {@link GL2TYPE} * {@link TYPE2GL} */ -export const enum Type { +export enum Type { U8, U8C, I8, @@ -44,7 +44,7 @@ export const enum Type { U32, I32, F32, - F64 + F64, } export type UintType = Type.U8 | Type.U16 | Type.U32; @@ -60,14 +60,14 @@ export type FloatType = Type.F32 | Type.F64; * {@link GL2TYPE} * {@link TYPE2GL} */ -export const enum GLType { +export enum GLType { I8 = 0x1400, U8 = 0x1401, I16 = 0x1402, U16 = 0x1403, I32 = 0x1404, U32 = 0x1405, - F32 = 0x1406 + F32 = 0x1406, } /** @@ -80,7 +80,7 @@ export const GL2TYPE: Record = { [GLType.U16]: Type.U16, [GLType.I32]: Type.I32, [GLType.U32]: Type.U32, - [GLType.F32]: Type.F32 + [GLType.F32]: Type.F32, }; /** @@ -101,7 +101,7 @@ export const TYPE2GL: Record = { [Type.I32]: GLType.I32, [Type.U32]: GLType.U32, [Type.F32]: GLType.F32, - [Type.F64]: undefined + [Type.F64]: undefined, }; /** @@ -117,7 +117,7 @@ export const SIZEOF = { [Type.U32]: 4, [Type.I32]: 4, [Type.F32]: 4, - [Type.F64]: 8 + [Type.F64]: 8, }; export const TYPEDARRAY_CTORS: Record = { @@ -136,7 +136,7 @@ export const TYPEDARRAY_CTORS: Record = { [GLType.I16]: Int16Array, [GLType.U32]: Uint32Array, [GLType.I32]: Int32Array, - [GLType.F32]: Float32Array + [GLType.F32]: Float32Array, }; export interface TypedArrayTypeMap extends Record { diff --git a/packages/api/test/tsconfig.json b/packages/api/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/api/test/tsconfig.json +++ b/packages/api/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/arrays/CHANGELOG.md b/packages/arrays/CHANGELOG.md index 795868952d..c0ea6dbe2e 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.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.6.0...@thi.ng/arrays@0.6.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/arrays + + + + + # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/arrays@0.5.6...@thi.ng/arrays@0.6.0) (2020-03-28) diff --git a/packages/arrays/README.md b/packages/arrays/README.md index 59dbf39db1..a12030b913 100644 --- a/packages/arrays/README.md +++ b/packages/arrays/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/arrays](https://media.thi.ng/umbrella/banners/thing-arrays.svg?1585427344) +# ![arrays](https://media.thi.ng/umbrella/banners/thing-arrays.svg?f87eb97c) [![npm version](https://img.shields.io/npm/v/@thi.ng/arrays.svg)](https://www.npmjs.com/package/@thi.ng/arrays) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/arrays.svg) @@ -32,7 +32,7 @@ Array / Arraylike utilities. yarn add @thi.ng/arrays ``` -Package sizes (gzipped): ESM: 1.73 KB / CJS: 1.88 KB / UMD: 1.87 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.73 KB / CJS: 1.88 KB / UMD: 1.87 KB ## Dependencies diff --git a/packages/arrays/package.json b/packages/arrays/package.json index dc2ab974bd..ef25d7bbad 100644 --- a/packages/arrays/package.json +++ b/packages/arrays/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/arrays", - "version": "0.6.0", + "version": "0.6.1", "description": "Array / Arraylike utilities", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compare": "^1.2.2", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/random": "^1.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compare": "^1.3.0", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/random": "^1.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/arrays/test/tsconfig.json b/packages/arrays/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/arrays/test/tsconfig.json +++ b/packages/arrays/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/associative/CHANGELOG.md b/packages/associative/CHANGELOG.md index 079cea2d6b..c86c1b5b06 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. +## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@4.0.0...@thi.ng/associative@4.0.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/associative + + + + + # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/associative@3.1.8...@thi.ng/associative@4.0.0) (2020-03-28) diff --git a/packages/associative/README.md b/packages/associative/README.md index eb08145822..c9eb60ce5a 100644 --- a/packages/associative/README.md +++ b/packages/associative/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/associative](https://media.thi.ng/umbrella/banners/thing-associative.svg?1585427371) +# ![associative](https://media.thi.ng/umbrella/banners/thing-associative.svg?36d13909) [![npm version](https://img.shields.io/npm/v/@thi.ng/associative.svg)](https://www.npmjs.com/package/@thi.ng/associative) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/associative.svg) @@ -164,7 +164,7 @@ map.get([3,4], "n/a"); yarn add @thi.ng/associative ``` -Package sizes (gzipped): ESM: 5.28 KB / CJS: 5.45 KB / UMD: 5.27 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.28 KB / CJS: 5.45 KB / UMD: 5.27 KB ## Dependencies diff --git a/packages/associative/package.json b/packages/associative/package.json index cd5ccd9475..daad48d55d 100644 --- a/packages/associative/package.json +++ b/packages/associative/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/associative", - "version": "4.0.0", + "version": "4.0.1", "description": "Alternative Map and Set implementations with customizable equality semantics & supporting operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,21 +31,21 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compare": "^1.2.2", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compare": "^1.3.0", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/associative/test/tsconfig.json b/packages/associative/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/associative/test/tsconfig.json +++ b/packages/associative/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/atom/CHANGELOG.md b/packages/atom/CHANGELOG.md index 0acfd60d6f..e02d32cc53 100644 --- a/packages/atom/CHANGELOG.md +++ b/packages/atom/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. +## [4.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.1.0...@thi.ng/atom@4.1.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/atom + + + + + +# [4.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@4.0.0...@thi.ng/atom@4.1.0) (2020-04-01) + + +### Features + +* **atom:** protect Transacted against out-of-phase updates ([675a25b](https://github.com/thi-ng/umbrella/commit/675a25b50af563fc3b3093a2484da5aac9095a5f)) + + + + + # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@3.1.8...@thi.ng/atom@4.0.0) (2020-03-28) diff --git a/packages/atom/README.md b/packages/atom/README.md index 666c257ad1..4010209337 100644 --- a/packages/atom/README.md +++ b/packages/atom/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/atom](https://media.thi.ng/umbrella/banners/thing-atom.svg?1585427344) +# ![atom](https://media.thi.ng/umbrella/banners/thing-atom.svg?04cf5abd) [![npm version](https://img.shields.io/npm/v/@thi.ng/atom.svg)](https://www.npmjs.com/package/@thi.ng/atom) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/atom.svg) @@ -22,6 +22,8 @@ This project is part of the - [API](#api) - [Atom](#atom) - [Transacted updates](#transacted-updates) + - [Nested transactions](#nested-transactions) + - [External modifications during active transaction](#external-modifications-during-active-transaction) - [Cursor](#cursor) - [Derived views](#derived-views) - [Undo / Redo history](#undo---redo-history) @@ -92,7 +94,7 @@ have been removed. yarn add @thi.ng/atom ``` -Package sizes (gzipped): ESM: 1.76 KB / CJS: 1.83 KB / UMD: 1.87 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.82 KB / CJS: 1.89 KB / UMD: 1.93 KB ## Dependencies @@ -229,13 +231,12 @@ state is only updated once and watches too are only notified once after each commit. Transactions can also be canceled, thus not impacting the parent state -at all. Nested transactions are *not* supported and attempting to do so -will throw an error. +at all. -The `Transacted` class can wrap any existing `IAtom` implementation, -e.g. `Atom`, `Cursor` or `History` instances and implements `IAtom` -itself... **Nested transactions can be achieved by wrapping another -`Transacted` container.** +`Transacted` can wrap any existing +[IAtom](https://github.com/thi-ng/umbrella/blob/develop/packages/atom/src/api.ts#L29) +implementation, e.g. `Atom`, `Cursor` or `History` instances. +`Transacted` also implements `IAtom` itself... ```ts const db = defAtom({ a: 1, b: 2 }); @@ -244,8 +245,13 @@ const tx = defTransacted(db); // start transaction tx.begin(); +// alternatively use syntax sugar for: +// `defTransacted(db).begin()` +tx = beginTransaction(db); + // perform multiple updates -// (none of them are applied until `commit` is called) +// (none of them are applied to the parent state +// until `commit` is called) // IMPORTANT: calling any of these update methods without // a running transaction will throw an error! tx.resetIn(["a"], 11); @@ -255,7 +261,8 @@ tx.resetIn(["c"], 33); tx.deref() // { a: 11, b: 2, c: 33 } -// however, at this point db.deref() still yields pre-transaction state +// however, at this point the parent +// still contains pre-transaction state... db.deref() // { a: 1, b: 2 } @@ -268,6 +275,42 @@ db.deref() // { a: 11, b: 2, c: 33 } ``` +#### Nested transactions + +Nested transactions on a single `Transacted` instance are **not** +supported and attempting to do so will throw an error. However, nested +transactions can be achieved by wrapping another `Transacted` container. + +```ts +const tx1 = beginTransaction(db); +tx1.resetIn(["a"], 10); + +// nested transaction +const tx2 = beginTransaction(tx1); +tx2.resetIn(["b"], 20); +tx2.commit(); + +tx1.commit(); + +db.deref(); +// { a: 10, b: 20 } +``` + +#### External modifications during active transaction + +An error will be thrown if the parent change receives any updates whilst +a transaction is active. This is to guarantee general data integrity and +to signal race conditions due to erroneous / out-of-phase state update +logic. + +```ts +const tx = beginTransaction(db); +tx.resetIn(["a"], 10); + +// attempting to update parent will throw an error +db.resetIn(["a"], 2); +``` + ### Cursor Cursors provide direct & immutable access to a nested value within a diff --git a/packages/atom/README.tpl.md b/packages/atom/README.tpl.md index 7259d5eec4..2ee9353f81 100644 --- a/packages/atom/README.tpl.md +++ b/packages/atom/README.tpl.md @@ -189,13 +189,12 @@ state is only updated once and watches too are only notified once after each commit. Transactions can also be canceled, thus not impacting the parent state -at all. Nested transactions are *not* supported and attempting to do so -will throw an error. +at all. -The `Transacted` class can wrap any existing `IAtom` implementation, -e.g. `Atom`, `Cursor` or `History` instances and implements `IAtom` -itself... **Nested transactions can be achieved by wrapping another -`Transacted` container.** +`Transacted` can wrap any existing +[IAtom](https://github.com/thi-ng/umbrella/blob/develop/packages/atom/src/api.ts#L29) +implementation, e.g. `Atom`, `Cursor` or `History` instances. +`Transacted` also implements `IAtom` itself... ```ts const db = defAtom({ a: 1, b: 2 }); @@ -204,8 +203,13 @@ const tx = defTransacted(db); // start transaction tx.begin(); +// alternatively use syntax sugar for: +// `defTransacted(db).begin()` +tx = beginTransaction(db); + // perform multiple updates -// (none of them are applied until `commit` is called) +// (none of them are applied to the parent state +// until `commit` is called) // IMPORTANT: calling any of these update methods without // a running transaction will throw an error! tx.resetIn(["a"], 11); @@ -215,7 +219,8 @@ tx.resetIn(["c"], 33); tx.deref() // { a: 11, b: 2, c: 33 } -// however, at this point db.deref() still yields pre-transaction state +// however, at this point the parent +// still contains pre-transaction state... db.deref() // { a: 1, b: 2 } @@ -228,6 +233,42 @@ db.deref() // { a: 11, b: 2, c: 33 } ``` +#### Nested transactions + +Nested transactions on a single `Transacted` instance are **not** +supported and attempting to do so will throw an error. However, nested +transactions can be achieved by wrapping another `Transacted` container. + +```ts +const tx1 = beginTransaction(db); +tx1.resetIn(["a"], 10); + +// nested transaction +const tx2 = beginTransaction(tx1); +tx2.resetIn(["b"], 20); +tx2.commit(); + +tx1.commit(); + +db.deref(); +// { a: 10, b: 20 } +``` + +#### External modifications during active transaction + +An error will be thrown if the parent change receives any updates whilst +a transaction is active. This is to guarantee general data integrity and +to signal race conditions due to erroneous / out-of-phase state update +logic. + +```ts +const tx = beginTransaction(db); +tx.resetIn(["a"], 10); + +// attempting to update parent will throw an error +db.resetIn(["a"], 2); +``` + ### Cursor Cursors provide direct & immutable access to a nested value within a diff --git a/packages/atom/package.json b/packages/atom/package.json index 6f716a355a..a3482bd4ce 100644 --- a/packages/atom/package.json +++ b/packages/atom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/atom", - "version": "4.0.0", + "version": "4.1.1", "description": "Mutable wrappers for nested immutable values with optional undo/redo history and transaction support", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/paths": "^4.0.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/paths": "^4.0.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/atom/src/transacted.ts b/packages/atom/src/transacted.ts index 4ac676892c..f1a8f214ad 100644 --- a/packages/atom/src/transacted.ts +++ b/packages/atom/src/transacted.ts @@ -15,12 +15,27 @@ import type { PathVal, Watch, } from "@thi.ng/api"; +import { illegalState } from "@thi.ng/errors"; import { setInUnsafe, updateInUnsafe } from "@thi.ng/paths"; import type { IAtom, SwapFn } from "./api"; import { nextID } from "./idgen"; +/** + * Return a new {@link Transacted} state wrapper. + * + * @param parent + */ export const defTransacted = (parent: IAtom) => new Transacted(parent); +/** + * Like {@link defTransacted}, but immediately starts new transaction as + * well, i.e. same as `defTransacted(state).begin()`. + * + * @param parent + */ +export const beginTransaction = (parent: IAtom) => + new Transacted(parent).begin(); + export class Transacted implements IAtom { parent: IAtom; current: T | undefined; @@ -91,7 +106,7 @@ export class Transacted implements IAtom { ): T; resetIn(path: Path, val: any) { this.ensureTx(); - return this.reset(setInUnsafe(this.current, path, val)); + return (this.current = setInUnsafe(this.current, path, val)); } resetInUnsafe(path: Path, val: any) { @@ -100,7 +115,7 @@ export class Transacted implements IAtom { swap(fn: SwapFn, ...args: any[]) { this.ensureTx(); - return this.reset(fn.apply(null, [this.current!, ...args])); + return (this.current = fn.apply(null, [this.current!, ...args])); } swapIn(path: Path0, fn: SwapFn, ...args: any[]): T; @@ -160,7 +175,7 @@ export class Transacted implements IAtom { ): T; swapIn(path: Path, fn: SwapFn, ...args: any[]) { this.ensureTx(); - return this.reset(updateInUnsafe(this.current, path, fn, ...args)); + return (this.current = updateInUnsafe(this.current, path, fn, ...args)); } swapInUnsafe(path: Path, fn: SwapFn, ...args: any[]) { @@ -171,21 +186,25 @@ export class Transacted implements IAtom { assert(!this.isActive, "transaction already started"); this.current = this.parent.deref(); this.isActive = true; + this.parent.addWatch(this.id + "--guard--", () => + illegalState( + `${this.id} parent state changed during active transaction` + ) + ); + return this; } commit() { - this.ensureTx(); const val = this.current!; - this.parent.reset(this.current!); - this.isActive = false; - this.current = undefined; - return val; + this.cancel(); + return this.parent.reset(val); } cancel() { this.ensureTx(); - this.isActive = false; + this.parent.removeWatch(this.id + "--guard--"); this.current = undefined; + this.isActive = false; } addWatch(id: string, watch: Watch) { diff --git a/packages/atom/test/transacted.ts b/packages/atom/test/transacted.ts index dc5fecafb9..2b243db620 100644 --- a/packages/atom/test/transacted.ts +++ b/packages/atom/test/transacted.ts @@ -1,10 +1,11 @@ import * as assert from "assert"; import { Atom, - defView, - Transacted, + beginTransaction, defAtom, defTransacted, + defView, + Transacted, } from "../src/index"; interface State { @@ -59,6 +60,54 @@ describe("transacted", () => { assert.throws(() => (_tx.value = {}), "no .value"); }); + it("no ext edits inside tx", () => { + tx.begin(); + tx.resetIn(["a"], 10); + assert.throws(() => db.resetIn(["a"], 2)); + tx.commit(); + assert.deepEqual(db.deref(), { a: 10, b: 2 }); + assert.deepEqual(tx.deref(), { a: 10, b: 2 }); + + tx.begin(); + tx.resetIn(["b"], 20); + assert.throws(() => db.resetIn(["b"], 3)); + tx.cancel(); + // `b=3` because we caught the guard error + assert.deepEqual(db.deref(), { a: 10, b: 3 }); + assert.deepEqual(tx.deref(), { a: 10, b: 3 }); + }); + + it("beginTransaction", () => { + tx = beginTransaction(db); + assert(tx instanceof Transacted); + tx.resetIn(["a"], 10); + tx.commit(); + assert.deepEqual(db.deref(), { a: 10, b: 2 }); + }); + + it("race (2x transactions)", () => { + let tx1 = beginTransaction(db); + let tx2 = beginTransaction(db); + tx1.resetIn(["a"], 10); + tx2.resetIn(["b"], 20); + assert.throws(() => tx1.commit()); + tx2.commit(); + // tx2 succeeds only because we caught tx1.commit() error + assert.deepEqual(db.deref(), { a: 1, b: 20 }); + }); + + it("nested transactions", () => { + let tx1 = beginTransaction(db); + tx1.resetIn(["a"], 10); + let tx2 = beginTransaction(tx1); + tx2.resetIn(["b"], 20); + tx2.commit(); + assert.deepEqual(tx1.deref(), { a: 10, b: 20 }); + tx1.commit(); + assert.deepEqual(db.deref(), { a: 10, b: 20 }); + assert.deepEqual(tx1.deref(), { a: 10, b: 20 }); + }); + it("watches", () => { let count = 0; const _tx = >tx; diff --git a/packages/atom/test/tsconfig.json b/packages/atom/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/atom/test/tsconfig.json +++ b/packages/atom/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/bench/CHANGELOG.md b/packages/bench/CHANGELOG.md index f3da1357d4..969c24e6ad 100644 --- a/packages/bench/CHANGELOG.md +++ b/packages/bench/CHANGELOG.md @@ -3,6 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.6...@thi.ng/bench@2.0.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/bench + + + + + +## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.5...@thi.ng/bench@2.0.6) (2020-04-03) + + +### Bug Fixes + +* **bench:** fallback handlingin now() ([6494851](https://github.com/thi-ng/umbrella/commit/64948518a6412cabf53664ac9f89bac2b7ef6892)) +* **bench:** update timedResult() to always downscale to ms ([fb2c632](https://github.com/thi-ng/umbrella/commit/fb2c6327358ccaf93314d2cdbfd3f8ff04becbd1)) + + + + + ## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/bench@2.0.4...@thi.ng/bench@2.0.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/bench diff --git a/packages/bench/README.md b/packages/bench/README.md index aec8eec17b..e59994e890 100644 --- a/packages/bench/README.md +++ b/packages/bench/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/bench](https://media.thi.ng/umbrella/banners/thing-bench.svg?1585427306) +# ![bench](https://media.thi.ng/umbrella/banners/thing-bench.svg?b7925630) [![npm version](https://img.shields.io/npm/v/@thi.ng/bench.svg)](https://www.npmjs.com/package/@thi.ng/bench) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/bench.svg) @@ -41,7 +41,7 @@ still only sourced via `Date.now()`. yarn add @thi.ng/bench ``` -Package sizes (gzipped): ESM: 695 bytes / CJS: 757 bytes / UMD: 824 bytes +Package sizes (gzipped, pre-treeshake): ESM: 685 bytes / CJS: 746 bytes / UMD: 812 bytes ## Dependencies diff --git a/packages/bench/package.json b/packages/bench/package.json index 682cb96f15..d19af2c1d5 100644 --- a/packages/bench/package.json +++ b/packages/bench/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bench", - "version": "2.0.5", + "version": "2.0.7", "description": "Benchmarking utilities w/ optional statistics", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/bench/src/now.ts b/packages/bench/src/now.ts index 98913f80bd..6b67fb5087 100644 --- a/packages/bench/src/now.ts +++ b/packages/bench/src/now.ts @@ -1,9 +1,7 @@ -let M: bigint; - /** * If available, returns wrapper for `process.hrtime.bigint()` else - * falls back to `Date.now()` (scaled to nanoseconds). In all cases, - * returns a `bigint` timestamp. + * falls back to `Date.now()`. In all cases, returns a nanosec-scale + * timestamp, either as `bigint` or `number`. */ export const now = typeof BigInt !== "undefined" @@ -11,5 +9,5 @@ export const now = typeof process.hrtime !== "undefined" && typeof process.hrtime.bigint === "function" ? () => process.hrtime.bigint() - : ((M = BigInt(1_000_000)), () => BigInt(Date.now()) * M) - : () => Date.now(); + : () => BigInt(Date.now() * 1e6) + : () => Date.now() * 1e6; diff --git a/packages/bench/src/timed.ts b/packages/bench/src/timed.ts index 430f1d0b96..b07827d909 100644 --- a/packages/bench/src/timed.ts +++ b/packages/bench/src/timed.ts @@ -17,7 +17,7 @@ export const timed = (fn: () => T, prefix = "") => { /** * Similar to {@link timed}, but produces no output and instead returns - * tuple of `fn`'s result and the time measurement. + * tuple of `fn`'s result and the time measurement (in milliseconds). * * @param fn - function to time */ @@ -27,8 +27,8 @@ export const timedResult = (fn: () => T): TimingResult => { const t1 = now(); return [ res, - typeof BigInt !== "undefined" - ? Number(t1 - t0) * 1e-6 - : t1 - t0 + (typeof BigInt !== "undefined" + ? Number(t1 - t0) + : t1 - t0) * 1e-6, ]; }; diff --git a/packages/bench/test/tsconfig.json b/packages/bench/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/bench/test/tsconfig.json +++ b/packages/bench/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/bencode/CHANGELOG.md b/packages/bencode/CHANGELOG.md index cf6a787165..cedbcadd42 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.15...@thi.ng/bencode@0.3.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/bencode + + + + + ## [0.3.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/bencode@0.3.14...@thi.ng/bencode@0.3.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/bencode diff --git a/packages/bencode/README.md b/packages/bencode/README.md index bb4b3dce6c..416ca5b120 100644 --- a/packages/bencode/README.md +++ b/packages/bencode/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/bencode](https://media.thi.ng/umbrella/banners/thing-bencode.svg?1585427381) +# ![bencode](https://media.thi.ng/umbrella/banners/thing-bencode.svg?a2e48208) [![npm version](https://img.shields.io/npm/v/@thi.ng/bencode.svg)](https://www.npmjs.com/package/@thi.ng/bencode) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/bencode.svg) @@ -58,7 +58,7 @@ semi-open `[1e-6,1e21)` interval can be encoded. yarn add @thi.ng/bencode ``` -Package sizes (gzipped): ESM: 1.17 KB / CJS: 1.23 KB / UMD: 1.28 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.17 KB / CJS: 1.23 KB / UMD: 1.28 KB ## Dependencies diff --git a/packages/bencode/package.json b/packages/bencode/package.json index 87f40018b7..5943c4d774 100644 --- a/packages/bencode/package.json +++ b/packages/bencode/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bencode", - "version": "0.3.15", + "version": "0.3.16", "description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support", "module": "./index.js", "main": "./lib/index.js", @@ -31,20 +31,20 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/defmulti": "^1.2.8", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/transducers-binary": "^0.5.5", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/defmulti": "^1.2.9", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/transducers-binary": "^0.5.6", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/bencode/test/tsconfig.json b/packages/bencode/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/bencode/test/tsconfig.json +++ b/packages/bencode/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/bencode/tsconfig.json b/packages/bencode/tsconfig.json index faed4e5fe7..a8e5ee0bac 100644 --- a/packages/bencode/tsconfig.json +++ b/packages/bencode/tsconfig.json @@ -4,9 +4,8 @@ "outDir": ".", "module": "es6", "target": "es6", - "preserveConstEnums": false + "preserveConstEnums": false, + "isolatedModules": false }, - "include": [ - "./src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./src/**/*.ts"] +} diff --git a/packages/binary/CHANGELOG.md b/packages/binary/CHANGELOG.md index 9031a1be43..99921e55c1 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.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.1...@thi.ng/binary@2.0.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/binary + + + + + ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.0...@thi.ng/binary@2.0.1) (2020-03-28) **Note:** Version bump only for package @thi.ng/binary diff --git a/packages/binary/README.md b/packages/binary/README.md index c83b0b7ee1..72f961d5d3 100644 --- a/packages/binary/README.md +++ b/packages/binary/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/binary](https://media.thi.ng/umbrella/banners/thing-binary.svg?1585427306) +# ![binary](https://media.thi.ng/umbrella/banners/thing-binary.svg?0e2f5170) [![npm version](https://img.shields.io/npm/v/@thi.ng/binary.svg)](https://www.npmjs.com/package/@thi.ng/binary) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/binary.svg) @@ -32,7 +32,7 @@ This project is part of the yarn add @thi.ng/binary ``` -Package sizes (gzipped): ESM: 1.87 KB / CJS: 2.19 KB / UMD: 1.85 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.87 KB / CJS: 2.19 KB / UMD: 1.85 KB ## Dependencies diff --git a/packages/binary/package.json b/packages/binary/package.json index 857fd0360e..c09e7e2026 100644 --- a/packages/binary/package.json +++ b/packages/binary/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/binary", - "version": "2.0.1", + "version": "2.0.2", "description": "95+ assorted binary / bitwise operations, conversions, utilities", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/binary/test/tsconfig.json b/packages/binary/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/binary/test/tsconfig.json +++ b/packages/binary/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/bitfield/CHANGELOG.md b/packages/bitfield/CHANGELOG.md index 0b4f6d42cc..955bf1e1da 100644 --- a/packages/bitfield/CHANGELOG.md +++ b/packages/bitfield/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.1...@thi.ng/bitfield@0.3.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/bitfield + + + + + ## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitfield@0.3.0...@thi.ng/bitfield@0.3.1) (2020-03-28) **Note:** Version bump only for package @thi.ng/bitfield diff --git a/packages/bitfield/README.md b/packages/bitfield/README.md index 69badde908..1193c23d11 100644 --- a/packages/bitfield/README.md +++ b/packages/bitfield/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/bitfield](https://media.thi.ng/umbrella/banners/thing-bitfield.svg?1585427349) +# ![bitfield](https://media.thi.ng/umbrella/banners/thing-bitfield.svg?20dbf443) [![npm version](https://img.shields.io/npm/v/@thi.ng/bitfield.svg)](https://www.npmjs.com/package/@thi.ng/bitfield) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/bitfield.svg) @@ -34,7 +34,7 @@ backing the width is always rounded to a multiple of 32. yarn add @thi.ng/bitfield ``` -Package sizes (gzipped): ESM: 947 bytes / CJS: 1008 bytes / UMD: 1.06 KB +Package sizes (gzipped, pre-treeshake): ESM: 947 bytes / CJS: 1008 bytes / UMD: 1.06 KB ## Dependencies diff --git a/packages/bitfield/package.json b/packages/bitfield/package.json index dace5a08d9..1a3227d59e 100644 --- a/packages/bitfield/package.json +++ b/packages/bitfield/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bitfield", - "version": "0.3.1", + "version": "0.3.2", "description": "1D / 2D bit field implementations", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/strings": "^1.8.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/strings": "^1.8.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/bitfield/test/tsconfig.json b/packages/bitfield/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/bitfield/test/tsconfig.json +++ b/packages/bitfield/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/bitstream/CHANGELOG.md b/packages/bitstream/CHANGELOG.md index 6bc0ca3d87..92e9ce5215 100644 --- a/packages/bitstream/CHANGELOG.md +++ b/packages/bitstream/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.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.11...@thi.ng/bitstream@1.1.12) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/bitstream + + + + + ## [1.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/bitstream@1.1.10...@thi.ng/bitstream@1.1.11) (2020-03-28) **Note:** Version bump only for package @thi.ng/bitstream diff --git a/packages/bitstream/README.md b/packages/bitstream/README.md index 159996b8e7..3090eff5a2 100644 --- a/packages/bitstream/README.md +++ b/packages/bitstream/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/bitstream](https://media.thi.ng/umbrella/banners/thing-bitstream.svg?1585427314) +# ![bitstream](https://media.thi.ng/umbrella/banners/thing-bitstream.svg?dee9ec9a) [![npm version](https://img.shields.io/npm/v/@thi.ng/bitstream.svg)](https://www.npmjs.com/package/@thi.ng/bitstream) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/bitstream.svg) @@ -33,7 +33,7 @@ ES6 iterator based read/write bit streams with support for variable word widths. yarn add @thi.ng/bitstream ``` -Package sizes (gzipped): ESM: 1.09 KB / CJS: 1.14 KB / UMD: 1.21 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.09 KB / CJS: 1.14 KB / UMD: 1.21 KB ## Dependencies diff --git a/packages/bitstream/package.json b/packages/bitstream/package.json index e62e7db366..b668269ad8 100644 --- a/packages/bitstream/package.json +++ b/packages/bitstream/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/bitstream", - "version": "1.1.11", + "version": "1.1.12", "description": "ES6 iterator based read/write bit streams with support for variable word widths", "module": "./index.js", "main": "./lib/index.js", @@ -27,7 +27,7 @@ "pub": "yarn build:release && yarn publish --access public" }, "dependencies": { - "@thi.ng/errors": "^1.2.8", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "devDependencies": { @@ -35,7 +35,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/bitstream/test/tsconfig.json b/packages/bitstream/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/bitstream/test/tsconfig.json +++ b/packages/bitstream/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index cd11eb5e48..d1956bdd9a 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.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.35...@thi.ng/cache@1.0.36) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/cache + + + + + ## [1.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/cache@1.0.34...@thi.ng/cache@1.0.35) (2020-03-28) **Note:** Version bump only for package @thi.ng/cache diff --git a/packages/cache/README.md b/packages/cache/README.md index 3a44d26b4c..bbdfc9336e 100644 --- a/packages/cache/README.md +++ b/packages/cache/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/cache](https://media.thi.ng/umbrella/banners/thing-cache.svg?1585427371) +# ![cache](https://media.thi.ng/umbrella/banners/thing-cache.svg?ed3a859c) [![npm version](https://img.shields.io/npm/v/@thi.ng/cache.svg)](https://www.npmjs.com/package/@thi.ng/cache) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/cache.svg) @@ -53,7 +53,7 @@ strategies](https://en.wikipedia.org/wiki/Cache_replacement_policies). yarn add @thi.ng/cache ``` -Package sizes (gzipped): ESM: 1.02 KB / CJS: 1.08 KB / UMD: 1.18 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.02 KB / CJS: 1.08 KB / UMD: 1.18 KB ## Dependencies diff --git a/packages/cache/package.json b/packages/cache/package.json index 91c4dad014..2d82eecccf 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/cache", - "version": "1.0.35", + "version": "1.0.36", "description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/cache/test/tsconfig.json b/packages/cache/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/cache/test/tsconfig.json +++ b/packages/cache/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/checks/CHANGELOG.md b/packages/checks/CHANGELOG.md index f0ba454b53..866f35bfad 100644 --- a/packages/checks/CHANGELOG.md +++ b/packages/checks/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.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.6.0...@thi.ng/checks@2.6.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/checks + + + + + # [2.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.5.4...@thi.ng/checks@2.6.0) (2020-03-28) diff --git a/packages/checks/README.md b/packages/checks/README.md index cb54f344a2..2adfeaa218 100644 --- a/packages/checks/README.md +++ b/packages/checks/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/checks](https://media.thi.ng/umbrella/banners/thing-checks.svg?1585427306) +# ![checks](https://media.thi.ng/umbrella/banners/thing-checks.svg?37983184) [![npm version](https://img.shields.io/npm/v/@thi.ng/checks.svg)](https://www.npmjs.com/package/@thi.ng/checks) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/checks.svg) @@ -33,7 +33,7 @@ Collection of 50+ type, feature & value checks. yarn add @thi.ng/checks ``` -Package sizes (gzipped): ESM: 1.46 KB / CJS: 1.71 KB / UMD: 1.44 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.46 KB / CJS: 1.71 KB / UMD: 1.44 KB ## Dependencies diff --git a/packages/checks/package.json b/packages/checks/package.json index 8cdb40003f..42bcfaf275 100644 --- a/packages/checks/package.json +++ b/packages/checks/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/checks", - "version": "2.6.0", + "version": "2.6.1", "description": "Collection of 50+ type, feature & value checks", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/checks/test/tsconfig.json b/packages/checks/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/checks/test/tsconfig.json +++ b/packages/checks/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/color/CHANGELOG.md b/packages/color/CHANGELOG.md index 9b7886faf7..f785ad5860 100644 --- a/packages/color/CHANGELOG.md +++ b/packages/color/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.1.11...@thi.ng/color@1.1.12) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/color + + + + + ## [1.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.1.10...@thi.ng/color@1.1.11) (2020-03-28) **Note:** Version bump only for package @thi.ng/color diff --git a/packages/color/README.md b/packages/color/README.md index 2f25ab12a9..4e0ebeecd7 100644 --- a/packages/color/README.md +++ b/packages/color/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/color](https://media.thi.ng/umbrella/banners/thing-color.svg?1585427390) +# ![color](https://media.thi.ng/umbrella/banners/thing-color.svg?f089ad05) [![npm version](https://img.shields.io/npm/v/@thi.ng/color.svg)](https://www.npmjs.com/package/@thi.ng/color) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/color.svg) @@ -180,7 +180,7 @@ col.multiCosineGradient( yarn add @thi.ng/color ``` -Package sizes (gzipped): ESM: 7.06 KB / CJS: 7.41 KB / UMD: 6.94 KB +Package sizes (gzipped, pre-treeshake): ESM: 7.16 KB / CJS: 7.53 KB / UMD: 7.07 KB ## Dependencies diff --git a/packages/color/package.json b/packages/color/package.json index 016558923a..35da4a48c3 100644 --- a/packages/color/package.json +++ b/packages/color/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/color", - "version": "1.1.11", + "version": "1.1.12", "description": "Array-based color ops, conversions, multi-color gradients, presets", "module": "./index.js", "main": "./lib/index.js", @@ -31,22 +31,22 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compose": "^1.4.0", - "@thi.ng/defmulti": "^1.2.8", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/math": "^1.7.4", - "@thi.ng/strings": "^1.8.0", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compose": "^1.4.1", + "@thi.ng/defmulti": "^1.2.9", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/strings": "^1.8.1", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/color/src/constants.ts b/packages/color/src/constants.ts index 04d144f138..1c9721d682 100644 --- a/packages/color/src/constants.ts +++ b/packages/color/src/constants.ts @@ -1,6 +1,6 @@ import { float, percent } from "@thi.ng/strings"; -export const enum ColorMode { +export enum ColorMode { RGBA, HCYA, HSVA, @@ -9,7 +9,7 @@ export const enum ColorMode { INT32, CSS, XYZA, - YCBCRA + YCBCRA, } // RGBA constants @@ -29,7 +29,7 @@ export const RGB_LUMINANCE = [0.299, 0.587, 0.114]; // Hue names -export const enum Hue { +export enum Hue { RED, ORANGE, YELLOW, @@ -41,7 +41,7 @@ export const enum Hue { BLUE, VIOLET, MAGENTA, - ROSE + ROSE, } // internal helpers @@ -57,7 +57,7 @@ export const RGB_XYZ = [ 0.072175, 0.0193339, 0.119192, - 0.9503041 + 0.9503041, ]; export const XYZ_RGB = [ @@ -69,7 +69,7 @@ export const XYZ_RGB = [ 0.041556, 0.0556434, -0.2040259, - 1.0572252 + 1.0572252, ]; export const FF = float(2); diff --git a/packages/color/test/tsconfig.json b/packages/color/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/color/test/tsconfig.json +++ b/packages/color/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/compare/CHANGELOG.md b/packages/compare/CHANGELOG.md index 3b64e88a28..a2a64b8922 100644 --- a/packages/compare/CHANGELOG.md +++ b/packages/compare/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. +# [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.2.2...@thi.ng/compare@1.3.0) (2020-04-05) + + +### Features + +* **compare:** fix [#215](https://github.com/thi-ng/umbrella/issues/215), add sort key getter support for compareByKeysX() ([f364b4e](https://github.com/thi-ng/umbrella/commit/f364b4e62dcd2ed13689a1ef97799cb53af3ef71)) + + + + + ## [1.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.2.1...@thi.ng/compare@1.2.2) (2020-03-28) **Note:** Version bump only for package @thi.ng/compare diff --git a/packages/compare/README.md b/packages/compare/README.md index dcc52d9053..2c8467e490 100644 --- a/packages/compare/README.md +++ b/packages/compare/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/compare](https://media.thi.ng/umbrella/banners/thing-compare.svg?1585427314) +# ![compare](https://media.thi.ng/umbrella/banners/thing-compare.svg?8890b7ed) [![npm version](https://img.shields.io/npm/v/@thi.ng/compare.svg)](https://www.npmjs.com/package/@thi.ng/compare) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/compare.svg) @@ -42,7 +42,7 @@ comparator. See examples below. yarn add @thi.ng/compare ``` -Package sizes (gzipped): ESM: 350 bytes / CJS: 427 bytes / UMD: 464 bytes +Package sizes (gzipped, pre-treeshake): ESM: 396 bytes / CJS: 471 bytes / UMD: 504 bytes ## Dependencies diff --git a/packages/compare/package.json b/packages/compare/package.json index 4c3e73911b..00fdf5e913 100644 --- a/packages/compare/package.json +++ b/packages/compare/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/compare", - "version": "1.2.2", + "version": "1.3.0", "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", + "@thi.ng/api": "^6.9.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/compare/src/keys.ts b/packages/compare/src/keys.ts index 0ede7c84a8..a1ad85c555 100644 --- a/packages/compare/src/keys.ts +++ b/packages/compare/src/keys.ts @@ -1,6 +1,9 @@ -import { Comparator, Keys, Val1 } from "@thi.ng/api"; +import type { Comparator, Fn, Keys, Val1 } from "@thi.ng/api"; import { compare } from "./compare"; +const getKey = (k: string | Fn) => + typeof k === "function" ? k : (x: any) => x[k]; + /** * HOF comparator. Returns new comparator to sort objects by given `key` * and with optional comparator `cmp` (default: {@link compare}). @@ -8,10 +11,21 @@ import { compare } from "./compare"; * @param key - * @param cmp - */ -export const compareByKey = >( - key: K, - cmp: Comparator> = compare -): Comparator => (x, y) => cmp(x[key], y[key]); +export function compareByKey>( + a: A, + cmp?: Comparator> +): Comparator; +export function compareByKey( + a: Fn, + cmp?: Comparator +): Comparator; +export function compareByKey( + a: string | Fn, + cmp: Comparator = compare +): Comparator { + const k = getKey(a); + return (x, y) => cmp(k(x), k(y)); +} /** * HOF comparator. Returns new comparator to sort objects by given keys @@ -23,15 +37,31 @@ export const compareByKey = >( * @param cmpA - * @param cmpB - */ -export const compareByKeys2 = , B extends Keys>( - a: A, - b: B, - cmpA: Comparator> = compare, - cmpB: Comparator> = compare -): Comparator => (x, y) => { - let res = cmpA(x[a], y[a]); - return res === 0 ? cmpB(x[b], y[b]) : res; -}; +export function compareByKeys2, B extends Keys>( + major: A, + minor: B, + cmpA?: Comparator>, + cmpB?: Comparator> +): Comparator; +export function compareByKeys2( + major: Fn, + minor: Fn, + cmpA?: Comparator, + cmpB?: Comparator +): Comparator; +export function compareByKeys2( + a: string | Fn, + b: string | Fn, + cmpA: Comparator = compare, + cmpB: Comparator = compare +): Comparator { + const ka = getKey(a); + const kb = getKey(b); + return (x, y) => { + let res = cmpA(ka(x), ka(y)); + return res === 0 ? cmpB(kb(x), kb(y)) : res; + }; +} /** * Same as {@link compareByKeys2}, but for 3 sort keys / comparators. @@ -43,26 +73,47 @@ export const compareByKeys2 = , B extends Keys>( * @param cmpB - * @param cmpC - */ -export const compareByKeys3 = < +export function compareByKeys3< T, A extends Keys, B extends Keys, C extends Keys >( - a: A, - b: B, - c: C, - cmpA: Comparator> = compare, - cmpB: Comparator> = compare, - cmpC: Comparator> = compare -): Comparator => (x, y) => { - let res = cmpA(x[a], y[a]); - return res === 0 - ? (res = cmpB(x[b], y[b])) === 0 - ? cmpC(x[c], y[c]) - : res - : res; -}; + major: A, + minor: B, + patch: B, + cmpA?: Comparator>, + cmpB?: Comparator>, + cmpC?: Comparator> +): Comparator; +export function compareByKeys3( + major: Fn, + minor: Fn, + patch: Fn, + cmpA?: Comparator, + cmpB?: Comparator, + cmpC?: Comparator +): Comparator; +export function compareByKeys3( + a: string | Fn, + b: string | Fn, + c: string | Fn, + cmpA: Comparator = compare, + cmpB: Comparator = compare, + cmpC: Comparator = compare +): Comparator { + const ka = getKey(a); + const kb = getKey(b); + const kc = getKey(c); + return (x, y) => { + let res = cmpA(ka(x), ka(y)); + return res === 0 + ? (res = cmpB(kb(x), kb(y))) === 0 + ? cmpC(kc(x), kc(y)) + : res + : res; + }; +} /** * Same as {@link compareByKeys2}, but for 4 sort keys / comparators. @@ -76,7 +127,7 @@ export const compareByKeys3 = < * @param cmpC - * @param cmpD - */ -export const compareByKeys4 = < +export function compareByKeys4< T, A extends Keys, B extends Keys, @@ -87,17 +138,43 @@ export const compareByKeys4 = < b: B, c: C, d: D, - cmpA: Comparator> = compare, - cmpB: Comparator> = compare, - cmpC: Comparator> = compare, - cmpD: Comparator> = compare -): Comparator => (x, y) => { - let res = cmpA(x[a], y[a]); - return res === 0 - ? (res = cmpB(x[b], y[b])) === 0 - ? (res = cmpC(x[c], y[c])) === 0 - ? cmpD(x[d], y[d]) + cmpA?: Comparator>, + cmpB?: Comparator>, + cmpC?: Comparator>, + cmpD?: Comparator> +): Comparator; +export function compareByKeys4( + a: Fn, + b: Fn, + c: Fn, + d: Fn, + cmpA?: Comparator, + cmpB?: Comparator, + cmpC?: Comparator, + cmpD?: Comparator +): Comparator; +export function compareByKeys4( + a: string | Fn, + b: string | Fn, + c: string | Fn, + d: string | Fn, + cmpA: Comparator = compare, + cmpB: Comparator = compare, + cmpC: Comparator = compare, + cmpD: Comparator = compare +): Comparator { + const ka = getKey(a); + const kb = getKey(b); + const kc = getKey(c); + const kd = getKey(d); + return (x, y) => { + let res = cmpA(ka(x), ka(y)); + return res === 0 + ? (res = cmpB(kb(x), kb(y))) === 0 + ? (res = cmpC(kc(x), kc(y))) === 0 + ? cmpD(kd(x), kd(y)) + : res : res - : res - : res; -}; + : res; + }; +} diff --git a/packages/compare/test/index.ts b/packages/compare/test/index.ts index 1bdc688115..56cb61a1b3 100644 --- a/packages/compare/test/index.ts +++ b/packages/compare/test/index.ts @@ -3,74 +3,104 @@ import { compareByKey, compareByKeys2, compareByKeys3, - compareByKeys4 + compareByKeys4, } from "../src"; describe("compare", () => { it("compareByKey", () => { - assert.deepEqual( - [ - { a: 2, b: 2 }, - { a: 1, b: 1 }, - { a: 2, b: 1 }, - { a: 1, b: 2, c: 3 } - ].sort(compareByKey("a")), - [ - { a: 1, b: 1 }, - { a: 1, b: 2, c: 3 }, - { a: 2, b: 2 }, - { a: 2, b: 1 } - ] - ); + const src = [ + { a: 2, b: 2 }, + { a: 1, b: 1 }, + { a: 2, b: 1 }, + { a: 1, b: 2, c: 3 }, + ]; + const res = [ + { a: 1, b: 1 }, + { a: 1, b: 2, c: 3 }, + { a: 2, b: 2 }, + { a: 2, b: 1 }, + ]; + assert.deepEqual([...src].sort(compareByKey("a")), res); + assert.deepEqual([...src].sort(compareByKey((x) => x.a)), res); }); it("compareByKeys2", () => { + const src = [ + { a: 2, b: 2 }, + { a: 1, b: 1 }, + { a: 2, b: 1 }, + { a: 1, b: 2, c: 3 }, + ]; + const res = [ + { a: 1, b: 1 }, + { a: 1, b: 2, c: 3 }, + { a: 2, b: 1 }, + { a: 2, b: 2 }, + ]; + assert.deepEqual([...src].sort(compareByKeys2("a", "b")), res); assert.deepEqual( - [ - { a: 2, b: 2 }, - { a: 1, b: 1 }, - { a: 2, b: 1 }, - { a: 1, b: 2, c: 3 } - ].sort(compareByKeys2("a", "b")), - [ - { a: 1, b: 1 }, - { a: 1, b: 2, c: 3 }, - { a: 2, b: 1 }, - { a: 2, b: 2 } - ] + [...src].sort( + compareByKeys2( + (x) => x.a, + (x) => x.b + ) + ), + res ); }); it("compareByKeys3", () => { + const src = [ + { a: 1, b: 2, c: 3 }, + { a: 1, b: 2, c: 1 }, + { a: 1, b: 1, c: 3 }, + { a: 0, b: 1, c: 4 }, + ]; + const res = [ + { a: 0, b: 1, c: 4 }, + { a: 1, b: 1, c: 3 }, + { a: 1, b: 2, c: 1 }, + { a: 1, b: 2, c: 3 }, + ]; + assert.deepEqual([...src].sort(compareByKeys3("a", "b", "c")), res); assert.deepEqual( - [ - { a: 1, b: 2, c: 3 }, - { a: 1, b: 2, c: 1 }, - { a: 1, b: 1, c: 3 }, - { a: 0, b: 1, c: 4 } - ].sort(compareByKeys3("a", "b", "c")), - [ - { a: 0, b: 1, c: 4 }, - { a: 1, b: 1, c: 3 }, - { a: 1, b: 2, c: 1 }, - { a: 1, b: 2, c: 3 } - ] + [...src].sort( + compareByKeys3( + (x) => x.a, + (x) => x.b, + (x) => x.c + ) + ), + res ); }); it("compareByKeys4", () => { + const src = [ + { a: 1, b: 2, c: 3, d: 3 }, + { a: 1, b: 2, c: 3, d: 2 }, + { a: 1, b: 2, c: 3, d: 0 }, + { a: 1, b: 2, c: 3, d: 1 }, + ]; + const res = [ + { a: 1, b: 2, c: 3, d: 0 }, + { a: 1, b: 2, c: 3, d: 1 }, + { a: 1, b: 2, c: 3, d: 2 }, + { a: 1, b: 2, c: 3, d: 3 }, + ]; + assert.deepEqual( + [...src].sort(compareByKeys4("a", "b", "c", "d")), + res + ); assert.deepEqual( - [ - { a: 1, b: 2, c: 3, d: 3 }, - { a: 1, b: 2, c: 3, d: 2 }, - { a: 1, b: 2, c: 3, d: 0 }, - { a: 1, b: 2, c: 3, d: 1 } - ].sort(compareByKeys4("a", "b", "c", "d")), - [ - { a: 1, b: 2, c: 3, d: 0 }, - { a: 1, b: 2, c: 3, d: 1 }, - { a: 1, b: 2, c: 3, d: 2 }, - { a: 1, b: 2, c: 3, d: 3 } - ] + [...src].sort( + compareByKeys4( + (x) => x.a, + (x) => x.b, + (x) => x.c, + (x) => x.d + ) + ), + res ); }); }); diff --git a/packages/compare/test/tsconfig.json b/packages/compare/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/compare/test/tsconfig.json +++ b/packages/compare/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/compose/CHANGELOG.md b/packages/compose/CHANGELOG.md index 9d7e5cac39..e25f98a575 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.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.0...@thi.ng/compose@1.4.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/compose + + + + + # [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.3.12...@thi.ng/compose@1.4.0) (2020-03-28) diff --git a/packages/compose/README.md b/packages/compose/README.md index a213f410ea..a61d86e4f7 100644 --- a/packages/compose/README.md +++ b/packages/compose/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/compose](https://media.thi.ng/umbrella/banners/thing-compose.svg?1585427315) +# ![compose](https://media.thi.ng/umbrella/banners/thing-compose.svg?591a5769) [![npm version](https://img.shields.io/npm/v/@thi.ng/compose.svg)](https://www.npmjs.com/package/@thi.ng/compose) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/compose.svg) @@ -31,7 +31,7 @@ Optimized functional composition helpers. yarn add @thi.ng/compose ``` -Package sizes (gzipped): ESM: 812 bytes / CJS: 915 bytes / UMD: 935 bytes +Package sizes (gzipped, pre-treeshake): ESM: 812 bytes / CJS: 915 bytes / UMD: 935 bytes ## Dependencies diff --git a/packages/compose/package.json b/packages/compose/package.json index f7041e1bed..2463b7fd93 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/compose", - "version": "1.4.0", + "version": "1.4.1", "description": "Optimized functional composition helpers", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/compose/test/tsconfig.json b/packages/compose/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/compose/test/tsconfig.json +++ b/packages/compose/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/csp/CHANGELOG.md b/packages/csp/CHANGELOG.md index 5f47c7f14a..2ee70feb7a 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.15...@thi.ng/csp@1.1.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/csp + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.14...@thi.ng/csp@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/csp diff --git a/packages/csp/README.md b/packages/csp/README.md index f693be541a..e42262819e 100644 --- a/packages/csp/README.md +++ b/packages/csp/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/csp](https://media.thi.ng/umbrella/banners/thing-csp.svg?1585427380) +# ![csp](https://media.thi.ng/umbrella/banners/thing-csp.svg?a2b55f71) [![npm version](https://img.shields.io/npm/v/@thi.ng/csp.svg)](https://www.npmjs.com/package/@thi.ng/csp) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/csp.svg) @@ -54,7 +54,7 @@ for a similar, but alternative (and actively maintained) approach. yarn add @thi.ng/csp ``` -Package sizes (gzipped): ESM: 2.71 KB / CJS: 2.78 KB / UMD: 2.83 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.65 KB / CJS: 2.72 KB / UMD: 2.78 KB ## Dependencies diff --git a/packages/csp/package.json b/packages/csp/package.json index 787a5ba817..ee84cd7080 100644 --- a/packages/csp/package.json +++ b/packages/csp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/csp", - "version": "1.1.15", + "version": "1.1.16", "description": "ES6 promise based CSP primitives & operations", "module": "./index.js", "main": "./lib/index.js", @@ -35,19 +35,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/csp/src/channel.ts b/packages/csp/src/channel.ts index cc2c255b3f..85f7c2e131 100644 --- a/packages/csp/src/channel.ts +++ b/packages/csp/src/channel.ts @@ -1,3 +1,4 @@ +import type { Fn, Fn0, Fn2, FnAny, Predicate } from "@thi.ng/api"; import { shuffle } from "@thi.ng/arrays"; import { isFunction } from "@thi.ng/checks"; import { DCons } from "@thi.ng/dcons"; @@ -9,23 +10,21 @@ import { range, Reducer, Transducer, - unreduced + unreduced, } from "@thi.ng/transducers"; -import { FixedBuffer } from "./buffer"; -import { State } from "./constants"; -import type { - Fn, - Fn0, - Fn2, - FnAny, - Predicate -} from "@thi.ng/api"; import type { ChannelItem, ErrorHandler, IBuffer, IReadWriteableChannel, } from "./api"; +import { FixedBuffer } from "./buffer"; + +const enum State { + OPEN, + CLOSED, + DONE, +} export class Channel implements IReadWriteableChannel { static constantly(x: T, delay?: number) { @@ -278,7 +277,7 @@ export class Channel implements IReadWriteableChannel { private static RFN: Reducer, any> = [ (() => null), (acc) => acc, - (acc: DCons, x) => acc.push(x) + (acc: DCons, x) => acc.push(x), ]; id: string; @@ -384,7 +383,7 @@ export class Channel implements IReadWriteableChannel { } } : () => value, - resolve + resolve, }); this.process(); } else { diff --git a/packages/csp/src/constants.ts b/packages/csp/src/constants.ts deleted file mode 100644 index 1c1d9205e0..0000000000 --- a/packages/csp/src/constants.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const enum State { - OPEN, - CLOSED, - DONE -} diff --git a/packages/csp/src/index.ts b/packages/csp/src/index.ts index 6c1452abe4..3a3f29aa38 100644 --- a/packages/csp/src/index.ts +++ b/packages/csp/src/index.ts @@ -1,5 +1,4 @@ export * from "./api"; -export * from "./constants"; export * from "./buffer"; export * from "./channel"; export * from "./mult"; diff --git a/packages/csp/test/tsconfig.json b/packages/csp/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/csp/test/tsconfig.json +++ b/packages/csp/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/csp/tsconfig.json b/packages/csp/tsconfig.json index bcf03f18b4..a8e5ee0bac 100644 --- a/packages/csp/tsconfig.json +++ b/packages/csp/tsconfig.json @@ -3,9 +3,9 @@ "compilerOptions": { "outDir": ".", "module": "es6", - "target": "es6" + "target": "es6", + "preserveConstEnums": false, + "isolatedModules": false }, - "include": [ - "./src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./src/**/*.ts"] +} diff --git a/packages/dcons/CHANGELOG.md b/packages/dcons/CHANGELOG.md index 516dd496b8..997cbb9f09 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.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.8...@thi.ng/dcons@2.2.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dcons + + + + + ## [2.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/dcons@2.2.7...@thi.ng/dcons@2.2.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/dcons diff --git a/packages/dcons/README.md b/packages/dcons/README.md index 6b71104cf6..49ef38b67f 100644 --- a/packages/dcons/README.md +++ b/packages/dcons/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dcons](https://media.thi.ng/umbrella/banners/thing-dcons.svg?1585427360) +# ![dcons](https://media.thi.ng/umbrella/banners/thing-dcons.svg?018a956c) [![npm version](https://img.shields.io/npm/v/@thi.ng/dcons.svg)](https://www.npmjs.com/package/@thi.ng/dcons) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dcons.svg) @@ -55,7 +55,7 @@ Double-linked list with comprehensive set of operations. yarn add @thi.ng/dcons ``` -Package sizes (gzipped): ESM: 1.98 KB / CJS: 2.06 KB / UMD: 2.15 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.98 KB / CJS: 2.06 KB / UMD: 2.15 KB ## Dependencies diff --git a/packages/dcons/package.json b/packages/dcons/package.json index faa717f097..afb6c10cf5 100644 --- a/packages/dcons/package.json +++ b/packages/dcons/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dcons", - "version": "2.2.8", + "version": "2.2.9", "description": "Double-linked list with comprehensive set of operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,20 +31,20 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compare": "^1.2.2", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/random": "^1.4.2", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compare": "^1.3.0", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/random": "^1.4.3", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dcons/test/tsconfig.json b/packages/dcons/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/dcons/test/tsconfig.json +++ b/packages/dcons/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/defmulti/CHANGELOG.md b/packages/defmulti/CHANGELOG.md index 225efa3cce..986710e4d2 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.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.8...@thi.ng/defmulti@1.2.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/defmulti + + + + + ## [1.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/defmulti@1.2.7...@thi.ng/defmulti@1.2.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/defmulti diff --git a/packages/defmulti/README.md b/packages/defmulti/README.md index ae27452a1e..6eb7d930fc 100644 --- a/packages/defmulti/README.md +++ b/packages/defmulti/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/defmulti](https://media.thi.ng/umbrella/banners/thing-defmulti.svg?1585427315) +# ![defmulti](https://media.thi.ng/umbrella/banners/thing-defmulti.svg?f21b7d39) [![npm version](https://img.shields.io/npm/v/@thi.ng/defmulti.svg)](https://www.npmjs.com/package/@thi.ng/defmulti) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/defmulti.svg) @@ -43,7 +43,7 @@ any actual JS type relationships). yarn add @thi.ng/defmulti ``` -Package sizes (gzipped): ESM: 750 bytes / CJS: 811 bytes / UMD: 870 bytes +Package sizes (gzipped, pre-treeshake): ESM: 750 bytes / CJS: 811 bytes / UMD: 870 bytes ## Dependencies diff --git a/packages/defmulti/package.json b/packages/defmulti/package.json index c99cdca04f..95e22b0c47 100644 --- a/packages/defmulti/package.json +++ b/packages/defmulti/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/defmulti", - "version": "1.2.8", + "version": "1.2.9", "description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/defmulti/test/tsconfig.json b/packages/defmulti/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/defmulti/test/tsconfig.json +++ b/packages/defmulti/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/dgraph-dot/.npmignore b/packages/dgraph-dot/.npmignore new file mode 100644 index 0000000000..c6f44618c9 --- /dev/null +++ b/packages/dgraph-dot/.npmignore @@ -0,0 +1,22 @@ +.ae +.cache +.meta +.nyc_output +*.gz +*.html +*.svg +*.tgz +*.h +*.o +*.wasm +*.tpl.md +bench +build +coverage +dev +doc +export +src* +test +tools +tsconfig.json diff --git a/packages/dgraph-dot/CHANGELOG.md b/packages/dgraph-dot/CHANGELOG.md new file mode 100644 index 0000000000..8991377538 --- /dev/null +++ b/packages/dgraph-dot/CHANGELOG.md @@ -0,0 +1,19 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph-dot@0.1.0...@thi.ng/dgraph-dot@0.1.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dgraph-dot + + + + + +# 0.1.0 (2020-04-03) + + +### Features + +* **dgraph-dot:** import as new pkg ([9671ced](https://github.com/thi-ng/umbrella/commit/9671ceda29b0cd0ebbedce449943eec5abeff882)) diff --git a/packages/dgraph-dot/LICENSE b/packages/dgraph-dot/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/packages/dgraph-dot/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/dgraph-dot/README.md b/packages/dgraph-dot/README.md new file mode 100644 index 0000000000..e0a80e04ea --- /dev/null +++ b/packages/dgraph-dot/README.md @@ -0,0 +1,94 @@ + + +# ![dgraph-dot](https://media.thi.ng/umbrella/banners/thing-dgraph-dot.svg?b35ed4d0) + +[![npm version](https://img.shields.io/npm/v/@thi.ng/dgraph-dot.svg)](https://www.npmjs.com/package/@thi.ng/dgraph-dot) +![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dgraph-dot.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + +- [About](#about) + - [Status](#status) +- [Installation](#installation) +- [Dependencies](#dependencies) +- [API](#api) +- [Authors](#authors) +- [License](#license) + +## About + +Customizable Graphviz DOT serialization for [@thi.ng/dgraph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph). + +This package acts as optional glue layer between the +[@thi.ng/graph](https://github.com/thi-ng/umbrella/tree/develop/packages/graph) +and +[@thi.ng/dot](https://github.com/thi-ng/umbrella/tree/develop/packages/dot) +packages. The latter is used to perform the actual +[Graphviz](https://graphviz.org) serialization. Please consult its +readme & source code for visualization options. + +### Status + +**ALPHA** - bleeding edge / work-in-progress + +## Installation + +```bash +yarn add @thi.ng/dgraph-dot +``` + +Package sizes (gzipped, pre-treeshake): ESM: 241 bytes / CJS: 292 bytes / UMD: 393 bytes + +## Dependencies + +- [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) +- [@thi.ng/dgraph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph) +- [@thi.ng/dot](https://github.com/thi-ng/umbrella/tree/develop/packages/dot) + +## API + +[Generated API docs](https://docs.thi.ng/umbrella/dgraph-dot/) + +TODO + +```ts +import { defDGraph } from "@thi.ng/dgraph"; +import { toDot } from "@thi.ng/dgraph-dot"; + +// define dependency graph +const graph = defDGraph([ + ["a", "b"], + ["a", "c"], + ["b", "d"], + ["c", "d"], + ["c", "e"], +]); + +// convert to graphviz format +console.log(toDot(graph, { id: (node) => node })); +// digraph g { +// "b"[label="b"]; +// "c"[label="c"]; +// "d"[label="d"]; +// "e"[label="e"]; +// "a"[label="a"]; +// "b" -> "d"; +// "c" -> "d"; +// "c" -> "e"; +// "a" -> "b"; +// "a" -> "c"; +// } +``` + +(Also see +[tests](https://github.com/thi-ng/umbrella/blob/develop/packages/dgraph-dot/test/index.ts)) + +## Authors + +Karsten Schmidt + +## License + +© 2020 Karsten Schmidt // Apache Software License 2.0 diff --git a/packages/dgraph-dot/README.tpl.md b/packages/dgraph-dot/README.tpl.md new file mode 100644 index 0000000000..2ad795c6d7 --- /dev/null +++ b/packages/dgraph-dot/README.tpl.md @@ -0,0 +1,90 @@ +# ${pkg.banner} + +[![npm version](https://img.shields.io/npm/v/${pkg.name}.svg)](https://www.npmjs.com/package/${pkg.name}) +![npm downloads](https://img.shields.io/npm/dm/${pkg.name}.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + + + +## About + +${pkg.description} + +This package acts as optional glue layer between the +[@thi.ng/graph](https://github.com/thi-ng/umbrella/tree/develop/packages/graph) +and +[@thi.ng/dot](https://github.com/thi-ng/umbrella/tree/develop/packages/dot) +packages. The latter is used to perform the actual +[Graphviz](https://graphviz.org) serialization. Please consult its +readme & source code for visualization options. + +${status} + +${supportPackages} + +${relatedPackages} + +${blogPosts} + +## Installation + +```bash +yarn add ${pkg.name} +``` + +${pkg.size} + +## Dependencies + +${pkg.deps} + +${examples} + +## API + +${docLink} + +TODO + +```ts +import { defDGraph } from "@thi.ng/dgraph"; +import { toDot } from "@thi.ng/dgraph-dot"; + +// define dependency graph +const graph = defDGraph([ + ["a", "b"], + ["a", "c"], + ["b", "d"], + ["c", "d"], + ["c", "e"], +]); + +// convert to graphviz format +console.log(toDot(graph, { id: (node) => node })); +// digraph g { +// "b"[label="b"]; +// "c"[label="c"]; +// "d"[label="d"]; +// "e"[label="e"]; +// "a"[label="a"]; +// "b" -> "d"; +// "c" -> "d"; +// "c" -> "e"; +// "a" -> "b"; +// "a" -> "c"; +// } +``` + +(Also see +[tests](https://github.com/thi-ng/umbrella/blob/develop/packages/dgraph-dot/test/index.ts)) + +## Authors + +${authors} + +## License + +© ${copyright} // ${license} diff --git a/packages/hdom-tachyons/api-extractor.json b/packages/dgraph-dot/api-extractor.json similarity index 100% rename from packages/hdom-tachyons/api-extractor.json rename to packages/dgraph-dot/api-extractor.json diff --git a/packages/dgraph-dot/package.json b/packages/dgraph-dot/package.json new file mode 100644 index 0000000000..921b21b50c --- /dev/null +++ b/packages/dgraph-dot/package.json @@ -0,0 +1,61 @@ +{ + "name": "@thi.ng/dgraph-dot", + "version": "0.1.1", + "description": "Customizable Graphviz DOT serialization for @thi.ng/dgraph", + "module": "./index.js", + "main": "./lib/index.js", + "umd:main": "./lib/index.umd.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/thi-ng/umbrella.git" + }, + "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/dgraph-dot", + "author": "Karsten Schmidt ", + "license": "Apache-2.0", + "scripts": { + "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module", + "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all", + "build:es6": "tsc --declaration", + "build:test": "rimraf build && tsc -p test/tsconfig.json", + "test": "mocha test", + "cover": "nyc mocha test && nyc report --reporter=lcov", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", + "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", + "doc": "node_modules/.bin/typedoc --mode modules --out doc src", + "pub": "yarn build:release && yarn publish --access public" + }, + "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^1.0.1", + "@microsoft/api-extractor": "^7.7.8", + "@types/mocha": "^7.0.1", + "@types/node": "^13.7.4", + "mocha": "^7.1.1", + "nyc": "^15.0.0", + "ts-node": "^8.6.2", + "typedoc": "^0.16.10", + "typescript": "^3.8.3" + }, + "dependencies": { + "@thi.ng/api": "^6.9.1", + "@thi.ng/dgraph": "^1.2.1", + "@thi.ng/dot": "^1.2.1" + }, + "keywords": [ + "ES6", + "dependency graph", + "Graphviz", + "graph layout", + "typescript", + "visualization" + ], + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "thi.ng": { + "status": "alpha", + "year": 2020 + } +} diff --git a/packages/dgraph-dot/src/index.ts b/packages/dgraph-dot/src/index.ts new file mode 100644 index 0000000000..3493a54e0b --- /dev/null +++ b/packages/dgraph-dot/src/index.ts @@ -0,0 +1,56 @@ +import type { Fn, IObjectOf } from "@thi.ng/api"; +import { DGraph } from "@thi.ng/dgraph"; +import { Edge, Graph, GraphAttribs, Node, serializeGraph } from "@thi.ng/dot"; + +export interface DGraphDotOpts { + /** + * Graph visualization attributes. See + * {@link @thi.ng/dot#GraphAttribs} for details. + */ + attribs?: Partial; + /** + * Required mapping function applied to each node in the dependency + * graph. Must return a unique ID per node. + */ + id: Fn; + /** + * Optional label function applied to each node to provide a + * potentially more human readable string than that of `id`. + * Not used if `spec` option is given. + */ + label?: Fn; + /** + * Optional function applied to each node to provide an object of + * visualization options. See {@link @thi.ng/dot#Node} for details. + */ + spec?: Fn>; +} + +/** + * Takes a {@link @thi.ng/dgraph#DGraph} and object of visualization & + * serialization options. Returns Graphviz DOT format serialization of + * given graph. + * + * @param src - + * @param opts - + */ +export const toDot = (src: DGraph, opts: DGraphDotOpts) => { + const nodes: IObjectOf> = {}; + const edges: Edge[] = []; + const label = opts.label || opts.id; + const spec = opts.spec; + for (let n of src.nodes()) { + const id = opts.id(n); + nodes[id] = spec ? spec(n) : { label: label(n) }; + for (let d of src.immediateDependencies(n)) { + edges.push({ src: id, dest: opts.id(d) }); + } + } + const graph: Graph = { + attribs: opts.attribs, + directed: true, + edges, + nodes, + }; + return serializeGraph(graph); +}; diff --git a/packages/dgraph-dot/test/index.ts b/packages/dgraph-dot/test/index.ts new file mode 100644 index 0000000000..7a87e3e365 --- /dev/null +++ b/packages/dgraph-dot/test/index.ts @@ -0,0 +1,45 @@ +import * as assert from "assert"; +import { defDGraph } from "@thi.ng/dgraph"; +import { toDot } from "../src"; + +describe("dgraph-dot", () => { + it("basic", () => { + const g = defDGraph([ + ["a", "b"], + ["a", "c"], + ["b", "d"], + ["c", "d"], + ["c", "e"], + ]); + const dot = toDot(g, { + id: (node) => node, + attribs: { + node: { + style: "filled", + fillcolor: "black", + fontcolor: "white", + }, + edge: { + arrowsize: 0.75, + }, + }, + }); + assert.equal( + dot, + `digraph g { +node[style="filled", fillcolor="black", fontcolor="white"]; +edge[arrowsize="0.75"]; +"b"[label="b"]; +"c"[label="c"]; +"d"[label="d"]; +"e"[label="e"]; +"a"[label="a"]; +"b" -> "d"; +"c" -> "d"; +"c" -> "e"; +"a" -> "b"; +"a" -> "c"; +}` + ); + }); +}); diff --git a/packages/dgraph-dot/test/tsconfig.json b/packages/dgraph-dot/test/tsconfig.json new file mode 100644 index 0000000000..43124565ec --- /dev/null +++ b/packages/dgraph-dot/test/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "module": "commonjs", + "isolatedModules": false + }, + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/dgraph-dot/tsconfig.json b/packages/dgraph-dot/tsconfig.json new file mode 100644 index 0000000000..893b9979c5 --- /dev/null +++ b/packages/dgraph-dot/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": ".", + "module": "es6", + "target": "es6" + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/packages/dgraph/CHANGELOG.md b/packages/dgraph/CHANGELOG.md index e4bee3c0a4..c438595772 100644 --- a/packages/dgraph/CHANGELOG.md +++ b/packages/dgraph/CHANGELOG.md @@ -3,6 +3,25 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.2.0...@thi.ng/dgraph@1.2.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dgraph + + + + + +# [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.1.25...@thi.ng/dgraph@1.2.0) (2020-04-03) + + +### Features + +* **dgraph:** add defDGraph(), update ctor to accept edge pairs ([b45a6da](https://github.com/thi-ng/umbrella/commit/b45a6da939348bd49134d499259889332d0e950f)) + + + + + ## [1.1.25](https://github.com/thi-ng/umbrella/compare/@thi.ng/dgraph@1.1.24...@thi.ng/dgraph@1.1.25) (2020-03-28) **Note:** Version bump only for package @thi.ng/dgraph diff --git a/packages/dgraph/README.md b/packages/dgraph/README.md index 1f1eb1c075..455b8c114a 100644 --- a/packages/dgraph/README.md +++ b/packages/dgraph/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dgraph](https://media.thi.ng/umbrella/banners/thing-dgraph.svg?1585427402) +# ![dgraph](https://media.thi.ng/umbrella/banners/thing-dgraph.svg?55059134) [![npm version](https://img.shields.io/npm/v/@thi.ng/dgraph.svg)](https://www.npmjs.com/package/@thi.ng/dgraph) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dgraph.svg) @@ -12,6 +12,7 @@ This project is part of the - [About](#about) - [Features](#features) - [Status](#status) + - [Support packages](#support-packages) - [Installation](#installation) - [Dependencies](#dependencies) - [Usage examples](#usage-examples) @@ -36,13 +37,17 @@ maps & sets as backend. **STABLE** - used in production +### Support packages + +- [@thi.ng/dgraph-dot](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph-dot) - Customizable Graphviz DOT serialization for [@thi.ng/dgraph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph) + ## Installation ```bash yarn add @thi.ng/dgraph ``` -Package sizes (gzipped): ESM: 738 bytes / CJS: 798 bytes / UMD: 916 bytes +Package sizes (gzipped, pre-treeshake): ESM: 790 bytes / CJS: 850 bytes / UMD: 959 bytes ## Dependencies diff --git a/packages/dgraph/package.json b/packages/dgraph/package.json index 436edf7e1d..d4b2bfcdf5 100644 --- a/packages/dgraph/package.json +++ b/packages/dgraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dgraph", - "version": "1.1.25", + "version": "1.2.1", "description": "Type-agnostic directed acyclic graph (DAG) & graph operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/associative": "^4.0.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/associative": "^4.0.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dgraph/src/index.ts b/packages/dgraph/src/index.ts index 8d0f9a81d7..4bfedfaf9e 100644 --- a/packages/dgraph/src/index.ts +++ b/packages/dgraph/src/index.ts @@ -1,16 +1,24 @@ +import type { ICopy, Pair } from "@thi.ng/api"; import { ArraySet, EquivMap, union } from "@thi.ng/associative"; import { equiv } from "@thi.ng/equiv"; import { illegalArgs } from "@thi.ng/errors"; import { filter, reduce, reducer } from "@thi.ng/transducers"; -import type { ICopy } from "@thi.ng/api"; + +export const defDGraph = (edges?: Iterable>) => + new DGraph(edges); export class DGraph implements Iterable, ICopy> { dependencies: EquivMap>; dependents: EquivMap>; - constructor() { + constructor(edges?: Iterable>) { this.dependencies = new EquivMap>(); this.dependents = new EquivMap>(); + if (edges) { + for (let [a, b] of edges) { + this.addDependency(a, b); + } + } } *[Symbol.iterator]() { @@ -49,6 +57,12 @@ export class DGraph implements Iterable, ICopy> { return this; } + addDependencies(node: T, deps: Iterable) { + for (let d of deps) { + this.addDependency(node, d); + } + } + removeEdge(node: T, dep: T) { let deps = this.dependencies.get(node); if (deps) { diff --git a/packages/dgraph/test/tsconfig.json b/packages/dgraph/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/dgraph/test/tsconfig.json +++ b/packages/dgraph/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/diff/CHANGELOG.md b/packages/diff/CHANGELOG.md index 180c78c354..263dbe828b 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. +## [3.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.13...@thi.ng/diff@3.2.14) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/diff + + + + + ## [3.2.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/diff@3.2.12...@thi.ng/diff@3.2.13) (2020-03-28) **Note:** Version bump only for package @thi.ng/diff diff --git a/packages/diff/README.md b/packages/diff/README.md index 4060c39ad1..21f00d2725 100644 --- a/packages/diff/README.md +++ b/packages/diff/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/diff](https://media.thi.ng/umbrella/banners/thing-diff.svg?1585427315) +# ![diff](https://media.thi.ng/umbrella/banners/thing-diff.svg?7be4837a) [![npm version](https://img.shields.io/npm/v/@thi.ng/diff.svg)](https://www.npmjs.com/package/@thi.ng/diff) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/diff.svg) @@ -33,7 +33,7 @@ Customizable diff implementations for arrays (sequential) & objects (associative yarn add @thi.ng/diff ``` -Package sizes (gzipped): ESM: 1.22 KB / CJS: 1.27 KB / UMD: 1.30 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.23 KB / CJS: 1.29 KB / UMD: 1.32 KB ## Dependencies diff --git a/packages/diff/package.json b/packages/diff/package.json index 34ec499fd0..c8baefe478 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/diff", - "version": "3.2.13", + "version": "3.2.14", "description": "Customizable diff implementations for arrays (sequential) & objects (associative), with or without linear edit logs", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/equiv": "^1.0.17", + "@thi.ng/api": "^6.9.1", + "@thi.ng/equiv": "^1.0.18", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/diff/src/constants.ts b/packages/diff/src/constants.ts index cc0117cae4..8f7374c9eb 100644 --- a/packages/diff/src/constants.ts +++ b/packages/diff/src/constants.ts @@ -1,6 +1,6 @@ -export const enum DiffMode { +export enum DiffMode { ONLY_DISTANCE, ONLY_DISTANCE_LINEAR, ONLY_DISTANCE_LINEAR_ONLY_CHANGES, - FULL + FULL, } diff --git a/packages/diff/test/tsconfig.json b/packages/diff/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/diff/test/tsconfig.json +++ b/packages/diff/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/dl-asset/CHANGELOG.md b/packages/dl-asset/CHANGELOG.md index 92e2280d6a..ab884b2241 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.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.3.2...@thi.ng/dl-asset@0.3.3) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dl-asset + + + + + ## [0.3.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/dl-asset@0.3.1...@thi.ng/dl-asset@0.3.2) (2020-03-28) **Note:** Version bump only for package @thi.ng/dl-asset diff --git a/packages/dl-asset/README.md b/packages/dl-asset/README.md index 00e7f98c4f..859d367dd0 100644 --- a/packages/dl-asset/README.md +++ b/packages/dl-asset/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dl-asset](https://media.thi.ng/umbrella/banners/thing-dl-asset.svg?1585427343) +# ![dl-asset](https://media.thi.ng/umbrella/banners/thing-dl-asset.svg?7d078ea4) [![npm version](https://img.shields.io/npm/v/@thi.ng/dl-asset.svg)](https://www.npmjs.com/package/@thi.ng/dl-asset) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dl-asset.svg) @@ -32,7 +32,7 @@ Local asset download for web apps, with automatic MIME type detection. yarn add @thi.ng/dl-asset ``` -Package sizes (gzipped): ESM: 399 bytes / CJS: 451 bytes / UMD: 556 bytes +Package sizes (gzipped, pre-treeshake): ESM: 399 bytes / CJS: 451 bytes / UMD: 556 bytes ## Dependencies diff --git a/packages/dl-asset/package.json b/packages/dl-asset/package.json index 912c0bc341..3ec2e4ee1a 100644 --- a/packages/dl-asset/package.json +++ b/packages/dl-asset/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dl-asset", - "version": "0.3.2", + "version": "0.3.3", "description": "Local asset download for web apps, with automatic MIME type detection", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/mime": "^0.1.4", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/mime": "^0.1.5", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dl-asset/test/tsconfig.json b/packages/dl-asset/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/dl-asset/test/tsconfig.json +++ b/packages/dl-asset/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/dlogic/CHANGELOG.md b/packages/dlogic/CHANGELOG.md index 25f624ffab..b90fb809fb 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.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.17...@thi.ng/dlogic@1.0.18) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dlogic + + + + + ## [1.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/dlogic@1.0.16...@thi.ng/dlogic@1.0.17) (2020-03-28) **Note:** Version bump only for package @thi.ng/dlogic diff --git a/packages/dlogic/README.md b/packages/dlogic/README.md index fe542e8c87..2a2250aae1 100644 --- a/packages/dlogic/README.md +++ b/packages/dlogic/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dlogic](https://media.thi.ng/umbrella/banners/thing-dlogic.svg?1585427306) +# ![dlogic](https://media.thi.ng/umbrella/banners/thing-dlogic.svg?687b26ef) [![npm version](https://img.shields.io/npm/v/@thi.ng/dlogic.svg)](https://www.npmjs.com/package/@thi.ng/dlogic) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dlogic.svg) @@ -38,7 +38,7 @@ for binary versions of most of the ops provided by this package. yarn add @thi.ng/dlogic ``` -Package sizes (gzipped): ESM: 378 bytes / CJS: 478 bytes / UMD: 514 bytes +Package sizes (gzipped, pre-treeshake): ESM: 378 bytes / CJS: 478 bytes / UMD: 514 bytes ## Dependencies diff --git a/packages/dlogic/package.json b/packages/dlogic/package.json index e794b6dbcc..c8c756081a 100644 --- a/packages/dlogic/package.json +++ b/packages/dlogic/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dlogic", - "version": "1.0.17", + "version": "1.0.18", "description": "Assorted digital logic ops / constructs", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/dlogic/test/tsconfig.json b/packages/dlogic/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/dlogic/test/tsconfig.json +++ b/packages/dlogic/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/dot/CHANGELOG.md b/packages/dot/CHANGELOG.md index c6bc8e140d..da8657c6f6 100644 --- a/packages/dot/CHANGELOG.md +++ b/packages/dot/CHANGELOG.md @@ -3,6 +3,25 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.2.0...@thi.ng/dot@1.2.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dot + + + + + +# [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.1.14...@thi.ng/dot@1.2.0) (2020-04-03) + + +### Features + +* **dot:** support includes, update subgraph handling ([ed53c90](https://github.com/thi-ng/umbrella/commit/ed53c909f7eb41c85c04f55de279e0d82cfed307)) + + + + + ## [1.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/dot@1.1.13...@thi.ng/dot@1.1.14) (2020-03-28) **Note:** Version bump only for package @thi.ng/dot diff --git a/packages/dot/README.md b/packages/dot/README.md index d13e8aa579..0c5ea2449d 100644 --- a/packages/dot/README.md +++ b/packages/dot/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dot](https://media.thi.ng/umbrella/banners/thing-dot.svg?1585427325) +# ![dot](https://media.thi.ng/umbrella/banners/thing-dot.svg?393e05a7) [![npm version](https://img.shields.io/npm/v/@thi.ng/dot.svg)](https://www.npmjs.com/package/@thi.ng/dot) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dot.svg) @@ -43,7 +43,7 @@ details. yarn add @thi.ng/dot ``` -Package sizes (gzipped): ESM: 721 bytes / CJS: 783 bytes / UMD: 866 bytes +Package sizes (gzipped, pre-treeshake): ESM: 768 bytes / CJS: 829 bytes / UMD: 883 bytes ## Dependencies diff --git a/packages/dot/package.json b/packages/dot/package.json index 094cc30e42..293dcb98e3 100644 --- a/packages/dot/package.json +++ b/packages/dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dot", - "version": "1.1.14", + "version": "1.2.1", "description": "Graphviz document abstraction & serialization to DOT format", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dot/src/api.ts b/packages/dot/src/api.ts index 6b224a3291..3806cb6250 100644 --- a/packages/dot/src/api.ts +++ b/packages/dot/src/api.ts @@ -63,7 +63,8 @@ export interface Graph { edges: Edge[]; id?: string; nodes: IObjectOf>; - sub?: IObjectOf; + sub?: Graph[]; + include?: string; } export interface NodeAttribs { diff --git a/packages/dot/src/serialize.ts b/packages/dot/src/serialize.ts index c2e56330ed..be45e66c53 100644 --- a/packages/dot/src/serialize.ts +++ b/packages/dot/src/serialize.ts @@ -1,18 +1,15 @@ -import { isArray } from "@thi.ng/checks"; import type { IObjectOf } from "@thi.ng/api"; -import type { - Edge, - Graph, - GraphAttribs, - Node -} from "./api"; +import { isArray } from "@thi.ng/checks"; +import type { Edge, Graph, GraphAttribs, Node } from "./api"; + +let nextID = 0; + +const nextSubgraphID = () => "cluster" + nextID++; const wrapQ = (x: any) => `"${x}"`; const escape = (x: any) => - String(x) - .replace(/\"/g, `\\"`) - .replace(/\n/g, "\\n"); + String(x).replace(/\"/g, `\\"`).replace(/\n/g, "\\n"); const formatGraphAttribs = (attribs: Partial, acc: string[]) => { for (let a in attribs) { @@ -103,9 +100,14 @@ export const serializeEdge = (e: Edge, directed = true) => { return acc.join(""); }; -export const serializeGraph = (graph: Graph, acc?: string[]) => { +export const serializeGraph = (graph: Graph, isSub = false) => { const directed = graph.directed !== false; - acc || (acc = [`${directed ? "di" : ""}graph ${graph.id || "g"} {`]); + const acc = isSub + ? [`subgraph ${graph.id || nextSubgraphID()} {`] + : [`${directed ? "di" : ""}graph ${graph.id || "g"} {`]; + if (graph.include) { + acc.push(graph.include); + } if (graph.attribs) { formatGraphAttribs(graph.attribs, acc); } @@ -116,8 +118,8 @@ export const serializeGraph = (graph: Graph, acc?: string[]) => { acc.push(serializeEdge(e, directed)); } if (graph.sub) { - for (let id in graph.sub) { - acc.push(serializeGraph(graph.sub[id], [`subgraph ${id} {`])); + for (let sub of graph.sub) { + acc.push(serializeGraph(sub, true)); } } acc.push("}"); diff --git a/packages/dot/test/example.ts b/packages/dot/test/example.ts index 8872e8b7f2..703c040426 100644 --- a/packages/dot/test/example.ts +++ b/packages/dot/test/example.ts @@ -13,11 +13,15 @@ const operator: Partial = { fillcolor: "yellow", shape: "Mrecord", ins: { 0: "a", 1: "b" }, - outs: { "out": "out" } + outs: { out: "out" }, }; +try { + fs.mkdirSync("export"); +} catch (e) {} + fs.writeFileSync( - "../../assets/dot-example.dot", + "export/dot-example.dot", dot.serializeGraph({ directed: true, // default // graph attributes @@ -33,14 +37,14 @@ fs.writeFileSync( node: { style: "filled", fontname: "Inconsolata", - fontsize: 11 + fontsize: 11, }, // edge defaults edge: { arrowsize: 0.75, fontname: "Inconsolata", - fontsize: 9 - } + fontsize: 9, + }, }, // graph nodes (the keys are used as node IDs) // use spread operator to inject style presets @@ -55,9 +59,15 @@ fs.writeFileSync( edges: [ { src: "x", dest: "op1", destPort: 1 }, { src: "y", dest: "op1", destPort: 0 }, - { src: "y", dest: "op2", destPort: 0, label: "xform", color: "blue" }, + { + src: "y", + dest: "op2", + destPort: 0, + label: "xform", + color: "blue", + }, { src: "op1", srcPort: "out", dest: "op2", destPort: 1 }, { src: "op2", srcPort: "out", dest: "res" }, - ] + ], }) -); \ No newline at end of file +); diff --git a/packages/dot/test/tsconfig.json b/packages/dot/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/dot/test/tsconfig.json +++ b/packages/dot/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/dsp-io-wav/CHANGELOG.md b/packages/dsp-io-wav/CHANGELOG.md index 06df14f211..5274f68173 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.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.5...@thi.ng/dsp-io-wav@0.1.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dsp-io-wav + + + + + ## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp-io-wav@0.1.4...@thi.ng/dsp-io-wav@0.1.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/dsp-io-wav diff --git a/packages/dsp-io-wav/README.md b/packages/dsp-io-wav/README.md index c369400203..d298ac0cb8 100644 --- a/packages/dsp-io-wav/README.md +++ b/packages/dsp-io-wav/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dsp-io-wav](https://media.thi.ng/umbrella/banners/thing-dsp-io-wav.svg?1585427380) +# ![dsp-io-wav](https://media.thi.ng/umbrella/banners/thing-dsp-io-wav.svg?2f433214) [![npm version](https://img.shields.io/npm/v/@thi.ng/dsp-io-wav.svg)](https://www.npmjs.com/package/@thi.ng/dsp-io-wav) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dsp-io-wav.svg) @@ -31,7 +31,7 @@ WAV file format generation. This is a support package for [@thi.ng/dsp](https:// yarn add @thi.ng/dsp-io-wav ``` -Package sizes (gzipped): ESM: 502 bytes / CJS: 562 bytes / UMD: 630 bytes +Package sizes (gzipped, pre-treeshake): ESM: 502 bytes / CJS: 562 bytes / UMD: 630 bytes ## Dependencies diff --git a/packages/dsp-io-wav/package.json b/packages/dsp-io-wav/package.json index 05cbb66f9b..f27598a0c5 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.5", + "version": "0.1.6", "description": "WAV file format generation", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/transducers-binary": "^0.5.5", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/transducers-binary": "^0.5.6", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dsp-io-wav/test/tsconfig.json b/packages/dsp-io-wav/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/dsp-io-wav/test/tsconfig.json +++ b/packages/dsp-io-wav/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/dsp/CHANGELOG.md b/packages/dsp/CHANGELOG.md index 125b724ed5..cfe404a21d 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. +## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.0.7...@thi.ng/dsp@2.0.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dsp + + + + + ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.0.6...@thi.ng/dsp@2.0.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/dsp diff --git a/packages/dsp/README.md b/packages/dsp/README.md index 9fd0a15e08..cfef197690 100644 --- a/packages/dsp/README.md +++ b/packages/dsp/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dsp](https://media.thi.ng/umbrella/banners/thing-dsp.svg?1585427360) +# ![dsp](https://media.thi.ng/umbrella/banners/thing-dsp.svg?f15829e4) [![npm version](https://img.shields.io/npm/v/@thi.ng/dsp.svg)](https://www.npmjs.com/package/@thi.ng/dsp) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dsp.svg) @@ -62,7 +62,7 @@ might be ported to WASM. yarn add @thi.ng/dsp ``` -Package sizes (gzipped): ESM: 6.63 KB / CJS: 7.10 KB / UMD: 6.59 KB +Package sizes (gzipped, pre-treeshake): ESM: 6.70 KB / CJS: 7.17 KB / UMD: 6.67 KB ## Dependencies diff --git a/packages/dsp/package.json b/packages/dsp/package.json index 2e43ed5f2e..d5e9652257 100644 --- a/packages/dsp/package.json +++ b/packages/dsp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dsp", - "version": "2.0.7", + "version": "2.0.8", "description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/math": "^1.7.4", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/math": "^1.7.5", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dsp/src/constants.ts b/packages/dsp/src/constants.ts index bcd1b1426c..0066c1b64d 100644 --- a/packages/dsp/src/constants.ts +++ b/packages/dsp/src/constants.ts @@ -1,4 +1,4 @@ -export const enum FilterType { +export enum FilterType { LP, HP, BP, @@ -6,5 +6,5 @@ export const enum FilterType { PEAK, LOSHELF, HISHELF, - ALL + ALL, } diff --git a/packages/dsp/test/tsconfig.json b/packages/dsp/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/dsp/test/tsconfig.json +++ b/packages/dsp/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/dynvar/CHANGELOG.md b/packages/dynvar/CHANGELOG.md index 03dbae7f68..079f3e1898 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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.6...@thi.ng/dynvar@0.1.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/dynvar + + + + + ## [0.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/dynvar@0.1.5...@thi.ng/dynvar@0.1.6) (2020-03-28) **Note:** Version bump only for package @thi.ng/dynvar diff --git a/packages/dynvar/README.md b/packages/dynvar/README.md index dfc15a3b8b..b96c9b1597 100644 --- a/packages/dynvar/README.md +++ b/packages/dynvar/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/dynvar](https://media.thi.ng/umbrella/banners/thing-dynvar.svg?1585427315) +# ![dynvar](https://media.thi.ng/umbrella/banners/thing-dynvar.svg?d5856acc) [![npm version](https://img.shields.io/npm/v/@thi.ng/dynvar.svg)](https://www.npmjs.com/package/@thi.ng/dynvar) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/dynvar.svg) @@ -36,7 +36,7 @@ References: yarn add @thi.ng/dynvar ``` -Package sizes (gzipped): ESM: 300 bytes / CJS: 354 bytes / UMD: 439 bytes +Package sizes (gzipped, pre-treeshake): ESM: 300 bytes / CJS: 354 bytes / UMD: 439 bytes ## Dependencies diff --git a/packages/dynvar/package.json b/packages/dynvar/package.json index bec51441b5..72be516051 100644 --- a/packages/dynvar/package.json +++ b/packages/dynvar/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/dynvar", - "version": "0.1.6", + "version": "0.1.7", "description": "Dynamically scoped variable bindings", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", + "@thi.ng/api": "^6.9.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/dynvar/test/tsconfig.json b/packages/dynvar/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/dynvar/test/tsconfig.json +++ b/packages/dynvar/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/ecs/CHANGELOG.md b/packages/ecs/CHANGELOG.md index 104f0a481c..73315e93af 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.3.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.7...@thi.ng/ecs@0.3.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/ecs + + + + + ## [0.3.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/ecs@0.3.6...@thi.ng/ecs@0.3.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/ecs diff --git a/packages/ecs/README.md b/packages/ecs/README.md index ba724f5af0..48e2523e06 100644 --- a/packages/ecs/README.md +++ b/packages/ecs/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/ecs](https://media.thi.ng/umbrella/banners/thing-ecs.svg?1585427410) +# ![ecs](https://media.thi.ng/umbrella/banners/thing-ecs.svg?39642279) [![npm version](https://img.shields.io/npm/v/@thi.ng/ecs.svg)](https://www.npmjs.com/package/@thi.ng/ecs) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/ecs.svg) @@ -42,7 +42,7 @@ Entity Component System based around typed arrays & sparse sets. yarn add @thi.ng/ecs ``` -Package sizes (gzipped): ESM: 2.90 KB / CJS: 2.97 KB / UMD: 3.03 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.91 KB / CJS: 2.98 KB / UMD: 3.04 KB ## Dependencies diff --git a/packages/ecs/package.json b/packages/ecs/package.json index a45f824f46..d6bee09ff9 100644 --- a/packages/ecs/package.json +++ b/packages/ecs/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ecs", - "version": "0.3.7", + "version": "0.3.8", "description": "Entity Component System based around typed arrays & sparse sets", "module": "./index.js", "main": "./lib/index.js", @@ -29,23 +29,23 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/equiv": "^1.0.17", + "@thi.ng/equiv": "^1.0.18", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/associative": "^4.0.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/idgen": "^0.2.6", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/associative": "^4.0.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/idgen": "^0.2.7", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/ecs/test/tsconfig.json b/packages/ecs/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/ecs/test/tsconfig.json +++ b/packages/ecs/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/equiv/CHANGELOG.md b/packages/equiv/CHANGELOG.md index 59a8aee768..8535f7dfdc 100644 --- a/packages/equiv/CHANGELOG.md +++ b/packages/equiv/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.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.17...@thi.ng/equiv@1.0.18) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/equiv + + + + + ## [1.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.16...@thi.ng/equiv@1.0.17) (2020-03-28) **Note:** Version bump only for package @thi.ng/equiv diff --git a/packages/equiv/README.md b/packages/equiv/README.md index b1f837a570..934f7d8308 100644 --- a/packages/equiv/README.md +++ b/packages/equiv/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/equiv](https://media.thi.ng/umbrella/banners/thing-equiv.svg?1585427305) +# ![equiv](https://media.thi.ng/umbrella/banners/thing-equiv.svg?bfa4408e) [![npm version](https://img.shields.io/npm/v/@thi.ng/equiv.svg)](https://www.npmjs.com/package/@thi.ng/equiv) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/equiv.svg) @@ -44,7 +44,7 @@ Supports: yarn add @thi.ng/equiv ``` -Package sizes (gzipped): ESM: 487 bytes / CJS: 543 bytes / UMD: 604 bytes +Package sizes (gzipped, pre-treeshake): ESM: 487 bytes / CJS: 543 bytes / UMD: 604 bytes ## Dependencies diff --git a/packages/equiv/package.json b/packages/equiv/package.json index 9c7e651df1..9f552dbd04 100644 --- a/packages/equiv/package.json +++ b/packages/equiv/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/equiv", - "version": "1.0.17", + "version": "1.0.18", "description": "Extensible deep value equivalence checking for any data types", "module": "./index.js", "main": "./lib/index.js", @@ -32,7 +32,7 @@ "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", "benchmark": "^2.1.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/equiv/test/tsconfig.json b/packages/equiv/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/equiv/test/tsconfig.json +++ b/packages/equiv/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index c0eca06192..a019b765e6 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/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.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.8...@thi.ng/errors@1.2.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/errors + + + + + ## [1.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/errors@1.2.7...@thi.ng/errors@1.2.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/errors diff --git a/packages/errors/README.md b/packages/errors/README.md index ea47c54c96..1a0cb6bad4 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/errors](https://media.thi.ng/umbrella/banners/thing-errors.svg?1585427304) +# ![errors](https://media.thi.ng/umbrella/banners/thing-errors.svg?f2f20b9e) [![npm version](https://img.shields.io/npm/v/@thi.ng/errors.svg)](https://www.npmjs.com/package/@thi.ng/errors) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/errors.svg) @@ -34,7 +34,7 @@ Additional error types can be defined using yarn add @thi.ng/errors ``` -Package sizes (gzipped): ESM: 262 bytes / CJS: 338 bytes / UMD: 403 bytes +Package sizes (gzipped, pre-treeshake): ESM: 262 bytes / CJS: 338 bytes / UMD: 403 bytes ## Dependencies diff --git a/packages/errors/package.json b/packages/errors/package.json index 499027f799..86ffd8cec8 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/errors", - "version": "1.2.8", + "version": "1.2.9", "description": "Custom error types and error factory functions", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/errors/test/tsconfig.json b/packages/errors/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/errors/test/tsconfig.json +++ b/packages/errors/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/fsm/CHANGELOG.md b/packages/fsm/CHANGELOG.md index f559379002..5900e67356 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.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.1...@thi.ng/fsm@2.4.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/fsm + + + + + ## [2.4.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/fsm@2.4.0...@thi.ng/fsm@2.4.1) (2020-03-28) **Note:** Version bump only for package @thi.ng/fsm diff --git a/packages/fsm/README.md b/packages/fsm/README.md index 3776d87fcd..387531675b 100644 --- a/packages/fsm/README.md +++ b/packages/fsm/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/fsm](https://media.thi.ng/umbrella/banners/thing-fsm.svg?1585427360) +# ![fsm](https://media.thi.ng/umbrella/banners/thing-fsm.svg?1804c274) [![npm version](https://img.shields.io/npm/v/@thi.ng/fsm.svg)](https://www.npmjs.com/package/@thi.ng/fsm) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/fsm.svg) @@ -43,7 +43,7 @@ package. yarn add @thi.ng/fsm ``` -Package sizes (gzipped): ESM: 1.35 KB / CJS: 1.45 KB / UMD: 1.44 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.37 KB / CJS: 1.49 KB / UMD: 1.50 KB ## Dependencies diff --git a/packages/fsm/package.json b/packages/fsm/package.json index 469567781b..c095f94a2c 100644 --- a/packages/fsm/package.json +++ b/packages/fsm/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/fsm", - "version": "2.4.1", + "version": "2.4.2", "description": "Composable primitives for building declarative, transducer based Finite-State Machines & matchers for arbitrary data streams", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/strings": "^1.8.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/strings": "^1.8.1", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/fsm/src/api.ts b/packages/fsm/src/api.ts index 7523720ccd..64b6ae57f9 100644 --- a/packages/fsm/src/api.ts +++ b/packages/fsm/src/api.ts @@ -1,4 +1,4 @@ -export const enum Match { +export enum Match { /** * Partial match */ @@ -16,7 +16,7 @@ export const enum Match { /** * Failed match. */ - FAIL = -1 + FAIL = -1, } export interface MatchResult { diff --git a/packages/fsm/test/tsconfig.json b/packages/fsm/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/fsm/test/tsconfig.json +++ b/packages/fsm/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/geom-accel/CHANGELOG.md b/packages/geom-accel/CHANGELOG.md index 7f933e86ea..36a389c979 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.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.0.7...@thi.ng/geom-accel@2.0.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-accel + + + + + ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-accel@2.0.6...@thi.ng/geom-accel@2.0.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-accel diff --git a/packages/geom-accel/README.md b/packages/geom-accel/README.md index 9de20e98bc..9fe584314f 100644 --- a/packages/geom-accel/README.md +++ b/packages/geom-accel/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-accel](https://media.thi.ng/umbrella/banners/thing-geom-accel.svg?1585427431) +# ![geom-accel](https://media.thi.ng/umbrella/banners/thing-geom-accel.svg?63dfd9f0) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-accel.svg)](https://www.npmjs.com/package/@thi.ng/geom-accel) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-accel.svg) @@ -46,7 +46,7 @@ Currently available: yarn add @thi.ng/geom-accel ``` -Package sizes (gzipped): ESM: 2.85 KB / CJS: 2.93 KB / UMD: 2.92 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.85 KB / CJS: 2.93 KB / UMD: 2.92 KB ## Dependencies diff --git a/packages/geom-accel/package.json b/packages/geom-accel/package.json index e2423e3254..835bdad849 100644 --- a/packages/geom-accel/package.json +++ b/packages/geom-accel/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-accel", - "version": "2.0.7", + "version": "2.0.8", "description": "n-D spatial indexing data structures", "module": "./index.js", "main": "./lib/index.js", @@ -32,22 +32,22 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-isec": "^0.4.7", - "@thi.ng/heaps": "^1.2.7", - "@thi.ng/math": "^1.7.4", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-isec": "^0.4.8", + "@thi.ng/heaps": "^1.2.8", + "@thi.ng/math": "^1.7.5", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-accel/test/tsconfig.json b/packages/geom-accel/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/geom-accel/test/tsconfig.json +++ b/packages/geom-accel/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/geom-api/CHANGELOG.md b/packages/geom-api/CHANGELOG.md index bea6f95739..9b67261158 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. +## [1.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.7...@thi.ng/geom-api@1.0.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-api + + + + + ## [1.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-api@1.0.6...@thi.ng/geom-api@1.0.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-api diff --git a/packages/geom-api/README.md b/packages/geom-api/README.md index 6ba91b1edf..3e1333903c 100644 --- a/packages/geom-api/README.md +++ b/packages/geom-api/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-api](https://media.thi.ng/umbrella/banners/thing-geom-api.svg?1585427390) +# ![geom-api](https://media.thi.ng/umbrella/banners/thing-geom-api.svg?a66e9014) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-api.svg)](https://www.npmjs.com/package/@thi.ng/geom-api) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-api.svg) @@ -31,7 +31,7 @@ Shared type & interface declarations for [@thi.ng/geom](https://github.com/thi-n yarn add @thi.ng/geom-api ``` -Package sizes (gzipped): ESM: 603 bytes / CJS: 627 bytes / UMD: 759 bytes +Package sizes (gzipped, pre-treeshake): ESM: 603 bytes / CJS: 627 bytes / UMD: 759 bytes ## Dependencies diff --git a/packages/geom-api/package.json b/packages/geom-api/package.json index 3304fb074b..3b1a630267 100644 --- a/packages/geom-api/package.json +++ b/packages/geom-api/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-api", - "version": "1.0.7", + "version": "1.0.8", "description": "Shared type & interface declarations for @thi.ng/geom packages", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-api/src/convex.ts b/packages/geom-api/src/convex.ts index 40660a861c..8002d41a38 100644 --- a/packages/geom-api/src/convex.ts +++ b/packages/geom-api/src/convex.ts @@ -1,9 +1,9 @@ /** * Polygon convexity classifier. */ -export const enum Convexity { +export enum Convexity { ILLEGAL = -1, COLINEAR = 0, CONVEX, - CONCAVE + CONCAVE, } diff --git a/packages/geom-api/src/isec.ts b/packages/geom-api/src/isec.ts index f2ebc59ccf..fac84560d7 100644 --- a/packages/geom-api/src/isec.ts +++ b/packages/geom-api/src/isec.ts @@ -1,12 +1,12 @@ import type { Vec } from "@thi.ng/vectors"; -export const enum IntersectionType { +export enum IntersectionType { NONE, PARALLEL, COINCIDENT, COINCIDENT_NO_INTERSECT, INTERSECT, - INTERSECT_OUTSIDE + INTERSECT_OUTSIDE, } export interface IntersectionResult { diff --git a/packages/geom-api/src/path.ts b/packages/geom-api/src/path.ts index 7ef76046ba..23e3e64bc9 100644 --- a/packages/geom-api/src/path.ts +++ b/packages/geom-api/src/path.ts @@ -1,14 +1,14 @@ import type { Vec } from "@thi.ng/vectors"; import type { IShape } from "./shape"; -export const enum SegmentType { +export enum SegmentType { MOVE, LINE, POLYLINE, ARC, CUBIC, QUADRATIC, - CLOSE + CLOSE, } export interface PathSegment { diff --git a/packages/geom-api/src/shape.ts b/packages/geom-api/src/shape.ts index c6f6af81f9..6d77c86c54 100644 --- a/packages/geom-api/src/shape.ts +++ b/packages/geom-api/src/shape.ts @@ -1,7 +1,7 @@ import type { ICopy, IObjectOf, IToHiccup } from "@thi.ng/api"; import type { Vec } from "@thi.ng/vectors"; -export const enum Type { +export enum Type { AABB = 1, ARC, CIRCLE, @@ -30,7 +30,7 @@ export const enum Type { TRIANGLE, TRIANGLE3, RAY, - RAY3 + RAY3, } export type Attribs = IObjectOf; diff --git a/packages/geom-api/test/tsconfig.json b/packages/geom-api/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-api/test/tsconfig.json +++ b/packages/geom-api/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-arc/CHANGELOG.md b/packages/geom-arc/CHANGELOG.md index 00e7c668e7..526fb5a869 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.2.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.2.18...@thi.ng/geom-arc@0.2.19) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-arc + + + + + ## [0.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-arc@0.2.17...@thi.ng/geom-arc@0.2.18) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-arc diff --git a/packages/geom-arc/README.md b/packages/geom-arc/README.md index d0f064cc93..c27557afb5 100644 --- a/packages/geom-arc/README.md +++ b/packages/geom-arc/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-arc](https://media.thi.ng/umbrella/banners/thing-geom-arc.svg?1585427432) +# ![geom-arc](https://media.thi.ng/umbrella/banners/thing-geom-arc.svg?a48f536c) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-arc.svg)](https://www.npmjs.com/package/@thi.ng/geom-arc) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-arc.svg) @@ -31,7 +31,7 @@ This project is part of the yarn add @thi.ng/geom-arc ``` -Package sizes (gzipped): ESM: 1.01 KB / CJS: 1.06 KB / UMD: 1.15 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.01 KB / CJS: 1.06 KB / UMD: 1.15 KB ## Dependencies diff --git a/packages/geom-arc/package.json b/packages/geom-arc/package.json index 38d42ae3fa..a20b1f6420 100644 --- a/packages/geom-arc/package.json +++ b/packages/geom-arc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-arc", - "version": "0.2.18", + "version": "0.2.19", "description": "2D circular / elliptic arc operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-resample": "^0.2.18", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-resample": "^0.2.19", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-arc/test/tsconfig.json b/packages/geom-arc/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-arc/test/tsconfig.json +++ b/packages/geom-arc/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-clip-line/CHANGELOG.md b/packages/geom-clip-line/CHANGELOG.md index 249c060070..0e0fc22fd7 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.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.0.5...@thi.ng/geom-clip-line@1.0.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-clip-line + + + + + ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-line@1.0.4...@thi.ng/geom-clip-line@1.0.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-clip-line diff --git a/packages/geom-clip-line/README.md b/packages/geom-clip-line/README.md index 19eefecbaf..b91f46bd47 100644 --- a/packages/geom-clip-line/README.md +++ b/packages/geom-clip-line/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-clip-line](https://media.thi.ng/umbrella/banners/thing-geom-clip-line.svg?1585427390) +# ![geom-clip-line](https://media.thi.ng/umbrella/banners/thing-geom-clip-line.svg?006770bd) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-clip-line.svg)](https://www.npmjs.com/package/@thi.ng/geom-clip-line) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-clip-line.svg) @@ -37,7 +37,7 @@ This package has been extracted from the former (now obsolete) yarn add @thi.ng/geom-clip-line ``` -Package sizes (gzipped): ESM: 292 bytes / CJS: 348 bytes / UMD: 454 bytes +Package sizes (gzipped, pre-treeshake): ESM: 292 bytes / CJS: 348 bytes / UMD: 454 bytes ## Dependencies diff --git a/packages/geom-clip-line/package.json b/packages/geom-clip-line/package.json index 4647d6c480..02d1e86d6e 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.0.5", + "version": "1.0.6", "description": "2D line clipping (Liang-Barsky)", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-clip-line/test/tsconfig.json b/packages/geom-clip-line/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-clip-line/test/tsconfig.json +++ b/packages/geom-clip-line/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-clip-poly/CHANGELOG.md b/packages/geom-clip-poly/CHANGELOG.md index 0ab0f2e797..de6bee41db 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.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.5...@thi.ng/geom-clip-poly@1.0.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-clip-poly + + + + + ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-clip-poly@1.0.4...@thi.ng/geom-clip-poly@1.0.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-clip-poly diff --git a/packages/geom-clip-poly/README.md b/packages/geom-clip-poly/README.md index ac3e34e435..589cfb07e4 100644 --- a/packages/geom-clip-poly/README.md +++ b/packages/geom-clip-poly/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-clip-poly](https://media.thi.ng/umbrella/banners/thing-geom-clip-poly.svg?1585427432) +# ![geom-clip-poly](https://media.thi.ng/umbrella/banners/thing-geom-clip-poly.svg?890cd15d) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-clip-poly.svg)](https://www.npmjs.com/package/@thi.ng/geom-clip-poly) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-clip-poly.svg) @@ -37,7 +37,7 @@ This package has been extracted from the former (now obsolete) yarn add @thi.ng/geom-clip-poly ``` -Package sizes (gzipped): ESM: 317 bytes / CJS: 389 bytes / UMD: 503 bytes +Package sizes (gzipped, pre-treeshake): ESM: 317 bytes / CJS: 389 bytes / UMD: 503 bytes ## Dependencies diff --git a/packages/geom-clip-poly/package.json b/packages/geom-clip-poly/package.json index c1cac23de5..d4ba97b6dc 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.5", + "version": "1.0.6", "description": "2D convex polygon clipping (Sutherland-Hodgeman)", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/geom-isec": "^0.4.7", - "@thi.ng/geom-poly-utils": "^0.1.36", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/geom-isec": "^0.4.8", + "@thi.ng/geom-poly-utils": "^0.1.37", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-clip-poly/test/tsconfig.json b/packages/geom-clip-poly/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-clip-poly/test/tsconfig.json +++ b/packages/geom-clip-poly/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-closest-point/CHANGELOG.md b/packages/geom-closest-point/CHANGELOG.md index 447b5e843a..40e4955fbc 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.3.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.3.18...@thi.ng/geom-closest-point@0.3.19) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-closest-point + + + + + ## [0.3.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-closest-point@0.3.17...@thi.ng/geom-closest-point@0.3.18) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-closest-point diff --git a/packages/geom-closest-point/README.md b/packages/geom-closest-point/README.md index d3d516272c..5e08972af5 100644 --- a/packages/geom-closest-point/README.md +++ b/packages/geom-closest-point/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-closest-point](https://media.thi.ng/umbrella/banners/thing-geom-closest-point.svg?1585427392) +# ![geom-closest-point](https://media.thi.ng/umbrella/banners/thing-geom-closest-point.svg?cd50c3a4) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-closest-point.svg)](https://www.npmjs.com/package/@thi.ng/geom-closest-point) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-closest-point.svg) @@ -35,7 +35,7 @@ Current implementations partially based on yarn add @thi.ng/geom-closest-point ``` -Package sizes (gzipped): ESM: 833 bytes / CJS: 930 bytes / UMD: 965 bytes +Package sizes (gzipped, pre-treeshake): ESM: 833 bytes / CJS: 930 bytes / UMD: 965 bytes ## Dependencies diff --git a/packages/geom-closest-point/package.json b/packages/geom-closest-point/package.json index b6db16658b..605d7081b4 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.3.18", + "version": "0.3.19", "description": "2D / 3D closest point / proximity helpers", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-closest-point/test/tsconfig.json b/packages/geom-closest-point/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-closest-point/test/tsconfig.json +++ b/packages/geom-closest-point/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-hull/CHANGELOG.md b/packages/geom-hull/CHANGELOG.md index b9522b25b9..a5d99490a3 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.39](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.38...@thi.ng/geom-hull@0.0.39) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-hull + + + + + ## [0.0.38](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-hull@0.0.37...@thi.ng/geom-hull@0.0.38) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-hull diff --git a/packages/geom-hull/README.md b/packages/geom-hull/README.md index 354c467a4d..620f1e0ba9 100644 --- a/packages/geom-hull/README.md +++ b/packages/geom-hull/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-hull](https://media.thi.ng/umbrella/banners/thing-geom-hull.svg?1585427391) +# ![geom-hull](https://media.thi.ng/umbrella/banners/thing-geom-hull.svg?b0095b45) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-hull.svg)](https://www.npmjs.com/package/@thi.ng/geom-hull) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-hull.svg) @@ -35,7 +35,7 @@ Current implementation is partially based on Clojure version of yarn add @thi.ng/geom-hull ``` -Package sizes (gzipped): ESM: 432 bytes / CJS: 487 bytes / UMD: 581 bytes +Package sizes (gzipped, pre-treeshake): ESM: 432 bytes / CJS: 487 bytes / UMD: 581 bytes ## Dependencies diff --git a/packages/geom-hull/package.json b/packages/geom-hull/package.json index 69f0bc8c4f..e50d14261e 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.38", + "version": "0.0.39", "description": "Fast 2D convex hull (Graham Scan)", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-hull/test/tsconfig.json b/packages/geom-hull/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-hull/test/tsconfig.json +++ b/packages/geom-hull/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-isec/CHANGELOG.md b/packages/geom-isec/CHANGELOG.md index 9d47a2b108..51fcc84244 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.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.4.7...@thi.ng/geom-isec@0.4.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-isec + + + + + ## [0.4.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isec@0.4.6...@thi.ng/geom-isec@0.4.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-isec diff --git a/packages/geom-isec/README.md b/packages/geom-isec/README.md index 9154e7ab9c..0b144cd154 100644 --- a/packages/geom-isec/README.md +++ b/packages/geom-isec/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-isec](https://media.thi.ng/umbrella/banners/thing-geom-isec.svg?1585427420) +# ![geom-isec](https://media.thi.ng/umbrella/banners/thing-geom-isec.svg?78ca30b4) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-isec.svg)](https://www.npmjs.com/package/@thi.ng/geom-isec) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-isec.svg) @@ -54,7 +54,7 @@ Current implementations partially based on yarn add @thi.ng/geom-isec ``` -Package sizes (gzipped): ESM: 2.30 KB / CJS: 2.45 KB / UMD: 2.40 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.37 KB / CJS: 2.53 KB / UMD: 2.50 KB ## Dependencies diff --git a/packages/geom-isec/package.json b/packages/geom-isec/package.json index fa6603eabc..e2cbf835a6 100644 --- a/packages/geom-isec/package.json +++ b/packages/geom-isec/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-isec", - "version": "0.4.7", + "version": "0.4.8", "description": "2D/3D shape intersection checks", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-closest-point": "^0.3.18", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-closest-point": "^0.3.19", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-isec/test/tsconfig.json b/packages/geom-isec/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-isec/test/tsconfig.json +++ b/packages/geom-isec/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-isoline/CHANGELOG.md b/packages/geom-isoline/CHANGELOG.md index 382066e84c..e6e62db024 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.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.36...@thi.ng/geom-isoline@0.1.37) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-isoline + + + + + ## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-isoline@0.1.35...@thi.ng/geom-isoline@0.1.36) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-isoline diff --git a/packages/geom-isoline/README.md b/packages/geom-isoline/README.md index 423f6eae64..c8e58f0bbe 100644 --- a/packages/geom-isoline/README.md +++ b/packages/geom-isoline/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-isoline](https://media.thi.ng/umbrella/banners/thing-geom-isoline.svg?1585427391) +# ![geom-isoline](https://media.thi.ng/umbrella/banners/thing-geom-isoline.svg?f315a527) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-isoline.svg)](https://www.npmjs.com/package/@thi.ng/geom-isoline) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-isoline.svg) @@ -35,7 +35,7 @@ the Clojure version of yarn add @thi.ng/geom-isoline ``` -Package sizes (gzipped): ESM: 753 bytes / CJS: 818 bytes / UMD: 862 bytes +Package sizes (gzipped, pre-treeshake): ESM: 753 bytes / CJS: 818 bytes / UMD: 862 bytes ## Dependencies diff --git a/packages/geom-isoline/package.json b/packages/geom-isoline/package.json index 1ea3e65ddf..a0b8b3dbfd 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.36", + "version": "0.1.37", "description": "Fast 2D contour line extraction / generation", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-isoline/test/tsconfig.json b/packages/geom-isoline/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-isoline/test/tsconfig.json +++ b/packages/geom-isoline/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-poly-utils/CHANGELOG.md b/packages/geom-poly-utils/CHANGELOG.md index 6c5f30cbc8..51f2302173 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.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.36...@thi.ng/geom-poly-utils@0.1.37) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-poly-utils + + + + + ## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-poly-utils@0.1.35...@thi.ng/geom-poly-utils@0.1.36) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-poly-utils diff --git a/packages/geom-poly-utils/README.md b/packages/geom-poly-utils/README.md index 2c3b4231ad..f1014b6f33 100644 --- a/packages/geom-poly-utils/README.md +++ b/packages/geom-poly-utils/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-poly-utils](https://media.thi.ng/umbrella/banners/thing-geom-poly-utils.svg?1585427411) +# ![geom-poly-utils](https://media.thi.ng/umbrella/banners/thing-geom-poly-utils.svg?24f54c54) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-poly-utils.svg)](https://www.npmjs.com/package/@thi.ng/geom-poly-utils) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-poly-utils.svg) @@ -45,7 +45,7 @@ Current implementations partially based on yarn add @thi.ng/geom-poly-utils ``` -Package sizes (gzipped): ESM: 1.06 KB / CJS: 1.13 KB / UMD: 1.19 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.11 KB / CJS: 1.18 KB / UMD: 1.24 KB ## Dependencies diff --git a/packages/geom-poly-utils/package.json b/packages/geom-poly-utils/package.json index c937eac4bc..683564bcd1 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.1.36", + "version": "0.1.37", "description": "2D polygon / triangle analysis & processing utilities", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/errors": "^1.2.8", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-poly-utils/test/tsconfig.json b/packages/geom-poly-utils/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-poly-utils/test/tsconfig.json +++ b/packages/geom-poly-utils/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-resample/CHANGELOG.md b/packages/geom-resample/CHANGELOG.md index 34f46e3813..fff6e7ef8c 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.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.18...@thi.ng/geom-resample@0.2.19) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-resample + + + + + ## [0.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-resample@0.2.17...@thi.ng/geom-resample@0.2.18) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-resample diff --git a/packages/geom-resample/README.md b/packages/geom-resample/README.md index adb76406e6..f5a7916ea7 100644 --- a/packages/geom-resample/README.md +++ b/packages/geom-resample/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-resample](https://media.thi.ng/umbrella/banners/thing-geom-resample.svg?1585427421) +# ![geom-resample](https://media.thi.ng/umbrella/banners/thing-geom-resample.svg?7fa0e99f) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-resample.svg)](https://www.npmjs.com/package/@thi.ng/geom-resample) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-resample.svg) @@ -39,7 +39,7 @@ Current implementations partially based on yarn add @thi.ng/geom-resample ``` -Package sizes (gzipped): ESM: 1.21 KB / CJS: 1.27 KB / UMD: 1.37 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.21 KB / CJS: 1.27 KB / UMD: 1.37 KB ## Dependencies diff --git a/packages/geom-resample/package.json b/packages/geom-resample/package.json index 500baba1b2..630d41ae0f 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.18", + "version": "0.2.19", "description": "Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-closest-point": "^0.3.18", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-closest-point": "^0.3.19", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-resample/test/tsconfig.json b/packages/geom-resample/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-resample/test/tsconfig.json +++ b/packages/geom-resample/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-splines/CHANGELOG.md b/packages/geom-splines/CHANGELOG.md index 4a59966690..db43b4004e 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.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.5...@thi.ng/geom-splines@0.5.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-splines + + + + + ## [0.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-splines@0.5.4...@thi.ng/geom-splines@0.5.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-splines diff --git a/packages/geom-splines/README.md b/packages/geom-splines/README.md index b64b789852..213575129f 100644 --- a/packages/geom-splines/README.md +++ b/packages/geom-splines/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-splines](https://media.thi.ng/umbrella/banners/thing-geom-splines.svg?1585427439) +# ![geom-splines](https://media.thi.ng/umbrella/banners/thing-geom-splines.svg?8b86baa9) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-splines.svg)](https://www.npmjs.com/package/@thi.ng/geom-splines) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-splines.svg) @@ -39,7 +39,7 @@ Current implementations partially based on yarn add @thi.ng/geom-splines ``` -Package sizes (gzipped): ESM: 2.17 KB / CJS: 2.30 KB / UMD: 2.26 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.17 KB / CJS: 2.30 KB / UMD: 2.26 KB ## Dependencies diff --git a/packages/geom-splines/package.json b/packages/geom-splines/package.json index f9f5886533..d93e9f39fd 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.5", + "version": "0.5.6", "description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-arc": "^0.2.18", - "@thi.ng/geom-resample": "^0.2.18", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-arc": "^0.2.19", + "@thi.ng/geom-resample": "^0.2.19", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-splines/test/tsconfig.json b/packages/geom-splines/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-splines/test/tsconfig.json +++ b/packages/geom-splines/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-subdiv-curve/CHANGELOG.md b/packages/geom-subdiv-curve/CHANGELOG.md index ae2a0404ed..041f3e3a6d 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.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.35...@thi.ng/geom-subdiv-curve@0.1.36) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-subdiv-curve + + + + + ## [0.1.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-subdiv-curve@0.1.34...@thi.ng/geom-subdiv-curve@0.1.35) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-subdiv-curve diff --git a/packages/geom-subdiv-curve/README.md b/packages/geom-subdiv-curve/README.md index 2e6bdbb255..6984038657 100644 --- a/packages/geom-subdiv-curve/README.md +++ b/packages/geom-subdiv-curve/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-subdiv-curve](https://media.thi.ng/umbrella/banners/thing-geom-subdiv-curve.svg?1585427411) +# ![geom-subdiv-curve](https://media.thi.ng/umbrella/banners/thing-geom-subdiv-curve.svg?97e73b93) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-subdiv-curve.svg)](https://www.npmjs.com/package/@thi.ng/geom-subdiv-curve) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-subdiv-curve.svg) @@ -48,7 +48,7 @@ Supplied / implemented subdivision schemes: yarn add @thi.ng/geom-subdiv-curve ``` -Package sizes (gzipped): ESM: 641 bytes / CJS: 722 bytes / UMD: 767 bytes +Package sizes (gzipped, pre-treeshake): ESM: 641 bytes / CJS: 722 bytes / UMD: 767 bytes ## Dependencies diff --git a/packages/geom-subdiv-curve/package.json b/packages/geom-subdiv-curve/package.json index c08bcb793d..5c046de713 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.35", + "version": "0.1.36", "description": "Freely customizable, iterative nD subdivision curves for open / closed geometries", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-subdiv-curve/test/tsconfig.json b/packages/geom-subdiv-curve/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-subdiv-curve/test/tsconfig.json +++ b/packages/geom-subdiv-curve/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-tessellate/CHANGELOG.md b/packages/geom-tessellate/CHANGELOG.md index 8899623d43..8ae1fbe67e 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.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.18...@thi.ng/geom-tessellate@0.2.19) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-tessellate + + + + + ## [0.2.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-tessellate@0.2.17...@thi.ng/geom-tessellate@0.2.18) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-tessellate diff --git a/packages/geom-tessellate/README.md b/packages/geom-tessellate/README.md index c79508f6dc..1eca00ddc8 100644 --- a/packages/geom-tessellate/README.md +++ b/packages/geom-tessellate/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-tessellate](https://media.thi.ng/umbrella/banners/thing-geom-tessellate.svg?1585427432) +# ![geom-tessellate](https://media.thi.ng/umbrella/banners/thing-geom-tessellate.svg?667e4c7b) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-tessellate.svg)](https://www.npmjs.com/package/@thi.ng/geom-tessellate) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-tessellate.svg) @@ -43,7 +43,7 @@ highly dependent on the concavities present. YMMV! yarn add @thi.ng/geom-tessellate ``` -Package sizes (gzipped): ESM: 782 bytes / CJS: 872 bytes / UMD: 921 bytes +Package sizes (gzipped, pre-treeshake): ESM: 782 bytes / CJS: 872 bytes / UMD: 921 bytes ## Dependencies diff --git a/packages/geom-tessellate/package.json b/packages/geom-tessellate/package.json index caf95388aa..b6a62aab71 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.18", + "version": "0.2.19", "description": "2D/3D convex polygon tessellators", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-isec": "^0.4.7", - "@thi.ng/geom-poly-utils": "^0.1.36", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-isec": "^0.4.8", + "@thi.ng/geom-poly-utils": "^0.1.37", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-tessellate/test/tsconfig.json b/packages/geom-tessellate/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-tessellate/test/tsconfig.json +++ b/packages/geom-tessellate/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom-voronoi/CHANGELOG.md b/packages/geom-voronoi/CHANGELOG.md index d9bff72352..e0f768c460 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.1.37](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.1.36...@thi.ng/geom-voronoi@0.1.37) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom-voronoi + + + + + ## [0.1.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom-voronoi@0.1.35...@thi.ng/geom-voronoi@0.1.36) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom-voronoi diff --git a/packages/geom-voronoi/README.md b/packages/geom-voronoi/README.md index e780fbe098..1ac8e41eb8 100644 --- a/packages/geom-voronoi/README.md +++ b/packages/geom-voronoi/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom-voronoi](https://media.thi.ng/umbrella/banners/thing-geom-voronoi.svg?1585427439) +# ![geom-voronoi](https://media.thi.ng/umbrella/banners/thing-geom-voronoi.svg?fcd00fe6) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-voronoi.svg)](https://www.npmjs.com/package/@thi.ng/geom-voronoi) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-voronoi.svg) @@ -45,7 +45,7 @@ in ~850ms (Chrome 72, MBP 2016) yarn add @thi.ng/geom-voronoi ``` -Package sizes (gzipped): ESM: 1.34 KB / CJS: 1.42 KB / UMD: 1.53 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.34 KB / CJS: 1.42 KB / UMD: 1.53 KB ## Dependencies diff --git a/packages/geom-voronoi/package.json b/packages/geom-voronoi/package.json index 02aaf5eb58..99191c4e52 100644 --- a/packages/geom-voronoi/package.json +++ b/packages/geom-voronoi/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom-voronoi", - "version": "0.1.36", + "version": "0.1.37", "description": "Fast, incremental 2D Delaunay & Voronoi mesh implementation", "module": "./index.js", "main": "./lib/index.js", @@ -31,22 +31,22 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom-clip-line": "^1.0.5", - "@thi.ng/geom-clip-poly": "^1.0.5", - "@thi.ng/geom-isec": "^0.4.7", - "@thi.ng/geom-poly-utils": "^0.1.36", - "@thi.ng/math": "^1.7.4", - "@thi.ng/quad-edge": "^0.2.10", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom-clip-line": "^1.0.6", + "@thi.ng/geom-clip-poly": "^1.0.6", + "@thi.ng/geom-isec": "^0.4.8", + "@thi.ng/geom-poly-utils": "^0.1.37", + "@thi.ng/math": "^1.7.5", + "@thi.ng/quad-edge": "^0.2.11", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom-voronoi/test/tsconfig.json b/packages/geom-voronoi/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom-voronoi/test/tsconfig.json +++ b/packages/geom-voronoi/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/geom/CHANGELOG.md b/packages/geom/CHANGELOG.md index 67c7d392d2..dee008bd90 100644 --- a/packages/geom/CHANGELOG.md +++ b/packages/geom/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.8.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.8.6...@thi.ng/geom@1.8.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/geom + + + + + +## [1.8.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.8.5...@thi.ng/geom@1.8.6) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/geom + + + + + ## [1.8.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/geom@1.8.4...@thi.ng/geom@1.8.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/geom diff --git a/packages/geom/README.md b/packages/geom/README.md index d2216a6ef0..ec9e0c406a 100644 --- a/packages/geom/README.md +++ b/packages/geom/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/geom](https://media.thi.ng/umbrella/banners/thing-geom.svg?1585427443) +# ![geom](https://media.thi.ng/umbrella/banners/thing-geom.svg?acb35ca6) [![npm version](https://img.shields.io/npm/v/@thi.ng/geom.svg)](https://www.npmjs.com/package/@thi.ng/geom) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom.svg) @@ -61,7 +61,7 @@ themselves too): yarn add @thi.ng/geom ``` -Package sizes (gzipped): ESM: 9.42 KB / CJS: 9.62 KB / UMD: 9.14 KB +Package sizes (gzipped, pre-treeshake): ESM: 9.83 KB / CJS: 10.13 KB / UMD: 9.54 KB ## Dependencies diff --git a/packages/geom/package.json b/packages/geom/package.json index f6a2732e28..fa5978101b 100644 --- a/packages/geom/package.json +++ b/packages/geom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/geom", - "version": "1.8.5", + "version": "1.8.7", "description": "Functional, polymorphic API for 2D geometry types & SVG generation", "module": "./index.js", "main": "./lib/index.js", @@ -31,39 +31,39 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compose": "^1.4.0", - "@thi.ng/defmulti": "^1.2.8", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-arc": "^0.2.18", - "@thi.ng/geom-clip-line": "^1.0.5", - "@thi.ng/geom-clip-poly": "^1.0.5", - "@thi.ng/geom-closest-point": "^0.3.18", - "@thi.ng/geom-hull": "^0.0.38", - "@thi.ng/geom-isec": "^0.4.7", - "@thi.ng/geom-poly-utils": "^0.1.36", - "@thi.ng/geom-resample": "^0.2.18", - "@thi.ng/geom-splines": "^0.5.5", - "@thi.ng/geom-subdiv-curve": "^0.1.35", - "@thi.ng/geom-tessellate": "^0.2.18", - "@thi.ng/hiccup": "^3.2.14", - "@thi.ng/hiccup-svg": "^3.4.7", - "@thi.ng/math": "^1.7.4", - "@thi.ng/matrices": "^0.6.5", - "@thi.ng/random": "^1.4.2", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compose": "^1.4.1", + "@thi.ng/defmulti": "^1.2.9", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-arc": "^0.2.19", + "@thi.ng/geom-clip-line": "^1.0.6", + "@thi.ng/geom-clip-poly": "^1.0.6", + "@thi.ng/geom-closest-point": "^0.3.19", + "@thi.ng/geom-hull": "^0.0.39", + "@thi.ng/geom-isec": "^0.4.8", + "@thi.ng/geom-poly-utils": "^0.1.37", + "@thi.ng/geom-resample": "^0.2.19", + "@thi.ng/geom-splines": "^0.5.6", + "@thi.ng/geom-subdiv-curve": "^0.1.36", + "@thi.ng/geom-tessellate": "^0.2.19", + "@thi.ng/hiccup": "^3.2.16", + "@thi.ng/hiccup-svg": "^3.4.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/matrices": "^0.6.6", + "@thi.ng/random": "^1.4.3", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/geom/test/tsconfig.json b/packages/geom/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/geom/test/tsconfig.json +++ b/packages/geom/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/gp/CHANGELOG.md b/packages/gp/CHANGELOG.md index 074153e42a..c95712d9b9 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.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.8...@thi.ng/gp@0.1.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/gp + + + + + ## [0.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/gp@0.1.7...@thi.ng/gp@0.1.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/gp diff --git a/packages/gp/README.md b/packages/gp/README.md index ddfc469088..b66e8b66cc 100644 --- a/packages/gp/README.md +++ b/packages/gp/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/gp](https://media.thi.ng/umbrella/banners/thing-gp.svg?1585427360) +# ![gp](https://media.thi.ng/umbrella/banners/thing-gp.svg?4de0cbbf) [![npm version](https://img.shields.io/npm/v/@thi.ng/gp.svg)](https://www.npmjs.com/package/@thi.ng/gp) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/gp.svg) @@ -67,7 +67,7 @@ References: yarn add @thi.ng/gp ``` -Package sizes (gzipped): ESM: 1.25 KB / CJS: 1.29 KB / UMD: 1.38 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.25 KB / CJS: 1.29 KB / UMD: 1.40 KB ## Dependencies diff --git a/packages/gp/package.json b/packages/gp/package.json index 7721be6fbe..5dd6284fde 100644 --- a/packages/gp/package.json +++ b/packages/gp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/gp", - "version": "0.1.8", + "version": "0.1.9", "description": "Genetic programming helpers & strategies (tree based & multi-expression programming)", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/math": "^1.7.4", - "@thi.ng/random": "^1.4.2", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/zipper": "^0.1.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/math": "^1.7.5", + "@thi.ng/random": "^1.4.3", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/zipper": "^0.1.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/gp/src/api.ts b/packages/gp/src/api.ts index f462475b51..f62f56683f 100644 --- a/packages/gp/src/api.ts +++ b/packages/gp/src/api.ts @@ -1,9 +1,9 @@ import type { Fn, Fn2 } from "@thi.ng/api"; import type { IRandom } from "@thi.ng/random"; -export const enum GeneType { +export enum GeneType { TERMINAL, - OP + OP, } /** diff --git a/packages/gp/test/tsconfig.json b/packages/gp/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/gp/test/tsconfig.json +++ b/packages/gp/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/grid-iterators/CHANGELOG.md b/packages/grid-iterators/CHANGELOG.md index a24152e90f..ac60402f39 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.3.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.3.5...@thi.ng/grid-iterators@0.3.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/grid-iterators + + + + + ## [0.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/grid-iterators@0.3.4...@thi.ng/grid-iterators@0.3.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/grid-iterators diff --git a/packages/grid-iterators/README.md b/packages/grid-iterators/README.md index 67292c35df..816702c103 100644 --- a/packages/grid-iterators/README.md +++ b/packages/grid-iterators/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/grid-iterators](https://media.thi.ng/umbrella/banners/thing-grid-iterators.svg?1585427361) +# ![grid-iterators](https://media.thi.ng/umbrella/banners/thing-grid-iterators.svg?a3425652) [![npm version](https://img.shields.io/npm/v/@thi.ng/grid-iterators.svg)](https://www.npmjs.com/package/@thi.ng/grid-iterators) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/grid-iterators.svg) @@ -135,7 +135,7 @@ Additionally, the following non-exhaustive iterators are available: yarn add @thi.ng/grid-iterators ``` -Package sizes (gzipped): ESM: 1.24 KB / CJS: 1.34 KB / UMD: 1.40 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.24 KB / CJS: 1.34 KB / UMD: 1.40 KB ## Dependencies diff --git a/packages/grid-iterators/package.json b/packages/grid-iterators/package.json index ac4f850756..6658787730 100644 --- a/packages/grid-iterators/package.json +++ b/packages/grid-iterators/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/grid-iterators", - "version": "0.3.5", + "version": "0.3.6", "description": "2D grid iterators w/ multiple orderings", "module": "./index.js", "main": "./lib/index.js", @@ -32,18 +32,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/morton": "^2.0.6", - "@thi.ng/random": "^1.4.2", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/morton": "^2.0.7", + "@thi.ng/random": "^1.4.3", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/grid-iterators/test/tsconfig.json b/packages/grid-iterators/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/grid-iterators/test/tsconfig.json +++ b/packages/grid-iterators/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/hdom-canvas/CHANGELOG.md b/packages/hdom-canvas/CHANGELOG.md index 31d4446dab..1e550cfedb 100644 --- a/packages/hdom-canvas/CHANGELOG.md +++ b/packages/hdom-canvas/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. +## [2.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@2.4.10...@thi.ng/hdom-canvas@2.4.11) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hdom-canvas + + + + + +## [2.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@2.4.9...@thi.ng/hdom-canvas@2.4.10) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hdom-canvas + + + + + ## [2.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-canvas@2.4.8...@thi.ng/hdom-canvas@2.4.9) (2020-03-28) **Note:** Version bump only for package @thi.ng/hdom-canvas diff --git a/packages/hdom-canvas/README.md b/packages/hdom-canvas/README.md index 62287ca9dd..23002b861b 100644 --- a/packages/hdom-canvas/README.md +++ b/packages/hdom-canvas/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hdom-canvas](https://media.thi.ng/umbrella/banners/thing-hdom-canvas.svg?1585427412) +# ![hdom-canvas](https://media.thi.ng/umbrella/banners/thing-hdom-canvas.svg?6cf78a0b) [![npm version](https://img.shields.io/npm/v/@thi.ng/hdom-canvas.svg)](https://www.npmjs.com/package/@thi.ng/hdom-canvas) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hdom-canvas.svg) @@ -83,7 +83,7 @@ API draw calls during the hdom update process / cycle. yarn add @thi.ng/hdom-canvas ``` -Package sizes (gzipped): ESM: 3.17 KB / CJS: 3.31 KB / UMD: 3.29 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.19 KB / CJS: 3.33 KB / UMD: 3.31 KB ## Dependencies diff --git a/packages/hdom-canvas/package.json b/packages/hdom-canvas/package.json index 1217d78dde..0cf8d6b5e9 100644 --- a/packages/hdom-canvas/package.json +++ b/packages/hdom-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom-canvas", - "version": "2.4.9", + "version": "2.4.11", "description": "Declarative canvas scenegraph & visualization for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -31,20 +31,20 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/color": "^1.1.11", - "@thi.ng/diff": "^3.2.13", - "@thi.ng/hdom": "^8.0.15", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/color": "^1.1.12", + "@thi.ng/diff": "^3.2.14", + "@thi.ng/hdom": "^8.0.17", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hdom-canvas/test/tsconfig.json b/packages/hdom-canvas/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hdom-canvas/test/tsconfig.json +++ b/packages/hdom-canvas/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hdom-components/CHANGELOG.md b/packages/hdom-components/CHANGELOG.md index caa13ca808..95ea1bf88a 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. +## [3.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@3.2.1...@thi.ng/hdom-components@3.2.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hdom-components + + + + + ## [3.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-components@3.2.0...@thi.ng/hdom-components@3.2.1) (2020-03-28) **Note:** Version bump only for package @thi.ng/hdom-components diff --git a/packages/hdom-components/README.md b/packages/hdom-components/README.md index b232fb0fe8..974f88b002 100644 --- a/packages/hdom-components/README.md +++ b/packages/hdom-components/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hdom-components](https://media.thi.ng/umbrella/banners/thing-hdom-components.svg?1585427410) +# ![hdom-components](https://media.thi.ng/umbrella/banners/thing-hdom-components.svg?383f0ac7) [![npm version](https://img.shields.io/npm/v/@thi.ng/hdom-components.svg)](https://www.npmjs.com/package/@thi.ng/hdom-components) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hdom-components.svg) @@ -47,7 +47,7 @@ components**. Feedback welcome! yarn add @thi.ng/hdom-components ``` -Package sizes (gzipped): ESM: 2.29 KB / CJS: 2.41 KB / UMD: 2.41 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.29 KB / CJS: 2.41 KB / UMD: 2.41 KB ## Dependencies diff --git a/packages/hdom-components/package.json b/packages/hdom-components/package.json index 3762b769f4..452deaf5ec 100644 --- a/packages/hdom-components/package.json +++ b/packages/hdom-components/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom-components", - "version": "3.2.1", + "version": "3.2.2", "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/math": "^1.7.4", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/transducers-stats": "^1.1.15", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/math": "^1.7.5", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/transducers-stats": "^1.1.16", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hdom-components/test/tsconfig.json b/packages/hdom-components/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hdom-components/test/tsconfig.json +++ b/packages/hdom-components/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hdom-mock/CHANGELOG.md b/packages/hdom-mock/CHANGELOG.md index 0775e04bcf..b3483674be 100644 --- a/packages/hdom-mock/CHANGELOG.md +++ b/packages/hdom-mock/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.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.16...@thi.ng/hdom-mock@1.1.17) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hdom-mock + + + + + +## [1.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.15...@thi.ng/hdom-mock@1.1.16) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hdom-mock + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom-mock@1.1.14...@thi.ng/hdom-mock@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/hdom-mock diff --git a/packages/hdom-mock/README.md b/packages/hdom-mock/README.md index fa6414a15f..05eb74fb02 100644 --- a/packages/hdom-mock/README.md +++ b/packages/hdom-mock/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hdom-mock](https://media.thi.ng/umbrella/banners/thing-hdom-mock.svg?1585427380) +# ![hdom-mock](https://media.thi.ng/umbrella/banners/thing-hdom-mock.svg?b81d011a) [![npm version](https://img.shields.io/npm/v/@thi.ng/hdom-mock.svg)](https://www.npmjs.com/package/@thi.ng/hdom-mock) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hdom-mock.svg) @@ -36,7 +36,7 @@ custom target implementations. yarn add @thi.ng/hdom-mock ``` -Package sizes (gzipped): ESM: 1.04 KB / CJS: 1.09 KB / UMD: 1.17 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.04 KB / CJS: 1.09 KB / UMD: 1.17 KB ## Dependencies diff --git a/packages/hdom-mock/package.json b/packages/hdom-mock/package.json index 64e7cbd109..de945b1f27 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.15", + "version": "1.1.17", "description": "Mock base implementation for @thi.ng/hdom API", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/hdom": "^8.0.15", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/hdom": "^8.0.17", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hdom-mock/test/tsconfig.json b/packages/hdom-mock/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hdom-mock/test/tsconfig.json +++ b/packages/hdom-mock/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hdom/CHANGELOG.md b/packages/hdom/CHANGELOG.md index e69a3a2e1f..c0ac26bf83 100644 --- a/packages/hdom/CHANGELOG.md +++ b/packages/hdom/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. +## [8.0.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.0.16...@thi.ng/hdom@8.0.17) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hdom + + + + + +## [8.0.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.0.15...@thi.ng/hdom@8.0.16) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hdom + + + + + ## [8.0.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.0.14...@thi.ng/hdom@8.0.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/hdom diff --git a/packages/hdom/README.md b/packages/hdom/README.md index 188cceda50..a94a8f9c3f 100644 --- a/packages/hdom/README.md +++ b/packages/hdom/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hdom](https://media.thi.ng/umbrella/banners/thing-hdom.svg?1585427360) +# ![hdom](https://media.thi.ng/umbrella/banners/thing-hdom.svg?50a72fa5) [![npm version](https://img.shields.io/npm/v/@thi.ng/hdom.svg)](https://www.npmjs.com/package/@thi.ng/hdom) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hdom.svg) @@ -132,7 +132,7 @@ yarn install yarn start ``` -Package sizes (gzipped): ESM: 3.56 KB / CJS: 3.67 KB / UMD: 3.59 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.59 KB / CJS: 3.70 KB / UMD: 3.62 KB ## Dependencies diff --git a/packages/hdom/package.json b/packages/hdom/package.json index d970555468..ee92733213 100644 --- a/packages/hdom/package.json +++ b/packages/hdom/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hdom", - "version": "8.0.15", + "version": "8.0.17", "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors", "module": "./index.js", "main": "./lib/index.js", @@ -29,22 +29,22 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/atom": "^4.0.0", + "@thi.ng/atom": "^4.1.1", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/diff": "^3.2.13", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/hiccup": "^3.2.14", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/diff": "^3.2.14", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/hiccup": "^3.2.16", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hdom/test/tsconfig.json b/packages/hdom/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hdom/test/tsconfig.json +++ b/packages/hdom/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/heaps/CHANGELOG.md b/packages/heaps/CHANGELOG.md index 6b8b0a0189..a09192ec96 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.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.7...@thi.ng/heaps@1.2.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/heaps + + + + + ## [1.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/heaps@1.2.6...@thi.ng/heaps@1.2.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/heaps diff --git a/packages/heaps/README.md b/packages/heaps/README.md index 5a80afeb6a..c6806cdcf7 100644 --- a/packages/heaps/README.md +++ b/packages/heaps/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/heaps](https://media.thi.ng/umbrella/banners/thing-heaps.svg?1585427334) +# ![heaps](https://media.thi.ng/umbrella/banners/thing-heaps.svg?bbf868b8) [![npm version](https://img.shields.io/npm/v/@thi.ng/heaps.svg)](https://www.npmjs.com/package/@thi.ng/heaps) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/heaps.svg) @@ -36,7 +36,7 @@ additional operations. yarn add @thi.ng/heaps ``` -Package sizes (gzipped): ESM: 1.52 KB / CJS: 1.58 KB / UMD: 1.66 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.52 KB / CJS: 1.58 KB / UMD: 1.66 KB ## Dependencies diff --git a/packages/heaps/package.json b/packages/heaps/package.json index 44072bfdcf..703365a2c8 100644 --- a/packages/heaps/package.json +++ b/packages/heaps/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/heaps", - "version": "1.2.7", + "version": "1.2.8", "description": "Various heap implementations for arbitrary values and with customizable ordering", "module": "./index.js", "main": "./lib/index.js", @@ -32,15 +32,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/compare": "^1.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/compare": "^1.3.0", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/heaps/test/tsconfig.json b/packages/heaps/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/heaps/test/tsconfig.json +++ b/packages/heaps/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hiccup-carbon-icons/CHANGELOG.md b/packages/hiccup-carbon-icons/CHANGELOG.md index 3e834b968f..b6ac15c890 100644 --- a/packages/hiccup-carbon-icons/CHANGELOG.md +++ b/packages/hiccup-carbon-icons/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.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@1.0.30...@thi.ng/hiccup-carbon-icons@1.0.31) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons + + + + + +## [1.0.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@1.0.29...@thi.ng/hiccup-carbon-icons@1.0.30) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hiccup-carbon-icons + + + + + ## [1.0.29](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-carbon-icons@1.0.28...@thi.ng/hiccup-carbon-icons@1.0.29) (2020-03-28) **Note:** Version bump only for package @thi.ng/hiccup-carbon-icons diff --git a/packages/hiccup-carbon-icons/README.md b/packages/hiccup-carbon-icons/README.md index 220d2cb233..b455adeed4 100644 --- a/packages/hiccup-carbon-icons/README.md +++ b/packages/hiccup-carbon-icons/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hiccup-carbon-icons](https://media.thi.ng/umbrella/banners/thing-hiccup-carbon-icons.svg?1585427359) +# ![hiccup-carbon-icons](https://media.thi.ng/umbrella/banners/thing-hiccup-carbon-icons.svg?ff8f7718) [![npm version](https://img.shields.io/npm/v/@thi.ng/hiccup-carbon-icons.svg)](https://www.npmjs.com/package/@thi.ng/hiccup-carbon-icons) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hiccup-carbon-icons.svg) @@ -48,7 +48,7 @@ code](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-carbon-ico yarn add @thi.ng/hiccup-carbon-icons ``` -Package sizes (gzipped): ESM: 16.41 KB / CJS: 16.93 KB / UMD: 16.13 KB +Package sizes (gzipped, pre-treeshake): ESM: 16.41 KB / CJS: 16.93 KB / UMD: 16.13 KB ## Dependencies diff --git a/packages/hiccup-carbon-icons/package.json b/packages/hiccup-carbon-icons/package.json index 1a63e13165..db043c2dc2 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": "1.0.29", + "version": "1.0.31", "description": "Full set of IBM's Carbon icons in hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -29,10 +29,10 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/hiccup": "^3.2.14", + "@thi.ng/hiccup": "^3.2.16", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/hiccup-carbon-icons/test/tsconfig.json b/packages/hiccup-carbon-icons/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hiccup-carbon-icons/test/tsconfig.json +++ b/packages/hiccup-carbon-icons/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hiccup-css/CHANGELOG.md b/packages/hiccup-css/CHANGELOG.md index 86967c8620..7cc7af18b1 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.15...@thi.ng/hiccup-css@1.1.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hiccup-css + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.14...@thi.ng/hiccup-css@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/hiccup-css diff --git a/packages/hiccup-css/README.md b/packages/hiccup-css/README.md index a534ff5f92..939cf997d9 100644 --- a/packages/hiccup-css/README.md +++ b/packages/hiccup-css/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hiccup-css](https://media.thi.ng/umbrella/banners/thing-hiccup-css.svg?1585427361) +# ![hiccup-css](https://media.thi.ng/umbrella/banners/thing-hiccup-css.svg?20ae8b36) [![npm version](https://img.shields.io/npm/v/@thi.ng/hiccup-css.svg)](https://www.npmjs.com/package/@thi.ng/hiccup-css) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hiccup-css.svg) @@ -94,7 +94,7 @@ Clojure projects: yarn add @thi.ng/hiccup-css ``` -Package sizes (gzipped): ESM: 2.05 KB / CJS: 2.20 KB / UMD: 2.11 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.05 KB / CJS: 2.20 KB / UMD: 2.11 KB ## Dependencies diff --git a/packages/hiccup-css/package.json b/packages/hiccup-css/package.json index 56af074c8d..976872cf52 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.15", + "version": "1.1.16", "description": "CSS from nested JS data structures", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hiccup-css/test/tsconfig.json b/packages/hiccup-css/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hiccup-css/test/tsconfig.json +++ b/packages/hiccup-css/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hiccup-markdown/CHANGELOG.md b/packages/hiccup-markdown/CHANGELOG.md index 03e7165551..f53983d160 100644 --- a/packages/hiccup-markdown/CHANGELOG.md +++ b/packages/hiccup-markdown/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.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.1...@thi.ng/hiccup-markdown@1.2.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hiccup-markdown + + + + + +## [1.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.0...@thi.ng/hiccup-markdown@1.2.1) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hiccup-markdown + + + + + # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.1.14...@thi.ng/hiccup-markdown@1.2.0) (2020-03-28) diff --git a/packages/hiccup-markdown/README.md b/packages/hiccup-markdown/README.md index b77c8188f5..6351e916a0 100644 --- a/packages/hiccup-markdown/README.md +++ b/packages/hiccup-markdown/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hiccup-markdown](https://media.thi.ng/umbrella/banners/thing-hiccup-markdown.svg?1585427431) +# ![hiccup-markdown](https://media.thi.ng/umbrella/banners/thing-hiccup-markdown.svg?d110b18b) [![npm version](https://img.shields.io/npm/v/@thi.ng/hiccup-markdown.svg)](https://www.npmjs.com/package/@thi.ng/hiccup-markdown) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hiccup-markdown.svg) @@ -46,7 +46,7 @@ parser and an extensible Hiccup-to-Markdown converter. yarn add @thi.ng/hiccup-markdown ``` -Package sizes (gzipped): ESM: 2.71 KB / CJS: 2.76 KB / UMD: 2.62 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.81 KB / CJS: 2.86 KB / UMD: 2.70 KB ## Dependencies diff --git a/packages/hiccup-markdown/package.json b/packages/hiccup-markdown/package.json index b3addb98fe..ca7e074f29 100644 --- a/packages/hiccup-markdown/package.json +++ b/packages/hiccup-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-markdown", - "version": "1.2.0", + "version": "1.2.2", "description": "Markdown parser & serializer from/to Hiccup format", "module": "./index.js", "main": "./lib/index.js", @@ -31,22 +31,22 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/defmulti": "^1.2.8", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/fsm": "^2.4.1", - "@thi.ng/hiccup": "^3.2.14", - "@thi.ng/strings": "^1.8.0", - "@thi.ng/text-canvas": "^0.2.2", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/defmulti": "^1.2.9", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/fsm": "^2.4.2", + "@thi.ng/hiccup": "^3.2.16", + "@thi.ng/strings": "^1.8.1", + "@thi.ng/text-canvas": "^0.2.3", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hiccup-markdown/test/tsconfig.json b/packages/hiccup-markdown/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hiccup-markdown/test/tsconfig.json +++ b/packages/hiccup-markdown/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hiccup-svg/CHANGELOG.md b/packages/hiccup-svg/CHANGELOG.md index e6cf9531b2..18215ffbe4 100644 --- a/packages/hiccup-svg/CHANGELOG.md +++ b/packages/hiccup-svg/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. +## [3.4.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.4.8...@thi.ng/hiccup-svg@3.4.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hiccup-svg + + + + + +## [3.4.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.4.7...@thi.ng/hiccup-svg@3.4.8) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hiccup-svg + + + + + ## [3.4.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@3.4.6...@thi.ng/hiccup-svg@3.4.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/hiccup-svg diff --git a/packages/hiccup-svg/README.md b/packages/hiccup-svg/README.md index 2168a0e80f..5931af9db1 100644 --- a/packages/hiccup-svg/README.md +++ b/packages/hiccup-svg/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hiccup-svg](https://media.thi.ng/umbrella/banners/thing-hiccup-svg.svg?1585427412) +# ![hiccup-svg](https://media.thi.ng/umbrella/banners/thing-hiccup-svg.svg?121a04ab) [![npm version](https://img.shields.io/npm/v/@thi.ng/hiccup-svg.svg)](https://www.npmjs.com/package/@thi.ng/hiccup-svg) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hiccup-svg.svg) @@ -121,7 +121,7 @@ therefore need to be complete, e.g. `{ rotate: "rotate(60)" }` yarn add @thi.ng/hiccup-svg ``` -Package sizes (gzipped): ESM: 2.38 KB / CJS: 2.50 KB / UMD: 2.42 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.38 KB / CJS: 2.50 KB / UMD: 2.42 KB ## Dependencies diff --git a/packages/hiccup-svg/package.json b/packages/hiccup-svg/package.json index 0757dee534..7fa1af2027 100644 --- a/packages/hiccup-svg/package.json +++ b/packages/hiccup-svg/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup-svg", - "version": "3.4.7", + "version": "3.4.9", "description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/color": "^1.1.11", - "@thi.ng/hiccup": "^3.2.14", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/color": "^1.1.12", + "@thi.ng/hiccup": "^3.2.16", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hiccup-svg/test/tsconfig.json b/packages/hiccup-svg/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hiccup-svg/test/tsconfig.json +++ b/packages/hiccup-svg/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/hiccup/CHANGELOG.md b/packages/hiccup/CHANGELOG.md index a0f8dc3454..c80342fb85 100644 --- a/packages/hiccup/CHANGELOG.md +++ b/packages/hiccup/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. +## [3.2.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.15...@thi.ng/hiccup@3.2.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/hiccup + + + + + +## [3.2.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.14...@thi.ng/hiccup@3.2.15) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/hiccup + + + + + ## [3.2.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.13...@thi.ng/hiccup@3.2.14) (2020-03-28) **Note:** Version bump only for package @thi.ng/hiccup diff --git a/packages/hiccup/README.md b/packages/hiccup/README.md index 2429967173..2028c2cadf 100644 --- a/packages/hiccup/README.md +++ b/packages/hiccup/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/hiccup](https://media.thi.ng/umbrella/banners/thing-hiccup.svg?1585427350) +# ![hiccup](https://media.thi.ng/umbrella/banners/thing-hiccup.svg?d9bc1960) [![npm version](https://img.shields.io/npm/v/@thi.ng/hiccup.svg)](https://www.npmjs.com/package/@thi.ng/hiccup) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/hiccup.svg) @@ -137,7 +137,7 @@ iterable yarn add @thi.ng/hiccup ``` -Package sizes (gzipped): ESM: 1.94 KB / CJS: 2.04 KB / UMD: 2.05 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.94 KB / CJS: 2.04 KB / UMD: 2.05 KB ## Dependencies diff --git a/packages/hiccup/package.json b/packages/hiccup/package.json index 1ffd1b793c..131971a97c 100644 --- a/packages/hiccup/package.json +++ b/packages/hiccup/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/hiccup", - "version": "3.2.14", + "version": "3.2.16", "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures", "module": "./index.js", "main": "./lib/index.js", @@ -29,18 +29,18 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/atom": "^4.0.0", + "@thi.ng/atom": "^4.1.1", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/hiccup/test/tsconfig.json b/packages/hiccup/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/hiccup/test/tsconfig.json +++ b/packages/hiccup/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/idgen/CHANGELOG.md b/packages/idgen/CHANGELOG.md index 88416b8c06..79214cb9cc 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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.6...@thi.ng/idgen@0.2.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/idgen + + + + + ## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/idgen@0.2.5...@thi.ng/idgen@0.2.6) (2020-03-28) **Note:** Version bump only for package @thi.ng/idgen diff --git a/packages/idgen/README.md b/packages/idgen/README.md index 4eade541d2..2ead721454 100644 --- a/packages/idgen/README.md +++ b/packages/idgen/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/idgen](https://media.thi.ng/umbrella/banners/thing-idgen.svg?1585427322) +# ![idgen](https://media.thi.ng/umbrella/banners/thing-idgen.svg?eea4adb1) [![npm version](https://img.shields.io/npm/v/@thi.ng/idgen.svg)](https://www.npmjs.com/package/@thi.ng/idgen) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/idgen.svg) @@ -53,7 +53,7 @@ be checked for validity via `.has(id)` (in constant time). yarn add @thi.ng/idgen ``` -Package sizes (gzipped): ESM: 847 bytes / CJS: 895 bytes / UMD: 985 bytes +Package sizes (gzipped, pre-treeshake): ESM: 847 bytes / CJS: 895 bytes / UMD: 985 bytes ## Dependencies diff --git a/packages/idgen/package.json b/packages/idgen/package.json index f7f6515c7f..240a3b9ee9 100644 --- a/packages/idgen/package.json +++ b/packages/idgen/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/idgen", - "version": "0.2.6", + "version": "0.2.7", "description": "Generator of opaque numeric identifiers with optional support for ID versioning and efficient re-use", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", + "@thi.ng/api": "^6.9.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/idgen/test/tsconfig.json b/packages/idgen/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/idgen/test/tsconfig.json +++ b/packages/idgen/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/iges/CHANGELOG.md b/packages/iges/CHANGELOG.md index c47736cbff..798f93e7fa 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.21](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.20...@thi.ng/iges@1.1.21) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/iges + + + + + ## [1.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/iges@1.1.19...@thi.ng/iges@1.1.20) (2020-03-28) **Note:** Version bump only for package @thi.ng/iges diff --git a/packages/iges/README.md b/packages/iges/README.md index 0b55be346b..edcaf06923 100644 --- a/packages/iges/README.md +++ b/packages/iges/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/iges](https://media.thi.ng/umbrella/banners/thing-iges.svg?1585427400) +# ![iges](https://media.thi.ng/umbrella/banners/thing-iges.svg?5d61f971) [![npm version](https://img.shields.io/npm/v/@thi.ng/iges.svg)](https://www.npmjs.com/package/@thi.ng/iges) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/iges.svg) @@ -36,7 +36,7 @@ applications (e.g. Rhino, Houdini, Fusion 360) yarn add @thi.ng/iges ``` -Package sizes (gzipped): ESM: 2.74 KB / CJS: 2.75 KB / UMD: 2.69 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.82 KB / CJS: 2.86 KB / UMD: 2.79 KB ## Dependencies diff --git a/packages/iges/package.json b/packages/iges/package.json index fa5ff5fb26..28196d1128 100644 --- a/packages/iges/package.json +++ b/packages/iges/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iges", - "version": "1.1.20", + "version": "1.1.21", "description": "IGES 5.3 serializer for (currently only) polygonal geometry, both open & closed", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/defmulti": "^1.2.8", - "@thi.ng/strings": "^1.8.0", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/defmulti": "^1.2.9", + "@thi.ng/strings": "^1.8.1", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/iges/src/api.ts b/packages/iges/src/api.ts index a9f47b86b0..49c3806165 100644 --- a/packages/iges/src/api.ts +++ b/packages/iges/src/api.ts @@ -10,26 +10,26 @@ export enum Unit { MIL, // mils UM, // microns CM, // centimeters - UIN // microinches + UIN, // microinches } -export const enum Type { +export enum Type { INT, FLOAT, STR, HSTR, DATE, - POINTER + POINTER, } -export const enum SpecVersion { +export enum SpecVersion { IGES50 = 8, IGES51 = 9, IGES52 = 10, - IGES53 = 11 + IGES53 = 11, } -export const enum DraftVersion { +export enum DraftVersion { NONE = 0, ISO, AFNOR, @@ -37,21 +37,21 @@ export const enum DraftVersion { BSI, CSA, DIN, - JIS + JIS, } export type SectionType = "G" | "S" | "D" | "P" | "T"; -export const enum LineFontPattern { +export enum LineFontPattern { NONE = 0, SOLID, DASHED, PHANTOM, CENTERLINE, - DOTTED + DOTTED, } -export const enum Color { +export enum Color { NONE = 0, BLACK, RED, @@ -60,47 +60,47 @@ export const enum Color { YELLOW, MAGENTA, CYAN, - WHITE + WHITE, } -export const enum StatusBlank { +export enum StatusBlank { VISIBLE = 0, - BLANK + BLANK, } -export const enum StatusSubord { +export enum StatusSubord { INDEPENDENT = 0, PHYSICAL, LOGICAL, - BOTH + BOTH, } -export const enum StatusUsage { +export enum StatusUsage { GEOMETRY = 0, ANNOTATION, DEFINITION, OTHER, LOGICAL, PARAMETRIC2D, - CONSTRUCTIVE + CONSTRUCTIVE, } -export const enum StatusHierarchy { +export enum StatusHierarchy { GLOBAL_TOP_DOWN = 0, GLOBAL_DEFER, - USE_PROP + USE_PROP, } -export const enum PolylineMode { +export enum PolylineMode { OPEN, CLOSED, - FILLED + FILLED, } -export const enum BooleanOp { +export enum BooleanOp { UNION = 1, INTERSECTION, - DIFFERENCE + DIFFERENCE, } export type BooleanNode = number | BooleanTree; @@ -109,13 +109,13 @@ export interface BooleanTree extends Array { [0]: BooleanOp; } -export const enum EntityType { +export enum EntityType { POLYLINE = 106, LINE = 110, POINT = 116, CSG_BOX = 150, CSG_CYLINDER = 154, - BOOLEAN_TREE = 180 + BOOLEAN_TREE = 180, } export interface EntityOpts { @@ -211,5 +211,5 @@ export const DEFAULT_GLOBALS: Partial = { units: Unit.MM, precision: 3, numLineWeights: 1, - maxLineWeight: 0.254 + maxLineWeight: 0.254, }; diff --git a/packages/iges/test/tsconfig.json b/packages/iges/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/iges/test/tsconfig.json +++ b/packages/iges/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/imgui/CHANGELOG.md b/packages/imgui/CHANGELOG.md index 70497659ed..7ef3f9cff7 100644 --- a/packages/imgui/CHANGELOG.md +++ b/packages/imgui/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. +## [0.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.6...@thi.ng/imgui@0.2.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/imgui + + + + + +## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.5...@thi.ng/imgui@0.2.6) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/imgui + + + + + ## [0.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/imgui@0.2.4...@thi.ng/imgui@0.2.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/imgui diff --git a/packages/imgui/README.md b/packages/imgui/README.md index 821054656b..15938fa239 100644 --- a/packages/imgui/README.md +++ b/packages/imgui/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/imgui](https://media.thi.ng/umbrella/banners/thing-imgui.svg?1585427446) +# ![imgui](https://media.thi.ng/umbrella/banners/thing-imgui.svg?6bec59e5) [![npm version](https://img.shields.io/npm/v/@thi.ng/imgui.svg)](https://www.npmjs.com/package/@thi.ng/imgui) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/imgui.svg) @@ -227,7 +227,7 @@ Some of the most obvious missing features: yarn add @thi.ng/imgui ``` -Package sizes (gzipped): ESM: 6.58 KB / CJS: 6.75 KB / UMD: 6.73 KB +Package sizes (gzipped, pre-treeshake): ESM: 6.65 KB / CJS: 6.84 KB / UMD: 6.95 KB ## Dependencies diff --git a/packages/imgui/package.json b/packages/imgui/package.json index 94e6594a06..8002824b78 100644 --- a/packages/imgui/package.json +++ b/packages/imgui/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/imgui", - "version": "0.2.5", + "version": "0.2.7", "description": "Immediate mode GUI with flexible state handling & data only shape output", "module": "./index.js", "main": "./lib/index.js", @@ -31,23 +31,23 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom": "^1.8.5", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/geom-isec": "^0.4.7", - "@thi.ng/geom-tessellate": "^0.2.18", - "@thi.ng/layout": "^0.1.4", - "@thi.ng/math": "^1.7.4", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom": "^1.8.7", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/geom-isec": "^0.4.8", + "@thi.ng/geom-tessellate": "^0.2.19", + "@thi.ng/layout": "^0.1.5", + "@thi.ng/math": "^1.7.5", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/imgui/src/api.ts b/packages/imgui/src/api.ts index 40c58b8ebd..41ca9f75c0 100644 --- a/packages/imgui/src/api.ts +++ b/packages/imgui/src/api.ts @@ -31,20 +31,20 @@ export interface IMGUIOpts { theme?: Partial; } -export const enum MouseButton { +export enum MouseButton { LEFT = 1, RIGHT = 2, - MIDDLE = 4 + MIDDLE = 4, } -export const enum KeyModifier { +export enum KeyModifier { SHIFT = 1, CONTROL = 2, META = 4, - ALT = 8 + ALT = 8, } -export const enum Key { +export enum Key { ALT = "Alt", BACKSPACE = "Backspace", CAPSLOCK = "CapsLock", @@ -66,7 +66,7 @@ export const enum Key { SHIFT = "Shift", SPACE = " ", TAB = "Tab", - UP = "ArrowUp" + UP = "ArrowUp", } export const CONTROL_KEYS = new Set([ @@ -90,7 +90,7 @@ export const CONTROL_KEYS = new Set([ Key.RIGHT, Key.SHIFT, Key.TAB, - Key.UP + Key.UP, ]); export const NONE = "__NONE__"; @@ -115,7 +115,7 @@ export const DEFAULT_THEME: GUITheme = { textDisabled: [0.3, 0.3, 0.3, 0.5], textHover: [0.2, 0.2, 0.4, 1], bgTooltip: [1, 1, 0.8, 0.85], - textTooltip: [0, 0, 0, 1] + textTooltip: [0, 0, 0, 1], }; export const INPUT_ALPHA: Predicate = (x) => /^\w$/.test(x); diff --git a/packages/imgui/test/tsconfig.json b/packages/imgui/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/imgui/test/tsconfig.json +++ b/packages/imgui/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/interceptors/CHANGELOG.md b/packages/interceptors/CHANGELOG.md index 1718ea6aa8..542160ff54 100644 --- a/packages/interceptors/CHANGELOG.md +++ b/packages/interceptors/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. +## [2.2.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.11...@thi.ng/interceptors@2.2.12) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/interceptors + + + + + +## [2.2.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.10...@thi.ng/interceptors@2.2.11) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/interceptors + + + + + ## [2.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.9...@thi.ng/interceptors@2.2.10) (2020-03-28) **Note:** Version bump only for package @thi.ng/interceptors diff --git a/packages/interceptors/README.md b/packages/interceptors/README.md index b893c3108d..5307f0f2c9 100644 --- a/packages/interceptors/README.md +++ b/packages/interceptors/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/interceptors](https://media.thi.ng/umbrella/banners/thing-interceptors.svg?1585427350) +# ![interceptors](https://media.thi.ng/umbrella/banners/thing-interceptors.svg?4a03c1f3) [![npm version](https://img.shields.io/npm/v/@thi.ng/interceptors.svg)](https://www.npmjs.com/package/@thi.ng/interceptors) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/interceptors.svg) @@ -124,7 +124,7 @@ commented source code and examples for now: yarn add @thi.ng/interceptors ``` -Package sizes (gzipped): ESM: 2.16 KB / CJS: 2.29 KB / UMD: 2.23 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.16 KB / CJS: 2.29 KB / UMD: 2.23 KB ## Dependencies diff --git a/packages/interceptors/package.json b/packages/interceptors/package.json index 1884b18aa6..03a17edeff 100644 --- a/packages/interceptors/package.json +++ b/packages/interceptors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/interceptors", - "version": "2.2.10", + "version": "2.2.12", "description": "Interceptor based event bus, side effect & immutable state handling", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/atom": "^4.0.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/paths": "^4.0.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/atom": "^4.1.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/paths": "^4.0.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/interceptors/test/tsconfig.json b/packages/interceptors/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/interceptors/test/tsconfig.json +++ b/packages/interceptors/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/intervals/CHANGELOG.md b/packages/intervals/CHANGELOG.md index a1217c0631..a4b5dc985c 100644 --- a/packages/intervals/CHANGELOG.md +++ b/packages/intervals/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.7...@thi.ng/intervals@2.0.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/intervals + + + + + ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/intervals@2.0.6...@thi.ng/intervals@2.0.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/intervals diff --git a/packages/intervals/README.md b/packages/intervals/README.md index 622a25bbee..d75ba36e17 100644 --- a/packages/intervals/README.md +++ b/packages/intervals/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/intervals](https://media.thi.ng/umbrella/banners/thing-intervals.svg?1585427325) +# ![intervals](https://media.thi.ng/umbrella/banners/thing-intervals.svg?bccef4df) [![npm version](https://img.shields.io/npm/v/@thi.ng/intervals.svg)](https://www.npmjs.com/package/@thi.ng/intervals) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/intervals.svg) @@ -41,7 +41,7 @@ for details. yarn add @thi.ng/intervals ``` -Package sizes (gzipped): ESM: 1.40 KB / CJS: 1.46 KB / UMD: 1.52 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.43 KB / CJS: 1.48 KB / UMD: 1.55 KB ## Dependencies diff --git a/packages/intervals/package.json b/packages/intervals/package.json index 3595e3b5bc..4c936020b1 100644 --- a/packages/intervals/package.json +++ b/packages/intervals/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/intervals", - "version": "2.0.7", + "version": "2.0.8", "description": "Closed/open/semi-open interval data type, queries & operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/dlogic": "^1.0.17", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/dlogic": "^1.0.18", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/intervals/src/index.ts b/packages/intervals/src/index.ts index cb5d924c6e..cfe084e80f 100644 --- a/packages/intervals/src/index.ts +++ b/packages/intervals/src/index.ts @@ -1,23 +1,16 @@ import { isString } from "@thi.ng/checks"; import { and, or } from "@thi.ng/dlogic"; import { illegalArgs } from "@thi.ng/errors"; -import type { - Fn, - Fn2, - ICompare, - IContains, - ICopy, - IEquiv -} from "@thi.ng/api"; - -export const enum Classifier { +import type { Fn, Fn2, ICompare, IContains, ICopy, IEquiv } from "@thi.ng/api"; + +export enum Classifier { DISJOINT_LEFT, DISJOINT_RIGHT, EQUIV, SUBSET, SUPERSET, OVERLAP_LEFT, - OVERLAP_RIGHT + OVERLAP_RIGHT, } const BRACES = "()[]"; diff --git a/packages/intervals/test/tsconfig.json b/packages/intervals/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/intervals/test/tsconfig.json +++ b/packages/intervals/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/iterators/CHANGELOG.md b/packages/iterators/CHANGELOG.md index ad9784caaa..607e66c114 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.15...@thi.ng/iterators@5.1.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/iterators + + + + + ## [5.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/iterators@5.1.14...@thi.ng/iterators@5.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/iterators diff --git a/packages/iterators/README.md b/packages/iterators/README.md index 7a94abc2c7..8a8807c005 100644 --- a/packages/iterators/README.md +++ b/packages/iterators/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/iterators](https://media.thi.ng/umbrella/banners/thing-iterators.svg?1585427381) +# ![iterators](https://media.thi.ng/umbrella/banners/thing-iterators.svg?c8c49551) [![npm version](https://img.shields.io/npm/v/@thi.ng/iterators.svg)](https://www.npmjs.com/package/@thi.ng/iterators) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/iterators.svg) @@ -87,7 +87,7 @@ more composable & efficient transducers via yarn add @thi.ng/iterators ``` -Package sizes (gzipped): ESM: 2.46 KB / CJS: 2.68 KB / UMD: 2.50 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.46 KB / CJS: 2.68 KB / UMD: 2.50 KB ## Dependencies diff --git a/packages/iterators/package.json b/packages/iterators/package.json index a6c887d903..7ca6517b5c 100644 --- a/packages/iterators/package.json +++ b/packages/iterators/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/iterators", - "version": "5.1.15", + "version": "5.1.16", "description": "Clojure inspired, composable ES6 iterators & generators", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/iterators/test/tsconfig.json b/packages/iterators/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/iterators/test/tsconfig.json +++ b/packages/iterators/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/layout/CHANGELOG.md b/packages/layout/CHANGELOG.md index f6758ace29..5cd5f2d2da 100644 --- a/packages/layout/CHANGELOG.md +++ b/packages/layout/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.4...@thi.ng/layout@0.1.5) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/layout + + + + + ## [0.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/layout@0.1.3...@thi.ng/layout@0.1.4) (2020-03-28) **Note:** Version bump only for package @thi.ng/layout diff --git a/packages/layout/README.md b/packages/layout/README.md index 14a3ba22d4..982e27353a 100644 --- a/packages/layout/README.md +++ b/packages/layout/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/layout](https://media.thi.ng/umbrella/banners/thing-layout.svg?1585427325) +# ![layout](https://media.thi.ng/umbrella/banners/thing-layout.svg?e3607d7a) [![npm version](https://img.shields.io/npm/v/@thi.ng/layout.svg)](https://www.npmjs.com/package/@thi.ng/layout) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/layout.svg) @@ -38,7 +38,7 @@ to define other layout types / implementations. yarn add @thi.ng/layout ``` -Package sizes (gzipped): ESM: 659 bytes / CJS: 724 bytes / UMD: 788 bytes +Package sizes (gzipped, pre-treeshake): ESM: 659 bytes / CJS: 724 bytes / UMD: 788 bytes ## Dependencies diff --git a/packages/layout/package.json b/packages/layout/package.json index 306cdeafc4..f0f4f978cf 100644 --- a/packages/layout/package.json +++ b/packages/layout/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/layout", - "version": "0.1.4", + "version": "0.1.5", "description": "TODO", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/layout/test/tsconfig.json b/packages/layout/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/layout/test/tsconfig.json +++ b/packages/layout/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/leb128/CHANGELOG.md b/packages/leb128/CHANGELOG.md index e67844deda..ed28e8e828 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.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.9...@thi.ng/leb128@1.0.10) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/leb128 + + + + + ## [1.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/leb128@1.0.8...@thi.ng/leb128@1.0.9) (2020-03-28) **Note:** Version bump only for package @thi.ng/leb128 diff --git a/packages/leb128/README.md b/packages/leb128/README.md index 0af4b90a64..fe39d5d1b9 100644 --- a/packages/leb128/README.md +++ b/packages/leb128/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/leb128](https://media.thi.ng/umbrella/banners/thing-leb128.svg?1585427381) +# ![leb128](https://media.thi.ng/umbrella/banners/thing-leb128.svg?5187c093) [![npm version](https://img.shields.io/npm/v/@thi.ng/leb128.svg)](https://www.npmjs.com/package/@thi.ng/leb128) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/leb128.svg) @@ -49,7 +49,7 @@ References: yarn add @thi.ng/leb128 ``` -Package sizes (gzipped): ESM: 988 bytes / CJS: 1.04 KB / UMD: 1.10 KB +Package sizes (gzipped, pre-treeshake): ESM: 988 bytes / CJS: 1.04 KB / UMD: 1.10 KB ## Dependencies diff --git a/packages/leb128/package.json b/packages/leb128/package.json index 781b19e53e..f3c40d79fa 100644 --- a/packages/leb128/package.json +++ b/packages/leb128/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/leb128", - "version": "1.0.9", + "version": "1.0.10", "description": "WASM based LEB128 encoder / decoder (signed & unsigned)", "module": "./index.js", "main": "./lib/index.js", @@ -32,16 +32,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers-binary": "^0.5.5", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers-binary": "^0.5.6", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/leb128/test/tsconfig.json b/packages/leb128/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/leb128/test/tsconfig.json +++ b/packages/leb128/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/lsys/CHANGELOG.md b/packages/lsys/CHANGELOG.md index ba2321b996..5fa9d974b2 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.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.33...@thi.ng/lsys@0.2.34) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/lsys + + + + + ## [0.2.33](https://github.com/thi-ng/umbrella/compare/@thi.ng/lsys@0.2.32...@thi.ng/lsys@0.2.33) (2020-03-28) **Note:** Version bump only for package @thi.ng/lsys diff --git a/packages/lsys/README.md b/packages/lsys/README.md index 5122e15a0f..83d07832a9 100644 --- a/packages/lsys/README.md +++ b/packages/lsys/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/lsys](https://media.thi.ng/umbrella/banners/thing-lsys.svg?1585427400) +# ![lsys](https://media.thi.ng/umbrella/banners/thing-lsys.svg?cb1ad7a6) [![npm version](https://img.shields.io/npm/v/@thi.ng/lsys.svg)](https://www.npmjs.com/package/@thi.ng/lsys) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/lsys.svg) @@ -54,7 +54,7 @@ Planned features: yarn add @thi.ng/lsys ``` -Package sizes (gzipped): ESM: 677 bytes / CJS: 749 bytes / UMD: 852 bytes +Package sizes (gzipped, pre-treeshake): ESM: 677 bytes / CJS: 749 bytes / UMD: 852 bytes ## Dependencies diff --git a/packages/lsys/package.json b/packages/lsys/package.json index 11f048d51c..6251190e1b 100644 --- a/packages/lsys/package.json +++ b/packages/lsys/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/lsys", - "version": "0.2.33", + "version": "0.2.34", "description": "Functional, extensible L-System architecture w/ support for probabilistic rules", "module": "./index.js", "main": "./lib/index.js", @@ -31,20 +31,20 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/compose": "^1.4.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/math": "^1.7.4", - "@thi.ng/random": "^1.4.2", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/compose": "^1.4.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/random": "^1.4.3", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/lsys/test/tsconfig.json b/packages/lsys/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/lsys/test/tsconfig.json +++ b/packages/lsys/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/malloc/CHANGELOG.md b/packages/malloc/CHANGELOG.md index 8239cf2be8..f5064e7f94 100644 --- a/packages/malloc/CHANGELOG.md +++ b/packages/malloc/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.8...@thi.ng/malloc@4.1.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/malloc + + + + + ## [4.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/malloc@4.1.7...@thi.ng/malloc@4.1.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/malloc diff --git a/packages/malloc/README.md b/packages/malloc/README.md index 84afab940e..bf435bd1dd 100644 --- a/packages/malloc/README.md +++ b/packages/malloc/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/malloc](https://media.thi.ng/umbrella/banners/thing-malloc.svg?1585427332) +# ![malloc](https://media.thi.ng/umbrella/banners/thing-malloc.svg?ab6557ad) [![npm version](https://img.shields.io/npm/v/@thi.ng/malloc.svg)](https://www.npmjs.com/package/@thi.ng/malloc) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/malloc.svg) @@ -129,7 +129,7 @@ capacity: yarn add @thi.ng/malloc ``` -Package sizes (gzipped): ESM: 1.80 KB / CJS: 1.86 KB / UMD: 1.84 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.80 KB / CJS: 1.86 KB / UMD: 1.84 KB ## Dependencies diff --git a/packages/malloc/package.json b/packages/malloc/package.json index 16954224b3..eb329c2e83 100644 --- a/packages/malloc/package.json +++ b/packages/malloc/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/malloc", - "version": "4.1.8", + "version": "4.1.9", "description": "ArrayBuffer based malloc() impl for hybrid JS/WASM use cases, based on thi.ng/tinyalloc", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/malloc/test/tsconfig.json b/packages/malloc/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/malloc/test/tsconfig.json +++ b/packages/malloc/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index d977dcad39..85a80b133f 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. +## [1.7.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.7.4...@thi.ng/math@1.7.5) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/math + + + + + ## [1.7.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@1.7.3...@thi.ng/math@1.7.4) (2020-03-28) **Note:** Version bump only for package @thi.ng/math diff --git a/packages/math/README.md b/packages/math/README.md index 3a82108d78..ad3ff07176 100644 --- a/packages/math/README.md +++ b/packages/math/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/math](https://media.thi.ng/umbrella/banners/thing-math.svg?1585427305) +# ![math](https://media.thi.ng/umbrella/banners/thing-math.svg?4738af0a) [![npm version](https://img.shields.io/npm/v/@thi.ng/math.svg)](https://www.npmjs.com/package/@thi.ng/math) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/math.svg) @@ -38,7 +38,7 @@ Partially ported from Clojure version of yarn add @thi.ng/math ``` -Package sizes (gzipped): ESM: 3.47 KB / CJS: 4.00 KB / UMD: 3.28 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.48 KB / CJS: 4.02 KB / UMD: 3.30 KB ## Dependencies diff --git a/packages/math/package.json b/packages/math/package.json index bb30e2cdba..61f6460b1d 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/math", - "version": "1.7.4", + "version": "1.7.5", "description": "Assorted common math functions & utilities", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/math/src/api.ts b/packages/math/src/api.ts index dfbd29efab..7cafd38623 100644 --- a/packages/math/src/api.ts +++ b/packages/math/src/api.ts @@ -25,7 +25,7 @@ export const SIXTH = 1 / 6; export let EPS = 1e-6; -export const enum Crossing { +export enum Crossing { /** * lines A & B are equal */ @@ -42,5 +42,5 @@ export const enum Crossing { * line A crossed over B */ OVER, - OTHER + OTHER, } diff --git a/packages/math/test/tsconfig.json b/packages/math/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/math/test/tsconfig.json +++ b/packages/math/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/matrices/CHANGELOG.md b/packages/matrices/CHANGELOG.md index 6d828428f5..3350a59a5b 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.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.5...@thi.ng/matrices@0.6.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/matrices + + + + + ## [0.6.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/matrices@0.6.4...@thi.ng/matrices@0.6.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/matrices diff --git a/packages/matrices/README.md b/packages/matrices/README.md index 198b2ed7a2..c596d98c3c 100644 --- a/packages/matrices/README.md +++ b/packages/matrices/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/matrices](https://media.thi.ng/umbrella/banners/thing-matrices.svg?1585427400) +# ![matrices](https://media.thi.ng/umbrella/banners/thing-matrices.svg?42559f4d) [![npm version](https://img.shields.io/npm/v/@thi.ng/matrices.svg)](https://www.npmjs.com/package/@thi.ng/matrices) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/matrices.svg) @@ -65,7 +65,7 @@ sensible). yarn add @thi.ng/matrices ``` -Package sizes (gzipped): ESM: 4.75 KB / CJS: 5.31 KB / UMD: 4.82 KB +Package sizes (gzipped, pre-treeshake): ESM: 4.75 KB / CJS: 5.31 KB / UMD: 4.82 KB ## Dependencies diff --git a/packages/matrices/package.json b/packages/matrices/package.json index efc5f560b3..748f6e5aad 100644 --- a/packages/matrices/package.json +++ b/packages/matrices/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/matrices", - "version": "0.6.5", + "version": "0.6.6", "description": "Matrix & quaternion operations for 2D/3D geometry processing", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/math": "^1.7.4", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/math": "^1.7.5", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/matrices/test/tsconfig.json b/packages/matrices/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/matrices/test/tsconfig.json +++ b/packages/matrices/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index aea04fed6e..b8e9d08463 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.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.0.4...@thi.ng/memoize@2.0.5) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/memoize + + + + + ## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.0.3...@thi.ng/memoize@2.0.4) (2020-03-28) **Note:** Version bump only for package @thi.ng/memoize diff --git a/packages/memoize/README.md b/packages/memoize/README.md index 332b8d7812..4fd8c5de91 100644 --- a/packages/memoize/README.md +++ b/packages/memoize/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/memoize](https://media.thi.ng/umbrella/banners/thing-memoize.svg?1585427323) +# ![memoize](https://media.thi.ng/umbrella/banners/thing-memoize.svg?fab914f9) [![npm version](https://img.shields.io/npm/v/@thi.ng/memoize.svg)](https://www.npmjs.com/package/@thi.ng/memoize) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/memoize.svg) @@ -46,7 +46,7 @@ based on different strategies. See doc strings for further details. yarn add @thi.ng/memoize ``` -Package sizes (gzipped): ESM: 254 bytes / CJS: 305 bytes / UMD: 376 bytes +Package sizes (gzipped, pre-treeshake): ESM: 254 bytes / CJS: 305 bytes / UMD: 376 bytes ## Dependencies diff --git a/packages/memoize/package.json b/packages/memoize/package.json index 18b24a7e2a..1b624ba15c 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/memoize", - "version": "2.0.4", + "version": "2.0.5", "description": "Function memoization with configurable caching", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", + "@thi.ng/api": "^6.9.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/memoize/test/tsconfig.json b/packages/memoize/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/memoize/test/tsconfig.json +++ b/packages/memoize/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/mime/CHANGELOG.md b/packages/mime/CHANGELOG.md index 561c7b1a4f..dc87e5c1c6 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.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.4...@thi.ng/mime@0.1.5) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/mime + + + + + ## [0.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/mime@0.1.3...@thi.ng/mime@0.1.4) (2020-03-28) **Note:** Version bump only for package @thi.ng/mime diff --git a/packages/mime/README.md b/packages/mime/README.md index 38bfd8cc42..ae6f23b30f 100644 --- a/packages/mime/README.md +++ b/packages/mime/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/mime](https://media.thi.ng/umbrella/banners/thing-mime.svg?1585427323) +# ![mime](https://media.thi.ng/umbrella/banners/thing-mime.svg?db3f6754) [![npm version](https://img.shields.io/npm/v/@thi.ng/mime.svg)](https://www.npmjs.com/package/@thi.ng/mime) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/mime.svg) @@ -34,7 +34,7 @@ All MIME type mappings based on yarn add @thi.ng/mime ``` -Package sizes (gzipped): ESM: 2.38 KB / CJS: 2.43 KB / UMD: 2.53 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.38 KB / CJS: 2.43 KB / UMD: 2.53 KB ## Dependencies diff --git a/packages/mime/package.json b/packages/mime/package.json index 1840eafa12..5cfe1807fc 100644 --- a/packages/mime/package.json +++ b/packages/mime/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/mime", - "version": "0.1.4", + "version": "0.1.5", "description": "350+ file extension to MIME type mappings, based on mime-db", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", + "@thi.ng/api": "^6.9.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/mime/test/tsconfig.json b/packages/mime/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/mime/test/tsconfig.json +++ b/packages/mime/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/morton/CHANGELOG.md b/packages/morton/CHANGELOG.md index 7d5a160fe6..8ee5388ef3 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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.6...@thi.ng/morton@2.0.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/morton + + + + + ## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/morton@2.0.5...@thi.ng/morton@2.0.6) (2020-03-28) **Note:** Version bump only for package @thi.ng/morton diff --git a/packages/morton/README.md b/packages/morton/README.md index 4ba03675e8..dad4325f75 100644 --- a/packages/morton/README.md +++ b/packages/morton/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/morton](https://media.thi.ng/umbrella/banners/thing-morton.svg?1585427324) +# ![morton](https://media.thi.ng/umbrella/banners/thing-morton.svg?a8f62264) [![npm version](https://img.shields.io/npm/v/@thi.ng/morton.svg)](https://www.npmjs.com/package/@thi.ng/morton) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/morton.svg) @@ -47,7 +47,7 @@ References: yarn add @thi.ng/morton ``` -Package sizes (gzipped): ESM: 2.01 KB / CJS: 2.14 KB / UMD: 2.09 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.01 KB / CJS: 2.14 KB / UMD: 2.09 KB ## Dependencies diff --git a/packages/morton/package.json b/packages/morton/package.json index 40aee42dc9..3795b8c68f 100644 --- a/packages/morton/package.json +++ b/packages/morton/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/morton", - "version": "2.0.6", + "version": "2.0.7", "description": "Z-order curve / Morton encoding, decoding & range extraction for arbitrary dimensions", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/math": "^1.7.4", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/math": "^1.7.5", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/morton/test/tsconfig.json b/packages/morton/test/tsconfig.json index d23fcbaba3..dadb6c4a81 100644 --- a/packages/morton/test/tsconfig.json +++ b/packages/morton/test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false, "target": "ESNext" }, "include": ["./**/*.ts", "../src/**/*.ts"] diff --git a/packages/paths/CHANGELOG.md b/packages/paths/CHANGELOG.md index e8537346e9..b91ffc81c2 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.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@4.0.0...@thi.ng/paths@4.0.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/paths + + + + + # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/paths@3.0.5...@thi.ng/paths@4.0.0) (2020-03-28) diff --git a/packages/paths/README.md b/packages/paths/README.md index e0e8c4a8dc..ebec284dc9 100644 --- a/packages/paths/README.md +++ b/packages/paths/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/paths](https://media.thi.ng/umbrella/banners/thing-paths.svg?1585427333) +# ![paths](https://media.thi.ng/umbrella/banners/thing-paths.svg?a0959fc0) [![npm version](https://img.shields.io/npm/v/@thi.ng/paths.svg)](https://www.npmjs.com/package/@thi.ng/paths) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/paths.svg) @@ -67,7 +67,7 @@ and their value type inferred as `any`. yarn add @thi.ng/paths ``` -Package sizes (gzipped): ESM: 1.09 KB / CJS: 1.19 KB / UMD: 1.14 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.09 KB / CJS: 1.19 KB / UMD: 1.14 KB ## Dependencies diff --git a/packages/paths/package.json b/packages/paths/package.json index 8e46f529ed..9c685f1002 100644 --- a/packages/paths/package.json +++ b/packages/paths/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/paths", - "version": "4.0.0", + "version": "4.0.1", "description": "Immutable, optimized and optionally typed path-based object property / array accessors with structural sharing", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/paths/test/tsconfig.json b/packages/paths/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/paths/test/tsconfig.json +++ b/packages/paths/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/pixel/CHANGELOG.md b/packages/pixel/CHANGELOG.md index df912e2069..d1341bc30a 100644 --- a/packages/pixel/CHANGELOG.md +++ b/packages/pixel/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.1.13...@thi.ng/pixel@0.1.14) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/pixel + + + + + ## [0.1.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel@0.1.12...@thi.ng/pixel@0.1.13) (2020-03-28) **Note:** Version bump only for package @thi.ng/pixel diff --git a/packages/pixel/README.md b/packages/pixel/README.md index 03f2caa5ae..b18b25218b 100644 --- a/packages/pixel/README.md +++ b/packages/pixel/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/pixel](https://media.thi.ng/umbrella/banners/thing-pixel.svg?1585427343) +# ![pixel](https://media.thi.ng/umbrella/banners/thing-pixel.svg?c62147b1) [![npm version](https://img.shields.io/npm/v/@thi.ng/pixel.svg)](https://www.npmjs.com/package/@thi.ng/pixel) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/pixel.svg) @@ -99,7 +99,7 @@ Format specs can freely control channel layout within current limits: yarn add @thi.ng/pixel ``` -Package sizes (gzipped): ESM: 3.08 KB / CJS: 3.22 KB / UMD: 3.21 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.13 KB / CJS: 3.28 KB / UMD: 3.26 KB ## Dependencies diff --git a/packages/pixel/package.json b/packages/pixel/package.json index d5afa0b3b2..824f7afe3c 100644 --- a/packages/pixel/package.json +++ b/packages/pixel/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pixel", - "version": "0.1.13", + "version": "0.1.14", "description": "Typed array backed, packed pixel buffer w/ customizable formats, blitting, conversions", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/math": "^1.7.4", - "@thi.ng/porter-duff": "^0.1.12", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/math": "^1.7.5", + "@thi.ng/porter-duff": "^0.1.13", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/pixel/src/api.ts b/packages/pixel/src/api.ts index 9a2a8b08e5..a56c856e33 100644 --- a/packages/pixel/src/api.ts +++ b/packages/pixel/src/api.ts @@ -1,36 +1,31 @@ -import type { - Fn, - Fn2, - Type, - TypedArray -} from "@thi.ng/api"; +import type { Fn, Fn2, Type, TypedArray } from "@thi.ng/api"; /** * ABGR 8bit lane/channel IDs */ -export const enum Lane { +export enum Lane { ALPHA = 0, RED = 3, GREEN = 2, - BLUE = 1 + BLUE = 1, } /** * Wrap behaviors (currently unused) */ -export const enum Wrap { +export enum Wrap { NONE, U, V, - UV + UV, } /** * Filtered access types (currently unused) */ -export const enum Filter { +export enum Filter { NEAREST, - LINEAR + LINEAR, } export type UintType = Type.U8 | Type.U16 | Type.U32; diff --git a/packages/pixel/test/tsconfig.json b/packages/pixel/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/pixel/test/tsconfig.json +++ b/packages/pixel/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/pointfree-lang/CHANGELOG.md b/packages/pointfree-lang/CHANGELOG.md index 2128a3924f..1ac1cf2919 100644 --- a/packages/pointfree-lang/CHANGELOG.md +++ b/packages/pointfree-lang/CHANGELOG.md @@ -3,6 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.2.0...@thi.ng/pointfree-lang@1.2.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/pointfree-lang + + + + + +# [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.1.14...@thi.ng/pointfree-lang@1.2.0) (2020-03-29) + + +### Features + +* **pointfree-lang:** add `try` alias, fix `include` cli word ([ab61e5b](https://github.com/thi-ng/umbrella/commit/ab61e5b428fbb98d2edfcd69c2582a98ca70779d)) +* **pointfree-lang:** add initial CLI tooling, add new aliases, update deps ([90c9d96](https://github.com/thi-ng/umbrella/commit/90c9d96197d3f84d0c1069f998cf90521a260d11)) + + + + + ## [1.1.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree-lang@1.1.13...@thi.ng/pointfree-lang@1.1.14) (2020-03-28) **Note:** Version bump only for package @thi.ng/pointfree-lang diff --git a/packages/pointfree-lang/README.md b/packages/pointfree-lang/README.md index 021e648c19..2acf3c1515 100644 --- a/packages/pointfree-lang/README.md +++ b/packages/pointfree-lang/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/pointfree-lang](https://media.thi.ng/umbrella/banners/thing-pointfree-lang.svg?1585427344) +# ![pointfree-lang](https://media.thi.ng/umbrella/banners/thing-pointfree-lang.svg?7bfa2e42) [![npm version](https://img.shields.io/npm/v/@thi.ng/pointfree-lang.svg)](https://www.npmjs.com/package/@thi.ng/pointfree-lang) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/pointfree-lang.svg) @@ -14,6 +14,9 @@ This project is part of the - [Installation](#installation) - [Dependencies](#dependencies) - [Usage examples](#usage-examples) +- [Command line usage](#command-line-usage) + - [Include files / libraries](#include-files---libraries) + - [CLI example](#cli-example) - [API](#api) - [Language & Syntax](#language--syntax) - [Comments](#comments) @@ -52,6 +55,7 @@ an ES6 embedded DSL for concatenative programming: - nested quotations (code as data, vanilla JS arrays) - array & object literals (optionally w/ computed properties) - all other features of @thi.ng/pointfree (combinators, array/vector ops etc.) +- CLI version w/ basic file I/O, library includes, JSON ### Status @@ -63,13 +67,14 @@ an ES6 embedded DSL for concatenative programming: yarn add @thi.ng/pointfree-lang ``` -Package sizes (gzipped): ESM: 4.84 KB / CJS: 4.85 KB / UMD: 4.78 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.02 KB / CJS: 5.01 KB / UMD: 4.93 KB ## Dependencies - [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) - [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors) - [@thi.ng/pointfree](https://github.com/thi-ng/umbrella/tree/develop/packages/pointfree) +- [commander](https://github.com/thi-ng/umbrella/tree/develop/packages/undefined) - [tslib](https://github.com/thi-ng/umbrella/tree/develop/packages/undefined) ## Usage examples @@ -84,6 +89,115 @@ A selection: | -------------------------------------------------------------------------------------------------------------------- | -------------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------- | | | Generate SVG using pointfree DSL | [Demo](https://demo.thi.ng/umbrella/pointfree-svg/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pointfree-svg) | +## Command line usage + +The package includes a `pointfree` CLI command to evaluate strings or files: + +(It's recommended to install the package globally for CLI usage) + +```text +# install globally +yarn global add @thi.ng/pointfree-lang + +pointfree --help + +Usage: pointfree [options] [file] + +Options: + -V, --version output the version number + -d, --debug print debug info + -e, --exec execute given string + -h, --help display help for command +``` + +For CLI usage, in addition to the other language features discussed further below, the following words are available too (more to be added): + +| Word | Stack comment | Description | NodeJS equiv | +|--------------|----------------------|-------------------------------------------|-----------------------------| +| `@args` | `( -- arg[] )` | Places CLI args on stack | `process.argv` | +| `include` | `( path -- )` | Includes another pointfree-lang file | | +| `read-dir` | `( path -- file[] )` | Returns array of file names in given dir | `readdirSync(path)` | +| `read-file` | `( path -- str )` | Reads file and returns contents as string | `readFileSync(path)` | +| `write-file` | `( body path -- )` | Writes body to file at given path | `writeFileSync(path, body)` | + +### Include files / libraries + +As mentioned in the table above, other pointfree-lang source files can +be recursively included via `include`. The inclusion mechanism so far is +basic, but can break cyclical dependencies, though the behavior will +still be improved in the future. All imported words are added to the +same environment. Use namespacing if needed (e.g. `prefix.foo` vs +`foo`), word names can be more flexible than in JS. + +File `lib.f`: + +```forth +: lib.hello ( name -- greeting ) "hello, " swap "!" + + ; +``` + +```bash +# eval program string w/ arg +pointfree -e '"lib.f" include @args 0 at lib.hello .' asterix +# hello, asterix! +``` + +### CLI example + +A small example tool to scan a package directory and display package +names w/ their current versions, with optional support to filter package +list via regexp: + +Save the following file to `semver.f` (Btw. Use `.f` as file ext to +harness existing syntax coloring support for Forth...) + +```forth +( builds path to package.json ) +: pkg-path ( name base -- path ) swap "/" swap "/package.json" + + + ; + +( takes package dir , returns parsed package.json ) +: read-pkg ( name base -- json ) pkg-path read-file json> ; + +( extracts semver package name from given package object ) +: pkg-semver ( pkg -- name@version ) dup "name" at "@" rot "version" at + + ; + +( package list filter ) +: filter-pkg ( name pat -- name? ) over -rot match? not [ drop ] when ; + +( store pattern and base dir in global var ) +@args dup 2 at pattern! 1 at base! + +( load packages dir ) +@base read-dir + +( filter package list if CLI arg given ) +@args length 2 > [ [ @pattern filter-pkg ] mapll ] when + +( try to process all packages, ignoring any errors ) +[ [ @base read-pkg pkg-semver . ] [ drop ] try ] mapl +``` + +```bash +# list all +pointfree semver.f node_modules +# JSONStream@1.3.5 +# abab@2.0.3 +# abbrev@1.1.1 +# acorn@6.4.0 +# acorn-globals@4.3.4 +# acorn-walk@6.2.0 +# ... 100's more ... + +# filtered w/ pattern (regex) +pointfree semver.f node_modules ^type +# type-check@0.3.2 +# type-fest@0.3.1 +# typedarray@0.0.6 +# typedarray-to-buffer@3.1.5 +# typedoc@0.16.10 +# typedoc-default-themes@0.7.2 +# typescript@3.8.3 +``` + ## API [Generated API docs](https://docs.thi.ng/umbrella/pointfree-lang/) @@ -244,6 +358,7 @@ aren't valid names in the ES6 context): | `if` | `condq` | | `switch` | `casesq` | | `while` | `loopq` | +| `try` | `$try` | | `+` | `add` | | `-` | `sub` | | `*` | `mul` | @@ -262,11 +377,15 @@ aren't valid names in the ES6 context): | `neg?` | `isneg` | | `nil?` | `isnil` | | `zero?` | `iszero` | +| `match?` | `ismatch` | +| `>json` | `tojson` | +| `json>` | `fromjson` | | `pi` | `Math.PI` | | `tau` | `2 * Math.PI` | | `.` | `print` | | `.s` | `printds` | | `.r` | `printrs` | +| `.e` | print env | The ID resolution priority is: diff --git a/packages/pointfree-lang/README.tpl.md b/packages/pointfree-lang/README.tpl.md index 71658b7689..f7649c5c9e 100644 --- a/packages/pointfree-lang/README.tpl.md +++ b/packages/pointfree-lang/README.tpl.md @@ -28,6 +28,7 @@ an ES6 embedded DSL for concatenative programming: - nested quotations (code as data, vanilla JS arrays) - array & object literals (optionally w/ computed properties) - all other features of @thi.ng/pointfree (combinators, array/vector ops etc.) +- CLI version w/ basic file I/O, library includes, JSON ${status} @@ -51,6 +52,115 @@ ${pkg.deps} ${examples} +## Command line usage + +The package includes a `pointfree` CLI command to evaluate strings or files: + +(It's recommended to install the package globally for CLI usage) + +```text +# install globally +yarn global add @thi.ng/pointfree-lang + +pointfree --help + +Usage: pointfree [options] [file] + +Options: + -V, --version output the version number + -d, --debug print debug info + -e, --exec execute given string + -h, --help display help for command +``` + +For CLI usage, in addition to the other language features discussed further below, the following words are available too (more to be added): + +| Word | Stack comment | Description | NodeJS equiv | +|--------------|----------------------|-------------------------------------------|-----------------------------| +| `@args` | `( -- arg[] )` | Places CLI args on stack | `process.argv` | +| `include` | `( path -- )` | Includes another pointfree-lang file | | +| `read-dir` | `( path -- file[] )` | Returns array of file names in given dir | `readdirSync(path)` | +| `read-file` | `( path -- str )` | Reads file and returns contents as string | `readFileSync(path)` | +| `write-file` | `( body path -- )` | Writes body to file at given path | `writeFileSync(path, body)` | + +### Include files / libraries + +As mentioned in the table above, other pointfree-lang source files can +be recursively included via `include`. The inclusion mechanism so far is +basic, but can break cyclical dependencies, though the behavior will +still be improved in the future. All imported words are added to the +same environment. Use namespacing if needed (e.g. `prefix.foo` vs +`foo`), word names can be more flexible than in JS. + +File `lib.f`: + +```forth +: lib.hello ( name -- greeting ) "hello, " swap "!" + + ; +``` + +```bash +# eval program string w/ arg +pointfree -e '"lib.f" include @args 0 at lib.hello .' asterix +# hello, asterix! +``` + +### CLI example + +A small example tool to scan a package directory and display package +names w/ their current versions, with optional support to filter package +list via regexp: + +Save the following file to `semver.f` (Btw. Use `.f` as file ext to +harness existing syntax coloring support for Forth...) + +```forth +( builds path to package.json ) +: pkg-path ( name base -- path ) swap "/" swap "/package.json" + + + ; + +( takes package dir , returns parsed package.json ) +: read-pkg ( name base -- json ) pkg-path read-file json> ; + +( extracts semver package name from given package object ) +: pkg-semver ( pkg -- name@version ) dup "name" at "@" rot "version" at + + ; + +( package list filter ) +: filter-pkg ( name pat -- name? ) over -rot match? not [ drop ] when ; + +( store pattern and base dir in global var ) +@args dup 2 at pattern! 1 at base! + +( load packages dir ) +@base read-dir + +( filter package list if CLI arg given ) +@args length 2 > [ [ @pattern filter-pkg ] mapll ] when + +( try to process all packages, ignoring any errors ) +[ [ @base read-pkg pkg-semver . ] [ drop ] try ] mapl +``` + +```bash +# list all +pointfree semver.f node_modules +# JSONStream@1.3.5 +# abab@2.0.3 +# abbrev@1.1.1 +# acorn@6.4.0 +# acorn-globals@4.3.4 +# acorn-walk@6.2.0 +# ... 100's more ... + +# filtered w/ pattern (regex) +pointfree semver.f node_modules ^type +# type-check@0.3.2 +# type-fest@0.3.1 +# typedarray@0.0.6 +# typedarray-to-buffer@3.1.5 +# typedoc@0.16.10 +# typedoc-default-themes@0.7.2 +# typescript@3.8.3 +``` + ## API ${docLink} @@ -212,6 +322,7 @@ aren't valid names in the ES6 context): | `if` | `condq` | | `switch` | `casesq` | | `while` | `loopq` | +| `try` | `$try` | | `+` | `add` | | `-` | `sub` | | `*` | `mul` | @@ -230,11 +341,15 @@ aren't valid names in the ES6 context): | `neg?` | `isneg` | | `nil?` | `isnil` | | `zero?` | `iszero` | +| `match?` | `ismatch` | +| `>json` | `tojson` | +| `json>` | `fromjson` | | `pi` | `Math.PI` | | `tau` | `2 * Math.PI` | | `.` | `print` | | `.s` | `printds` | | `.r` | `printrs` | +| `.e` | print env | The ID resolution priority is: diff --git a/packages/pointfree-lang/bin/pointfree.js b/packages/pointfree-lang/bin/pointfree.js new file mode 100755 index 0000000000..2bfd86f1dd --- /dev/null +++ b/packages/pointfree-lang/bin/pointfree.js @@ -0,0 +1,89 @@ +#!/usr/bin/env node + +const api = require("@thi.ng/api"); +const bench = require("@thi.ng/bench"); +const pf = require("@thi.ng/pointfree"); +const pfl = require("@thi.ng/pointfree-lang"); +const fs = require("fs"); +const { program } = require("commander"); + +program + .version(require("../package.json").version) + .arguments("[file]") + .option("-d, --debug", "print debug info") + .option("-e, --exec ", "execute given string") + .parse(process.argv); + +let src = program.exec; +if (!src) { + const fname = program.args[0]; + if (!fname) { + process.stderr.write("no input given...\n\n"); + program.help(); + } + try { + src = fs.readFileSync(fname).toString(); + } catch (e) { + process.stderr.write(`error reading source file ${e.message}`); + process.exit(1); + } +} + +try { + const logger = program.debug + ? new api.ConsoleLogger("pointfree") + : api.NULL_LOGGER; + const includeCache = new Set(); + const rootEnv = { args: program.args }; + const builtins = { + include: (ctx) => { + const stack = ctx[0]; + pf.ensureStack(stack, 1); + const path = stack.pop(); + if (!includeCache.has(path)) { + // cycle breaker + // TODO use dgraph + includeCache.add(path); + logger.debug(`including: ${path}`); + pfl.run(fs.readFileSync(path).toString(), { + ...ctx[2], + __vars: null, + }); + } else { + logger.debug(`\t${path} already included, skipping...`); + } + return ctx; + }, + "read-file": (ctx) => { + const stack = ctx[0]; + pf.ensureStack(stack, 1); + const path = stack.pop(); + logger.debug(`reading file: ${path}`); + stack.push(fs.readFileSync(path).toString()); + return ctx; + }, + "write-file": (ctx) => { + const stack = ctx[0]; + pf.ensureStack(stack, 2); + const path = stack.pop(); + logger.debug(`writing file: ${path}`); + fs.writeFileSync(path, stack.pop()); + return ctx; + }, + "read-dir": (ctx) => { + const stack = ctx[0]; + pf.ensureStack(stack, 1); + const path = stack.pop(); + logger.debug(`reading directory: ${path}`); + stack.push(fs.readdirSync(path)); + return ctx; + }, + }; + const env = pfl.ffi(rootEnv, builtins); + const [res, time] = bench.timedResult(() => pfl.runU(src, env)); + logger.debug(`executed in ${time}ms`); + process.exit(typeof res === "number" ? res : 0); +} catch (e) { + console.log(e); +} +process.exit(1); diff --git a/packages/pointfree-lang/package.json b/packages/pointfree-lang/package.json index e523621885..77b097853a 100644 --- a/packages/pointfree-lang/package.json +++ b/packages/pointfree-lang/package.json @@ -1,11 +1,14 @@ { "name": "@thi.ng/pointfree-lang", - "version": "1.1.14", - "description": "Forth style syntax layer/compiler for the @thi.ng/pointfree DSL", + "version": "1.2.1", + "description": "Forth style syntax layer/compiler & CLI for the @thi.ng/pointfree DSL", "module": "./index.js", "main": "./lib/index.js", "umd:main": "./lib/index.umd.js", "typings": "./index.d.ts", + "bin": { + "pointfree": "bin/pointfree.js" + }, "repository": { "type": "git", "url": "https://github.com/thi-ng/umbrella.git" @@ -32,21 +35,23 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "pegjs": "^0.11.0-dev.325", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/pointfree": "^1.2.10", + "@thi.ng/api": "^6.9.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/pointfree": "^1.3.1", + "commander": "^5.0.0", "tslib": "^1.11.1" }, "keywords": [ "concatenative", "dataflow", + "CLI", "DSL", "ES6", "Forth", @@ -54,6 +59,7 @@ "grammar", "PEG", "pointfree", + "RPN", "syntax", "typescript" ], diff --git a/packages/pointfree-lang/src/api.ts b/packages/pointfree-lang/src/api.ts index d9b78572b0..2c612d1389 100644 --- a/packages/pointfree-lang/src/api.ts +++ b/packages/pointfree-lang/src/api.ts @@ -1,5 +1,5 @@ -import * as pf from "@thi.ng/pointfree"; import type { IObjectOf } from "@thi.ng/api"; +import * as pf from "@thi.ng/pointfree"; export interface ASTNode { type: NodeType; @@ -13,7 +13,7 @@ export interface VisitorState { word: boolean; } -export const enum NodeType { +export enum NodeType { SYM = 1, WORD, @@ -28,14 +28,9 @@ export const enum NodeType { OBJ, COMMENT, - STACK_COMMENT + STACK_COMMENT, } -/** - * Reverse lookup for {@link NodeType} enums - */ -// export const __NodeType = (exports).NodeType; - export const ALIASES: IObjectOf = { "?drop": pf.dropif, "?dup": pf.dupif, @@ -45,8 +40,10 @@ export const ALIASES: IObjectOf = { "r>": pf.movrd, "r2>": pf.movrd2, if: pf.condq, + when: pf.whenq, switch: pf.casesq, while: pf.loopq, + try: pf.$try, "+": pf.add, "-": pf.sub, "*": pf.mul, @@ -65,9 +62,13 @@ export const ALIASES: IObjectOf = { "neg?": pf.isneg, "nil?": pf.isnull, "zero?": pf.iszero, + "match?": pf.ismatch, + ">json": pf.tojson, + "json>": pf.fromjson, pi: pf.push(Math.PI), tau: pf.push(2 * Math.PI), ".": pf.print, ".s": pf.printds, - ".r": pf.printrs + ".r": pf.printrs, + ".e": (ctx) => (console.log(ctx[2]), ctx), }; diff --git a/packages/pointfree-lang/src/grammar.pegjs b/packages/pointfree-lang/src/grammar.pegjs index 7176fc2892..3593919055 100644 --- a/packages/pointfree-lang/src/grammar.pegjs +++ b/packages/pointfree-lang/src/grammar.pegjs @@ -1,6 +1,4 @@ { - // const __NodeType = require("./api").__NodeType; - const NodeType = {}; NodeType[NodeType["SYM"] = 1] = "SYM"; NodeType[NodeType["WORD"] = 2] = "WORD"; diff --git a/packages/pointfree-lang/src/index.ts b/packages/pointfree-lang/src/index.ts index 409f6c808a..5b4055692e 100644 --- a/packages/pointfree-lang/src/index.ts +++ b/packages/pointfree-lang/src/index.ts @@ -1,12 +1,7 @@ import { ILogger, IObjectOf, NULL_LOGGER } from "@thi.ng/api"; import { illegalArgs, illegalState } from "@thi.ng/errors"; import * as pf from "@thi.ng/pointfree"; -import { - ALIASES, - ASTNode, - NodeType, - VisitorState -} from "./api"; +import { ALIASES, ASTNode, NodeType, VisitorState } from "./api"; import { parse, SyntaxError } from "./parser"; export let LOGGER = NULL_LOGGER; diff --git a/packages/pointfree-lang/test/tsconfig.json b/packages/pointfree-lang/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/pointfree-lang/test/tsconfig.json +++ b/packages/pointfree-lang/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/pointfree/CHANGELOG.md b/packages/pointfree/CHANGELOG.md index 70ce83db9b..368c6b25a4 100644 --- a/packages/pointfree/CHANGELOG.md +++ b/packages/pointfree/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@1.3.0...@thi.ng/pointfree@1.3.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/pointfree + + + + + +# [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@1.2.10...@thi.ng/pointfree@1.3.0) (2020-03-29) + + +### Features + +* **pointfree:** add $try word, update compile() to allow empty quotations ([41de106](https://github.com/thi-ng/umbrella/commit/41de106e776ad102e827ccc062a19a4e637613a0)) +* **pointfree:** add tojson()/fromjson() conversion ops ([829f3ab](https://github.com/thi-ng/umbrella/commit/829f3ab129084619c05b434732b46b6c26d32b5e)) +* **pointfree:** add whenq(), ismatch() ([44ab1d7](https://github.com/thi-ng/umbrella/commit/44ab1d7f5ff52a9226b873b42adada3eac1674e9)) + + + + + ## [1.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/pointfree@1.2.9...@thi.ng/pointfree@1.2.10) (2020-03-28) **Note:** Version bump only for package @thi.ng/pointfree diff --git a/packages/pointfree/README.md b/packages/pointfree/README.md index 3dc84e7c2f..f81b88d081 100644 --- a/packages/pointfree/README.md +++ b/packages/pointfree/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/pointfree](https://media.thi.ng/umbrella/banners/thing-pointfree.svg?1585427335) +# ![pointfree](https://media.thi.ng/umbrella/banners/thing-pointfree.svg?e49713a7) [![npm version](https://img.shields.io/npm/v/@thi.ng/pointfree.svg)](https://www.npmjs.com/package/@thi.ng/pointfree) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/pointfree.svg) @@ -45,7 +45,9 @@ This project is part of the - [Logic](#logic) - [Environment](#environment) - [Arrays, objects, strings](#arrays--objects--strings) + - [String specific](#string-specific) - [I/O](#i-o) + - [Error handling](#error-handling) - [Control flow](#control-flow) - [cond](#cond) - [condq](#condq) @@ -183,7 +185,7 @@ non-linear control flow. ### Support packages -- [@thi.ng/pointfree-lang](https://github.com/thi-ng/umbrella/tree/develop/packages/pointfree-lang) - Forth style syntax layer/compiler for the [@thi.ng/pointfree](https://github.com/thi-ng/umbrella/tree/develop/packages/pointfree) DSL +- [@thi.ng/pointfree-lang](https://github.com/thi-ng/umbrella/tree/develop/packages/pointfree-lang) - Forth style syntax layer/compiler & CLI for the [@thi.ng/pointfree](https://github.com/thi-ng/umbrella/tree/develop/packages/pointfree) DSL ## Installation @@ -191,7 +193,7 @@ non-linear control flow. yarn add @thi.ng/pointfree ``` -Package sizes (gzipped): ESM: 3.11 KB / CJS: 3.61 KB / UMD: 3.39 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.23 KB / CJS: 3.75 KB / UMD: 3.52 KB ## Dependencies @@ -987,6 +989,14 @@ at word construction time and return a pre-configured stack function. | `vdiv` | `( a b -- c )` | divide 2 arrays (or array + scalar) | | `op2v(f)` | `( a b -- c )` | HOF word gen, e.g. `vadd` is based on | +#### String specific + +| Word | Stack effect | Description | +|------------|----------------------|----------------------------| +| `ismatch` | `( str re -- bool )` | Test regexp against string | +| `fromjson` | `( str -- x )` | Parse JSON string | +| `tojson` | `( x -- str )` | JSON stringify | + ### I/O | Word | Stack effect | Description | @@ -995,6 +1005,25 @@ at word construction time and return a pre-configured stack function. | `printds` | `( -- )` | print out D-stack | | `printrs` | `( -- )` | print out R-stack | +### Error handling + +There's currently only one error handling construct available: + +`$try` expects a body and error handler quotation on stack. Executes +body within an implicit `try .. catch` and if an error was thrown pushes +it on stack and executes error quotation. + +```ts +pf.runU([ + // body quotation + [pf.div], + // error handler + [pf.drop, "eek", pf.print], + pf.$try +]); +// eek +``` + ### Control flow #### cond diff --git a/packages/pointfree/README.tpl.md b/packages/pointfree/README.tpl.md index 0cb760f46e..17f376d8f0 100644 --- a/packages/pointfree/README.tpl.md +++ b/packages/pointfree/README.tpl.md @@ -917,6 +917,14 @@ at word construction time and return a pre-configured stack function. | `vdiv` | `( a b -- c )` | divide 2 arrays (or array + scalar) | | `op2v(f)` | `( a b -- c )` | HOF word gen, e.g. `vadd` is based on | +#### String specific + +| Word | Stack effect | Description | +|------------|----------------------|----------------------------| +| `ismatch` | `( str re -- bool )` | Test regexp against string | +| `fromjson` | `( str -- x )` | Parse JSON string | +| `tojson` | `( x -- str )` | JSON stringify | + ### I/O | Word | Stack effect | Description | @@ -925,6 +933,25 @@ at word construction time and return a pre-configured stack function. | `printds` | `( -- )` | print out D-stack | | `printrs` | `( -- )` | print out R-stack | +### Error handling + +There's currently only one error handling construct available: + +`$try` expects a body and error handler quotation on stack. Executes +body within an implicit `try .. catch` and if an error was thrown pushes +it on stack and executes error quotation. + +```ts +pf.runU([ + // body quotation + [pf.div], + // error handler + [pf.drop, "eek", pf.print], + pf.$try +]); +// eek +``` + ### Control flow #### cond diff --git a/packages/pointfree/package.json b/packages/pointfree/package.json index 0af128fcae..2879fec41e 100644 --- a/packages/pointfree/package.json +++ b/packages/pointfree/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/pointfree", - "version": "1.2.10", + "version": "1.3.1", "description": "Pointfree functional composition / Forth style stack execution engine", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compose": "^1.4.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compose": "^1.4.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/pointfree/src/cond.ts b/packages/pointfree/src/cond.ts index 85ba4934b3..6a70391d02 100644 --- a/packages/pointfree/src/cond.ts +++ b/packages/pointfree/src/cond.ts @@ -41,6 +41,21 @@ export const condq = (ctx: StackContext) => { return $stackFn(stack.pop() ? _then : _else)(ctx); }; +/** + * Similar to {@link condq}, but only expects `test` result and truthy branch + * d-stack. Executes word/quotation if `test` is truthy, else does nothing. + * + * ( test whenq -- ? ) + * + * @param ctx - + */ +export const whenq = (ctx: StackContext) => { + const stack = ctx[0]; + $(stack, 2); + const _then = stack.pop(); + return stack.pop() ? $stackFn(_then)(ctx) : ctx; +}; + /** * Higher order word. Takes an object of stack programs with keys in the * object being used to check for equality with TOS. If a match is diff --git a/packages/pointfree/src/index.ts b/packages/pointfree/src/index.ts index 506798d67e..d8a4dbb4e7 100644 --- a/packages/pointfree/src/index.ts +++ b/packages/pointfree/src/index.ts @@ -12,6 +12,7 @@ export * from "./math"; export * from "./run"; export * from "./safe"; export * from "./stack"; +export * from "./string"; export * from "./word"; export { $ as ensureStack, $n as ensureStackN } from "./safe"; diff --git a/packages/pointfree/src/string.ts b/packages/pointfree/src/string.ts new file mode 100644 index 0000000000..4a29da919b --- /dev/null +++ b/packages/pointfree/src/string.ts @@ -0,0 +1,43 @@ +import { StackContext } from "./api"; +import { $n, $ } from "./safe"; + +/** + * Takes a string and stringified regexp (w/o flags), returns true if + * regexp matches the string. + * + * ( str re -- bool ) + * + * @param ctx + */ +export const ismatch = (ctx: StackContext) => { + const stack = ctx[0]; + const n = stack.length - 2; + $n(n, 0); + stack[n] = new RegExp(stack[n + 1]).test(stack[n]); + stack.length--; + return ctx; +}; + +/** + * ( str -- obj ) + * + * @param ctx + */ +export const fromjson = (ctx: StackContext) => { + const stack = ctx[0]; + $(stack, 1); + stack.push(JSON.parse(stack.pop())); + return ctx; +}; + +/** + * ( x -- str ) + * + * @param ctx + */ +export const tojson = (ctx: StackContext) => { + const stack = ctx[0]; + $(stack, 1); + stack.push(JSON.stringify(stack.pop(), null, 4)); + return ctx; +}; diff --git a/packages/pointfree/src/word.ts b/packages/pointfree/src/word.ts index af3dce8b35..564f176666 100644 --- a/packages/pointfree/src/word.ts +++ b/packages/pointfree/src/word.ts @@ -7,22 +7,24 @@ import type { StackEnv, StackFn, StackProc, - StackProgram + StackProgram, } from "./api"; export const $stackFn = (f: StackProc) => (isArray(f) ? word(f) : f); const compile = (prog: StackProgram) => - compL.apply( - null, - ( - prog.map((w) => - !isFunction(w) - ? (ctx: StackContext) => (ctx[0].push(w), ctx) - : w - ) - ) - ); + prog.length > 0 + ? compL.apply( + null, + ( + prog.map((w) => + !isFunction(w) + ? (ctx: StackContext) => (ctx[0].push(w), ctx) + : w + ) + ) + ) + : (ctx: StackContext) => ctx; /** * Takes a result tuple returned by {@link run} and unwraps one or more @@ -107,6 +109,27 @@ export const exec = (ctx: StackContext) => ( $(ctx[0], 1), $stackFn(ctx[0].pop())(ctx) ); +/** + * Expects a body and error handler quotation on stack. Executes body + * within an implicit `try .. catch` and if an error was thrown pushes + * it on stack and executes error quotation. + * + * ( body catch -- ? ) + * + * @param ctx + */ +export const $try = (ctx: StackContext) => { + const stack = ctx[0]; + $(stack, 2); + const err = stack.pop(); + try { + return exec(ctx); + } catch (e) { + stack.push(e, err); + return exec(ctx); + } +}; + //////////////////// JS host calls //////////////////// /** diff --git a/packages/pointfree/test/tsconfig.json b/packages/pointfree/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/pointfree/test/tsconfig.json +++ b/packages/pointfree/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/poisson/CHANGELOG.md b/packages/poisson/CHANGELOG.md index e7f6b9f5ce..05c02eb795 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.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.0.7...@thi.ng/poisson@1.0.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/poisson + + + + + ## [1.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/poisson@1.0.6...@thi.ng/poisson@1.0.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/poisson diff --git a/packages/poisson/README.md b/packages/poisson/README.md index f2a39c37a6..8801a632c6 100644 --- a/packages/poisson/README.md +++ b/packages/poisson/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/poisson](https://media.thi.ng/umbrella/banners/thing-poisson.svg?1585427411) +# ![poisson](https://media.thi.ng/umbrella/banners/thing-poisson.svg?bc909da4) [![npm version](https://img.shields.io/npm/v/@thi.ng/poisson.svg)](https://www.npmjs.com/package/@thi.ng/poisson) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/poisson.svg) @@ -50,7 +50,7 @@ to support other, alternative spatial indexing mechanisms... yarn add @thi.ng/poisson ``` -Package sizes (gzipped): ESM: 337 bytes / CJS: 391 bytes / UMD: 501 bytes +Package sizes (gzipped, pre-treeshake): ESM: 337 bytes / CJS: 391 bytes / UMD: 501 bytes ## Dependencies diff --git a/packages/poisson/package.json b/packages/poisson/package.json index 8f4fe8d1e4..e4e11cc871 100644 --- a/packages/poisson/package.json +++ b/packages/poisson/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/poisson", - "version": "1.0.7", + "version": "1.0.8", "description": "nD Poisson-disc sampling w/ support for spatial density functions and custom PRNGs", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/geom-api": "^1.0.7", - "@thi.ng/random": "^1.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/geom-api": "^1.0.8", + "@thi.ng/random": "^1.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/poisson/test/tsconfig.json b/packages/poisson/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/poisson/test/tsconfig.json +++ b/packages/poisson/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/porter-duff/CHANGELOG.md b/packages/porter-duff/CHANGELOG.md index ae1c008c95..ded7235140 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.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.12...@thi.ng/porter-duff@0.1.13) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/porter-duff + + + + + ## [0.1.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/porter-duff@0.1.11...@thi.ng/porter-duff@0.1.12) (2020-03-28) **Note:** Version bump only for package @thi.ng/porter-duff diff --git a/packages/porter-duff/README.md b/packages/porter-duff/README.md index 2c93ba57bb..d40dedeeaa 100644 --- a/packages/porter-duff/README.md +++ b/packages/porter-duff/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/porter-duff](https://media.thi.ng/umbrella/banners/thing-porter-duff.svg?1585427323) +# ![porter-duff](https://media.thi.ng/umbrella/banners/thing-porter-duff.svg?418f9b00) [![npm version](https://img.shields.io/npm/v/@thi.ng/porter-duff.svg)](https://www.npmjs.com/package/@thi.ng/porter-duff) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/porter-duff.svg) @@ -58,7 +58,7 @@ ints or RGBA float vectors. yarn add @thi.ng/porter-duff ``` -Package sizes (gzipped): ESM: 998 bytes / CJS: 1.16 KB / UMD: 1.13 KB +Package sizes (gzipped, pre-treeshake): ESM: 998 bytes / CJS: 1.16 KB / UMD: 1.13 KB ## Dependencies diff --git a/packages/porter-duff/package.json b/packages/porter-duff/package.json index 643a93d5d7..18cf8c322b 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.12", + "version": "0.1.13", "description": "Porter-Duff operators for packed ints & float-array alpha compositing", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/math": "^1.7.4", + "@thi.ng/api": "^6.9.1", + "@thi.ng/math": "^1.7.5", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/porter-duff/test/tsconfig.json b/packages/porter-duff/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/porter-duff/test/tsconfig.json +++ b/packages/porter-duff/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/quad-edge/CHANGELOG.md b/packages/quad-edge/CHANGELOG.md index 2a85a51c62..499d4f0aa9 100644 --- a/packages/quad-edge/CHANGELOG.md +++ b/packages/quad-edge/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.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.10...@thi.ng/quad-edge@0.2.11) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/quad-edge + + + + + ## [0.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/quad-edge@0.2.9...@thi.ng/quad-edge@0.2.10) (2020-03-28) **Note:** Version bump only for package @thi.ng/quad-edge diff --git a/packages/quad-edge/README.md b/packages/quad-edge/README.md index 9f37e649fb..f96f85ffa1 100644 --- a/packages/quad-edge/README.md +++ b/packages/quad-edge/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/quad-edge](https://media.thi.ng/umbrella/banners/thing-quad-edge.svg?1585427313) +# ![quad-edge](https://media.thi.ng/umbrella/banners/thing-quad-edge.svg?3ba71775) [![npm version](https://img.shields.io/npm/v/@thi.ng/quad-edge.svg)](https://www.npmjs.com/package/@thi.ng/quad-edge) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/quad-edge.svg) @@ -49,7 +49,7 @@ Reference: yarn add @thi.ng/quad-edge ``` -Package sizes (gzipped): ESM: 495 bytes / CJS: 553 bytes / UMD: 641 bytes +Package sizes (gzipped, pre-treeshake): ESM: 495 bytes / CJS: 553 bytes / UMD: 641 bytes ## Dependencies diff --git a/packages/quad-edge/package.json b/packages/quad-edge/package.json index 83e519b0b4..6921b3e22d 100644 --- a/packages/quad-edge/package.json +++ b/packages/quad-edge/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/quad-edge", - "version": "0.2.10", + "version": "0.2.11", "description": "Quadedge data structure after Guibas & Stolfi", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/quad-edge/test/tsconfig.json b/packages/quad-edge/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/quad-edge/test/tsconfig.json +++ b/packages/quad-edge/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/ramp/CHANGELOG.md b/packages/ramp/CHANGELOG.md index d1f2a932ec..15ec21300d 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.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.7...@thi.ng/ramp@0.1.8) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/ramp + + + + + ## [0.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/ramp@0.1.6...@thi.ng/ramp@0.1.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/ramp diff --git a/packages/ramp/README.md b/packages/ramp/README.md index 41147265c8..ca1a9ee75c 100644 --- a/packages/ramp/README.md +++ b/packages/ramp/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/ramp](https://media.thi.ng/umbrella/banners/thing-ramp.svg?1585427400) +# ![ramp](https://media.thi.ng/umbrella/banners/thing-ramp.svg?948b09be) [![npm version](https://img.shields.io/npm/v/@thi.ng/ramp.svg)](https://www.npmjs.com/package/@thi.ng/ramp) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/ramp.svg) @@ -32,7 +32,7 @@ Parametric interpolated 1D lookup tables for remapping values. yarn add @thi.ng/ramp ``` -Package sizes (gzipped): ESM: 966 bytes / CJS: 1.01 KB / UMD: 1.10 KB +Package sizes (gzipped, pre-treeshake): ESM: 966 bytes / CJS: 1.01 KB / UMD: 1.10 KB ## Dependencies diff --git a/packages/ramp/package.json b/packages/ramp/package.json index a07f0a383b..53e79fa731 100644 --- a/packages/ramp/package.json +++ b/packages/ramp/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/ramp", - "version": "0.1.7", + "version": "0.1.8", "description": "Parametric interpolated 1D lookup tables for remapping values", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/compare": "^1.2.2", - "@thi.ng/math": "^1.7.4", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/compare": "^1.3.0", + "@thi.ng/math": "^1.7.5", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/ramp/test/tsconfig.json b/packages/ramp/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/ramp/test/tsconfig.json +++ b/packages/ramp/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/random/CHANGELOG.md b/packages/random/CHANGELOG.md index 9c1a80b3d1..2efccc7e6a 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. +## [1.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.2...@thi.ng/random@1.4.3) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/random + + + + + ## [1.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/random@1.4.1...@thi.ng/random@1.4.2) (2020-03-28) **Note:** Version bump only for package @thi.ng/random diff --git a/packages/random/README.md b/packages/random/README.md index dff83b3769..ded17c5a73 100644 --- a/packages/random/README.md +++ b/packages/random/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/random](https://media.thi.ng/umbrella/banners/thing-random.svg?1585427333) +# ![random](https://media.thi.ng/umbrella/banners/thing-random.svg?aee58c49) [![npm version](https://img.shields.io/npm/v/@thi.ng/random.svg)](https://www.npmjs.com/package/@thi.ng/random) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/random.svg) @@ -47,7 +47,7 @@ Partially ported from C implementations taken from yarn add @thi.ng/random ``` -Package sizes (gzipped): ESM: 1.23 KB / CJS: 1.33 KB / UMD: 1.34 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.23 KB / CJS: 1.33 KB / UMD: 1.34 KB ## Dependencies diff --git a/packages/random/package.json b/packages/random/package.json index 3b3d21ed24..8bd3f80ece 100644 --- a/packages/random/package.json +++ b/packages/random/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/random", - "version": "1.4.2", + "version": "1.4.3", "description": "Pseudo-random number generators w/ unified API", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/random/test/tsconfig.json b/packages/random/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/random/test/tsconfig.json +++ b/packages/random/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/range-coder/CHANGELOG.md b/packages/range-coder/CHANGELOG.md index 0410277942..83c08fae0f 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.36](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.35...@thi.ng/range-coder@1.0.36) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/range-coder + + + + + ## [1.0.35](https://github.com/thi-ng/umbrella/compare/@thi.ng/range-coder@1.0.34...@thi.ng/range-coder@1.0.35) (2020-03-28) **Note:** Version bump only for package @thi.ng/range-coder diff --git a/packages/range-coder/README.md b/packages/range-coder/README.md index 710474793a..b9b39a50cd 100644 --- a/packages/range-coder/README.md +++ b/packages/range-coder/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/range-coder](https://media.thi.ng/umbrella/banners/thing-range-coder.svg?1585427370) +# ![range-coder](https://media.thi.ng/umbrella/banners/thing-range-coder.svg?c1c2b462) [![npm version](https://img.shields.io/npm/v/@thi.ng/range-coder.svg)](https://www.npmjs.com/package/@thi.ng/range-coder) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/range-coder.svg) @@ -38,7 +38,7 @@ by Joe Halliwell](https://www.winterwell.com/software/compressor.php). yarn add @thi.ng/range-coder ``` -Package sizes (gzipped): ESM: 670 bytes / CJS: 725 bytes / UMD: 762 bytes +Package sizes (gzipped, pre-treeshake): ESM: 670 bytes / CJS: 725 bytes / UMD: 762 bytes ## Dependencies diff --git a/packages/range-coder/package.json b/packages/range-coder/package.json index e10d2d0167..c5c6f9ca6a 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.35", + "version": "1.0.36", "description": "Binary data range encoder / decoder", "module": "./index.js", "main": "./lib/index.js", @@ -29,17 +29,17 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/transducers": "^6.4.3", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/bitstream": "^1.1.11", + "@thi.ng/bitstream": "^1.1.12", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/range-coder/test/tsconfig.json b/packages/range-coder/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/range-coder/test/tsconfig.json +++ b/packages/range-coder/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/resolve-map/CHANGELOG.md b/packages/resolve-map/CHANGELOG.md index ab14583675..b0b2939e77 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.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.1.16...@thi.ng/resolve-map@4.1.17) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/resolve-map + + + + + ## [4.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/resolve-map@4.1.15...@thi.ng/resolve-map@4.1.16) (2020-03-28) **Note:** Version bump only for package @thi.ng/resolve-map diff --git a/packages/resolve-map/README.md b/packages/resolve-map/README.md index 8ffad8f173..b502bfb0c8 100644 --- a/packages/resolve-map/README.md +++ b/packages/resolve-map/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/resolve-map](https://media.thi.ng/umbrella/banners/thing-resolve-map.svg?1585427344) +# ![resolve-map](https://media.thi.ng/umbrella/banners/thing-resolve-map.svg?e2a30dcc) [![npm version](https://img.shields.io/npm/v/@thi.ng/resolve-map.svg)](https://www.npmjs.com/package/@thi.ng/resolve-map) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/resolve-map.svg) @@ -50,7 +50,7 @@ supported. yarn add @thi.ng/resolve-map ``` -Package sizes (gzipped): ESM: 876 bytes / CJS: 927 bytes / UMD: 985 bytes +Package sizes (gzipped, pre-treeshake): ESM: 876 bytes / CJS: 927 bytes / UMD: 985 bytes ## Dependencies diff --git a/packages/resolve-map/package.json b/packages/resolve-map/package.json index 7619d8287e..bc08766be7 100644 --- a/packages/resolve-map/package.json +++ b/packages/resolve-map/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/resolve-map", - "version": "4.1.16", + "version": "4.1.17", "description": "DAG resolution of vanilla objects & arrays with internally linked values", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/paths": "^4.0.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/paths": "^4.0.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/resolve-map/test/tsconfig.json b/packages/resolve-map/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/resolve-map/test/tsconfig.json +++ b/packages/resolve-map/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rle-pack/CHANGELOG.md b/packages/rle-pack/CHANGELOG.md index adffaaf276..1c4909bb26 100644 --- a/packages/rle-pack/CHANGELOG.md +++ b/packages/rle-pack/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.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.11...@thi.ng/rle-pack@2.1.12) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rle-pack + + + + + ## [2.1.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/rle-pack@2.1.10...@thi.ng/rle-pack@2.1.11) (2020-03-28) **Note:** Version bump only for package @thi.ng/rle-pack diff --git a/packages/rle-pack/README.md b/packages/rle-pack/README.md index 0c402cb502..1e5b8f0a0c 100644 --- a/packages/rle-pack/README.md +++ b/packages/rle-pack/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rle-pack](https://media.thi.ng/umbrella/banners/thing-rle-pack.svg?1585427334) +# ![rle-pack](https://media.thi.ng/umbrella/banners/thing-rle-pack.svg?afc6c0f5) [![npm version](https://img.shields.io/npm/v/@thi.ng/rle-pack.svg)](https://www.npmjs.com/package/@thi.ng/rle-pack) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rle-pack.svg) @@ -64,7 +64,7 @@ Then per value: yarn add @thi.ng/rle-pack ``` -Package sizes (gzipped): ESM: 673 bytes / CJS: 727 bytes / UMD: 825 bytes +Package sizes (gzipped, pre-treeshake): ESM: 673 bytes / CJS: 727 bytes / UMD: 825 bytes ## Dependencies diff --git a/packages/rle-pack/package.json b/packages/rle-pack/package.json index b62a6eae04..52819d218b 100644 --- a/packages/rle-pack/package.json +++ b/packages/rle-pack/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rle-pack", - "version": "2.1.11", + "version": "2.1.12", "description": "Binary run-length encoding packer w/ flexible repeat bit widths", "module": "./index.js", "main": "./lib/index.js", @@ -32,15 +32,15 @@ "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", "benchmark": "^2.1.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/bitstream": "^1.1.11", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/bitstream": "^1.1.12", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rle-pack/test/tsconfig.json b/packages/rle-pack/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rle-pack/test/tsconfig.json +++ b/packages/rle-pack/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index bc14eb87d2..8534b83e4e 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.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.14...@thi.ng/router@2.0.15) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/router + + + + + ## [2.0.14](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.13...@thi.ng/router@2.0.14) (2020-03-28) **Note:** Version bump only for package @thi.ng/router diff --git a/packages/router/README.md b/packages/router/README.md index 17c6472e38..04081fabd8 100644 --- a/packages/router/README.md +++ b/packages/router/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/router](https://media.thi.ng/umbrella/banners/thing-router.svg?1585427333) +# ![router](https://media.thi.ng/umbrella/banners/thing-router.svg?c0bc2f6b) [![npm version](https://img.shields.io/npm/v/@thi.ng/router.svg)](https://www.npmjs.com/package/@thi.ng/router) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/router.svg) @@ -45,7 +45,7 @@ Partially based on the Clojure implementation in yarn add @thi.ng/router ``` -Package sizes (gzipped): ESM: 1.50 KB / CJS: 1.55 KB / UMD: 1.64 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.50 KB / CJS: 1.55 KB / UMD: 1.64 KB ## Dependencies diff --git a/packages/router/package.json b/packages/router/package.json index 4e184bbeb6..c1de856362 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/router", - "version": "2.0.14", + "version": "2.0.15", "description": "Generic router for browser & non-browser based applications", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/router/test/tsconfig.json b/packages/router/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/router/test/tsconfig.json +++ b/packages/router/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream-csp/CHANGELOG.md b/packages/rstream-csp/CHANGELOG.md index 965c7ffa63..8521035eaa 100644 --- a/packages/rstream-csp/CHANGELOG.md +++ b/packages/rstream-csp/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. +## [2.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.9...@thi.ng/rstream-csp@2.0.10) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-csp + + + + + +## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.8...@thi.ng/rstream-csp@2.0.9) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-csp + + + + + ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-csp@2.0.7...@thi.ng/rstream-csp@2.0.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-csp diff --git a/packages/rstream-csp/README.md b/packages/rstream-csp/README.md index 7b2b1ff3ae..88ad5f1d38 100644 --- a/packages/rstream-csp/README.md +++ b/packages/rstream-csp/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-csp](https://media.thi.ng/umbrella/banners/thing-rstream-csp.svg?1585427422) +# ![rstream-csp](https://media.thi.ng/umbrella/banners/thing-rstream-csp.svg?3eb98532) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-csp.svg)](https://www.npmjs.com/package/@thi.ng/rstream-csp) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-csp.svg) @@ -40,7 +40,7 @@ and synchronous stream subscriptions/transformations of yarn add @thi.ng/rstream-csp ``` -Package sizes (gzipped): ESM: 249 bytes / CJS: 305 bytes / UMD: 405 bytes +Package sizes (gzipped, pre-treeshake): ESM: 249 bytes / CJS: 305 bytes / UMD: 405 bytes ## Dependencies diff --git a/packages/rstream-csp/package.json b/packages/rstream-csp/package.json index 717eac1d30..cb9a1212b8 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.8", + "version": "2.0.10", "description": "@thi.ng/csp bridge module for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/csp": "^1.1.15", - "@thi.ng/rstream": "^4.0.0", + "@thi.ng/csp": "^1.1.16", + "@thi.ng/rstream": "^4.0.2", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-csp/test/tsconfig.json b/packages/rstream-csp/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream-csp/test/tsconfig.json +++ b/packages/rstream-csp/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream-dot/CHANGELOG.md b/packages/rstream-dot/CHANGELOG.md index 63bc6c43ad..e8da9767ff 100644 --- a/packages/rstream-dot/CHANGELOG.md +++ b/packages/rstream-dot/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.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.16...@thi.ng/rstream-dot@1.1.17) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-dot + + + + + +## [1.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.15...@thi.ng/rstream-dot@1.1.16) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-dot + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-dot@1.1.14...@thi.ng/rstream-dot@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-dot diff --git a/packages/rstream-dot/README.md b/packages/rstream-dot/README.md index 3798dd52f8..81b08281c9 100644 --- a/packages/rstream-dot/README.md +++ b/packages/rstream-dot/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-dot](https://media.thi.ng/umbrella/banners/thing-rstream-dot.svg?1585427422) +# ![rstream-dot](https://media.thi.ng/umbrella/banners/thing-rstream-dot.svg?a7bf4660) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-dot.svg)](https://www.npmjs.com/package/@thi.ng/rstream-dot) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-dot.svg) @@ -36,7 +36,7 @@ Graphviz DOT conversion of [@thi.ng/rstream](https://github.com/thi-ng/umbrella/ yarn add @thi.ng/rstream-dot ``` -Package sizes (gzipped): ESM: 780 bytes / CJS: 825 bytes / UMD: 898 bytes +Package sizes (gzipped, pre-treeshake): ESM: 780 bytes / CJS: 825 bytes / UMD: 898 bytes ## Dependencies diff --git a/packages/rstream-dot/package.json b/packages/rstream-dot/package.json index 1d1237d0e3..d37c5d051f 100644 --- a/packages/rstream-dot/package.json +++ b/packages/rstream-dot/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-dot", - "version": "1.1.15", + "version": "1.1.17", "description": "Graphviz DOT conversion of @thi.ng/rstream dataflow graph topologies", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/rstream": "^4.0.0", + "@thi.ng/rstream": "^4.0.2", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-dot/test/tsconfig.json b/packages/rstream-dot/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream-dot/test/tsconfig.json +++ b/packages/rstream-dot/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream-gestures/CHANGELOG.md b/packages/rstream-gestures/CHANGELOG.md index bf17fdbc3b..b8bf285798 100644 --- a/packages/rstream-gestures/CHANGELOG.md +++ b/packages/rstream-gestures/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. +## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.8...@thi.ng/rstream-gestures@2.0.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-gestures + + + + + +## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.7...@thi.ng/rstream-gestures@2.0.8) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-gestures + + + + + ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-gestures@2.0.6...@thi.ng/rstream-gestures@2.0.7) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-gestures diff --git a/packages/rstream-gestures/README.md b/packages/rstream-gestures/README.md index dd4b3fb6fc..84d1db668b 100644 --- a/packages/rstream-gestures/README.md +++ b/packages/rstream-gestures/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-gestures](https://media.thi.ng/umbrella/banners/thing-rstream-gestures.svg?1585427422) +# ![rstream-gestures](https://media.thi.ng/umbrella/banners/thing-rstream-gestures.svg?ecc08f1c) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-gestures.svg)](https://www.npmjs.com/package/@thi.ng/rstream-gestures) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-gestures.svg) @@ -44,7 +44,7 @@ rewrite of `gestureStream()` and new event data formats. yarn add @thi.ng/rstream-gestures ``` -Package sizes (gzipped): ESM: 1.20 KB / CJS: 1.25 KB / UMD: 1.32 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.22 KB / CJS: 1.27 KB / UMD: 1.34 KB ## Dependencies diff --git a/packages/rstream-gestures/package.json b/packages/rstream-gestures/package.json index 037cd0b28e..d234875bac 100644 --- a/packages/rstream-gestures/package.json +++ b/packages/rstream-gestures/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-gestures", - "version": "2.0.7", + "version": "2.0.9", "description": "Unified mouse, mouse wheel & multi-touch event stream abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/math": "^1.7.4", - "@thi.ng/rstream": "^4.0.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/math": "^1.7.5", + "@thi.ng/rstream": "^4.0.2", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-gestures/src/api.ts b/packages/rstream-gestures/src/api.ts index 4943988ca0..58883f72af 100644 --- a/packages/rstream-gestures/src/api.ts +++ b/packages/rstream-gestures/src/api.ts @@ -1,11 +1,11 @@ import type { IID } from "@thi.ng/api"; -export const enum GestureType { +export enum GestureType { START, MOVE, DRAG, END, - ZOOM + ZOOM, } export interface GestureInfo { diff --git a/packages/rstream-gestures/test/tsconfig.json b/packages/rstream-gestures/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream-gestures/test/tsconfig.json +++ b/packages/rstream-gestures/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream-graph/CHANGELOG.md b/packages/rstream-graph/CHANGELOG.md index cbd6c38586..8b976dc528 100644 --- a/packages/rstream-graph/CHANGELOG.md +++ b/packages/rstream-graph/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. +## [3.2.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.9...@thi.ng/rstream-graph@3.2.10) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-graph + + + + + +## [3.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.8...@thi.ng/rstream-graph@3.2.9) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-graph + + + + + ## [3.2.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-graph@3.2.7...@thi.ng/rstream-graph@3.2.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-graph diff --git a/packages/rstream-graph/README.md b/packages/rstream-graph/README.md index 842c08459e..ca5c5d4837 100644 --- a/packages/rstream-graph/README.md +++ b/packages/rstream-graph/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-graph](https://media.thi.ng/umbrella/banners/thing-rstream-graph.svg?1585427430) +# ![rstream-graph](https://media.thi.ng/umbrella/banners/thing-rstream-graph.svg?da9042c8) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-graph.svg)](https://www.npmjs.com/package/@thi.ng/rstream-graph) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-graph.svg) @@ -46,7 +46,7 @@ these and keep any cycles async). yarn add @thi.ng/rstream-graph ``` -Package sizes (gzipped): ESM: 1.01 KB / CJS: 1.11 KB / UMD: 1.14 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.02 KB / CJS: 1.12 KB / UMD: 1.16 KB ## Dependencies diff --git a/packages/rstream-graph/package.json b/packages/rstream-graph/package.json index 6320e8bbbf..f28b37fb2f 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.8", + "version": "3.2.10", "description": "Declarative dataflow graph construction for @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -31,20 +31,20 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/paths": "^4.0.0", - "@thi.ng/resolve-map": "^4.1.16", - "@thi.ng/rstream": "^4.0.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/paths": "^4.0.1", + "@thi.ng/resolve-map": "^4.1.17", + "@thi.ng/rstream": "^4.0.2", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-graph/test/tsconfig.json b/packages/rstream-graph/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream-graph/test/tsconfig.json +++ b/packages/rstream-graph/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream-log-file/CHANGELOG.md b/packages/rstream-log-file/CHANGELOG.md index a122be81a9..9c6cddd709 100644 --- a/packages/rstream-log-file/CHANGELOG.md +++ b/packages/rstream-log-file/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. +## [0.1.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.31...@thi.ng/rstream-log-file@0.1.32) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-log-file + + + + + +## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.30...@thi.ng/rstream-log-file@0.1.31) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-log-file + + + + + ## [0.1.30](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log-file@0.1.29...@thi.ng/rstream-log-file@0.1.30) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-log-file diff --git a/packages/rstream-log-file/README.md b/packages/rstream-log-file/README.md index f42701ca40..560bb76cb0 100644 --- a/packages/rstream-log-file/README.md +++ b/packages/rstream-log-file/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-log-file](https://media.thi.ng/umbrella/banners/thing-rstream-log-file.svg?1585427430) +# ![rstream-log-file](https://media.thi.ng/umbrella/banners/thing-rstream-log-file.svg?673a4b35) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-log-file.svg)](https://www.npmjs.com/package/@thi.ng/rstream-log-file) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-log-file.svg) @@ -31,7 +31,7 @@ File output handler for structured, multilevel & hierarchical loggers based on [ yarn add @thi.ng/rstream-log-file ``` -Package sizes (gzipped): ESM: 129 bytes / CJS: 182 bytes / UMD: 282 bytes +Package sizes (gzipped, pre-treeshake): ESM: 129 bytes / CJS: 182 bytes / UMD: 282 bytes ## Dependencies diff --git a/packages/rstream-log-file/package.json b/packages/rstream-log-file/package.json index 02ba293da1..a6d0e04581 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.30", + "version": "0.1.32", "description": "File output handler for structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/rstream": "^4.0.0", + "@thi.ng/rstream": "^4.0.2", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-log-file/test/tsconfig.json b/packages/rstream-log-file/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/rstream-log-file/test/tsconfig.json +++ b/packages/rstream-log-file/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/rstream-log/CHANGELOG.md b/packages/rstream-log/CHANGELOG.md index cf0d551da7..a2d445ecac 100644 --- a/packages/rstream-log/CHANGELOG.md +++ b/packages/rstream-log/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. +## [3.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.16...@thi.ng/rstream-log@3.1.17) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-log + + + + + +## [3.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.15...@thi.ng/rstream-log@3.1.16) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-log + + + + + ## [3.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-log@3.1.14...@thi.ng/rstream-log@3.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-log diff --git a/packages/rstream-log/README.md b/packages/rstream-log/README.md index 0c6383f74d..686600e9c4 100644 --- a/packages/rstream-log/README.md +++ b/packages/rstream-log/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-log](https://media.thi.ng/umbrella/banners/thing-rstream-log.svg?1585427430) +# ![rstream-log](https://media.thi.ng/umbrella/banners/thing-rstream-log.svg?8716f5ff) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-log.svg)](https://www.npmjs.com/package/@thi.ng/rstream-log) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-log.svg) @@ -46,7 +46,7 @@ filtering. yarn add @thi.ng/rstream-log ``` -Package sizes (gzipped): ESM: 724 bytes / CJS: 852 bytes / UMD: 907 bytes +Package sizes (gzipped, pre-treeshake): ESM: 736 bytes / CJS: 863 bytes / UMD: 917 bytes ## Dependencies diff --git a/packages/rstream-log/package.json b/packages/rstream-log/package.json index 27a8ebc37b..6dfc30b3f0 100644 --- a/packages/rstream-log/package.json +++ b/packages/rstream-log/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream-log", - "version": "3.1.15", + "version": "3.1.17", "description": "Structured, multilevel & hierarchical loggers based on @thi.ng/rstream", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/rstream": "^4.0.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/rstream": "^4.0.2", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-log/test/tsconfig.json b/packages/rstream-log/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream-log/test/tsconfig.json +++ b/packages/rstream-log/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream-query/CHANGELOG.md b/packages/rstream-query/CHANGELOG.md index 76b40be2a0..45629d8618 100644 --- a/packages/rstream-query/CHANGELOG.md +++ b/packages/rstream-query/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.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.16...@thi.ng/rstream-query@1.1.17) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream-query + + + + + +## [1.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.15...@thi.ng/rstream-query@1.1.16) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream-query + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream-query@1.1.14...@thi.ng/rstream-query@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/rstream-query diff --git a/packages/rstream-query/README.md b/packages/rstream-query/README.md index 04b947ac4a..fdf4d4e34b 100644 --- a/packages/rstream-query/README.md +++ b/packages/rstream-query/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream-query](https://media.thi.ng/umbrella/banners/thing-rstream-query.svg?1585427439) +# ![rstream-query](https://media.thi.ng/umbrella/banners/thing-rstream-query.svg?d86a1f6b) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-query.svg)](https://www.npmjs.com/package/@thi.ng/rstream-query) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-query.svg) @@ -66,7 +66,7 @@ this time built on the streaming primitives provided by yarn add @thi.ng/rstream-query ``` -Package sizes (gzipped): ESM: 2.65 KB / CJS: 2.73 KB / UMD: 2.60 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.66 KB / CJS: 2.75 KB / UMD: 2.62 KB ## Dependencies diff --git a/packages/rstream-query/package.json b/packages/rstream-query/package.json index fc6a47e2e6..ade828ec2c 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.15", + "version": "1.1.17", "description": "@thi.ng/rstream based triple store & reactive query engine", "module": "./index.js", "main": "./lib/index.js", @@ -31,22 +31,22 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/associative": "^4.0.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/math": "^1.7.4", - "@thi.ng/rstream": "^4.0.0", - "@thi.ng/rstream-dot": "^1.1.15", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/associative": "^4.0.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/rstream": "^4.0.2", + "@thi.ng/rstream-dot": "^1.1.17", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream-query/test/tsconfig.json b/packages/rstream-query/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream-query/test/tsconfig.json +++ b/packages/rstream-query/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/rstream/CHANGELOG.md b/packages/rstream/CHANGELOG.md index 3cf435caf1..118ab4e76f 100644 --- a/packages/rstream/CHANGELOG.md +++ b/packages/rstream/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. +## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@4.0.1...@thi.ng/rstream@4.0.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/rstream + + + + + +## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@4.0.0...@thi.ng/rstream@4.0.1) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/rstream + + + + + # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/rstream@3.0.7...@thi.ng/rstream@4.0.0) (2020-03-28) diff --git a/packages/rstream/README.md b/packages/rstream/README.md index d0b2a268b2..55ee54c7c5 100644 --- a/packages/rstream/README.md +++ b/packages/rstream/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/rstream](https://media.thi.ng/umbrella/banners/thing-rstream.svg?1585427410) +# ![rstream](https://media.thi.ng/umbrella/banners/thing-rstream.svg?ab63c74c) [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream.svg)](https://www.npmjs.com/package/@thi.ng/rstream) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream.svg) @@ -128,7 +128,7 @@ options](#common-configuration-options) for further details. yarn add @thi.ng/rstream ``` -Package sizes (gzipped): ESM: 5.05 KB / CJS: 5.22 KB / UMD: 5.13 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.09 KB / CJS: 5.27 KB / UMD: 5.21 KB ## Dependencies diff --git a/packages/rstream/package.json b/packages/rstream/package.json index e9cbf122c6..87c6668c7c 100644 --- a/packages/rstream/package.json +++ b/packages/rstream/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/rstream", - "version": "4.0.0", + "version": "4.0.2", "description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines", "module": "./index.js", "main": "./lib/index.js", @@ -31,20 +31,20 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/associative": "^4.0.0", - "@thi.ng/atom": "^4.0.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/paths": "^4.0.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/associative": "^4.0.1", + "@thi.ng/atom": "^4.1.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/paths": "^4.0.1", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/rstream/src/api.ts b/packages/rstream/src/api.ts index 785d4866c5..f57147234b 100644 --- a/packages/rstream/src/api.ts +++ b/packages/rstream/src/api.ts @@ -1,27 +1,21 @@ import { NULL_LOGGER } from "@thi.ng/api"; import { Stream } from "./stream"; import { Subscription } from "./subscription"; -import type { - Fn, - Fn0, - IDeref, - IID, - ILogger -} from "@thi.ng/api"; +import type { Fn, Fn0, IDeref, IID, ILogger } from "@thi.ng/api"; import type { Transducer } from "@thi.ng/transducers"; -export const enum State { +export enum State { IDLE, ACTIVE, DONE, ERROR, - DISABLED // TODO currently unused + DISABLED, // TODO currently unused } /** * Closing behaviors. */ -export const enum CloseMode { +export enum CloseMode { /** * Never close, even if no more inputs/outputs. */ @@ -33,7 +27,7 @@ export const enum CloseMode { /** * Close when last input/output is done / removed. */ - LAST + LAST, } /** diff --git a/packages/rstream/test/tsconfig.json b/packages/rstream/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/rstream/test/tsconfig.json +++ b/packages/rstream/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/sax/CHANGELOG.md b/packages/sax/CHANGELOG.md index 1a764eb0e1..419350f602 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.15...@thi.ng/sax@1.1.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/sax + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/sax@1.1.14...@thi.ng/sax@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/sax diff --git a/packages/sax/README.md b/packages/sax/README.md index 3a611b10ba..e35512116d 100644 --- a/packages/sax/README.md +++ b/packages/sax/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/sax](https://media.thi.ng/umbrella/banners/thing-sax.svg?1585427401) +# ![sax](https://media.thi.ng/umbrella/banners/thing-sax.svg?ef8cfa3b) [![npm version](https://img.shields.io/npm/v/@thi.ng/sax.svg)](https://www.npmjs.com/package/@thi.ng/sax) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/sax.svg) @@ -60,7 +60,7 @@ well (see SVG parsing example further below). The choice is yours! yarn add @thi.ng/sax ``` -Package sizes (gzipped): ESM: 1.93 KB / CJS: 1.98 KB / UMD: 2.07 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.01 KB / CJS: 2.06 KB / UMD: 2.14 KB ## Dependencies diff --git a/packages/sax/package.json b/packages/sax/package.json index 686d75aa3d..926469c370 100644 --- a/packages/sax/package.json +++ b/packages/sax/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sax", - "version": "1.1.15", + "version": "1.1.16", "description": "Transducer-based, SAX-like, non-validating, speedy & tiny XML parser", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/transducers-fsm": "^1.1.15", + "@thi.ng/api": "^6.9.1", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/transducers-fsm": "^1.1.16", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/sax/test/tsconfig.json b/packages/sax/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/sax/test/tsconfig.json +++ b/packages/sax/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/scenegraph/CHANGELOG.md b/packages/scenegraph/CHANGELOG.md index cc5d5f2c86..690e4bdeba 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.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.1.8...@thi.ng/scenegraph@0.1.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/scenegraph + + + + + ## [0.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/scenegraph@0.1.7...@thi.ng/scenegraph@0.1.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/scenegraph diff --git a/packages/scenegraph/README.md b/packages/scenegraph/README.md index 4409a9537b..b0e4aa5b7b 100644 --- a/packages/scenegraph/README.md +++ b/packages/scenegraph/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/scenegraph](https://media.thi.ng/umbrella/banners/thing-scenegraph.svg?1585427421) +# ![scenegraph](https://media.thi.ng/umbrella/banners/thing-scenegraph.svg?af3d7fd5) [![npm version](https://img.shields.io/npm/v/@thi.ng/scenegraph.svg)](https://www.npmjs.com/package/@thi.ng/scenegraph) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/scenegraph.svg) @@ -32,7 +32,7 @@ Extensible 2D/3D scene graph with [@thi.ng/hdom-canvas](https://github.com/thi-n yarn add @thi.ng/scenegraph ``` -Package sizes (gzipped): ESM: 779 bytes / CJS: 822 bytes / UMD: 927 bytes +Package sizes (gzipped, pre-treeshake): ESM: 779 bytes / CJS: 822 bytes / UMD: 927 bytes ## Dependencies diff --git a/packages/scenegraph/package.json b/packages/scenegraph/package.json index 6a3adcbca3..b43980cfd6 100644 --- a/packages/scenegraph/package.json +++ b/packages/scenegraph/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/scenegraph", - "version": "0.1.8", + "version": "0.1.9", "description": "Extensible 2D/3D scene graph with @thi.ng/hdom-canvas support", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/matrices": "^0.6.5", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/matrices": "^0.6.6", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/scenegraph/test/tsconfig.json b/packages/scenegraph/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/scenegraph/test/tsconfig.json +++ b/packages/scenegraph/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/seq/CHANGELOG.md b/packages/seq/CHANGELOG.md index 0975ece28e..c8a0be5d1e 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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.6...@thi.ng/seq@0.2.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/seq + + + + + ## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/seq@0.2.5...@thi.ng/seq@0.2.6) (2020-03-28) **Note:** Version bump only for package @thi.ng/seq diff --git a/packages/seq/README.md b/packages/seq/README.md index a0179f26b6..1d33b62d9d 100644 --- a/packages/seq/README.md +++ b/packages/seq/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/seq](https://media.thi.ng/umbrella/banners/thing-seq.svg?1585427334) +# ![seq](https://media.thi.ng/umbrella/banners/thing-seq.svg?323fc66f) [![npm version](https://img.shields.io/npm/v/@thi.ng/seq.svg)](https://www.npmjs.com/package/@thi.ng/seq) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/seq.svg) @@ -44,7 +44,7 @@ the remaining values at their own pace. yarn add @thi.ng/seq ``` -Package sizes (gzipped): ESM: 537 bytes / CJS: 623 bytes / UMD: 669 bytes +Package sizes (gzipped, pre-treeshake): ESM: 537 bytes / CJS: 623 bytes / UMD: 669 bytes ## Dependencies diff --git a/packages/seq/package.json b/packages/seq/package.json index 14e6a57275..83501a044f 100644 --- a/packages/seq/package.json +++ b/packages/seq/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/seq", - "version": "0.2.6", + "version": "0.2.7", "description": "Various implementations of the @thi.ng/api `ISeq` interface / sequence abstraction", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/seq/test/tsconfig.json b/packages/seq/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/seq/test/tsconfig.json +++ b/packages/seq/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/sexpr/CHANGELOG.md b/packages/sexpr/CHANGELOG.md index f7f8260ff1..2bbfa7779b 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.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.9...@thi.ng/sexpr@0.2.10) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/sexpr + + + + + ## [0.2.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/sexpr@0.2.8...@thi.ng/sexpr@0.2.9) (2020-03-28) **Note:** Version bump only for package @thi.ng/sexpr diff --git a/packages/sexpr/README.md b/packages/sexpr/README.md index a39702b895..c223d8d1bd 100644 --- a/packages/sexpr/README.md +++ b/packages/sexpr/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/sexpr](https://media.thi.ng/umbrella/banners/thing-sexpr.svg?1585427342) +# ![sexpr](https://media.thi.ng/umbrella/banners/thing-sexpr.svg?0424b595) [![npm version](https://img.shields.io/npm/v/@thi.ng/sexpr.svg)](https://www.npmjs.com/package/@thi.ng/sexpr) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/sexpr.svg) @@ -48,7 +48,7 @@ Everything else is parsed as is, i.e. as symbol. yarn add @thi.ng/sexpr ``` -Package sizes (gzipped): ESM: 829 bytes / CJS: 892 bytes / UMD: 976 bytes +Package sizes (gzipped, pre-treeshake): ESM: 829 bytes / CJS: 892 bytes / UMD: 976 bytes ## Dependencies diff --git a/packages/sexpr/package.json b/packages/sexpr/package.json index d9663dfe27..98e526b62e 100644 --- a/packages/sexpr/package.json +++ b/packages/sexpr/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sexpr", - "version": "0.2.9", + "version": "0.2.10", "description": "Extensible S-Expression parser & runtime infrastructure", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/defmulti": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/defmulti": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/sexpr/test/tsconfig.json b/packages/sexpr/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/sexpr/test/tsconfig.json +++ b/packages/sexpr/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/shader-ast-glsl/CHANGELOG.md b/packages/shader-ast-glsl/CHANGELOG.md index 483c7085cb..ba8a072374 100644 --- a/packages/shader-ast-glsl/CHANGELOG.md +++ b/packages/shader-ast-glsl/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. +## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.1.18...@thi.ng/shader-ast-glsl@0.1.19) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/shader-ast-glsl + + + + + +## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.1.17...@thi.ng/shader-ast-glsl@0.1.18) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/shader-ast-glsl + + + + + ## [0.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-glsl@0.1.16...@thi.ng/shader-ast-glsl@0.1.17) (2020-03-28) **Note:** Version bump only for package @thi.ng/shader-ast-glsl diff --git a/packages/shader-ast-glsl/README.md b/packages/shader-ast-glsl/README.md index 6ebe79c34f..1eac80de77 100644 --- a/packages/shader-ast-glsl/README.md +++ b/packages/shader-ast-glsl/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/shader-ast-glsl](https://media.thi.ng/umbrella/banners/thing-shader-ast-glsl.svg?1585427438) +# ![shader-ast-glsl](https://media.thi.ng/umbrella/banners/thing-shader-ast-glsl.svg?5c8497f0) [![npm version](https://img.shields.io/npm/v/@thi.ng/shader-ast-glsl.svg)](https://www.npmjs.com/package/@thi.ng/shader-ast-glsl) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/shader-ast-glsl.svg) @@ -45,7 +45,7 @@ This package is also used for shader assembly by yarn add @thi.ng/shader-ast-glsl ``` -Package sizes (gzipped): ESM: 1.30 KB / CJS: 1.34 KB / UMD: 1.43 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.31 KB / CJS: 1.35 KB / UMD: 1.45 KB ## Dependencies diff --git a/packages/shader-ast-glsl/package.json b/packages/shader-ast-glsl/package.json index 5f9bd3020b..60ea4bcf55 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.1.17", + "version": "0.1.19", "description": "Customizable GLSL code generator for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/shader-ast": "^0.3.11", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/shader-ast": "^0.3.13", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/shader-ast-glsl/src/api.ts b/packages/shader-ast-glsl/src/api.ts index 57a647f167..6366e38d23 100644 --- a/packages/shader-ast-glsl/src/api.ts +++ b/packages/shader-ast-glsl/src/api.ts @@ -1,15 +1,9 @@ import type { Fn } from "@thi.ng/api"; -import type { - FloatSym, - Sym, - Term, - Vec2Sym, - Vec4Sym -} from "@thi.ng/shader-ast"; +import type { FloatSym, Sym, Term, Vec2Sym, Vec4Sym } from "@thi.ng/shader-ast"; -export const enum GLSLVersion { +export enum GLSLVersion { GLES_100 = "100", - GLES_300 = "300 es" + GLES_300 = "300 es", } export interface GLSLOpts { diff --git a/packages/shader-ast-glsl/test/tsconfig.json b/packages/shader-ast-glsl/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/shader-ast-glsl/test/tsconfig.json +++ b/packages/shader-ast-glsl/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/shader-ast-js/CHANGELOG.md b/packages/shader-ast-js/CHANGELOG.md index bbc4254803..3b86f5bad3 100644 --- a/packages/shader-ast-js/CHANGELOG.md +++ b/packages/shader-ast-js/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. +## [0.4.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.4.11...@thi.ng/shader-ast-js@0.4.12) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/shader-ast-js + + + + + +## [0.4.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.4.10...@thi.ng/shader-ast-js@0.4.11) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/shader-ast-js + + + + + ## [0.4.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-js@0.4.9...@thi.ng/shader-ast-js@0.4.10) (2020-03-28) **Note:** Version bump only for package @thi.ng/shader-ast-js diff --git a/packages/shader-ast-js/README.md b/packages/shader-ast-js/README.md index 8af99034c7..b0389b5029 100644 --- a/packages/shader-ast-js/README.md +++ b/packages/shader-ast-js/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/shader-ast-js](https://media.thi.ng/umbrella/banners/thing-shader-ast-js.svg?1585427439) +# ![shader-ast-js](https://media.thi.ng/umbrella/banners/thing-shader-ast-js.svg?aeb21a95) [![npm version](https://img.shields.io/npm/v/@thi.ng/shader-ast-js.svg)](https://www.npmjs.com/package/@thi.ng/shader-ast-js) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/shader-ast-js.svg) @@ -59,7 +59,7 @@ which altogether provide ~750 optimized vector/matrix functions. yarn add @thi.ng/shader-ast-js ``` -Package sizes (gzipped): ESM: 4.90 KB / CJS: 4.45 KB / UMD: 4.39 KB +Package sizes (gzipped, pre-treeshake): ESM: 4.90 KB / CJS: 4.45 KB / UMD: 4.39 KB ## Dependencies diff --git a/packages/shader-ast-js/package.json b/packages/shader-ast-js/package.json index 9ebdb037c0..bfe69c1890 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.4.10", + "version": "0.4.12", "description": "Customizable JS code generator, compiler & runtime for @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -31,21 +31,21 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/math": "^1.7.4", - "@thi.ng/matrices": "^0.6.5", - "@thi.ng/pixel": "^0.1.13", - "@thi.ng/shader-ast": "^0.3.11", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/matrices": "^0.6.6", + "@thi.ng/pixel": "^0.1.14", + "@thi.ng/shader-ast": "^0.3.13", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/shader-ast-js/test/tsconfig.json b/packages/shader-ast-js/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/shader-ast-js/test/tsconfig.json +++ b/packages/shader-ast-js/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/shader-ast-stdlib/CHANGELOG.md b/packages/shader-ast-stdlib/CHANGELOG.md index 0ec2cfd564..2e1da2c996 100644 --- a/packages/shader-ast-stdlib/CHANGELOG.md +++ b/packages/shader-ast-stdlib/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. +## [0.3.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.3.11...@thi.ng/shader-ast-stdlib@0.3.12) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/shader-ast-stdlib + + + + + +## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.3.10...@thi.ng/shader-ast-stdlib@0.3.11) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/shader-ast-stdlib + + + + + ## [0.3.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.3.9...@thi.ng/shader-ast-stdlib@0.3.10) (2020-03-28) **Note:** Version bump only for package @thi.ng/shader-ast-stdlib diff --git a/packages/shader-ast-stdlib/README.md b/packages/shader-ast-stdlib/README.md index c6181d3299..ab773c8b61 100644 --- a/packages/shader-ast-stdlib/README.md +++ b/packages/shader-ast-stdlib/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/shader-ast-stdlib](https://media.thi.ng/umbrella/banners/thing-shader-ast-stdlib.svg?1585427438) +# ![shader-ast-stdlib](https://media.thi.ng/umbrella/banners/thing-shader-ast-stdlib.svg?90bb68ee) [![npm version](https://img.shields.io/npm/v/@thi.ng/shader-ast-stdlib.svg)](https://www.npmjs.com/package/@thi.ng/shader-ast-stdlib) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/shader-ast-stdlib.svg) @@ -80,7 +80,7 @@ Reference: yarn add @thi.ng/shader-ast-stdlib ``` -Package sizes (gzipped): ESM: 5.76 KB / CJS: 6.53 KB / UMD: 5.99 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.76 KB / CJS: 6.53 KB / UMD: 5.99 KB ## Dependencies diff --git a/packages/shader-ast-stdlib/package.json b/packages/shader-ast-stdlib/package.json index 286559475a..bfcfcf9106 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.3.10", + "version": "0.3.12", "description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -31,14 +31,14 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/shader-ast": "^0.3.11", + "@thi.ng/shader-ast": "^0.3.13", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/shader-ast-stdlib/test/tsconfig.json b/packages/shader-ast-stdlib/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/shader-ast-stdlib/test/tsconfig.json +++ b/packages/shader-ast-stdlib/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/shader-ast/CHANGELOG.md b/packages/shader-ast/CHANGELOG.md index d1b9248412..87972315d1 100644 --- a/packages/shader-ast/CHANGELOG.md +++ b/packages/shader-ast/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. +## [0.3.13](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.3.12...@thi.ng/shader-ast@0.3.13) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/shader-ast + + + + + +## [0.3.12](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.3.11...@thi.ng/shader-ast@0.3.12) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/shader-ast + + + + + ## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast@0.3.10...@thi.ng/shader-ast@0.3.11) (2020-03-28) **Note:** Version bump only for package @thi.ng/shader-ast diff --git a/packages/shader-ast/README.md b/packages/shader-ast/README.md index f2880aeeb2..670b848f57 100644 --- a/packages/shader-ast/README.md +++ b/packages/shader-ast/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/shader-ast](https://media.thi.ng/umbrella/banners/thing-shader-ast.svg?1585427421) +# ![shader-ast](https://media.thi.ng/umbrella/banners/thing-shader-ast.svg?c7d40d61) [![npm version](https://img.shields.io/npm/v/@thi.ng/shader-ast.svg)](https://www.npmjs.com/package/@thi.ng/shader-ast) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/shader-ast.svg) @@ -174,7 +174,7 @@ status. The TL;DR list... yarn add @thi.ng/shader-ast ``` -Package sizes (gzipped): ESM: 4.66 KB / CJS: 5.19 KB / UMD: 4.63 KB +Package sizes (gzipped, pre-treeshake): ESM: 4.66 KB / CJS: 5.19 KB / UMD: 4.63 KB ## Dependencies diff --git a/packages/shader-ast/package.json b/packages/shader-ast/package.json index e14bf550d5..8d554cb581 100644 --- a/packages/shader-ast/package.json +++ b/packages/shader-ast/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/shader-ast", - "version": "0.3.11", + "version": "0.3.13", "description": "DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/defmulti": "^1.2.8", - "@thi.ng/dgraph": "^1.1.25", - "@thi.ng/errors": "^1.2.8", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/defmulti": "^1.2.9", + "@thi.ng/dgraph": "^1.2.1", + "@thi.ng/errors": "^1.2.9", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/shader-ast/test/tsconfig.json b/packages/shader-ast/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/shader-ast/test/tsconfig.json +++ b/packages/shader-ast/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/simd/CHANGELOG.md b/packages/simd/CHANGELOG.md index 1b47b0b69b..f23396dcb4 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.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.1.9...@thi.ng/simd@0.1.10) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/simd + + + + + ## [0.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/simd@0.1.8...@thi.ng/simd@0.1.9) (2020-03-28) **Note:** Version bump only for package @thi.ng/simd diff --git a/packages/simd/README.md b/packages/simd/README.md index 5db53572b9..9fb20c2660 100644 --- a/packages/simd/README.md +++ b/packages/simd/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/simd](https://media.thi.ng/umbrella/banners/thing-simd.svg?1585427390) +# ![simd](https://media.thi.ng/umbrella/banners/thing-simd.svg?083d98e4) [![npm version](https://img.shields.io/npm/v/@thi.ng/simd.svg)](https://www.npmjs.com/package/@thi.ng/simd) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/simd.svg) @@ -95,7 +95,7 @@ hidden behind feature flags. yarn add @thi.ng/simd ``` -Package sizes (gzipped): ESM: 2.28 KB / CJS: 2.34 KB / UMD: 2.45 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.28 KB / CJS: 2.34 KB / UMD: 2.45 KB ## Dependencies diff --git a/packages/simd/package.json b/packages/simd/package.json index f5c0afd515..acb86c21ac 100644 --- a/packages/simd/package.json +++ b/packages/simd/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/simd", - "version": "0.1.9", + "version": "0.1.10", "description": "WASM based SIMD vector operations for batch processing", "module": "./index.js", "main": "./lib/index.js", @@ -34,16 +34,16 @@ "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", "assemblyscript": "^0.9.2", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/transducers-binary": "^0.5.5", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/transducers-binary": "^0.5.6", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/simd/test/tsconfig.json b/packages/simd/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/simd/test/tsconfig.json +++ b/packages/simd/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/soa/CHANGELOG.md b/packages/soa/CHANGELOG.md index 70a77a30d3..83c5117466 100644 --- a/packages/soa/CHANGELOG.md +++ b/packages/soa/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.9...@thi.ng/soa@0.1.10) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/soa + + + + + ## [0.1.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/soa@0.1.8...@thi.ng/soa@0.1.9) (2020-03-28) **Note:** Version bump only for package @thi.ng/soa diff --git a/packages/soa/README.md b/packages/soa/README.md index c41a1966ef..0a4440bc1b 100644 --- a/packages/soa/README.md +++ b/packages/soa/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/soa](https://media.thi.ng/umbrella/banners/thing-soa.svg?1585427400) +# ![soa](https://media.thi.ng/umbrella/banners/thing-soa.svg?466a113a) [![npm version](https://img.shields.io/npm/v/@thi.ng/soa.svg)](https://www.npmjs.com/package/@thi.ng/soa) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/soa.svg) @@ -44,7 +44,7 @@ by yarn add @thi.ng/soa ``` -Package sizes (gzipped): ESM: 1.44 KB / CJS: 1.51 KB / UMD: 1.60 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.45 KB / CJS: 1.52 KB / UMD: 1.60 KB ## Dependencies diff --git a/packages/soa/package.json b/packages/soa/package.json index 8d6c68f0e1..352ba582b4 100644 --- a/packages/soa/package.json +++ b/packages/soa/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/soa", - "version": "0.1.9", + "version": "0.1.10", "description": "SOA & AOS memory mapped structured views with optional & extensible serialization", "module": "./index.js", "main": "./lib/index.js", @@ -29,20 +29,20 @@ "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", "@microsoft/api-extractor": "^7.7.8", - "@thi.ng/equiv": "^1.0.17", + "@thi.ng/equiv": "^1.0.18", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/transducers-binary": "^0.5.5", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/transducers-binary": "^0.5.6", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/soa/test/tsconfig.json b/packages/soa/test/tsconfig.json index 4cd5c34dfc..ad9243e1b4 100644 --- a/packages/soa/test/tsconfig.json +++ b/packages/soa/test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false, "noUnusedParameters": false, "noUnusedLocals": false }, diff --git a/packages/sparse/CHANGELOG.md b/packages/sparse/CHANGELOG.md index e2b0dabdac..a57d599fa7 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.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.31...@thi.ng/sparse@0.1.32) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/sparse + + + + + ## [0.1.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/sparse@0.1.30...@thi.ng/sparse@0.1.31) (2020-03-28) **Note:** Version bump only for package @thi.ng/sparse diff --git a/packages/sparse/README.md b/packages/sparse/README.md index 440b9d6225..90551e94ca 100644 --- a/packages/sparse/README.md +++ b/packages/sparse/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/sparse](https://media.thi.ng/umbrella/banners/thing-sparse.svg?1585427370) +# ![sparse](https://media.thi.ng/umbrella/banners/thing-sparse.svg?d79a46b0) [![npm version](https://img.shields.io/npm/v/@thi.ng/sparse.svg)](https://www.npmjs.com/package/@thi.ng/sparse) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/sparse.svg) @@ -31,7 +31,7 @@ Sparse vector & matrix implementations. yarn add @thi.ng/sparse ``` -Package sizes (gzipped): ESM: 3.52 KB / CJS: 3.60 KB / UMD: 3.66 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.52 KB / CJS: 3.60 KB / UMD: 3.66 KB ## Dependencies diff --git a/packages/sparse/package.json b/packages/sparse/package.json index 5a71258d97..fd3ebaaf94 100644 --- a/packages/sparse/package.json +++ b/packages/sparse/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/sparse", - "version": "0.1.31", + "version": "0.1.32", "description": "Sparse vector & matrix implementations", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/sparse/test/tsconfig.json b/packages/sparse/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/sparse/test/tsconfig.json +++ b/packages/sparse/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/strings/CHANGELOG.md b/packages/strings/CHANGELOG.md index 4bb9343e09..b6c9bc82b7 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. +## [1.8.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.8.0...@thi.ng/strings@1.8.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/strings + + + + + # [1.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/strings@1.7.0...@thi.ng/strings@1.8.0) (2020-03-28) diff --git a/packages/strings/README.md b/packages/strings/README.md index a1d5b4a19e..8df33f96bc 100644 --- a/packages/strings/README.md +++ b/packages/strings/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/strings](https://media.thi.ng/umbrella/banners/thing-strings.svg?1585427343) +# ![strings](https://media.thi.ng/umbrella/banners/thing-strings.svg?d9c5892d) [![npm version](https://img.shields.io/npm/v/@thi.ng/strings.svg)](https://www.npmjs.com/package/@thi.ng/strings) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/strings.svg) @@ -42,7 +42,7 @@ Partially based on Clojure version of [thi.ng/strf](http://thi.ng/strf). yarn add @thi.ng/strings ``` -Package sizes (gzipped): ESM: 2.32 KB / CJS: 2.55 KB / UMD: 2.42 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.32 KB / CJS: 2.55 KB / UMD: 2.42 KB ## Dependencies diff --git a/packages/strings/package.json b/packages/strings/package.json index d46fd062d3..fb7f21d1d5 100644 --- a/packages/strings/package.json +++ b/packages/strings/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/strings", - "version": "1.8.0", + "version": "1.8.1", "description": "Various string formatting & utility functions", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/memoize": "^2.0.4", + "@thi.ng/api": "^6.9.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/memoize": "^2.0.5", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/strings/test/tsconfig.json b/packages/strings/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/strings/test/tsconfig.json +++ b/packages/strings/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/system/.npmignore b/packages/system/.npmignore new file mode 100644 index 0000000000..c6f44618c9 --- /dev/null +++ b/packages/system/.npmignore @@ -0,0 +1,22 @@ +.ae +.cache +.meta +.nyc_output +*.gz +*.html +*.svg +*.tgz +*.h +*.o +*.wasm +*.tpl.md +bench +build +coverage +dev +doc +export +src* +test +tools +tsconfig.json diff --git a/packages/system/CHANGELOG.md b/packages/system/CHANGELOG.md new file mode 100644 index 0000000000..20e1083efb --- /dev/null +++ b/packages/system/CHANGELOG.md @@ -0,0 +1,30 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.2.0...@thi.ng/system@0.2.1) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/system + + + + + +# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/system@0.1.0...@thi.ng/system@0.2.0) (2020-04-03) + + +### Features + +* **system:** update ILifecycle, keep graph, add/update docs ([791c67d](https://github.com/thi-ng/umbrella/commit/791c67d446c5fae041831a16b250b5cfd62312d0)) + + + + + +# 0.1.0 (2020-04-02) + + +### Features + +* **system:** import as new pkg, add tests, readme ([709d896](https://github.com/thi-ng/umbrella/commit/709d896cee964dc876e1e53c95a3b77a00d8c433)) diff --git a/packages/system/LICENSE b/packages/system/LICENSE new file mode 100644 index 0000000000..8dada3edaf --- /dev/null +++ b/packages/system/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/system/README.md b/packages/system/README.md new file mode 100644 index 0000000000..d2bafc088b --- /dev/null +++ b/packages/system/README.md @@ -0,0 +1,200 @@ + + +# ![system](https://media.thi.ng/umbrella/banners/thing-system.svg?3fb5a02c) + +[![npm version](https://img.shields.io/npm/v/@thi.ng/system.svg)](https://www.npmjs.com/package/@thi.ng/system) +![npm downloads](https://img.shields.io/npm/dm/@thi.ng/system.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + +- [About](#about) + - [Status](#status) +- [Installation](#installation) +- [Dependencies](#dependencies) +- [API](#api) + - [Example system](#example-system) + - [System visualization](#system-visualization) +- [Authors](#authors) +- [License](#license) + +## About + +Minimal DI / life cycle container for stateful app components. + +Inspired by Stuart Sierra's +[component](https://github.com/stuartsierra/component) framework for +Clojure/ClojureScript. + +### Status + +**ALPHA** - bleeding edge / work-in-progress + +## Installation + +```bash +yarn add @thi.ng/system +``` + +Package sizes (gzipped, pre-treeshake): ESM: 415 bytes / CJS: 471 bytes / UMD: 570 bytes + +## Dependencies + +- [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api) +- [@thi.ng/dgraph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph) +- [tslib](https://github.com/thi-ng/umbrella/tree/develop/packages/undefined) + +## API + +[Generated API docs](https://docs.thi.ng/umbrella/system/) + +TODO + +### Example system + +```ts +import { defSystem, ILifecycle } from "@thi.ng/system"; + +// Step 1: Define the structure / components of your system + +interface FooSys { + db: DB; + cache: Cache; + logger: Logger; + dummy: ILifecycle; +} + +// Step 2: Provide component implementations +// Components can be classes or any object implementing the +// `ILifecycle` interface... + +class Logger implements ILifecycle { + info(msg: string) { + console.log(`[info] ${msg}`); + } + async start() { + this.info("start logger"); + return true; + } + async stop() { + this.info("stop logger"); + return true; + } +} + +// DB requires a logger & cache + +class DB implements ILifecycle { + constructor(protected logger: Logger, protected cache: Cache) {} + + async start() { + this.logger.info("start db"); + return true; + } + async stop() { + this.logger.info("stop db"); + return true; + } +} + +class Cache implements ILifecycle { + constructor(protected logger: Logger) {} + + async start() { + this.logger.info("start cache"); + return true; + } + async stop() { + this.logger.info("stop cache"); + return true; + } +} + +// Step 3: Define system & component dependencies +// This will initialize all components in dependency order + +// - All arg types and dependency IDs are inferred / type checked +// - `System` itself implements `ILifecycle`, so can be used to form +// nested systems + +const FOO = defSystem({ + db: { + factory: (deps) => new DB(deps.logger, deps.state), + deps: ["logger", "state"], + }, + logger: { factory: () => new Logger() }, + cache: { + factory: ({ logger }) => new Cache(logger), + deps: ["logger"], + }, + + dummy: { + factory: ({ logger }) => ({ + async start() { + logger.info("start dummy"); + return true; + }, + async stop() { + logger.info("stop dummy"); + return true; + }, + }), + deps: ["logger"] + } +}); + +// Step 4: Asynchronously start all components in dependency order +FOO.start(); +// [info] start logger +// [info] start cache +// [info] start dummy +// [info] start db + +// Step 5 (optional): Async shutdown all (in reverse order) +FOO.stop(); +// [info] stop db +// [info] stop dummy +// [info] stop cache +// [info] stop logger + +// Calls stop() & if successful followed by start() +FOO.reset(); +``` + +### System visualization + +In order for a `System` to initialize its components in the correct order, an internal [dependency graph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph) is constructed. This graph not required any further after system construction, however can be useful for debugging and documentation purposes. + +For example, we can utilize the +[@thi.ng/dgraph-dot](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph-dot) +package to create [Graphviz](https://graphviz.org) source file to +visualize the dependencies between the system's components. + +```ts +import { toDot } from "@thi.ng/dgraph-dot"; + +console.log(toDot(FOO.graph, { id: (node) => node })); +// digraph g { +// "db"[label="db"]; +// "logger"[label="logger"]; +// "state"[label="state"]; +// "dummy"[label="dummy"]; +// "db" -> "logger"; +// "db" -> "state"; +// "state" -> "logger"; +// "dummy" -> "logger"; +// } +``` + +Resulting visualization: + +![graphviz output](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/system/basic.png) + +## Authors + +Karsten Schmidt + +## License + +© 2020 Karsten Schmidt // Apache Software License 2.0 diff --git a/packages/system/README.tpl.md b/packages/system/README.tpl.md new file mode 100644 index 0000000000..1174f2c67a --- /dev/null +++ b/packages/system/README.tpl.md @@ -0,0 +1,194 @@ +# ${pkg.banner} + +[![npm version](https://img.shields.io/npm/v/${pkg.name}.svg)](https://www.npmjs.com/package/${pkg.name}) +![npm downloads](https://img.shields.io/npm/dm/${pkg.name}.svg) +[![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella) + +This project is part of the +[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo. + + + +## About + +${pkg.description} + +Inspired by Stuart Sierra's +[component](https://github.com/stuartsierra/component) framework for +Clojure/ClojureScript. + +${status} + +${supportPackages} + +${relatedPackages} + +${blogPosts} + +## Installation + +```bash +yarn add ${pkg.name} +``` + +${pkg.size} + +## Dependencies + +${pkg.deps} + +${examples} + +## API + +${docLink} + +TODO + +### Example system + +```ts +import { defSystem, ILifecycle } from "@thi.ng/system"; + +// Step 1: Define the structure / components of your system + +interface FooSys { + db: DB; + cache: Cache; + logger: Logger; + dummy: ILifecycle; +} + +// Step 2: Provide component implementations +// Components can be classes or any object implementing the +// `ILifecycle` interface... + +class Logger implements ILifecycle { + info(msg: string) { + console.log(`[info] ${msg}`); + } + async start() { + this.info("start logger"); + return true; + } + async stop() { + this.info("stop logger"); + return true; + } +} + +// DB requires a logger & cache + +class DB implements ILifecycle { + constructor(protected logger: Logger, protected cache: Cache) {} + + async start() { + this.logger.info("start db"); + return true; + } + async stop() { + this.logger.info("stop db"); + return true; + } +} + +class Cache implements ILifecycle { + constructor(protected logger: Logger) {} + + async start() { + this.logger.info("start cache"); + return true; + } + async stop() { + this.logger.info("stop cache"); + return true; + } +} + +// Step 3: Define system & component dependencies +// This will initialize all components in dependency order + +// - All arg types and dependency IDs are inferred / type checked +// - `System` itself implements `ILifecycle`, so can be used to form +// nested systems + +const FOO = defSystem({ + db: { + factory: (deps) => new DB(deps.logger, deps.state), + deps: ["logger", "state"], + }, + logger: { factory: () => new Logger() }, + cache: { + factory: ({ logger }) => new Cache(logger), + deps: ["logger"], + }, + + dummy: { + factory: ({ logger }) => ({ + async start() { + logger.info("start dummy"); + return true; + }, + async stop() { + logger.info("stop dummy"); + return true; + }, + }), + deps: ["logger"] + } +}); + +// Step 4: Asynchronously start all components in dependency order +FOO.start(); +// [info] start logger +// [info] start cache +// [info] start dummy +// [info] start db + +// Step 5 (optional): Async shutdown all (in reverse order) +FOO.stop(); +// [info] stop db +// [info] stop dummy +// [info] stop cache +// [info] stop logger + +// Calls stop() & if successful followed by start() +FOO.reset(); +``` + +### System visualization + +In order for a `System` to initialize its components in the correct order, an internal [dependency graph](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph) is constructed. This graph not required any further after system construction, however can be useful for debugging and documentation purposes. + +For example, we can utilize the +[@thi.ng/dgraph-dot](https://github.com/thi-ng/umbrella/tree/develop/packages/dgraph-dot) +package to create [Graphviz](https://graphviz.org) source file to +visualize the dependencies between the system's components. + +```ts +import { toDot } from "@thi.ng/dgraph-dot"; + +console.log(toDot(FOO.graph, { id: (node) => node })); +// digraph g { +// "db"[label="db"]; +// "logger"[label="logger"]; +// "state"[label="state"]; +// "dummy"[label="dummy"]; +// "db" -> "logger"; +// "db" -> "state"; +// "state" -> "logger"; +// "dummy" -> "logger"; +// } +``` + +Resulting visualization: + +![graphviz output](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/system/basic.png) + +## Authors + +${authors} + +## License + +© ${copyright} // ${license} diff --git a/packages/system/api-extractor.json b/packages/system/api-extractor.json new file mode 100644 index 0000000000..94972e6bed --- /dev/null +++ b/packages/system/api-extractor.json @@ -0,0 +1,3 @@ +{ + "extends": "../../api-extractor.json" +} diff --git a/packages/system/package.json b/packages/system/package.json new file mode 100644 index 0000000000..3afcd47d7a --- /dev/null +++ b/packages/system/package.json @@ -0,0 +1,61 @@ +{ + "name": "@thi.ng/system", + "version": "0.2.1", + "description": "Minimal DI / life cycle container for stateful app components", + "module": "./index.js", + "main": "./lib/index.js", + "umd:main": "./lib/index.umd.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/thi-ng/umbrella.git" + }, + "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/system", + "author": "Karsten Schmidt ", + "license": "Apache-2.0", + "scripts": { + "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module", + "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all", + "build:es6": "tsc --declaration", + "build:test": "rimraf build && tsc -p test/tsconfig.json", + "test": "mocha test", + "cover": "nyc mocha test && nyc report --reporter=lcov", + "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", + "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", + "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", + "doc": "node_modules/.bin/typedoc --mode modules --out doc src", + "pub": "yarn build:release && yarn publish --access public" + }, + "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^1.0.1", + "@microsoft/api-extractor": "^7.7.8", + "@types/mocha": "^7.0.1", + "@types/node": "^13.7.4", + "mocha": "^7.1.1", + "nyc": "^15.0.0", + "ts-node": "^8.6.2", + "typedoc": "^0.16.10", + "typescript": "^3.8.3" + }, + "dependencies": { + "@thi.ng/api": "^6.9.1", + "@thi.ng/dgraph": "^1.2.1", + "tslib": "^1.11.1" + }, + "keywords": [ + "component", + "DI", + "dependency graph", + "dependency injection", + "ES6", + "typescript" + ], + "publishConfig": { + "access": "public" + }, + "sideEffects": false, + "thi.ng": { + "status": "alpha", + "year": 2020 + } +} diff --git a/packages/system/src/api.ts b/packages/system/src/api.ts new file mode 100644 index 0000000000..2c9c6ccb86 --- /dev/null +++ b/packages/system/src/api.ts @@ -0,0 +1,47 @@ +import type { Keys, Fn } from "@thi.ng/api"; + +export interface ILifecycle { + /** + * Starts component. Defined as async method to simplify internal + * use of `await` for starting any child/sub-components. Usually + * called by {@link System.start} which synchronously starts all of + * its components in dependency order. + * + * Returns false to indicate component startup failed and to cancel + * initialization of dependent components. Alternatively, an error + * can be thrown, but it's the user's responsibility to catch it. + */ + start?(): Promise; + /** + * Similar to {@link ILifecycle.start} but for stopping components. + * + * Returns false to indicate component startup failed and log a + * warning message to the console. Unlike with `start()`, returning + * false will NOT stop decommision other components. + */ + stop?(): Promise; +} + +/** + * Defines the participants of a system. Maps component names to their + * respective types + */ +export type SystemMap = Record, ILifecycle>; + +/** + * Component initialization function. + */ +export type ComponentFactory> = Fn; + +/** + * Definition object of system component specs, i.e. their factories and + * component dependencies. The generic type arg `T` is used to infer & + * validate all specs. + */ +export type SystemSpecs> = Record< + Keys, + { + factory: ComponentFactory; + deps?: Keys[]; + } +>; diff --git a/packages/system/src/index.ts b/packages/system/src/index.ts new file mode 100644 index 0000000000..2433d3a6d8 --- /dev/null +++ b/packages/system/src/index.ts @@ -0,0 +1,2 @@ +export * from "./api"; +export * from "./system"; diff --git a/packages/system/src/system.ts b/packages/system/src/system.ts new file mode 100644 index 0000000000..811861e034 --- /dev/null +++ b/packages/system/src/system.ts @@ -0,0 +1,74 @@ +import type { Keys } from "@thi.ng/api"; +import { DGraph } from "@thi.ng/dgraph"; +import type { ILifecycle, SystemMap, SystemSpecs } from "./api"; + +export const defSystem = >(map: SystemSpecs) => + new System(map); + +export class System> implements ILifecycle { + components: T; + topology: Keys[]; + graph: DGraph>; + + constructor(map: SystemSpecs) { + this.graph = new DGraph>(); + for (let id in map) { + const deps = map[id].deps; + deps + ? this.graph.addDependencies(>id, deps) + : this.graph.addNode(>id); + } + this.topology = this.graph.sort(); + this.components = {}; + for (let id of this.topology) { + this.components[id] = map[id].factory(this.components); + } + } + + /** + * Initializes all system components in dependency order. If any + * component's `start()` method returns false, system start up will + * be stopped and this method returns false itself. + * + * Also any errors thrown during child component startup will not be + * intercepted. + */ + async start() { + for (let id of this.topology) { + const comp = this.components[id]; + if (comp.start && !(await comp.start())) { + console.warn(`error starting component: ${id}`); + return false; + } + } + return true; + } + + /** + * Stops all system components in reverse dependency order. If any + * component's `stop()` method returns false, a warning message will + * be logged, but unlike {@link System.start}, the shutdown + * process of other components will not be stopped. + * + * Any errors thrown during child component shutdown will not be + * intercepted. + */ + async stop() { + const topo = this.topology; + for (let i = topo.length; --i >= 0; ) { + const id = topo[i]; + const comp = this.components[id]; + if (comp.stop && !(await comp.stop())) { + console.warn(`error stopping component: ${id}`); + } + } + return true; + } + + /** + * Syntax sugar for `stop() && start()` sequence. + */ + async reset() { + return (await this.stop()) && (await this.start()); + } +} diff --git a/packages/system/test/index.ts b/packages/system/test/index.ts new file mode 100644 index 0000000000..8a12dffc9f --- /dev/null +++ b/packages/system/test/index.ts @@ -0,0 +1,94 @@ +import * as assert from "assert"; +import { defSystem, ILifecycle } from "../src"; + +describe("system", () => { + it("basic", async () => { + const log: string[] = []; + + class Logger implements ILifecycle { + info(msg: string) { + log.push(msg); + } + async start() { + this.info("start logger"); + return true; + } + async stop() { + this.info("stop logger"); + return true; + } + } + + class DB implements ILifecycle { + constructor(protected logger: Logger, protected state: Cache) {} + + async start() { + this.logger.info("start db"); + return true; + } + async stop() { + this.logger.info("stop db"); + return true; + } + } + + class Cache implements ILifecycle { + constructor(protected logger: Logger) {} + + async start() { + this.logger.info("start cache"); + return true; + } + async stop() { + this.logger.info("stop cache"); + return true; + } + } + + interface FooSys { + db: DB; + logger: Logger; + state: Cache; + dummy: ILifecycle; + } + + const foo = defSystem({ + db: { + factory: (deps) => new DB(deps.logger, deps.state), + deps: ["logger", "state"], + }, + logger: { factory: () => new Logger() }, + state: { + factory: ({ logger }) => new Cache(logger), + deps: ["logger"], + }, + dummy: { + factory: ({ logger }) => ({ + async start() { + logger.info("start dummy"); + return true; + }, + async stop() { + logger.info("stop dummy"); + return true; + }, + }), + deps: ["logger"], + }, + }); + + await foo.start(); + await foo.stop(); + + assert.deepEqual(log, [ + "start logger", + "start cache", + "start dummy", + "start db", + "stop db", + "stop dummy", + "stop cache", + "stop logger", + ]); + }); +}); diff --git a/packages/system/test/tsconfig.json b/packages/system/test/tsconfig.json new file mode 100644 index 0000000000..43124565ec --- /dev/null +++ b/packages/system/test/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "module": "commonjs", + "isolatedModules": false + }, + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/system/tsconfig.json b/packages/system/tsconfig.json new file mode 100644 index 0000000000..893b9979c5 --- /dev/null +++ b/packages/system/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": ".", + "module": "es6", + "target": "es6" + }, + "include": [ + "./src/**/*.ts" + ] +} diff --git a/packages/text-canvas/CHANGELOG.md b/packages/text-canvas/CHANGELOG.md index 8260489a9e..717e2e797f 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.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.2...@thi.ng/text-canvas@0.2.3) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/text-canvas + + + + + ## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/text-canvas@0.2.1...@thi.ng/text-canvas@0.2.2) (2020-03-28) **Note:** Version bump only for package @thi.ng/text-canvas diff --git a/packages/text-canvas/README.md b/packages/text-canvas/README.md index 4693e25aef..153f44841a 100644 --- a/packages/text-canvas/README.md +++ b/packages/text-canvas/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/text-canvas](https://media.thi.ng/umbrella/banners/thing-text-canvas.svg?1585427420) +# ![text-canvas](https://media.thi.ng/umbrella/banners/thing-text-canvas.svg?8263e686) [![npm version](https://img.shields.io/npm/v/@thi.ng/text-canvas.svg)](https://www.npmjs.com/package/@thi.ng/text-canvas) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/text-canvas.svg) @@ -46,7 +46,7 @@ Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML). yarn add @thi.ng/text-canvas ``` -Package sizes (gzipped): ESM: 5.34 KB / CJS: 5.64 KB / UMD: 5.34 KB +Package sizes (gzipped, pre-treeshake): ESM: 5.35 KB / CJS: 5.66 KB / UMD: 5.37 KB ## Dependencies diff --git a/packages/text-canvas/package.json b/packages/text-canvas/package.json index f94c46a89f..a0e7d716d5 100644 --- a/packages/text-canvas/package.json +++ b/packages/text-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/text-canvas", - "version": "0.2.2", + "version": "0.2.3", "description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)", "module": "./index.js", "main": "./lib/index.js", @@ -32,19 +32,19 @@ "@thi.ng/transducers": "^6.2.1", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/geom-clip-line": "^1.0.5", - "@thi.ng/math": "^1.7.4", - "@thi.ng/memoize": "^2.0.4", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/geom-clip-line": "^1.0.6", + "@thi.ng/math": "^1.7.5", + "@thi.ng/memoize": "^2.0.5", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/text-canvas/src/api.ts b/packages/text-canvas/src/api.ts index 9ed7d8ea63..624a33b509 100644 --- a/packages/text-canvas/src/api.ts +++ b/packages/text-canvas/src/api.ts @@ -1,19 +1,19 @@ import type { Fn, NumOrString } from "@thi.ng/api"; -export const enum Align { +export enum Align { LEFT, RIGHT, - CENTER + CENTER, } -export const enum Border { +export enum Border { NONE = 0, H = 1, V = 2, ALL = 3, FRAME = 4, FRAME_H = 5, - FRAME_V = 6 + FRAME_V = 6, } export interface TableOpts { @@ -212,7 +212,7 @@ export const STYLE_ASCII: StrokeStyle = { tjt: "+", tjb: "+", jct: "+", - dot: "." + dot: ".", }; export const STYLE_THIN: StrokeStyle = { @@ -227,7 +227,7 @@ export const STYLE_THIN: StrokeStyle = { tjt: "┬", tjb: "┴", jct: "┼", - dot: "•" + dot: "•", }; export const STYLE_THIN_ROUNDED: StrokeStyle = { @@ -235,13 +235,13 @@ export const STYLE_THIN_ROUNDED: StrokeStyle = { tl: "╭", tr: "╮", bl: "╰", - br: "╯" + br: "╯", }; export const STYLE_DASHED: StrokeStyle = { ...STYLE_THIN, hl: "╌", - vl: "┆" + vl: "┆", }; export const STYLE_DASHED_ROUNDED: StrokeStyle = { @@ -249,7 +249,7 @@ export const STYLE_DASHED_ROUNDED: StrokeStyle = { tl: "╭", tr: "╮", bl: "╰", - br: "╯" + br: "╯", }; export const STYLE_DOUBLE: StrokeStyle = { @@ -264,7 +264,7 @@ export const STYLE_DOUBLE: StrokeStyle = { tjt: "╦", tjb: "╩", jct: "╬", - dot: "•" + dot: "•", }; export const ENDINGS = "()[]{}<>^v◀▶▲▼•●"; diff --git a/packages/text-canvas/test/tsconfig.json b/packages/text-canvas/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/text-canvas/test/tsconfig.json +++ b/packages/text-canvas/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/transducers-binary/CHANGELOG.md b/packages/transducers-binary/CHANGELOG.md index 14c9d2b1bb..7ab712d51d 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.5.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.5...@thi.ng/transducers-binary@0.5.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/transducers-binary + + + + + ## [0.5.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-binary@0.5.4...@thi.ng/transducers-binary@0.5.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/transducers-binary diff --git a/packages/transducers-binary/README.md b/packages/transducers-binary/README.md index ad411ab810..e1ce6c2b75 100644 --- a/packages/transducers-binary/README.md +++ b/packages/transducers-binary/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/transducers-binary](https://media.thi.ng/umbrella/banners/thing-transducers-binary.svg?1585427370) +# ![transducers-binary](https://media.thi.ng/umbrella/banners/thing-transducers-binary.svg?85c8aaf1) [![npm version](https://img.shields.io/npm/v/@thi.ng/transducers-binary.svg)](https://www.npmjs.com/package/@thi.ng/transducers-binary) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/transducers-binary.svg) @@ -51,7 +51,7 @@ iterable for direct use. yarn add @thi.ng/transducers-binary ``` -Package sizes (gzipped): ESM: 2.78 KB / CJS: 2.93 KB / UMD: 2.81 KB +Package sizes (gzipped, pre-treeshake): ESM: 2.85 KB / CJS: 3.01 KB / UMD: 2.89 KB ## Dependencies diff --git a/packages/transducers-binary/package.json b/packages/transducers-binary/package.json index c39fe5a726..f2108d3479 100644 --- a/packages/transducers-binary/package.json +++ b/packages/transducers-binary/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-binary", - "version": "0.5.5", + "version": "0.5.6", "description": "Binary data related transducers & reducers", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/compose": "^1.4.0", - "@thi.ng/random": "^1.4.2", - "@thi.ng/strings": "^1.8.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/compose": "^1.4.1", + "@thi.ng/random": "^1.4.3", + "@thi.ng/strings": "^1.8.1", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/transducers-binary/src/api.ts b/packages/transducers-binary/src/api.ts index 64299769ef..919ede53b0 100644 --- a/packages/transducers-binary/src/api.ts +++ b/packages/transducers-binary/src/api.ts @@ -1,4 +1,4 @@ -export const enum Type { +export enum Type { I8, I8_ARRAY, U8, @@ -19,7 +19,7 @@ export const enum Type { F32_ARRAY, F64, F64_ARRAY, - STR + STR, } export type BinStructItem = diff --git a/packages/transducers-binary/test/tsconfig.json b/packages/transducers-binary/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/transducers-binary/test/tsconfig.json +++ b/packages/transducers-binary/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/transducers-fsm/CHANGELOG.md b/packages/transducers-fsm/CHANGELOG.md index 6bbf67557e..0c08ecd63e 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.15...@thi.ng/transducers-fsm@1.1.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/transducers-fsm + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-fsm@1.1.14...@thi.ng/transducers-fsm@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/transducers-fsm diff --git a/packages/transducers-fsm/README.md b/packages/transducers-fsm/README.md index 8f2a5dd381..56fd9a21d9 100644 --- a/packages/transducers-fsm/README.md +++ b/packages/transducers-fsm/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/transducers-fsm](https://media.thi.ng/umbrella/banners/thing-transducers-fsm.svg?1585427370) +# ![transducers-fsm](https://media.thi.ng/umbrella/banners/thing-transducers-fsm.svg?2a13df81) [![npm version](https://img.shields.io/npm/v/@thi.ng/transducers-fsm.svg)](https://www.npmjs.com/package/@thi.ng/transducers-fsm) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/transducers-fsm.svg) @@ -50,7 +50,7 @@ package. yarn add @thi.ng/transducers-fsm ``` -Package sizes (gzipped): ESM: 217 bytes / CJS: 270 bytes / UMD: 368 bytes +Package sizes (gzipped, pre-treeshake): ESM: 217 bytes / CJS: 270 bytes / UMD: 368 bytes ## Dependencies diff --git a/packages/transducers-fsm/package.json b/packages/transducers-fsm/package.json index 9b0be4c180..0190949b3e 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.15", + "version": "1.1.16", "description": "Transducer-based Finite State Machine transformer", "module": "./index.js", "main": "./lib/index.js", @@ -31,15 +31,15 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/transducers-fsm/test/tsconfig.json b/packages/transducers-fsm/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/transducers-fsm/test/tsconfig.json +++ b/packages/transducers-fsm/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/transducers-hdom/CHANGELOG.md b/packages/transducers-hdom/CHANGELOG.md index d7cc3dbbe9..33771c79a3 100644 --- a/packages/transducers-hdom/CHANGELOG.md +++ b/packages/transducers-hdom/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. +## [2.0.42](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.41...@thi.ng/transducers-hdom@2.0.42) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/transducers-hdom + + + + + +## [2.0.41](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.40...@thi.ng/transducers-hdom@2.0.41) (2020-04-01) + +**Note:** Version bump only for package @thi.ng/transducers-hdom + + + + + ## [2.0.40](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-hdom@2.0.39...@thi.ng/transducers-hdom@2.0.40) (2020-03-28) **Note:** Version bump only for package @thi.ng/transducers-hdom diff --git a/packages/transducers-hdom/README.md b/packages/transducers-hdom/README.md index 1062fcd7f1..d73133a7b9 100644 --- a/packages/transducers-hdom/README.md +++ b/packages/transducers-hdom/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/transducers-hdom](https://media.thi.ng/umbrella/banners/thing-transducers-hdom.svg?1585427381) +# ![transducers-hdom](https://media.thi.ng/umbrella/banners/thing-transducers-hdom.svg?203f11e2) [![npm version](https://img.shields.io/npm/v/@thi.ng/transducers-hdom.svg)](https://www.npmjs.com/package/@thi.ng/transducers-hdom) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/transducers-hdom.svg) @@ -67,7 +67,7 @@ Please also see the following hdom references for further details: yarn add @thi.ng/transducers-hdom ``` -Package sizes (gzipped): ESM: 291 bytes / CJS: 343 bytes / UMD: 454 bytes +Package sizes (gzipped, pre-treeshake): ESM: 291 bytes / CJS: 343 bytes / UMD: 454 bytes ## Dependencies diff --git a/packages/transducers-hdom/package.json b/packages/transducers-hdom/package.json index 2bb70371a4..75ab5bb19d 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.40", + "version": "2.0.42", "description": "Transducer based UI updater for @thi.ng/hdom", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/hdom": "^8.0.15", - "@thi.ng/hiccup": "^3.2.14", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/hdom": "^8.0.17", + "@thi.ng/hiccup": "^3.2.16", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/transducers-hdom/test/tsconfig.json b/packages/transducers-hdom/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/transducers-hdom/test/tsconfig.json +++ b/packages/transducers-hdom/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/transducers-patch/CHANGELOG.md b/packages/transducers-patch/CHANGELOG.md index 465219fe7c..d4f3cae02e 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.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.5...@thi.ng/transducers-patch@0.1.6) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/transducers-patch + + + + + ## [0.1.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-patch@0.1.4...@thi.ng/transducers-patch@0.1.5) (2020-03-28) diff --git a/packages/transducers-patch/README.md b/packages/transducers-patch/README.md index 473ae0743e..a1a39017da 100644 --- a/packages/transducers-patch/README.md +++ b/packages/transducers-patch/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/transducers-patch](https://media.thi.ng/umbrella/banners/thing-transducers-patch.svg?1585427370) +# ![transducers-patch](https://media.thi.ng/umbrella/banners/thing-transducers-patch.svg?cb121cc6) [![npm version](https://img.shields.io/npm/v/@thi.ng/transducers-patch.svg)](https://www.npmjs.com/package/@thi.ng/transducers-patch) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/transducers-patch.svg) @@ -38,7 +38,7 @@ state update. By default all edits are performed non-destructively, but yarn add @thi.ng/transducers-patch ``` -Package sizes (gzipped): ESM: 551 bytes / CJS: 594 bytes / UMD: 684 bytes +Package sizes (gzipped, pre-treeshake): ESM: 564 bytes / CJS: 609 bytes / UMD: 702 bytes ## Dependencies diff --git a/packages/transducers-patch/package.json b/packages/transducers-patch/package.json index 1dbcc4e202..712e0eac5d 100644 --- a/packages/transducers-patch/package.json +++ b/packages/transducers-patch/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers-patch", - "version": "0.1.5", + "version": "0.1.6", "description": "Reducers for patch-based, immutable-by-default array & object editing", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/paths": "^4.0.0", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/paths": "^4.0.1", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/transducers-patch/src/api.ts b/packages/transducers-patch/src/api.ts index 51961d7946..669586e949 100644 --- a/packages/transducers-patch/src/api.ts +++ b/packages/transducers-patch/src/api.ts @@ -1,10 +1,10 @@ import type { FnO, Path } from "@thi.ng/api"; -export const enum Patch { +export enum Patch { SET, INSERT, UPDATE, - DELETE + DELETE, } export type PatchArrayOp = diff --git a/packages/transducers-patch/test/tsconfig.json b/packages/transducers-patch/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/transducers-patch/test/tsconfig.json +++ b/packages/transducers-patch/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/transducers-stats/CHANGELOG.md b/packages/transducers-stats/CHANGELOG.md index da8814c407..91f5a2bbf2 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.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.15...@thi.ng/transducers-stats@1.1.16) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/transducers-stats + + + + + ## [1.1.15](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers-stats@1.1.14...@thi.ng/transducers-stats@1.1.15) (2020-03-28) **Note:** Version bump only for package @thi.ng/transducers-stats diff --git a/packages/transducers-stats/README.md b/packages/transducers-stats/README.md index c56eae164b..ad763bd312 100644 --- a/packages/transducers-stats/README.md +++ b/packages/transducers-stats/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/transducers-stats](https://media.thi.ng/umbrella/banners/thing-transducers-stats.svg?1585427379) +# ![transducers-stats](https://media.thi.ng/umbrella/banners/thing-transducers-stats.svg?a4937d9a) [![npm version](https://img.shields.io/npm/v/@thi.ng/transducers-stats.svg)](https://www.npmjs.com/package/@thi.ng/transducers-stats) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/transducers-stats.svg) @@ -62,7 +62,7 @@ transforming ES6 iterator (generator) instead of a transducer. yarn add @thi.ng/transducers-stats ``` -Package sizes (gzipped): ESM: 1.15 KB / CJS: 1.27 KB / UMD: 1.29 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.15 KB / CJS: 1.27 KB / UMD: 1.29 KB ## Dependencies diff --git a/packages/transducers-stats/package.json b/packages/transducers-stats/package.json index 9649386f7d..d0a280c7f9 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.15", + "version": "1.1.16", "description": "Transducers for statistical / technical analysis", "module": "./index.js", "main": "./lib/index.js", @@ -31,17 +31,17 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/checks": "^2.6.0", - "@thi.ng/dcons": "^2.2.8", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/dcons": "^2.2.9", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/transducers-stats/test/tsconfig.json b/packages/transducers-stats/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/transducers-stats/test/tsconfig.json +++ b/packages/transducers-stats/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/transducers/CHANGELOG.md b/packages/transducers/CHANGELOG.md index b48a83b036..c326a48769 100644 --- a/packages/transducers/CHANGELOG.md +++ b/packages/transducers/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@6.4.2...@thi.ng/transducers@6.4.3) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/transducers + + + + + ## [6.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/transducers@6.4.1...@thi.ng/transducers@6.4.2) (2020-03-28) **Note:** Version bump only for package @thi.ng/transducers diff --git a/packages/transducers/README.md b/packages/transducers/README.md index d0df0a137c..bce1f19f2f 100644 --- a/packages/transducers/README.md +++ b/packages/transducers/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/transducers](https://media.thi.ng/umbrella/banners/thing-transducers.svg?1585427350) +# ![transducers](https://media.thi.ng/umbrella/banners/thing-transducers.svg?d740a3e8) [![npm version](https://img.shields.io/npm/v/@thi.ng/transducers.svg)](https://www.npmjs.com/package/@thi.ng/transducers) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/transducers.svg) @@ -143,7 +143,7 @@ package. yarn add @thi.ng/transducers ``` -Package sizes (gzipped): ESM: 7.86 KB / CJS: 8.38 KB / UMD: 7.58 KB +Package sizes (gzipped, pre-treeshake): ESM: 7.86 KB / CJS: 8.38 KB / UMD: 7.58 KB ## Dependencies diff --git a/packages/transducers/package.json b/packages/transducers/package.json index e43992296e..e4d20c3277 100644 --- a/packages/transducers/package.json +++ b/packages/transducers/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/transducers", - "version": "6.4.2", + "version": "6.4.3", "description": "Lightweight transducer implementations for ES6 / TypeScript", "module": "./index.js", "main": "./lib/index.js", @@ -31,23 +31,23 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/compare": "^1.2.2", - "@thi.ng/compose": "^1.4.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/math": "^1.7.4", - "@thi.ng/random": "^1.4.2", - "@thi.ng/strings": "^1.8.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/compare": "^1.3.0", + "@thi.ng/compose": "^1.4.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/random": "^1.4.3", + "@thi.ng/strings": "^1.8.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/transducers/test/tsconfig.json b/packages/transducers/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/transducers/test/tsconfig.json +++ b/packages/transducers/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/unionstruct/CHANGELOG.md b/packages/unionstruct/CHANGELOG.md index ec071c3270..12d974fde8 100644 --- a/packages/unionstruct/CHANGELOG.md +++ b/packages/unionstruct/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.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.10...@thi.ng/unionstruct@1.1.11) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/unionstruct + + + + + ## [1.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/unionstruct@1.1.9...@thi.ng/unionstruct@1.1.10) (2020-03-28) **Note:** Version bump only for package @thi.ng/unionstruct diff --git a/packages/unionstruct/README.md b/packages/unionstruct/README.md index b61be134bc..8482dede90 100644 --- a/packages/unionstruct/README.md +++ b/packages/unionstruct/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/unionstruct](https://media.thi.ng/umbrella/banners/thing-unionstruct.svg?1585427314) +# ![unionstruct](https://media.thi.ng/umbrella/banners/thing-unionstruct.svg?799c72c8) [![npm version](https://img.shields.io/npm/v/@thi.ng/unionstruct.svg)](https://www.npmjs.com/package/@thi.ng/unionstruct) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/unionstruct.svg) @@ -50,7 +50,7 @@ Currently does not support array fields (incl. strings). yarn add @thi.ng/unionstruct ``` -Package sizes (gzipped): ESM: 1.08 KB / CJS: 1.13 KB / UMD: 1.17 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.08 KB / CJS: 1.13 KB / UMD: 1.17 KB ## Dependencies diff --git a/packages/unionstruct/package.json b/packages/unionstruct/package.json index ba359aecbf..925eab9c48 100644 --- a/packages/unionstruct/package.json +++ b/packages/unionstruct/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/unionstruct", - "version": "1.1.10", + "version": "1.1.11", "description": "C-style struct, union and bitfield read/write views of ArrayBuffers", "module": "./index.js", "main": "./lib/index.js", @@ -31,7 +31,7 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", diff --git a/packages/unionstruct/test/tsconfig.json b/packages/unionstruct/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/unionstruct/test/tsconfig.json +++ b/packages/unionstruct/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/vector-pools/CHANGELOG.md b/packages/vector-pools/CHANGELOG.md index db8ff3f344..81ae65c568 100644 --- a/packages/vector-pools/CHANGELOG.md +++ b/packages/vector-pools/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.18...@thi.ng/vector-pools@1.0.19) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/vector-pools + + + + + ## [1.0.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/vector-pools@1.0.17...@thi.ng/vector-pools@1.0.18) (2020-03-28) **Note:** Version bump only for package @thi.ng/vector-pools diff --git a/packages/vector-pools/README.md b/packages/vector-pools/README.md index 6f91428412..413ac03216 100644 --- a/packages/vector-pools/README.md +++ b/packages/vector-pools/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/vector-pools](https://media.thi.ng/umbrella/banners/thing-vector-pools.svg?1585427401) +# ![vector-pools](https://media.thi.ng/umbrella/banners/thing-vector-pools.svg?4ebed464) [![npm version](https://img.shields.io/npm/v/@thi.ng/vector-pools.svg)](https://www.npmjs.com/package/@thi.ng/vector-pools) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/vector-pools.svg) @@ -59,7 +59,7 @@ This package might be merged with and/or superseded by yarn add @thi.ng/vector-pools ``` -Package sizes (gzipped): ESM: 3.05 KB / CJS: 3.12 KB / UMD: 3.18 KB +Package sizes (gzipped, pre-treeshake): ESM: 3.06 KB / CJS: 3.12 KB / UMD: 3.19 KB ## Dependencies diff --git a/packages/vector-pools/package.json b/packages/vector-pools/package.json index ff18a6d0fe..b850c4e120 100644 --- a/packages/vector-pools/package.json +++ b/packages/vector-pools/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vector-pools", - "version": "1.0.18", + "version": "1.0.19", "description": "Data structures for managing & working with strided, memory mapped vectors", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/malloc": "^4.1.8", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/malloc": "^4.1.9", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/vector-pools/test/tsconfig.json b/packages/vector-pools/test/tsconfig.json index 2c9c12a650..43124565ec 100644 --- a/packages/vector-pools/test/tsconfig.json +++ b/packages/vector-pools/test/tsconfig.json @@ -3,9 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] -} \ No newline at end of file + "include": ["./**/*.ts", "../src/**/*.ts"] +} diff --git a/packages/vectors/CHANGELOG.md b/packages/vectors/CHANGELOG.md index e0337730c2..4feeb00e64 100644 --- a/packages/vectors/CHANGELOG.md +++ b/packages/vectors/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.2.2...@thi.ng/vectors@4.2.3) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/vectors + + + + + ## [4.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/vectors@4.2.1...@thi.ng/vectors@4.2.2) (2020-03-28) **Note:** Version bump only for package @thi.ng/vectors diff --git a/packages/vectors/README.md b/packages/vectors/README.md index e8c3705ec3..261a1e33b4 100644 --- a/packages/vectors/README.md +++ b/packages/vectors/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/vectors](https://media.thi.ng/umbrella/banners/thing-vectors.svg?1585427370) +# ![vectors](https://media.thi.ng/umbrella/banners/thing-vectors.svg?1e5a5374) [![npm version](https://img.shields.io/npm/v/@thi.ng/vectors.svg)](https://www.npmjs.com/package/@thi.ng/vectors) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/vectors.svg) @@ -144,7 +144,7 @@ Partially ported from [thi.ng/geom](http://thi.ng/geom) (Clojure) and yarn add @thi.ng/vectors ``` -Package sizes (gzipped): ESM: 10.88 KB / CJS: 13.71 KB / UMD: 12.06 KB +Package sizes (gzipped, pre-treeshake): ESM: 10.88 KB / CJS: 13.71 KB / UMD: 12.06 KB ## Dependencies diff --git a/packages/vectors/package.json b/packages/vectors/package.json index 543e6a6010..35711f11ac 100644 --- a/packages/vectors/package.json +++ b/packages/vectors/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/vectors", - "version": "4.2.2", + "version": "4.2.3", "description": "Optimized 2d/3d/4d and arbitrary length vector operations", "module": "./index.js", "main": "./lib/index.js", @@ -31,22 +31,22 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/math": "^1.7.4", - "@thi.ng/memoize": "^2.0.4", - "@thi.ng/random": "^1.4.2", - "@thi.ng/transducers": "^6.4.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/math": "^1.7.5", + "@thi.ng/memoize": "^2.0.5", + "@thi.ng/random": "^1.4.3", + "@thi.ng/transducers": "^6.4.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/vectors/test/tsconfig.json b/packages/vectors/test/tsconfig.json index 6818db18c0..75473b64be 100644 --- a/packages/vectors/test/tsconfig.json +++ b/packages/vectors/test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "../build", "module": "commonjs", + "isolatedModules": false, "noImplicitThis": false }, "include": ["./**/*.ts", "../src/**/*.ts"] diff --git a/packages/webgl-msdf/CHANGELOG.md b/packages/webgl-msdf/CHANGELOG.md index 9294a17444..bd2a6cd537 100644 --- a/packages/webgl-msdf/CHANGELOG.md +++ b/packages/webgl-msdf/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. +## [0.1.20](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.19...@thi.ng/webgl-msdf@0.1.20) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/webgl-msdf + + + + + +## [0.1.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.18...@thi.ng/webgl-msdf@0.1.19) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/webgl-msdf + + + + + ## [0.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-msdf@0.1.17...@thi.ng/webgl-msdf@0.1.18) (2020-03-28) **Note:** Version bump only for package @thi.ng/webgl-msdf diff --git a/packages/webgl-msdf/README.md b/packages/webgl-msdf/README.md index 66c0fa14f3..4620172c43 100644 --- a/packages/webgl-msdf/README.md +++ b/packages/webgl-msdf/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/webgl-msdf](https://media.thi.ng/umbrella/banners/thing-webgl-msdf.svg?1585427445) +# ![webgl-msdf](https://media.thi.ng/umbrella/banners/thing-webgl-msdf.svg?4873cdf9) [![npm version](https://img.shields.io/npm/v/@thi.ng/webgl-msdf.svg)](https://www.npmjs.com/package/@thi.ng/webgl-msdf) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/webgl-msdf.svg) @@ -45,7 +45,7 @@ McCurdy's](https://msdf-bmfont.donmccurdy.com/). yarn add @thi.ng/webgl-msdf ``` -Package sizes (gzipped): ESM: 1.46 KB / CJS: 1.51 KB / UMD: 1.56 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.48 KB / CJS: 1.52 KB / UMD: 1.58 KB ## Dependencies diff --git a/packages/webgl-msdf/package.json b/packages/webgl-msdf/package.json index 6c020c21d9..2126572bc5 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.18", + "version": "0.1.20", "description": "Multi-channel SDF font rendering & basic text layout for WebGL", "module": "./index.js", "main": "./lib/index.js", @@ -31,19 +31,19 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/shader-ast": "^0.3.11", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vector-pools": "^1.0.18", - "@thi.ng/vectors": "^4.2.2", - "@thi.ng/webgl": "^1.0.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/shader-ast": "^0.3.13", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vector-pools": "^1.0.19", + "@thi.ng/vectors": "^4.2.3", + "@thi.ng/webgl": "^1.0.2", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/webgl-msdf/test/tsconfig.json b/packages/webgl-msdf/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/webgl-msdf/test/tsconfig.json +++ b/packages/webgl-msdf/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/webgl-shadertoy/CHANGELOG.md b/packages/webgl-shadertoy/CHANGELOG.md index 7367a1c904..6a01fe90ca 100644 --- a/packages/webgl-shadertoy/CHANGELOG.md +++ b/packages/webgl-shadertoy/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. +## [0.2.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.6...@thi.ng/webgl-shadertoy@0.2.7) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/webgl-shadertoy + + + + + +## [0.2.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.5...@thi.ng/webgl-shadertoy@0.2.6) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/webgl-shadertoy + + + + + ## [0.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl-shadertoy@0.2.4...@thi.ng/webgl-shadertoy@0.2.5) (2020-03-28) **Note:** Version bump only for package @thi.ng/webgl-shadertoy diff --git a/packages/webgl-shadertoy/README.md b/packages/webgl-shadertoy/README.md index d43eded861..712e8ce64c 100644 --- a/packages/webgl-shadertoy/README.md +++ b/packages/webgl-shadertoy/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/webgl-shadertoy](https://media.thi.ng/umbrella/banners/thing-webgl-shadertoy.svg?1585427445) +# ![webgl-shadertoy](https://media.thi.ng/umbrella/banners/thing-webgl-shadertoy.svg?9525f97a) [![npm version](https://img.shields.io/npm/v/@thi.ng/webgl-shadertoy.svg)](https://www.npmjs.com/package/@thi.ng/webgl-shadertoy) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/webgl-shadertoy.svg) @@ -39,7 +39,7 @@ Basic WebGL scaffolding for running interactive fragment shaders via [@thi.ng/sh yarn add @thi.ng/webgl-shadertoy ``` -Package sizes (gzipped): ESM: 673 bytes / CJS: 710 bytes / UMD: 810 bytes +Package sizes (gzipped, pre-treeshake): ESM: 673 bytes / CJS: 710 bytes / UMD: 810 bytes ## Dependencies diff --git a/packages/webgl-shadertoy/package.json b/packages/webgl-shadertoy/package.json index 9ef5d926d1..ed86669be4 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.5", + "version": "0.2.7", "description": "Basic WebGL scaffolding for running interactive fragment shaders via @thi.ng/shader-ast", "module": "./index.js", "main": "./lib/index.js", @@ -31,18 +31,18 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/shader-ast": "^0.3.11", - "@thi.ng/shader-ast-glsl": "^0.1.17", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/webgl": "^1.0.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/shader-ast": "^0.3.13", + "@thi.ng/shader-ast-glsl": "^0.1.19", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/webgl": "^1.0.2", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/webgl-shadertoy/test/tsconfig.json b/packages/webgl-shadertoy/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/webgl-shadertoy/test/tsconfig.json +++ b/packages/webgl-shadertoy/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/webgl/CHANGELOG.md b/packages/webgl/CHANGELOG.md index 5b9394ff57..d52f9d709e 100644 --- a/packages/webgl/CHANGELOG.md +++ b/packages/webgl/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.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@1.0.1...@thi.ng/webgl@1.0.2) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/webgl + + + + + +## [1.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@1.0.0...@thi.ng/webgl@1.0.1) (2020-04-03) + +**Note:** Version bump only for package @thi.ng/webgl + + + + + # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.3.4...@thi.ng/webgl@1.0.0) (2020-03-28) diff --git a/packages/webgl/README.md b/packages/webgl/README.md index 865c3b675e..533e35b351 100644 --- a/packages/webgl/README.md +++ b/packages/webgl/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/webgl](https://media.thi.ng/umbrella/banners/thing-webgl.svg?1585427442) +# ![webgl](https://media.thi.ng/umbrella/banners/thing-webgl.svg?f932e39b) [![npm version](https://img.shields.io/npm/v/@thi.ng/webgl.svg)](https://www.npmjs.com/package/@thi.ng/webgl) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/webgl.svg) @@ -79,7 +79,7 @@ Largely declarative WebGL 1.0 / 2.0 abstraction layer, partially ported yarn add @thi.ng/webgl ``` -Package sizes (gzipped): ESM: 11.07 KB / CJS: 11.23 KB / UMD: 11.03 KB +Package sizes (gzipped, pre-treeshake): ESM: 11.27 KB / CJS: 11.43 KB / UMD: 11.26 KB ## Dependencies diff --git a/packages/webgl/package.json b/packages/webgl/package.json index 5164f30803..3fc81f9136 100644 --- a/packages/webgl/package.json +++ b/packages/webgl/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/webgl", - "version": "1.0.0", + "version": "1.0.2", "description": "WebGL & GLSL abstraction layer", "module": "./index.js", "main": "./lib/index.js", @@ -31,27 +31,27 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/associative": "^4.0.0", - "@thi.ng/binary": "^2.0.1", - "@thi.ng/checks": "^2.6.0", - "@thi.ng/equiv": "^1.0.17", - "@thi.ng/errors": "^1.2.8", - "@thi.ng/matrices": "^0.6.5", - "@thi.ng/pixel": "^0.1.13", - "@thi.ng/shader-ast": "^0.3.11", - "@thi.ng/shader-ast-glsl": "^0.1.17", - "@thi.ng/shader-ast-stdlib": "^0.3.10", - "@thi.ng/transducers": "^6.4.2", - "@thi.ng/vector-pools": "^1.0.18", - "@thi.ng/vectors": "^4.2.2", + "@thi.ng/api": "^6.9.1", + "@thi.ng/associative": "^4.0.1", + "@thi.ng/binary": "^2.0.2", + "@thi.ng/checks": "^2.6.1", + "@thi.ng/equiv": "^1.0.18", + "@thi.ng/errors": "^1.2.9", + "@thi.ng/matrices": "^0.6.6", + "@thi.ng/pixel": "^0.1.14", + "@thi.ng/shader-ast": "^0.3.13", + "@thi.ng/shader-ast-glsl": "^0.1.19", + "@thi.ng/shader-ast-stdlib": "^0.3.12", + "@thi.ng/transducers": "^6.4.3", + "@thi.ng/vector-pools": "^1.0.19", + "@thi.ng/vectors": "^4.2.3", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/webgl/src/api/blend.ts b/packages/webgl/src/api/blend.ts index 2e5074ea67..86faa78c88 100644 --- a/packages/webgl/src/api/blend.ts +++ b/packages/webgl/src/api/blend.ts @@ -1,6 +1,6 @@ import type { Tuple } from "@thi.ng/api"; -export const enum Blend { +export enum Blend { ZERO = 0, ONE = 1, SRC_COLOR = 768, @@ -15,15 +15,15 @@ export const enum Blend { ONE_MINUS_CONSTANT_COLOR = 32770, CONSTANT_ALPHA = 32771, ONE_MINUS_CONSTANT_ALPHA = 32772, - SRC_ALPHA_SATURATE = 776 + SRC_ALPHA_SATURATE = 776, } -export const enum BlendEquation { +export enum BlendEquation { FUNC_ADD = 32774, FUNC_REVERSE_SUBTRACT = 32779, FUNC_SUBTRACT = 32778, MAX = 32776, - MIN = 32775 + MIN = 32775, } export type BlendFunc = Tuple; @@ -33,7 +33,7 @@ export type BlendFunc = Tuple; export const BLEND_NORMAL: BlendFunc = [ Blend.SRC_ALPHA, - Blend.ONE_MINUS_SRC_ALPHA + Blend.ONE_MINUS_SRC_ALPHA, ]; export const BLEND_ADD: BlendFunc = [Blend.SRC_ALPHA, Blend.DST_ALPHA]; diff --git a/packages/webgl/src/api/model.ts b/packages/webgl/src/api/model.ts index 90b40b4d51..647f1fab85 100644 --- a/packages/webgl/src/api/model.ts +++ b/packages/webgl/src/api/model.ts @@ -4,14 +4,14 @@ import type { IndexBufferSpec, IWebGLBuffer } from "./buffers"; import type { AttribBufferData, IShader, UniformValues } from "./shader"; import type { ITexture } from "./texture"; -export const enum DrawMode { +export enum DrawMode { POINTS = 0, LINES = 1, LINE_LOOP = 2, LINE_STRIP = 3, TRIANGLES = 4, TRIANGLE_STRIP = 5, - TRIANGLE_FAN = 6 + TRIANGLE_FAN = 6, } export type ModelAttributeSpecs = IObjectOf; diff --git a/packages/webgl/src/api/stencil.ts b/packages/webgl/src/api/stencil.ts index c6e3e17739..5d5f5a6f23 100644 --- a/packages/webgl/src/api/stencil.ts +++ b/packages/webgl/src/api/stencil.ts @@ -1,6 +1,6 @@ import type { Tuple } from "@thi.ng/api"; -export const enum StencilOp { +export enum StencilOp { KEEP = 7680, ZERO = 0, REPLACE = 7681, @@ -8,10 +8,10 @@ export const enum StencilOp { INCR_WRAP = 34055, DECR = 7683, DECR_WRAP = 34056, - INVERT = 5386 + INVERT = 5386, } -export const enum StencilFn { +export enum StencilFn { NEVER = 512, LESS = 513, EQUAL = 514, @@ -19,7 +19,7 @@ export const enum StencilFn { GREATER = 516, NOTEQUAL = 517, GEQUAL = 518, - ALWAYS = 519 + ALWAYS = 519, } export type StencilOpParams = Tuple; diff --git a/packages/webgl/src/api/texture.ts b/packages/webgl/src/api/texture.ts index e11316b154..e3baa43ee3 100644 --- a/packages/webgl/src/api/texture.ts +++ b/packages/webgl/src/api/texture.ts @@ -1,7 +1,7 @@ import type { IBind, IObjectOf, IRelease } from "@thi.ng/api"; import type { IConfigure } from "./buffers"; -export const enum TextureFormat { +export enum TextureFormat { ALPHA = 0x1906, DEPTH_COMPONENT = 0x1902, DEPTH_COMPONENT16 = 0x81a5, @@ -68,10 +68,10 @@ export const enum TextureFormat { RGBA8I = 0x8d8e, RGBA8UI = 0x8d7c, SRGB8 = 0x8c41, - SRGB8_ALPHA8 = 0x8c43 + SRGB8_ALPHA8 = 0x8c43, } -export const enum TextureType { +export enum TextureType { BYTE = 0x1400, UNSIGNED_BYTE, SHORT, @@ -88,29 +88,29 @@ export const enum TextureType { UNSIGNED_INT_10F_11F_11F_REV = 0x8c3b, UNSIGNED_INT_5_9_9_9_REV = 0x8c3e, HALF_FLOAT_OES = 0x8d61, - FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8dad + FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8dad, } -export const enum TextureTarget { +export enum TextureTarget { TEXTURE_2D = 3553, TEXTURE_3D = 32879, TEXTURE_CUBE_MAP = 34067, - TEXTURE_2D_ARRAY = 35866 + TEXTURE_2D_ARRAY = 35866, } -export const enum TextureFilter { +export enum TextureFilter { LINEAR = 9729, NEAREST = 9728, NEAREST_MIPMAP_NEAREST = 9984, LINEAR_MIPMAP_NEAREST = 9985, NEAREST_MIPMAP_LINEAR = 9986, - LINEAR_MIPMAP_LINEAR = 9987 + LINEAR_MIPMAP_LINEAR = 9987, } -export const enum TextureRepeat { +export enum TextureRepeat { REPEAT = 10497, CLAMP = 33071, - REPEAT_MIRROR = 33648 + REPEAT_MIRROR = 33648, } export interface TextureFormatDecl { @@ -158,7 +158,7 @@ const $ = ( render, renderExt, filter, - num + num, }); export const TEX_FORMATS: IObjectOf = { @@ -172,7 +172,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.HALF_FLOAT_OES, 2, TextureType.FLOAT, - 4 + 4, ], 1, true, @@ -230,7 +230,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.HALF_FLOAT_OES, 4, TextureType.FLOAT, - 8 + 8, ], 2, true, @@ -246,7 +246,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.HALF_FLOAT_OES, 2, TextureType.FLOAT, - 4 + 4, ], 1, true, @@ -260,7 +260,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.HALF_FLOAT, 6, TextureType.UNSIGNED_INT_10F_11F_11F_REV, - 4 + 4, ], 3, false, @@ -411,7 +411,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.FLOAT, 12, TextureType.UNSIGNED_SHORT_5_6_5, - 2 + 2, ], 3, true, @@ -466,7 +466,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.UNSIGNED_SHORT_5_5_5_1, 2, TextureType.UNSIGNED_INT_2_10_10_10_REV, - 4 + 4, ], 4, true, @@ -511,7 +511,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.HALF_FLOAT, 6, TextureType.UNSIGNED_INT_5_9_9_9_REV, - 4 + 4, ], 3, false, @@ -531,7 +531,7 @@ export const TEX_FORMATS: IObjectOf = { TextureType.UNSIGNED_SHORT_4_4_4_4, 2, TextureType.UNSIGNED_SHORT_5_5_5_1, - 2 + 2, ], 4, true, @@ -623,7 +623,7 @@ export const TEX_FORMATS: IObjectOf = { 3, false, true - ) + ), }; export type ReadableTextureFormat = diff --git a/packages/webgl/test/tsconfig.json b/packages/webgl/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/webgl/test/tsconfig.json +++ b/packages/webgl/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/packages/zipper/CHANGELOG.md b/packages/zipper/CHANGELOG.md index b1b3e6f696..e7159706f9 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.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.8...@thi.ng/zipper@0.1.9) (2020-04-05) + +**Note:** Version bump only for package @thi.ng/zipper + + + + + ## [0.1.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/zipper@0.1.7...@thi.ng/zipper@0.1.8) (2020-03-28) **Note:** Version bump only for package @thi.ng/zipper diff --git a/packages/zipper/README.md b/packages/zipper/README.md index 47dc996a79..eecce4b3b6 100644 --- a/packages/zipper/README.md +++ b/packages/zipper/README.md @@ -1,6 +1,6 @@ -# ![@thi.ng/zipper](https://media.thi.ng/umbrella/banners/thing-zipper.svg?1585427350) +# ![zipper](https://media.thi.ng/umbrella/banners/thing-zipper.svg?ec34eb06) [![npm version](https://img.shields.io/npm/v/@thi.ng/zipper.svg)](https://www.npmjs.com/package/@thi.ng/zipper) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/zipper.svg) @@ -52,7 +52,7 @@ Reference: https://en.wikipedia.org/wiki/Zipper_(data_structure) yarn add @thi.ng/zipper ``` -Package sizes (gzipped): ESM: 1.03 KB / CJS: 1.09 KB / UMD: 1.17 KB +Package sizes (gzipped, pre-treeshake): ESM: 1.03 KB / CJS: 1.09 KB / UMD: 1.17 KB ## Dependencies diff --git a/packages/zipper/package.json b/packages/zipper/package.json index bfb4500488..a22107fa37 100644 --- a/packages/zipper/package.json +++ b/packages/zipper/package.json @@ -1,6 +1,6 @@ { "name": "@thi.ng/zipper", - "version": "0.1.8", + "version": "0.1.9", "description": "Functional tree editing, manipulation & navigation", "module": "./index.js", "main": "./lib/index.js", @@ -31,16 +31,16 @@ "@microsoft/api-extractor": "^7.7.8", "@types/mocha": "^7.0.1", "@types/node": "^13.7.4", - "mocha": "^7.0.1", + "mocha": "^7.1.1", "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.9.0", - "@thi.ng/arrays": "^0.6.0", - "@thi.ng/checks": "^2.6.0", + "@thi.ng/api": "^6.9.1", + "@thi.ng/arrays": "^0.6.1", + "@thi.ng/checks": "^2.6.1", "tslib": "^1.11.1" }, "keywords": [ diff --git a/packages/zipper/test/tsconfig.json b/packages/zipper/test/tsconfig.json index f6e63560dd..43124565ec 100644 --- a/packages/zipper/test/tsconfig.json +++ b/packages/zipper/test/tsconfig.json @@ -2,10 +2,8 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "outDir": "../build", - "module": "commonjs" + "module": "commonjs", + "isolatedModules": false }, - "include": [ - "./**/*.ts", - "../src/**/*.ts" - ] + "include": ["./**/*.ts", "../src/**/*.ts"] } diff --git a/scripts/make-module b/scripts/make-module index f1b2c52064..45f920dbf7 100755 --- a/scripts/make-module +++ b/scripts/make-module @@ -66,7 +66,7 @@ cat << EOF > "$MODULE"/package.json "test": "mocha test", "cover": "nyc mocha test && nyc report --reporter=lcov", "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib", - "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/readme.ts", + "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts", "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose", "doc": "node_modules/.bin/typedoc --mode modules --out doc src", "pub": "yarn build:release && yarn publish --access public" @@ -80,10 +80,10 @@ cat << EOF > "$MODULE"/package.json "nyc": "^15.0.0", "ts-node": "^8.6.2", "typedoc": "^0.16.10", - "typescript": "^3.8.2" + "typescript": "^3.8.3" }, "dependencies": { - "@thi.ng/api": "^6.8.3" + "@thi.ng/api": "^6.9.0" }, "keywords": [ "ES6", diff --git a/tools/config.json b/tools/config.json index 0d13ab91bd..2da9eacc74 100644 --- a/tools/config.json +++ b/tools/config.json @@ -3,6 +3,7 @@ "userURL": "https://github.com/", "assetURL": "https://raw.githubusercontent.com/thi-ng/umbrella", "bannerURL": "https://media.thi.ng/umbrella/banners/thing-", + "bannerBasePath": "../../assets/banners/thing-", "demoURL": "https://demo.thi.ng/umbrella", "docURL": "https://docs.thi.ng/umbrella", "exampleDir": "../../examples", diff --git a/tools/src/api.ts b/tools/src/api.ts index a8a4b37669..6ba4b4526a 100644 --- a/tools/src/api.ts +++ b/tools/src/api.ts @@ -15,6 +15,7 @@ export interface BaseConfig { userURL: string; assetURL: string; bannerURL: string; + bannerBasePath: string; demoURL: string; docURL: string; exampleDir: string; diff --git a/tools/src/partials/package.ts b/tools/src/partials/package.ts index f437521202..ec1c88f23f 100644 --- a/tools/src/partials/package.ts +++ b/tools/src/partials/package.ts @@ -1,5 +1,5 @@ -import { IObjectOf } from "@thi.ng/api"; import { bytes } from "@thi.ng/strings"; +import { execSync } from "child_process"; import { readdirSync } from "fs"; import { META_FIELD, Package, RE_PKG } from "../api"; import { CONFIG } from "../config"; @@ -60,7 +60,7 @@ export const packageStatus = (id = "stable") => { return [ "### Status", "", - `**${id.toUpperCase()}**${status ? " - " + status : ""}` + `**${id.toUpperCase()}**${status ? " - " + status : ""}`, ].join("\n"); }; @@ -71,13 +71,16 @@ export const packageSize = () => { for (let id in meta) { res.push(`${id.toUpperCase()}: ${bytes(meta[id].gzip)}`); } - return "Package sizes (gzipped): " + res.join(" / "); + return "Package sizes (gzipped, pre-treeshake): " + res.join(" / "); } catch (_) { return ""; } }; -export const packageBanner = (name: string) => - `![${name}](${CONFIG.bannerURL}${shortName(name)}.svg?${(Date.now() / - 1000) | - 0})`; +export const packageBanner = (name: string) => { + name = shortName(name); + const sha1 = execSync(`sha1sum ${CONFIG.bannerBasePath}${name}.svg`) + .toString() + .substr(0, 8); + return `![${name}](${CONFIG.bannerURL}${name}.svg?${sha1})`; +}; diff --git a/tsconfig.json b/tsconfig.json index 778c4f52d2..f61be9c8b3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,8 @@ "preserveConstEnums": true, "moduleResolution": "node", "strict": true, - "strictNullChecks": true + "strictNullChecks": true, + "isolatedModules": true }, "exclude": ["./**/node_modules"] } diff --git a/yarn.lock b/yarn.lock index f15617056b..a62582c939 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3027,6 +3027,11 @@ commander@^2.11.0, commander@^2.19.0, commander@^2.20.0, commander@^2.7.1, comma resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== +commander@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-5.0.0.tgz#dbf1909b49e5044f8fdaf0adc809f0c0722bdfd0" + integrity sha512-JrDGPAKjMGSP1G0DUoaceEJ3DZgAfr/q6X7FVk4+U5KxUSKviYGM2k6zWkfyyBHy5rAtzgYJFa1ro2O9PtoxwQ== + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -5872,7 +5877,14 @@ lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.2.1 resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== -log-symbols@2.2.0, log-symbols@^2.2.0: +log-symbols@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" + integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== + dependencies: + chalk "^2.4.2" + +log-symbols@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== @@ -6207,6 +6219,11 @@ minimist@^1.1.3, minimist@^1.2.0: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= +minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== + minimist@~0.0.1: version "0.0.10" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" @@ -6258,17 +6275,24 @@ mkdirp-promise@^5.0.1: dependencies: mkdirp "*" -mkdirp@*, mkdirp@0.5.1, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: +mkdirp@*, mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= dependencies: minimist "0.0.8" -mocha@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.1.tgz#276186d35a4852f6249808c6dd4a1376cbf6c6ce" - integrity sha512-9eWmWTdHLXh72rGrdZjNbG3aa1/3NRPpul1z0D979QpEnFdCG0Q5tv834N+94QEN2cysfV72YocQ3fn87s70fg== +mkdirp@0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.3.tgz#5a514b7179259287952881e94410ec5465659f8c" + integrity sha512-P+2gwrFqx8lhew375MQHHeTlY8AuOJSrGf0R5ddkEndUkmwpgUob/vQuBD1V22/Cw1/lJr4x+EjllSezBThzBg== + dependencies: + minimist "^1.2.5" + +mocha@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.1.1.tgz#89fbb30d09429845b1bb893a830bf5771049a441" + integrity sha512-3qQsu3ijNS3GkWcccT5Zw0hf/rWvu1fTN9sPvEd81hlwsr30GX2GcDSSoBxo24IR8FelmrAydGC6/1J5QQP4WA== dependencies: ansi-colors "3.2.3" browser-stdout "1.3.1" @@ -6281,9 +6305,9 @@ mocha@^7.0.1: growl "1.10.5" he "1.2.0" js-yaml "3.13.1" - log-symbols "2.2.0" + log-symbols "3.0.0" minimatch "3.0.4" - mkdirp "0.5.1" + mkdirp "0.5.3" ms "2.1.1" node-environment-flags "1.0.6" object.assign "4.1.0" @@ -6291,8 +6315,8 @@ mocha@^7.0.1: supports-color "6.0.0" which "1.3.1" wide-align "1.1.3" - yargs "13.3.0" - yargs-parser "13.1.1" + yargs "13.3.2" + yargs-parser "13.1.2" yargs-unparser "1.6.0" modify-values@^1.0.0: @@ -9885,10 +9909,10 @@ yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== -yargs-parser@13.1.1, yargs-parser@^13.1.0, yargs-parser@^13.1.1: - version "13.1.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0" - integrity sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ== +yargs-parser@13.1.2, yargs-parser@^13.1.2: + version "13.1.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" + integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== dependencies: camelcase "^5.0.0" decamelize "^1.2.0" @@ -9900,6 +9924,14 @@ yargs-parser@^10.0.0: dependencies: camelcase "^4.1.0" +yargs-parser@^13.1.0, yargs-parser@^13.1.1: + version "13.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0" + integrity sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + yargs-parser@^15.0.0: version "15.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.0.tgz#cdd7a97490ec836195f59f3f4dbe5ea9e8f75f08" @@ -9942,7 +9974,23 @@ yargs@13.2.4: y18n "^4.0.0" yargs-parser "^13.1.0" -yargs@13.3.0, yargs@^13.3.0: +yargs@13.3.2: + version "13.3.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" + integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== + dependencies: + cliui "^5.0.0" + find-up "^3.0.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^3.0.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^13.1.2" + +yargs@^13.3.0: version "13.3.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==