diff --git a/package-lock.json b/package-lock.json index e3b1a7e3..b1e8e91b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@augment-vir/mono-repo-root", - "version": "31.2.0", + "version": "31.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@augment-vir/mono-repo-root", - "version": "31.2.0", + "version": "31.2.1", "hasInstallScript": true, "license": "(MIT or CC0 1.0)", "workspaces": [ @@ -18940,10 +18940,10 @@ }, "packages/assert": { "name": "@augment-vir/assert", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/core": "^31.2.0", + "@augment-vir/core": "^31.2.1", "@date-vir/duration": "^7.0.1", "deep-eql": "^5.0.2", "expect-type": "^1.1.0", @@ -18978,11 +18978,11 @@ }, "packages/common": { "name": "@augment-vir/common", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/core": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/core": "^31.2.1", "@date-vir/duration": "^7.0.1", "ansi-styles": "^6.2.1", "json5": "^2.2.3", @@ -19017,7 +19017,7 @@ }, "packages/core": { "name": "@augment-vir/core", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { "@date-vir/duration": "^7.0.1", @@ -19048,11 +19048,11 @@ }, "packages/node": { "name": "@augment-vir/node", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", "@date-vir/duration": "^7.0.1", "ansi-styles": "^6.2.1", "terminate": "^2.8.0", @@ -19060,7 +19060,7 @@ "typed-event-target": "^4.0.2" }, "devDependencies": { - "@augment-vir/test": "^31.2.0", + "@augment-vir/test": "^31.2.1", "@prisma/client": "^5.22.0", "@types/node": "^22.10.0", "@web/dev-server-esbuild": "^1.0.3", @@ -19091,18 +19091,18 @@ }, "packages/scripts": { "name": "@augment-vir/scripts", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", - "@augment-vir/node": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", + "@augment-vir/node": "^31.2.1", "@virmator/docs": "^13.10.3", "jsdom": "^25.0.1", "typedoc": "^0.27.0" }, "devDependencies": { - "@augment-vir/test": "^31.2.0", + "@augment-vir/test": "^31.2.1", "@types/jsdom": "^21.1.7", "@types/node": "^22.10.0" }, @@ -19112,11 +19112,11 @@ }, "packages/test": { "name": "@augment-vir/test", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", "@open-wc/testing-helpers": "^3.0.1", "@virmator/test": "^13.10.3", "type-fest": "^4.29.0" @@ -19150,17 +19150,17 @@ }, "packages/web": { "name": "@augment-vir/web", - "version": "31.2.0", + "version": "31.2.1", "license": "(MIT or CC0 1.0)", "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", "@date-vir/duration": "^7.0.1", "html-spec-tags": "^2.2.1", "type-fest": "^4.29.0" }, "devDependencies": { - "@augment-vir/test": "^31.2.0", + "@augment-vir/test": "^31.2.1", "bowser": "^2.11.0", "typescript": "^5.6.3" }, diff --git a/package.json b/package.json index b3424606..635e3020 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/mono-repo-root", - "version": "31.2.0", + "version": "31.2.1", "private": true, "homepage": "https://github.com/electrovir/augment-vir", "bugs": { diff --git a/packages/assert/package.json b/packages/assert/package.json index 437baed2..3785f31f 100644 --- a/packages/assert/package.json +++ b/packages/assert/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/assert", - "version": "31.2.0", + "version": "31.2.1", "description": "A collection of assertions for test and production code alike.", "keywords": [ "augment", @@ -41,7 +41,7 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/core": "^31.2.0", + "@augment-vir/core": "^31.2.1", "@date-vir/duration": "^7.0.1", "deep-eql": "^5.0.2", "expect-type": "^1.1.0", diff --git a/packages/common/package.json b/packages/common/package.json index c1ef9a58..e5cea8cb 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/common", - "version": "31.2.0", + "version": "31.2.1", "description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.", "keywords": [ "augment", @@ -39,8 +39,8 @@ "test:web": "virmator --no-deps test web" }, "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/core": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/core": "^31.2.1", "@date-vir/duration": "^7.0.1", "ansi-styles": "^6.2.1", "json5": "^2.2.3", diff --git a/packages/common/src/augments/object/key-count.ts b/packages/common/src/augments/object/key-count.ts index db9de090..c562971f 100644 --- a/packages/common/src/augments/object/key-count.ts +++ b/packages/common/src/augments/object/key-count.ts @@ -1,5 +1,3 @@ -import type {AnyObject} from '@augment-vir/core'; - /** * Counts the number of unique keys in an object type. Note that a key of just `string` will count * as 1. @@ -8,7 +6,7 @@ import type {AnyObject} from '@augment-vir/core'; * @category Package : @augment-vir/common * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common) */ -export type KeyCount = UnionToTuple['length']; +export type KeyCount = UnionToTuple['length']; /** * This is not exported because its order is not stable but it's okay for our simple use case where diff --git a/packages/core/package.json b/packages/core/package.json index 4c2d5597..bd33c9a2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/core", - "version": "31.2.0", + "version": "31.2.1", "description": "Core augment-vir augments. Use @augment-vir/common instead.", "homepage": "https://github.com/electrovir/augment-vir", "bugs": { diff --git a/packages/node/package.json b/packages/node/package.json index 905ff96b..0e1d4280 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/node", - "version": "31.2.0", + "version": "31.2.1", "description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.", "keywords": [ "augment", @@ -37,8 +37,8 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", "@date-vir/duration": "^7.0.1", "ansi-styles": "^6.2.1", "terminate": "^2.8.0", @@ -46,7 +46,7 @@ "typed-event-target": "^4.0.2" }, "devDependencies": { - "@augment-vir/test": "^31.2.0", + "@augment-vir/test": "^31.2.1", "@prisma/client": "^5.22.0", "@types/node": "^22.10.0", "@web/dev-server-esbuild": "^1.0.3", diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 07562cd0..20db7663 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/scripts", - "version": "31.2.0", + "version": "31.2.1", "private": true, "homepage": "https://github.com/electrovir/augment-vir", "bugs": { @@ -24,15 +24,15 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", - "@augment-vir/node": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", + "@augment-vir/node": "^31.2.1", "@virmator/docs": "^13.10.3", "jsdom": "^25.0.1", "typedoc": "^0.27.0" }, "devDependencies": { - "@augment-vir/test": "^31.2.0", + "@augment-vir/test": "^31.2.1", "@types/jsdom": "^21.1.7", "@types/node": "^22.10.0" }, diff --git a/packages/test/package.json b/packages/test/package.json index da280959..4afa3a45 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/test", - "version": "31.2.0", + "version": "31.2.1", "description": "A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner.", "keywords": [ "test", @@ -42,8 +42,8 @@ "test:web": "virmator test --no-deps web 'src/test-web/**/*.test.ts' 'src/augments/universal-testing-suite/**/*.test.ts'" }, "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", "@open-wc/testing-helpers": "^3.0.1", "@virmator/test": "^13.10.3", "type-fest": "^4.29.0" diff --git a/packages/web/package.json b/packages/web/package.json index e92adec1..e5ee6abb 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@augment-vir/web", - "version": "31.2.0", + "version": "31.2.1", "description": "A collection of augments, helpers types, functions, and classes only for web (frontend) JavaScript environments.", "keywords": [ "augment", @@ -35,14 +35,14 @@ "test:update": "npm test" }, "dependencies": { - "@augment-vir/assert": "^31.2.0", - "@augment-vir/common": "^31.2.0", + "@augment-vir/assert": "^31.2.1", + "@augment-vir/common": "^31.2.1", "@date-vir/duration": "^7.0.1", "html-spec-tags": "^2.2.1", "type-fest": "^4.29.0" }, "devDependencies": { - "@augment-vir/test": "^31.2.0", + "@augment-vir/test": "^31.2.1", "bowser": "^2.11.0", "typescript": "^5.6.3" }, diff --git a/todo.md b/todo.md index e745db04..bb62243c 100644 --- a/todo.md +++ b/todo.md @@ -36,3 +36,5 @@ - like this: https://github.com/electrovir/proxy-vir/actions/runs/11876323290/job/33094520685 - remove type guard from equality checks? (like jsonEquals) - add `this:void` to all functions +- better type guarding for `check.isIn` + - like in this situation: `check.isIn(someString, ['a', 'b', 'c'] as const)`