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

refactor(haptics): remove cordova haptics support #29186

Merged
merged 4 commits into from Mar 20, 2024
Merged

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Mar 19, 2024

Issue number: Internal


What is the current behavior?

Ionic Framework relies on the haptics plugin for certain interactions such as spinning the Picker or dragging the knob on a Toggle. Up until now we have had support for both Cordova and Capacitor haptics plugins. As a result of a previous incident, the team wanted to investigate dropping support for the Cordova haptics plugin in favor of pushing developers to migrate to Capacitor.

What is the new behavior?

  • Remove support for the Cordova haptics plugin. Components that relied on this will continue to function but will no longer play haptics in Cordova environments.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: core @ionic/core package label Mar 19, 2024
@liamdebeasi liamdebeasi marked this pull request as ready for review March 20, 2024 16:47
@liamdebeasi liamdebeasi requested a review from a team as a code owner March 20, 2024 16:47
@liamdebeasi liamdebeasi requested review from thetaPC and a team and removed request for a team March 20, 2024 16:47
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

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

Changes look good, should this be a feat vs. a refactor?

@liamdebeasi
Copy link
Contributor Author

According to https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#type, we use refactor for changes that neither fixes a bug nor adds a new feature

@sean-perkins
Copy link
Contributor

I guess even conventional commits doesn't have a specification around removing features. I'm ok with refactor. My main concern was visibility in the CHANGELOG for developers to know this support has been removed. It's included in the breaking changes, so I think that concern is covered.

@liamdebeasi liamdebeasi merged commit 9efeb0a into feature-8.0 Mar 20, 2024
42 checks passed
@liamdebeasi liamdebeasi deleted the FW-4707 branch March 20, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants