diff --git a/CHANGELOG.md b/CHANGELOG.md index 630f0842a0..e27ab7f3f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ # Changelog +## [v8.23.0](https://github.com/nextcloud-libraries/nextcloud-vue/tree/v8.23.0) (UNRELEASED) +[Full Changelog](https://github.com/nextcloud-libraries/nextcloud-vue/compare/v8.22.0...v8.23.0) + +### 🚀 Enhancements +* The individual import path of components, composables, directives, and functions was changed. + The type of import is (e.g. `components`) is now lowercase and the `dist` will be omitted. + For example to import the `NcButton` component the path has changed: + - from `import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'`. + - to `import NcButton from '@nextcloud/vue/components/NcButton'` + + The old import paths are still valid, but deprecated and will be removed in version 9. + ## [v8.22.0](https://github.com/nextcloud-libraries/nextcloud-vue/tree/v8.22.0) (2024-12-20) [Full Changelog](https://github.com/nextcloud-libraries/nextcloud-vue/compare/v8.21.0...v8.22.0) diff --git a/docs/composables.md b/docs/composables.md index 07980cfcdc..5666b3b5a1 100644 --- a/docs/composables.md +++ b/docs/composables.md @@ -8,7 +8,7 @@ To use any composable, import and use it according to documentation or Vue guidelines, for example: ```js static -import { useIsMobile } from '@nextcloud/vue/dist/composables/useIsMobile.js' +import { useIsMobile } from '@nextcloud/vue/composables/useIsMobile' export default { setup() { @@ -21,7 +21,7 @@ export default { or in `