diff --git a/.configs/eslint.config.mjs b/.configs/eslint.config.mjs index 1f9d4f0..dbcefae 100644 --- a/.configs/eslint.config.mjs +++ b/.configs/eslint.config.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /.configs/eslint.config.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:42 -08:00 (1772687022) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/.configs/tsconfig.dts.jsonc b/.configs/tsconfig.dts.jsonc index 1b28874..85acbdf 100644 --- a/.configs/tsconfig.dts.jsonc +++ b/.configs/tsconfig.dts.jsonc @@ -1,14 +1,14 @@ -/* - * @Project: @cldmv/uuid - * @Filename: /.configs/tsconfig.dts.jsonc - * @Date: 2026-03-04 20:21:33 -08:00 (1772684493) - * @Author: Nate Corcoran - * @Email: - * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:19:45 -08:00 (1772687985) - * ----- - * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +/** + * @Project: @cldmv/uuid + * @Filename: /.configs/tsconfig.dts.jsonc + * @Date: 2025-12-15T20:33:49-08:00 (1765859629) + * @Author: Shinrai + * @Email: + * ----- + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ { diff --git a/.configs/vitest.ci.config.mjs b/.configs/vitest.ci.config.mjs index 80b7321..32939c3 100644 --- a/.configs/vitest.ci.config.mjs +++ b/.configs/vitest.ci.config.mjs @@ -1,14 +1,14 @@ /** - * @Project: @cldmv/fix-headers + * @Project: @cldmv/uuid * @Filename: /.configs/vitest.ci.config.mjs * @Date: 2026-02-25 17:34:15 -08:00 (1772069655) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-01T17:59:32-08:00 (1772416772) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- - * @Copyright: Copyright (c) 2026-2026 Catalyzed Motivation Inc. All rights reserved. + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ import base from "./vitest.config.mjs"; diff --git a/.configs/vitest.config.mjs b/.configs/vitest.config.mjs index f23c14b..c2d1474 100644 --- a/.configs/vitest.config.mjs +++ b/.configs/vitest.config.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /.configs/vitest.config.mjs * @Date: 2025-09-09 13:22:38 -07:00 (1757449358) * @Author: Nate Hyson * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/devcheck.mjs b/devcheck.mjs index e5fca79..9dd35cf 100644 --- a/devcheck.mjs +++ b/devcheck.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /devcheck.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ @@ -21,41 +21,77 @@ const srcPath = path.join(__dirname, "src"); // Detect if we're running in a CI environment const isCI = !!( - ( - process.env.CI || // Generic CI flag - process.env.GITHUB_ACTIONS || // GitHub Actions - process.env.TRAVIS || // Travis CI - process.env.CIRCLECI || // CircleCI - process.env.GITLAB_CI || // GitLab CI - process.env.BUILDKITE || // Buildkite - process.env.JENKINS_URL || // Jenkins - process.env.TF_BUILD - ) // Azure DevOps + process.env.CI || // Generic CI flag + process.env.GITHUB_ACTIONS || // GitHub Actions + process.env.TRAVIS || // Travis CI + process.env.CIRCLECI || // CircleCI + process.env.GITLAB_CI || // GitLab CI + process.env.BUILDKITE || // Buildkite + process.env.JENKINS_URL || // Jenkins + process.env.TF_BUILD // Azure DevOps ); -if (existsSync(srcPath) && !isCI) { - const nodeEnv = process.env.NODE_ENV?.toLowerCase(); - const hasUUIDDev = process.env.NODE_OPTIONS?.includes("--conditions=uuid-dev"); +// Skip when installed as a dependency (a `node_modules` segment anywhere above this +// file - covers scoped `node_modules/@cldmv/uuid` and unscoped installs). The +// npm-published package ships neither `src/` nor this file, so this branch is already +// moot there; but a git/tarball install DOES include them, and without this guard +// devcheck would `process.exit(1)` inside a consumer's app. A "parent dir === +// node_modules" check would miss scoped packages (parent is the scope dir). +const isInstalledPackage = __dirname.split(path.sep).includes("node_modules"); - if (!nodeEnv || (!["", "development"].includes(nodeEnv) && !hasUUIDDev)) { +// Only meaningful in a source checkout. When `src/` is present the developer should be +// loading from it via the `uuid-dev` condition; if that condition isn't set they are +// silently running the built `dist/` copy instead, so warn - even after a build, since +// a built checkout has BOTH src/ and dist/ and the condition is the only thing that +// selects src/. +if (existsSync(srcPath) && !isCI && !isInstalledPackage) { + // The condition selects src/ (see the `./main` export in package.json). It can be + // supplied via NODE_OPTIONS (`NODE_OPTIONS=--conditions=uuid-dev`) OR directly on the + // node CLI (`node --conditions=uuid-dev` / `-C uuid-dev`), which lands in execArgv - + // this is how vitest passes it to workers - so scan both. Each `--conditions` + // occurrence is ONE literal condition value: Node does not split it on `,` or `|` + // (verified - `--conditions=uuid-dev,x` and `--conditions=uuid-dev|x` do NOT enable + // `uuid-dev`), and multiple conditions are passed as repeated flags. So collect each + // value whole and match EXACTLY - no substring, no splitting - so `not-uuid-dev`, + // `uuid-dev,x`, and `uuid-dev|production` all correctly fail to count. Namespaced + // (not the generic `development`) so a consuming app's own `--conditions=development` + // can't flip this package to a source tree it doesn't ship. NODE_ENV is deliberately + // NOT consulted: it does not affect which tree resolves. + const conditions = []; + const scan = (tokens) => { + for (let i = 0; i < tokens.length; i++) { + if (tokens[i] === "--conditions" || tokens[i] === "-C") { + if (tokens[i + 1] !== undefined) conditions.push(tokens[i + 1]); + } else if (tokens[i].startsWith("--conditions=")) { + conditions.push(tokens[i].slice("--conditions=".length)); + } else if (tokens[i].startsWith("-C=")) { + conditions.push(tokens[i].slice("-C=".length)); + } + } + }; + scan(process.execArgv); + scan((process.env.NODE_OPTIONS || "").split(/\s+/).filter(Boolean)); + const hasUUIDDev = conditions.includes("uuid-dev"); + + if (!hasUUIDDev) { console.error("❌ Development environment not properly configured!"); - console.error("📁 Source folder detected but NODE_ENV/NODE_OPTIONS not set for uuid development."); + console.error("📁 Source folder detected but the 'uuid-dev' condition is not set,"); + console.error(" so UUID is loading from dist/ instead of src/."); console.error(""); - console.error("🔧 To fix this, run one of these commands:"); + console.error("🔧 To load from src/ for development, set the condition:"); console.error(" Windows (cmd):"); - console.error(" set NODE_ENV=development"); console.error(" set NODE_OPTIONS=--conditions=uuid-dev"); console.error(""); console.error(" Windows (PowerShell):"); - console.error(" $env:NODE_ENV='development'"); console.error(" $env:NODE_OPTIONS='--conditions=uuid-dev'"); console.error(""); console.error(" Unix/Linux/macOS:"); - console.error(" export NODE_ENV=development"); console.error(" export NODE_OPTIONS=--conditions=uuid-dev"); console.error(""); - console.error("💡 This ensures UUID module loads from src/ instead of dist/ for development."); - console.error("🔧 Using 'uuid-dev' prevents conflicts with consumer development settings."); + console.error(" ...or pass it directly: node --conditions=uuid-dev "); + console.error(""); + console.error("💡 'uuid-dev' is namespaced so it can't conflict with a consumer's own"); + console.error(" development conditions."); console.error("🚀 CI environments automatically skip this check."); process.exit(1); } diff --git a/index.cjs b/index.cjs index 5af6cc0..fdfb542 100644 --- a/index.cjs +++ b/index.cjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /index.cjs * @Date: 2025-12-15 16:18:10 -08:00 (1765844290) * @Author: Nate Hyson * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/index.mjs b/index.mjs index a2934df..4f3cd77 100644 --- a/index.mjs +++ b/index.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /index.mjs * @Date: 2025-12-15 16:18:10 -08:00 (1765844290) * @Author: Nate Hyson * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/package.json b/package.json index b722a83..e98f112 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,6 @@ "import": "./index.mjs", "require": "./index.cjs" }, - "./devcheck": { - "types": "./types/devcheck.d.mts", - "import": "./devcheck.mjs" - }, "./main": { "uuid-dev": { "import": "./src/uuid.mjs" diff --git a/scripts/debug-timestamp.mjs b/scripts/debug-timestamp.mjs index e4b0df8..218c03f 100644 --- a/scripts/debug-timestamp.mjs +++ b/scripts/debug-timestamp.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /scripts/debug-timestamp.mjs * @Date: 2025-12-19T20:14:21-08:00 (1766204061) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/scripts/demo-custom-uuids.mjs b/scripts/demo-custom-uuids.mjs index 6a0371c..8d399c8 100644 --- a/scripts/demo-custom-uuids.mjs +++ b/scripts/demo-custom-uuids.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /scripts/demo-custom-uuids.mjs * @Date: 2025-12-19 19:38:49 -08:00 (1766201929) * @Author: Nate Hyson * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/scripts/demo-default-string.mjs b/scripts/demo-default-string.mjs index 8f505eb..64bfda2 100644 --- a/scripts/demo-default-string.mjs +++ b/scripts/demo-default-string.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /scripts/demo-default-string.mjs * @Date: 2025-12-22T16:59:18-08:00 (1766451558) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/scripts/test-timestamp.mjs b/scripts/test-timestamp.mjs index 8fa42de..d6f9843 100644 --- a/scripts/test-timestamp.mjs +++ b/scripts/test-timestamp.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /scripts/test-timestamp.mjs * @Date: 2025-12-19T20:14:21-08:00 (1766204061) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/scripts/test-version-files.mjs b/scripts/test-version-files.mjs index dec6540..4496aa9 100644 --- a/scripts/test-version-files.mjs +++ b/scripts/test-version-files.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /scripts/test-version-files.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/bit-utils.mjs b/src/lib/bit-utils.mjs index d9c3fb0..9f767e4 100644 --- a/src/lib/bit-utils.mjs +++ b/src/lib/bit-utils.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/bit-utils.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/constants.mjs b/src/lib/constants.mjs index 0ef641e..f11a7c0 100644 --- a/src/lib/constants.mjs +++ b/src/lib/constants.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/constants.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/entropy-sources.mjs b/src/lib/entropy-sources.mjs index 2e54ca0..7a541f0 100644 --- a/src/lib/entropy-sources.mjs +++ b/src/lib/entropy-sources.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/entropy-sources.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/issuer-registry.mjs b/src/lib/issuer-registry.mjs index 0fe7923..19a64ed 100644 --- a/src/lib/issuer-registry.mjs +++ b/src/lib/issuer-registry.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/issuer-registry.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:43 -08:00 (1772687023) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/validators.mjs b/src/lib/validators.mjs index 935e313..92d2bec 100644 --- a/src/lib/validators.mjs +++ b/src/lib/validators.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/validators.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/index.mjs b/src/lib/versions/index.mjs index b14469d..5812d3c 100644 --- a/src/lib/versions/index.mjs +++ b/src/lib/versions/index.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/index.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/issuer/index.mjs b/src/lib/versions/issuer/index.mjs index ad2a938..f1b7eeb 100644 --- a/src/lib/versions/issuer/index.mjs +++ b/src/lib/versions/issuer/index.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/issuer/index.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/issuer/v1.mjs b/src/lib/versions/issuer/v1.mjs index 23afde2..7df50b8 100644 --- a/src/lib/versions/issuer/v1.mjs +++ b/src/lib/versions/issuer/v1.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/issuer/v1.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/index.mjs b/src/lib/versions/rfc/index.mjs index e625211..6f1d451 100644 --- a/src/lib/versions/rfc/index.mjs +++ b/src/lib/versions/rfc/index.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/index.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/utils.mjs b/src/lib/versions/rfc/utils.mjs index 59d4907..df3b923 100644 --- a/src/lib/versions/rfc/utils.mjs +++ b/src/lib/versions/rfc/utils.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/utils.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/v1.mjs b/src/lib/versions/rfc/v1.mjs index 69d9f08..1403b63 100644 --- a/src/lib/versions/rfc/v1.mjs +++ b/src/lib/versions/rfc/v1.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/v1.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/v35.mjs b/src/lib/versions/rfc/v35.mjs index d9f87d9..24ad895 100644 --- a/src/lib/versions/rfc/v35.mjs +++ b/src/lib/versions/rfc/v35.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/v35.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/v4.mjs b/src/lib/versions/rfc/v4.mjs index d0cb432..f3fc63b 100644 --- a/src/lib/versions/rfc/v4.mjs +++ b/src/lib/versions/rfc/v4.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/v4.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/v6.mjs b/src/lib/versions/rfc/v6.mjs index a7dc878..6cdfd00 100644 --- a/src/lib/versions/rfc/v6.mjs +++ b/src/lib/versions/rfc/v6.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/v6.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/v7.mjs b/src/lib/versions/rfc/v7.mjs index 497e05f..0e5b099 100644 --- a/src/lib/versions/rfc/v7.mjs +++ b/src/lib/versions/rfc/v7.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/v7.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/rfc/v8.mjs b/src/lib/versions/rfc/v8.mjs index c6d288c..2be5c4b 100644 --- a/src/lib/versions/rfc/v8.mjs +++ b/src/lib/versions/rfc/v8.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/rfc/v8.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/timestamp/index.mjs b/src/lib/versions/timestamp/index.mjs index dc5b309..4c6a704 100644 --- a/src/lib/versions/timestamp/index.mjs +++ b/src/lib/versions/timestamp/index.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/timestamp/index.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/timestamp/v1.mjs b/src/lib/versions/timestamp/v1.mjs index 5fde8a9..73934f7 100644 --- a/src/lib/versions/timestamp/v1.mjs +++ b/src/lib/versions/timestamp/v1.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/timestamp/v1.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:44 -08:00 (1772687024) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/lib/versions/timestamp/v2.mjs b/src/lib/versions/timestamp/v2.mjs index 06d1c7b..40e83bd 100644 --- a/src/lib/versions/timestamp/v2.mjs +++ b/src/lib/versions/timestamp/v2.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/lib/versions/timestamp/v2.mjs * @Date: 2025-12-30T17:00:08-08:00 (1767142808) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:45 -08:00 (1772687025) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/src/uuid.mjs b/src/uuid.mjs index b4168fa..370c4d2 100644 --- a/src/uuid.mjs +++ b/src/uuid.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /src/uuid.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:45 -08:00 (1772687025) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/DevCheck.test.vitest.mjs b/tests/DevCheck.test.vitest.mjs new file mode 100644 index 0000000..de4dfea --- /dev/null +++ b/tests/DevCheck.test.vitest.mjs @@ -0,0 +1,151 @@ +/** + * @Project: @cldmv/uuid + * @Filename: /tests/DevCheck.test.vitest.mjs + * @Date: 2026-08-08T00:00:00-08:00 (1786233600) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + */ + +import { test, expect, describe, beforeAll, afterAll } from "vitest"; +import { spawnSync } from "node:child_process"; +import { mkdtempSync, mkdirSync, copyFileSync, rmSync } from "node:fs"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +// devcheck.mjs resolves `src/` relative to its own file location and reads process.env +// / process.execArgv, so each case runs a COPY of it in a purpose-built fixture +// directory with a from-scratch env (only PATH), preventing the real CI environment +// this suite runs in from leaking `CI`/`GITHUB_ACTIONS`/`NODE_OPTIONS` into the +// subprocess. +const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); +const devcheckSrc = path.join(repoRoot, "devcheck.mjs"); + +let tmpRoot; +let counter = 0; + +beforeAll(() => { + tmpRoot = mkdtempSync(path.join(tmpdir(), "uuid-devcheck-")); +}); + +afterAll(() => { + if (tmpRoot) rmSync(tmpRoot, { recursive: true, force: true }); +}); + +// Materialize a fixture dir with a copy of devcheck.mjs plus optional src/ and dist/, +// optionally nested under node_modules// to simulate an installed package. +function makeFixture({ src = true, dist = false, installed = false } = {}) { + const base = path.join(tmpRoot, `f${counter++}`); + const pkgDir = installed ? path.join(base, "node_modules", "@cldmv", "uuid") : path.join(base, "uuid"); + mkdirSync(pkgDir, { recursive: true }); + if (src) mkdirSync(path.join(pkgDir, "src"), { recursive: true }); + if (dist) mkdirSync(path.join(pkgDir, "dist"), { recursive: true }); + copyFileSync(devcheckSrc, path.join(pkgDir, "devcheck.mjs")); + return path.join(pkgDir, "devcheck.mjs"); +} + +// nodeArgs are passed on the node CLI (i.e. become process.execArgv); env is a +// from-scratch environment (only PATH plus whatever is given). +function runDevcheck(fixtureOpts, { env = {}, nodeArgs = [] } = {}) { + const devcheck = makeFixture(fixtureOpts); + const result = spawnSync(process.execPath, [...nodeArgs, devcheck], { + env: { PATH: process.env.PATH, ...env }, + encoding: "utf8" + }); + return { status: result.status, stderr: result.stderr || "" }; +} + +describe("devcheck", () => { + test("nags in a source checkout when the uuid-dev condition is not set", () => { + const { status, stderr } = runDevcheck({ src: true }); + expect(status).toBe(1); + expect(stderr).toContain("Development environment not properly configured"); + expect(stderr).toContain("--conditions=uuid-dev"); + }); + + test("stays silent when the condition is set via NODE_OPTIONS", () => { + const { status, stderr } = runDevcheck({ src: true }, { env: { NODE_OPTIONS: "--conditions=uuid-dev" } }); + expect(status).toBe(0); + expect(stderr).toBe(""); + }); + + test("stays silent when the condition is passed on the node CLI (execArgv, = form)", () => { + // vitest passes --conditions to workers this way, so devcheck must detect it here too. + const { status, stderr } = runDevcheck({ src: true }, { nodeArgs: ["--conditions=uuid-dev"] }); + expect(status).toBe(0); + expect(stderr).toBe(""); + }); + + test("stays silent when the condition is passed space-separated (--conditions uuid-dev)", () => { + const { status, stderr } = runDevcheck({ src: true }, { nodeArgs: ["--conditions", "uuid-dev"] }); + expect(status).toBe(0); + expect(stderr).toBe(""); + }); + + test("stays silent when uuid-dev is one of several repeated --conditions flags", () => { + const { status } = runDevcheck({ src: true }, { nodeArgs: ["--conditions=foo", "--conditions=uuid-dev"] }); + expect(status).toBe(0); + }); + + test("NODE_ENV=development alone does NOT silence it (only the condition selects src/)", () => { + // Keying off NODE_ENV would be a false negative: dev env set but no condition means + // the package is still resolving to dist/, which is exactly what should be flagged. + const { status } = runDevcheck({ src: true }, { env: { NODE_ENV: "development" } }); + expect(status).toBe(1); + }); + + test("STILL nags when dist/ has been built but the condition is not set", () => { + // A build must NOT silence the check: with src/ present the developer should be on + // src/ via the condition, not the stale dist/. + const { status } = runDevcheck({ src: true, dist: true }); + expect(status).toBe(1); + }); + + test("does NOT accept a generic development condition (namespacing)", () => { + const { status } = runDevcheck({ src: true }, { nodeArgs: ["--conditions=development"] }); + expect(status).toBe(1); + }); + + test("does NOT match a condition that merely contains 'uuid-dev' as a substring", () => { + // Exact-value match, not substring: --conditions=not-uuid-dev must NOT silence it. + const { status } = runDevcheck({ src: true }, { nodeArgs: ["--conditions=not-uuid-dev"] }); + expect(status).toBe(1); + }); + + test("does NOT treat a comma-joined value as separate conditions", () => { + // Node does not split --conditions on `,`: `foo,uuid-dev,bar` is one literal + // condition, so uuid-dev is NOT enabled and devcheck must still nag. + const { status } = runDevcheck({ src: true }, { nodeArgs: ["--conditions=foo,uuid-dev,bar"] }); + expect(status).toBe(1); + }); + + test("does NOT treat a pipe-joined value as separate conditions", () => { + // Likewise Node does not split on `|` (it's a valid condition character, e.g. + // Vite's `development|production`): `uuid-dev|production` does not enable uuid-dev. + const { status } = runDevcheck({ src: true }, { nodeArgs: ["--conditions=uuid-dev|production"] }); + expect(status).toBe(1); + }); + + test("skips in CI", () => { + const { status, stderr } = runDevcheck({ src: true }, { env: { CI: "true" } }); + expect(status).toBe(0); + expect(stderr).toBe(""); + }); + + test("skips when installed as a scoped dependency (node_modules/@cldmv/uuid)", () => { + const { status, stderr } = runDevcheck({ src: true, installed: true }); + expect(status).toBe(0); + expect(stderr).toBe(""); + }); + + test("does nothing when there is no src/ (published dist-only layout)", () => { + const { status, stderr } = runDevcheck({ src: false, dist: true }); + expect(status).toBe(0); + expect(stderr).toBe(""); + }); +}); diff --git a/tests/bit-utils.test.vitest.mjs b/tests/bit-utils.test.vitest.mjs index d0bdacd..153ed1c 100644 --- a/tests/bit-utils.test.vitest.mjs +++ b/tests/bit-utils.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/bit-utils.test.vitest.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:02 -08:00 (1772687042) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/collision.test.vitest.mjs b/tests/collision.test.vitest.mjs index fb93945..76a04ad 100644 --- a/tests/collision.test.vitest.mjs +++ b/tests/collision.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/collision.test.vitest.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/custom-uuid.test.vitest.mjs b/tests/custom-uuid.test.vitest.mjs index 219f104..a10bad9 100644 --- a/tests/custom-uuid.test.vitest.mjs +++ b/tests/custom-uuid.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/custom-uuid.test.vitest.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/default-string-behavior.test.vitest.mjs b/tests/default-string-behavior.test.vitest.mjs index 69cba03..6606946 100644 --- a/tests/default-string-behavior.test.vitest.mjs +++ b/tests/default-string-behavior.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/default-string-behavior.test.vitest.mjs * @Date: 2025-12-22T16:59:18-08:00 (1766451558) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/entropy-sources.test.vitest.mjs b/tests/entropy-sources.test.vitest.mjs index f12acf7..1865a2e 100644 --- a/tests/entropy-sources.test.vitest.mjs +++ b/tests/entropy-sources.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/entropy-sources.test.vitest.mjs * @Date: 2026-03-04 20:28:46 -08:00 (1772684926) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/integration.test.vitest.mjs b/tests/integration.test.vitest.mjs index 16de65f..bf780f0 100644 --- a/tests/integration.test.vitest.mjs +++ b/tests/integration.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/integration.test.vitest.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/issuer-registry.test.vitest.mjs b/tests/issuer-registry.test.vitest.mjs index ebbc029..b9da985 100644 --- a/tests/issuer-registry.test.vitest.mjs +++ b/tests/issuer-registry.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/issuer-registry.test.vitest.mjs * @Date: 2026-03-04 20:29:09 -08:00 (1772684949) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/rfc-uuids.test.vitest.mjs b/tests/rfc-uuids.test.vitest.mjs index 462297b..2573a78 100644 --- a/tests/rfc-uuids.test.vitest.mjs +++ b/tests/rfc-uuids.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/rfc-uuids.test.vitest.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/run-vitest.mjs b/tests/run-vitest.mjs index cae553a..e251db2 100644 --- a/tests/run-vitest.mjs +++ b/tests/run-vitest.mjs @@ -1,3 +1,16 @@ +/** + * @Project: @cldmv/uuid + * @Filename: /tests/run-vitest.mjs + * @Date: 2026-08-02T23:29:33-07:00 (1785738573) + * @Author: Shinrai + * @Email: + * ----- + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + */ + /** * @fileoverview OOM-safe Vitest runner for uuid — delegates to @cldmv/vitest-runner, * which spawns each test file in its own child process and (under coverage) uses a diff --git a/tests/ultra-short-variants.test.vitest.mjs b/tests/ultra-short-variants.test.vitest.mjs index cac9361..94e9695 100644 --- a/tests/ultra-short-variants.test.vitest.mjs +++ b/tests/ultra-short-variants.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/ultra-short-variants.test.vitest.mjs * @Date: 2025-12-19T20:14:21-08:00 (1766204061) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/uuid-coverage.test.vitest.mjs b/tests/uuid-coverage.test.vitest.mjs index 8d679fe..7730cc7 100644 --- a/tests/uuid-coverage.test.vitest.mjs +++ b/tests/uuid-coverage.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/uuid-coverage.test.vitest.mjs * @Date: 2026-03-04 20:33:19 -08:00 (1772685199) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tests/validators.test.vitest.mjs b/tests/validators.test.vitest.mjs index 93e85de..4906b40 100644 --- a/tests/validators.test.vitest.mjs +++ b/tests/validators.test.vitest.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tests/validators.test.vitest.mjs * @Date: 2025-12-15T20:33:49-08:00 (1765859629) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:04:03 -08:00 (1772687043) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */ diff --git a/tools/fix-headers.mjs b/tools/fix-headers.mjs index f4776e8..252c4e0 100644 --- a/tools/fix-headers.mjs +++ b/tools/fix-headers.mjs @@ -85,7 +85,7 @@ function buildOptions(parsed) { return { cwd: projectRoot, dryRun: parsed.dryRun, - projectName: "@cldmv/slothlet", + projectName: "@cldmv/uuid", company: "CLDMV", companyName: "Catalyzed Motivation Inc.", copyrightStartYear: 2013, diff --git a/tools/lib/header-config.mjs b/tools/lib/header-config.mjs index 586ab48..443f66a 100644 --- a/tools/lib/header-config.mjs +++ b/tools/lib/header-config.mjs @@ -1,12 +1,12 @@ /** - * @Project: @cldmv/slothlet + * @Project: @cldmv/uuid * @Filename: /tools/lib/header-config.mjs * @Date: 2026-03-04 20:50:54 -08:00 (1772686254) * @Author: Nate Corcoran * @Email: * ----- - * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) - * @Last modified time: 2026-03-04 21:03:46 -08:00 (1772687026) + * @Last modified by: Shinrai (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-08-08 17:13:20 -07:00 (1786234400) * ----- * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. */