Skip to content

feat(config): add createOruga composable to create an Oruga instance#1407

Merged
mlmoravek merged 15 commits intodevelopfrom
feat/createOruga
Feb 13, 2026
Merged

feat(config): add createOruga composable to create an Oruga instance#1407
mlmoravek merged 15 commits intodevelopfrom
feat/createOruga

Conversation

@mlmoravek
Copy link
Member

@mlmoravek mlmoravek commented Sep 9, 2025

In this PR I updated how the programmatic interfaces of components get registered and how the main Oruga Vue plugin is defined. The implementation is inspired by Pinia.

Proposed Changes

  • The main Oruga Vue plugin isn't a static object anymore. A new Oruga instance, including a Vue plugin, can be created with the new createOruga() composbale.
  • The way programmatic component interfaces are accessed changes with the addition of a useOruga() composable, which returns the current active Oruga instance.

BREAKING CHANGE: To improve tree shaking, the main Oruga Vue plugin no longer registers all components globally by default. You now have to manually register the components you need.
BREAKING CHANGE: The OrugaConfig object has been removed in favour of the useOruga() composable.

@mlmoravek mlmoravek added the BREAKING CHANGE Breaking changes label Sep 9, 2025
@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for oruga-documentation-preview ready!

Name Link
🔨 Latest commit 77faa3d
🔍 Latest deploy log https://app.netlify.com/projects/oruga-documentation-preview/deploys/698f4811829e320008d3ce1c
😎 Deploy Preview https://deploy-preview-1407--oruga-documentation-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mlmoravek mlmoravek added the enhancement Improvements to existing features and functionality label Sep 9, 2025
@mlmoravek mlmoravek changed the title feat(config): add createOruga plugin instantiation feat(config): add createOruga plugin instantiation | v0.13 Sep 16, 2025
@mlmoravek mlmoravek added the documentation Improvements or additions to documentation label Feb 11, 2026
@mlmoravek mlmoravek changed the title feat(config): add createOruga plugin instantiation | v0.13 feat(config): add createOruga composable to create an Oruga instance Feb 13, 2026
@mlmoravek mlmoravek marked this pull request as ready for review February 13, 2026 14:32
@mlmoravek mlmoravek changed the title feat(config): add createOruga composable to create an Oruga instance feat(config): add createOruga composable to create an Oruga instance Feb 13, 2026
@mlmoravek mlmoravek merged commit 743cf41 into develop Feb 13, 2026
11 of 12 checks passed
@mlmoravek mlmoravek deleted the feat/createOruga branch February 13, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE Breaking changes documentation Improvements or additions to documentation enhancement Improvements to existing features and functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant