Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: DLT-2036 conflicting peer dependencies #526

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

juliodialpad
Copy link
Collaborator

Remove conflicting peer dependencies

Obligatory GIF (super important!)

Obligatory GIF

🛠️ Type Of Change

These types will increment the version number on release:

  • Fix

📖 Jira Ticket

https://dialpad.atlassian.net/browse/DLT-2036

📖 Description

  • Removed conflicting peer dependencies
  • Tested with a beta version @dialpad/dialtone@9.79.0-beta.1, you can install that version to check that everything is working correctly.

This is not a solution I specially like as we might get some errors related to versions of the removed peerDependencies, BUT as we're having multiple packages that work on either vue2 or vue3 versions it's the fastest solution I could get.

The other solution that might work could be to alias the vue2 version but we're going to need to do that everywhere through all our projects that need vue2 (this is just an idea, I'm not actually sure that works)

💡 Context

Installing the @dialpad/dialtone package with npm was getting an error about conflicting vue versions.

This was related to our package having peer dependencies that needed vue@2 (@tiptap/vue-2) along with vue@3 (@tiptap/vue-3).

PNPM can handle this correctly as we have some configs and overrides on root's package.json.

📝 Checklist

For all PRs:

  • I have ensured no private Dialpad links or info are in the code or pull request description (Dialtone is a public repo!).
  • I have reviewed my changes.
  • I have added all relevant documentation.
  • I have considered the performance impact of my change.

Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
@juliodialpad juliodialpad self-assigned this Oct 8, 2024
@juliodialpad juliodialpad added the no-visual-test Add this tag when the PR does not need visual testing label Oct 8, 2024
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@vitejs/plugin-vue@5.1.4 environment 0 193 kB vitebot

🚮 Removed packages: npm/@vitejs/plugin-vue@5.0.4

View full report↗︎

Copy link
Contributor

@braddialpad braddialpad left a comment

Choose a reason for hiding this comment

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

Can't wait until vue 3 migration is complete so we don't have to do stuff like this anymore...

@juliodialpad juliodialpad merged commit e6b5105 into staging Oct 8, 2024
6 of 9 checks passed
@juliodialpad juliodialpad deleted the fix/peer-dependencies branch October 8, 2024 18:01
@juliodialpad
Copy link
Collaborator Author

Can't wait until vue 3 migration is complete so we don't have to do stuff like this anymore...

Yeah, that'd make our life a lot easier.

juliodialpad pushed a commit that referenced this pull request Oct 9, 2024
## [9.79.1](dialtone/v9.79.0...dialtone/v9.79.1) (2024-10-09)

### Bug Fixes

* DLT-2036 conflicting peer dependencies ([#526](#526)) ([e6b5105](e6b5105))
* **Rich Text Editor:** DLT-2120 toggle editable prop removes input class styles ([#527](#527)) ([3f31e7a](3f31e7a))

### Documentation

* DLT-1797 move SB to docs - Popover to Root Layout ([#521](#521)) ([511b135](511b135))
* DLT-2002 fix remaining modal scrollbar issues ([#519](#519)) ([cd0b1a5](cd0b1a5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-visual-test Add this tag when the PR does not need visual testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants