Skip to content

chore: move vorm-vue from peerDependency to dependency#25

Merged
Flo0806 merged 2 commits intomainfrom
chore/fix-peer-dependency-issue
Oct 23, 2025
Merged

chore: move vorm-vue from peerDependency to dependency#25
Flo0806 merged 2 commits intomainfrom
chore/fix-peer-dependency-issue

Conversation

@Flo0806
Copy link
Copy Markdown
Owner

@Flo0806 Flo0806 commented Oct 23, 2025

- Removes vorm-nuxt from changesets ignore list
- Changes vorm-vue from peerDependency to normal dependency in vorm-nuxt
- Updates vorm-vue dependency to ^1.1.1 (aligns with current vorm-vue@1.1.0)
- Updates vorm-nuxt plugin version to 1.0.2 (upcoming patch release)
- Fixes automatic major version bump issue when vorm-vue is patched
- Resolves changesets/changesets#1011
- Adds CLAUDE.md for project documentation
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: 364d759

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

This PR includes changesets to release 2 packages
Name Type
vorm-nuxt Patch
vorm-vue Patch

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

if (options.autoImports) {
addImports([
{ name: 'useVorm', from: 'vorm-vue' },
{ name: 'useVormContext', from: 'vorm-vue' },
// Types
{ name: 'VormSchema', from: 'vorm-vue', type: true }
])
}
if (options.components) {
// Register all vorm-vue components
addComponent({
name: 'VormProvider',
export: 'VormProvider',
filePath: 'vorm-vue/components'
})

P1 Badge Dependency swap still requires consumers to install vorm-vue

The commit message says users can install the module without adding vorm-vue, but the module still auto-imports from 'vorm-vue' in its setup. Nuxt resolves these imports from the application root, so in a project that only installs vorm-nuxt the build will fail with “Cannot resolve package 'vorm-vue'” because the nested dependency inside the module is not picked up. Consumers therefore still need to declare vorm-vue themselves, and the change does not actually fix the problem it targets. Consider keeping a peer dependency or re-exporting the package so the resolver can find it.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Flo0806 Flo0806 merged commit 30c3d69 into main Oct 23, 2025
2 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.

Unexpected major version bumps on one package Return current state of form (isValid, isDirty, isTouched) in useVorm

1 participant