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

feat(vue3): various upgrades for vue 3 #84

Merged
merged 13 commits into from
Jan 4, 2024
Merged

Conversation

Robo-Rin
Copy link

@Robo-Rin Robo-Rin commented Dec 28, 2023

Description

  • Upgrades for Vue 3 including migration to storybook + vite.
  • BREAKING: Removes default export so now users will have to use the named import instead
    i.e.
    import InputFacade from 'vue-input-facade'
    becomes
    import { plugin as InputFacade } from 'vue-input-facade'

Rationale for removing default export

Previously we were using vue-cli-service build but now we are using vite + rollup. Rollup gives the following warning:

Entry module "src/plugin.js" is using named and default exports together. Consumers of your bundle will have to use vue-input-facade.default to access default export, which may not be what you want. Use output.exports: "named" to disable this warning.

Since it's bad practice to mix default and named exports and since Vue 3 is a breaking change already, I thought it would be a good opportunity to remove it.

Read more on why it's bad practice here: rollup/rollup#1961 (comment)

Checklist

  • Tests
  • Documentation
  • Used commitizen and followed Conventional Commits
  • Commit footer references issue num. If applicable.

dependabot bot and others added 6 commits January 13, 2023 08:28
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](PrismJS/prism@v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.4 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.4...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…ard navigation overrides (RonaldJerez#79)

Co-authored-by: Sarah Leventhal <sarah.leventhal@mastercard.com>
…k is passed (RonaldJerez#80)

Co-authored-by: Sarah Leventhal <sarah.leventhal@mastercard.com>
…ic key from consuming apps (RonaldJerez#83)

Co-authored-by: Sarah Leventhal <sarah.leventhal@mastercard.com>
@Robo-Rin Robo-Rin force-pushed the beta branch 5 times, most recently from 7e70e01 to faa796e Compare December 29, 2023 17:04
Upgrades dependencies, migrates to storybook + vite, removes default export.

BREAKING CHANGE: Users will have to use es6-style named imports instead.

closes RonaldJerez#44, closes RonaldJerez#52
@RonaldJerez RonaldJerez merged commit b03d463 into RonaldJerez:beta Jan 4, 2024
2 checks passed
Copy link

github-actions bot commented Jan 4, 2024

🎉 This PR is included in version 3.0.0-beta.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants