Skip to content

Commit

Permalink
feat!: remove plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jan 4, 2025
1 parent 63c267a commit 221b130
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 79 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ All notable changes to this project will be documented in this file.
### 💥 Breaking Changes
* The package now uses Vue 3 instead of Vue 2.7
* The package is now a native ESM package and the CommonJS entry points were dropped!
* The `limitWidth` prop of `NcSettingsSection` was removed (the content is now always limitted width) [\#5605](https://github.com/nextcloud-libraries/nextcloud-vue/pull/5605)
* The plugin registering all the components and directives globally is removed. Use local registration instead. Use [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) if you need an alternative.
* The `limitWidth` prop of `NcSettingsSection` was removed (the content is now always limited width) [\#5605](https://github.com/nextcloud-libraries/nextcloud-vue/pull/5605)
* The `closing` and `opening` events of `NcAppSidebar` were removed as they are directly emitted when the sidebar was opened when using `v-if` and also just duplicated the state of the `open` prop [\#5606](https://github.com/nextcloud-libraries/nextcloud-vue/pull/5606)
* The `checked` prop was renamed to `modelValue`, the `update:checked` event was renamed to `update:modelValue`. This affects the following components.
- `NcActionCheckbox`
Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@ To use a component, just import it:
import { NcAppNavigation, NcActions, NcActionButton } from '@nextcloud/vue'
```

### Registering all components.

> Be careful, this will registry all components and directives, even the ones not being used.
```js
import Vue from 'vue'
import { NextcloudVuePlugin } from '@nextcloud/vue'

Vue.use(NextcloudVuePlugin)
```

## Development setup

If you want to work on improving the components it’s best to run the latest code and link it to your local Nextcloud installation:
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ export * from './composables/index.js'
export * from './functions/index.ts'
export * from './directives/index.js'
export * from './mixins/index.js'

export { NextcloudVuePlugin } from './plugin'
37 changes: 0 additions & 37 deletions src/plugin.ts

This file was deleted.

28 changes: 0 additions & 28 deletions tests/unit/plugin.spec.ts

This file was deleted.

0 comments on commit 221b130

Please sign in to comment.