Conversation
🦋 Changeset detectedLatest commit: 89e3de7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this comment.
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.tsexportingversions, and re-export it fromlib/index.ts. - Introduce a
stringInjecttsup 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.
There was a problem hiding this comment.
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.
No description provided.