From 0a6e930a7ea08fb8ce740d91cadddbeff40e5e7f Mon Sep 17 00:00:00 2001 From: Shinrai Date: Fri, 2 Oct 2026 11:31:30 -0700 Subject: [PATCH] chore: adopt the shared CLDMV fix-headers config and stamp uniform file headers --- .configs/fix-headers.json | 3 ++ .configs/vitest.config.mjs | 15 +++++++ .github/dependabot.yml | 16 ++++--- .github/workflows/branch-retention.yml | 16 ++++--- .github/workflows/bundle-size.yml | 16 ++++--- .github/workflows/ci.yml | 16 ++++--- .github/workflows/cla.yml | 16 ++++--- .github/workflows/codeql.yml | 16 ++++--- .github/workflows/dependabot-auto-merge.yml | 16 ++++--- .github/workflows/dependabot-recreate.yml | 16 ++++--- .github/workflows/dependency-review.yml | 16 ++++--- .github/workflows/feature-pr.yml | 15 ++++--- .github/workflows/hotfix-redirector.yml | 16 ++++--- .github/workflows/hotfixes-release.yml | 16 ++++--- .github/workflows/labeler.yml | 16 ++++--- .github/workflows/master-commit-audit.yml | 16 ++++--- .github/workflows/member-auto-merge.yml | 16 ++++--- .github/workflows/next-release.yml | 16 ++++--- .github/workflows/next-reset.yml | 16 ++++--- .github/workflows/pr-notify.yml | 16 ++++--- .github/workflows/pr-title-normalizer.yml | 16 ++++--- .github/workflows/provenance.yml | 16 ++++--- .github/workflows/publish.yml | 16 ++++--- .github/workflows/release-merge.yml | 15 ++++--- .github/workflows/release-notify.yml | 16 ++++--- .github/workflows/scorecard.yml | 16 ++++--- .github/workflows/stale.yml | 16 ++++--- .github/workflows/tag-health.yml | 16 ++++--- .../workflows/update-major-version-tags.yml | 16 ++++--- .github/workflows/v4-bootstrap.yml | 16 ++++--- .github/workflows/welcome.yml | 16 ++++--- package-lock.json | 43 +++++++++++++++++++ package.json | 5 ++- sizeofvar.js | 14 ++++++ tests/arrays.test.vitest.mjs | 15 +++++++ tests/booleans.test.vitest.mjs | 15 +++++++ tests/edge-types.test.vitest.mjs | 15 +++++++ tests/numbers.test.vitest.mjs | 15 +++++++ tests/objects.test.vitest.mjs | 15 +++++++ tests/random-properties.test.vitest.mjs | 15 +++++++ tests/run-vitest.mjs | 15 +++++++ tests/strings.test.vitest.mjs | 15 +++++++ 42 files changed, 489 insertions(+), 173 deletions(-) create mode 100644 .configs/fix-headers.json diff --git a/.configs/fix-headers.json b/.configs/fix-headers.json new file mode 100644 index 0000000..f5dd35f --- /dev/null +++ b/.configs/fix-headers.json @@ -0,0 +1,3 @@ +{ + "extends": "@cldmv/configs/fix-headers.json" +} diff --git a/.configs/vitest.config.mjs b/.configs/vitest.config.mjs index 50214c8..90f7b2a 100644 --- a/.configs/vitest.config.mjs +++ b/.configs/vitest.config.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /.configs/vitest.config.mjs + * @Date: 2026-08-01T23:22:31-07:00 (1785651751) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + import { defineConfig } from "vitest/config"; import { fileURLToPath } from "node:url"; import path from "node:path"; diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 38b44e7..5aeeccb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/dependabot.yml -# @Date: 2026-05-26 00:00:00 -07:00 (1782460800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/dependabot.yml +# @Date: 2026-05-26T00:00:00-07:00 (1779778800) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/dependabot.yml diff --git a/.github/workflows/branch-retention.yml b/.github/workflows/branch-retention.yml index 606d0f3..4ae6e44 100644 --- a/.github/workflows/branch-retention.yml +++ b/.github/workflows/branch-retention.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/branch-retention.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/branch-retention.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/branch-retention.yml diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 024ee37..6cdadc0 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/bundle-size.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/bundle-size.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/bundle-size.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37458fd..5731b2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/ci.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/ci.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/ci.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 2c732a0..1bd304e 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/cla.yml -# @Date: 2026-07-19 00:00:00 -07:00 (1784523600) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/cla.yml +# @Date: 2026-07-19T00:00:00-07:00 (1784444400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/cla.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index da126b9..f41e408 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/codeql.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/codeql.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/codeql.yml diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index a19d6f2..a62759e 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/dependabot-auto-merge.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/dependabot-auto-merge.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/dependabot-auto-merge.yml diff --git a/.github/workflows/dependabot-recreate.yml b/.github/workflows/dependabot-recreate.yml index b880984..42facc3 100644 --- a/.github/workflows/dependabot-recreate.yml +++ b/.github/workflows/dependabot-recreate.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/dependabot-recreate.yml -# @Date: 2026-07-31 00:00:00 -07:00 (1785481200) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/dependabot-recreate.yml +# @Date: 2026-07-31T00:00:00-07:00 (1785481200) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/dependabot-recreate.yml diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index e39575d..eca7a25 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/dependency-review.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/dependency-review.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:28-07:00 (1790965828) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/dependency-review.yml diff --git a/.github/workflows/feature-pr.yml b/.github/workflows/feature-pr.yml index 10f7144..d2ff972 100644 --- a/.github/workflows/feature-pr.yml +++ b/.github/workflows/feature-pr.yml @@ -1,9 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/feature-pr.yml -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/feature-pr.yml +# @Date: 2026-08-01T23:22:31-07:00 (1785651751) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/feature-pr.yml diff --git a/.github/workflows/hotfix-redirector.yml b/.github/workflows/hotfix-redirector.yml index 4bc8caf..1e4d7c9 100644 --- a/.github/workflows/hotfix-redirector.yml +++ b/.github/workflows/hotfix-redirector.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/hotfix-redirector.yml -# @Date: 2026-05-22 00:00:00 -07:00 (1779778800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/hotfix-redirector.yml +# @Date: 2026-05-22T00:00:00-07:00 (1779433200) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/hotfix-redirector.yml diff --git a/.github/workflows/hotfixes-release.yml b/.github/workflows/hotfixes-release.yml index 4f84302..f8dad9e 100644 --- a/.github/workflows/hotfixes-release.yml +++ b/.github/workflows/hotfixes-release.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/hotfixes-release.yml -# @Date: 2026-05-22 00:00:00 -07:00 (1779778800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/hotfixes-release.yml +# @Date: 2026-05-22T00:00:00-07:00 (1779433200) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/hotfixes-release.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 480adaa..a19363b 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/labeler.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/labeler.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/labeler.yml diff --git a/.github/workflows/master-commit-audit.yml b/.github/workflows/master-commit-audit.yml index 2cb5e37..51a7e91 100644 --- a/.github/workflows/master-commit-audit.yml +++ b/.github/workflows/master-commit-audit.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/master-commit-audit.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/master-commit-audit.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/master-commit-audit.yml diff --git a/.github/workflows/member-auto-merge.yml b/.github/workflows/member-auto-merge.yml index 9c764d2..ef5437e 100644 --- a/.github/workflows/member-auto-merge.yml +++ b/.github/workflows/member-auto-merge.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/member-auto-merge.yml -# @Date: 2026-05-28 00:00:00 -07:00 (1780210800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/member-auto-merge.yml +# @Date: 2026-05-28T00:00:00-07:00 (1779951600) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/member-auto-merge.yml diff --git a/.github/workflows/next-release.yml b/.github/workflows/next-release.yml index 7caad6e..b86ca4a 100644 --- a/.github/workflows/next-release.yml +++ b/.github/workflows/next-release.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/next-release.yml -# @Date: 2026-05-22 00:00:00 -07:00 (1779778800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/next-release.yml +# @Date: 2026-05-22T00:00:00-07:00 (1779433200) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/next-release.yml diff --git a/.github/workflows/next-reset.yml b/.github/workflows/next-reset.yml index 2c54cfe..684e04c 100644 --- a/.github/workflows/next-reset.yml +++ b/.github/workflows/next-reset.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/next-reset.yml -# @Date: 2026-05-22 00:00:00 -07:00 (1779778800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/next-reset.yml +# @Date: 2026-05-22T00:00:00-07:00 (1779433200) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/next-reset.yml diff --git a/.github/workflows/pr-notify.yml b/.github/workflows/pr-notify.yml index ae056f7..dea3645 100644 --- a/.github/workflows/pr-notify.yml +++ b/.github/workflows/pr-notify.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/pr-notify.yml -# @Date: 2026-05-26 00:00:00 -07:00 (1780124400) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/pr-notify.yml +# @Date: 2026-05-26T00:00:00-07:00 (1779778800) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/pr-notify.yml diff --git a/.github/workflows/pr-title-normalizer.yml b/.github/workflows/pr-title-normalizer.yml index 379c133..1c301ee 100644 --- a/.github/workflows/pr-title-normalizer.yml +++ b/.github/workflows/pr-title-normalizer.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/pr-title-normalizer.yml -# @Date: 2026-05-22 00:00:00 -07:00 (1779778800) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/pr-title-normalizer.yml +# @Date: 2026-05-22T00:00:00-07:00 (1779433200) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/pr-title-normalizer.yml diff --git a/.github/workflows/provenance.yml b/.github/workflows/provenance.yml index b475d2f..8625092 100644 --- a/.github/workflows/provenance.yml +++ b/.github/workflows/provenance.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/provenance.yml -# @Date: 2026-09-05 00:00:00 -07:00 (1788591600) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/provenance.yml +# @Date: 2026-09-05T00:00:00-07:00 (1788591600) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # SLSA build provenance (.intoto.jsonl) for this repo's published releases. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fa86231..455926b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/publish.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/publish.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/publish.yml diff --git a/.github/workflows/release-merge.yml b/.github/workflows/release-merge.yml index c2fbd44..fbf04a7 100644 --- a/.github/workflows/release-merge.yml +++ b/.github/workflows/release-merge.yml @@ -1,9 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/release-merge.yml -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/release-merge.yml +# @Date: 2026-09-27T23:48:22-07:00 (1790578102) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/release-merge.yml diff --git a/.github/workflows/release-notify.yml b/.github/workflows/release-notify.yml index 24e572b..2d13870 100644 --- a/.github/workflows/release-notify.yml +++ b/.github/workflows/release-notify.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/release-notify.yml -# @Date: 2026-07-19 00:00:00 -07:00 (1784523600) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/release-notify.yml +# @Date: 2026-07-19T00:00:00-07:00 (1784444400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:29-07:00 (1790965829) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/release-notify.yml diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index e7951a2..d5b7e4a 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/scorecard.yml -# @Date: 2026-07-19 00:00:00 -07:00 (1784523600) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/scorecard.yml +# @Date: 2026-07-19T00:00:00-07:00 (1784444400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/scorecard.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9d9763e..feaba97 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/stale.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/stale.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/stale.yml diff --git a/.github/workflows/tag-health.yml b/.github/workflows/tag-health.yml index bf7824e..85a095d 100644 --- a/.github/workflows/tag-health.yml +++ b/.github/workflows/tag-health.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/tag-health.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/tag-health.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/tag-health.yml diff --git a/.github/workflows/update-major-version-tags.yml b/.github/workflows/update-major-version-tags.yml index b695cb1..5142c0e 100644 --- a/.github/workflows/update-major-version-tags.yml +++ b/.github/workflows/update-major-version-tags.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/update-major-version-tags.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/update-major-version-tags.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/update-major-version-tags.yml diff --git a/.github/workflows/v4-bootstrap.yml b/.github/workflows/v4-bootstrap.yml index a58c431..26465d4 100644 --- a/.github/workflows/v4-bootstrap.yml +++ b/.github/workflows/v4-bootstrap.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/v4-bootstrap.yml -# @Date: 2026-05-26 00:00:00 -07:00 (1780124400) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/v4-bootstrap.yml +# @Date: 2026-05-26T00:00:00-07:00 (1779778800) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/v4-bootstrap.yml diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 4b4ba65..ee1ee28 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -1,10 +1,14 @@ # -# @Project: @cldmv/sizeofvar -# @Filename: /.github/workflows/welcome.yml -# @Date: 2026-05-20 00:00:00 -07:00 (1779606000) -# @Author: Nate Corcoran -# @Email: -# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. +# @Project: @cldmv/sizeofvar +# @Filename: /.github/workflows/welcome.yml +# @Date: 2026-05-20T00:00:00-07:00 (1779260400) +# @Author: Nate Corcoran +# @Email: +# ----- +# @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) +# @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) +# ----- +# @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. # # Individual repo: .github/workflows/welcome.yml diff --git a/package-lock.json b/package-lock.json index d34220e..1b8f6a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,8 @@ "version": "1.0.10", "license": "GPL-3.0", "devDependencies": { + "@cldmv/configs": "^1.2.0", + "@cldmv/fix-headers": "^2.1.1", "@cldmv/vitest-runner": "^1.2.0", "@vitest/coverage-v8": "^5.0.0", "vitest": "^5.0.0" @@ -74,6 +76,37 @@ "node": ">=18" } }, + "node_modules/@cldmv/configs": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@cldmv/configs/-/configs-1.2.0.tgz", + "integrity": "sha512-FDmlxOx6ceKuD5zTamUy9XOfAC4opeOaLxWqZz9okKxj8TsTZP6dN7W0VccRYRdw4606NvXjhdZqOPibcNpXmQ==", + "dev": true, + "license": "Apache-2.0", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/shinrai" + } + }, + "node_modules/@cldmv/fix-headers": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@cldmv/fix-headers/-/fix-headers-2.1.1.tgz", + "integrity": "sha512-08xW44RvtrKUCTOjUFKHyrDvx6rT70zGqgRR+tdW0R9ElZrHwSg25xCRrZD+U7Dmj5fK9KmtuOWPjZtJYSfzYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "ignore": "^7.0.5" + }, + "bin": { + "fix-headers": "bin/fix-headers.mjs" + }, + "engines": { + "node": ">=22.12.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/shinrai" + } + }, "node_modules/@cldmv/vitest-runner": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@cldmv/vitest-runner/-/vitest-runner-1.2.0.tgz", @@ -660,6 +693,16 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/ignore": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz", + "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, "node_modules/js-tokens": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz", diff --git a/package.json b/package.json index 4eef44d..9df54e2 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "test": "node tests/run-vitest.mjs", "test:watch": "vitest --config .configs/vitest.config.mjs", "coverage": "node tests/run-vitest.mjs --coverage-quiet", - "ci:coverage": "npm run coverage" + "ci:coverage": "npm run coverage", + "fix:headers": "fix-headers --config .configs/fix-headers.json" }, "repository": { "type": "git", @@ -34,6 +35,8 @@ }, "homepage": "https://github.com/CLDMV/sizeofvar#readme", "devDependencies": { + "@cldmv/configs": "^1.2.0", + "@cldmv/fix-headers": "^2.1.1", "@cldmv/vitest-runner": "^1.2.0", "@vitest/coverage-v8": "^5.0.0", "vitest": "^5.0.0" diff --git a/sizeofvar.js b/sizeofvar.js index 12d88a3..bef287a 100644 --- a/sizeofvar.js +++ b/sizeofvar.js @@ -1,3 +1,17 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /sizeofvar.js + * @Date: 2018-03-01T23:13:55-08:00 (1519974835) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ function sizeofvar(object, level, from_array) { var type = false; diff --git a/tests/arrays.test.vitest.mjs b/tests/arrays.test.vitest.mjs index d5db93d..da8c290 100644 --- a/tests/arrays.test.vitest.mjs +++ b/tests/arrays.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/arrays.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Characterization tests for the "array" branch of sizeofvar.js. * diff --git a/tests/booleans.test.vitest.mjs b/tests/booleans.test.vitest.mjs index 1ae4218..cd2d3ad 100644 --- a/tests/booleans.test.vitest.mjs +++ b/tests/booleans.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/booleans.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Characterization tests for the "boolean" branch of sizeofvar.js. * diff --git a/tests/edge-types.test.vitest.mjs b/tests/edge-types.test.vitest.mjs index c739c23..504fb81 100644 --- a/tests/edge-types.test.vitest.mjs +++ b/tests/edge-types.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/edge-types.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Characterization tests for values that fall OUTSIDE the six * handled switch cases (boolean/number/string/object/array) in sizeofvar.js, diff --git a/tests/numbers.test.vitest.mjs b/tests/numbers.test.vitest.mjs index 34d4901..c00a8c8 100644 --- a/tests/numbers.test.vitest.mjs +++ b/tests/numbers.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/numbers.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Characterization tests for the "number" branch of sizeofvar.js. * diff --git a/tests/objects.test.vitest.mjs b/tests/objects.test.vitest.mjs index 3a4f4f4..cf290d5 100644 --- a/tests/objects.test.vitest.mjs +++ b/tests/objects.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/objects.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Characterization tests for the "object" branch of sizeofvar.js. * diff --git a/tests/random-properties.test.vitest.mjs b/tests/random-properties.test.vitest.mjs index feb7150..57375bc 100644 --- a/tests/random-properties.test.vitest.mjs +++ b/tests/random-properties.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/random-properties.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Property-based tests for sizeofvar.js using randomized * inputs, asserting stable INVARIANTS (type consistency, monotonicity, diff --git a/tests/run-vitest.mjs b/tests/run-vitest.mjs index fb10e04..e485190 100644 --- a/tests/run-vitest.mjs +++ b/tests/run-vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/run-vitest.mjs + * @Date: 2026-08-01T23:22:31-07:00 (1785651751) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:30-07:00 (1790965830) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview OOM-safe Vitest runner for sizeofvar — delegates to * @cldmv/vitest-runner, which spawns each test file in its own child process and diff --git a/tests/strings.test.vitest.mjs b/tests/strings.test.vitest.mjs index 1f53c51..e124ebf 100644 --- a/tests/strings.test.vitest.mjs +++ b/tests/strings.test.vitest.mjs @@ -1,3 +1,18 @@ +/** + * + * @Project: @cldmv/sizeofvar + * @Filename: /tests/strings.test.vitest.mjs + * @Date: 2026-08-02T23:40:06-07:00 (1785739206) + * @Author: Nate Corcoran + * @Email: + * ----- + * @Last modified by: Nate Corcoran (Shinrai@users.noreply.github.com) + * @Last modified time: 2026-10-02T11:30:31-07:00 (1790965831) + * ----- + * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved. + * + */ + /** * @fileoverview Characterization tests for the "string" branch of sizeofvar.js. *