Skip to content

Commit

Permalink
feat: Allow to import without dist
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jan 14, 2025
1 parent d29d6d3 commit e5908c4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `@nextcloud/vue/dist/Components/NcButton.js`.
- to `@nextcloud/vue/components/NcButton.js`

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)

Expand Down
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@
"./dist/Composables/*.js": {
"import": "./dist/Composables/*.mjs",
"require": "./dist/Composables/*.cjs"
},
"./components/*.js": {
"import": "./dist/Components/*.mjs",
"require": "./dist/Components/*.cjs"
},
"./composables/*.js": {
"import": "./dist/Composables/*.mjs",
"require": "./dist/Composables/*.cjs"
},
"./directives/*.js": {
"import": "./dist/Directives/*.mjs",
"require": "./dist/Directives/*.cjs"
},
"./functions/*.js": {
"import": "./dist/Functions/*.mjs",
"require": "./dist/Functions/*.cjs"
}
},
"files": [
Expand Down

0 comments on commit e5908c4

Please sign in to comment.