Skip to content

consts, versions object, i18n transform, translation fixes, bump CoreUtils#110

Merged
Sv443 merged 14 commits intomainfrom
develop
Mar 2, 2026
Merged

consts, versions object, i18n transform, translation fixes, bump CoreUtils#110
Sv443 merged 14 commits intomainfrom
develop

Conversation

@Sv443
Copy link
Member

@Sv443 Sv443 commented Feb 12, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 12, 2026 18:56
@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2026

🦋 Changeset detected

Latest commit: 89e3de7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sv443-network/userutils Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Sv443 Sv443 marked this pull request as draft February 12, 2026 18:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a build-time–injected versions constant to expose the runtime versions of UserUtils and its bundled/re-exported CoreUtils dependency, and updates build/test/docs to reflect this new API.

Changes:

  • Add lib/consts.ts exporting versions, and re-export it from lib/index.ts.
  • Introduce a stringInject tsup plugin and wire it into the build to inject version strings into bundles.
  • Update docs/README/changeset and adjust Vitest coverage exclusions.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vitest.config.ts Excludes lib/consts.ts from coverage reporting.
tsup.config.mjs Adds string-injection plugin + injects CoreUtils/UserUtils versions into bundles; renames UMD wrapper import.
tools/umdWrapperPlugin.mjs Renames exported factory to createUmdWrapperPlugin.
tools/stringInjectPlugin.mjs New plugin to do post-build string/regex replacement in emitted bundles.
lib/index.ts Re-exports new consts module.
lib/consts.ts New module defining injected placeholders and exporting versions.
lib/consts.spec.ts New test intended to validate injected versions via the built bundle.
docs.md Documents const versions and adds guidance about CoreUtils/UserUtils version matching.
README.md Updates note and ToC to mention const versions.
README-summary.md Updates summary note and ToC to mention const versions.
.changeset/fluffy-spies-cut.md Adds changeset entry for the new versions export.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sv443 Sv443 changed the title feat: add consts & versions object consts, versions object, i18n transform, translation fixes, bump CoreUtils Mar 2, 2026
@Sv443 Sv443 requested a review from Copilot March 2, 2026 13:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 5 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sv443 Sv443 marked this pull request as ready for review March 2, 2026 14:42
@Sv443 Sv443 merged commit bd1b244 into main Mar 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants