Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

All notable changes to this project will be documented in this file.

## 4.0.0 (UNRELEASED)
### 📝 Notes
#### DAV related export
The DAV related exports from the main entry point were deprecated
for a long time and are now removed from it.
Instead you have to use the `@nextcloud/files/dav` entry point.

For example:

```diff
- import { davRemoteURL } from '@nextcloud/files'
+ import { defaultRemoteURL } from '@nextcloud/files/dav'
```

## 4.0.0-beta.1 - 2025-11-27
### 🐛 Fixed bugs
* fix: actions type exports by @skjnldsv in https://github.com/nextcloud-libraries/nextcloud-files/pull/1381
Expand Down
6 changes: 0 additions & 6 deletions __tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
Folder,
Node,
Permission,
davParsePermissions,
} from '../lib/index.ts'
import { FileAction, registerFileAction, getFileActions } from '../lib/actions/fileAction.ts'
import { NewMenu } from '../lib/newMenu/NewMenu.ts'
Expand Down Expand Up @@ -52,11 +51,6 @@ describe('Exports checks', () => {
expect(typeof Permission).toBe('object')
})

test('davParsePermissions', () => {
expect(davParsePermissions).toBeTruthy()
expect(typeof davParsePermissions).toBe('function')
})

test('File', () => {
expect(File).toBeTruthy()
expect(typeof File).toBe('function')
Expand Down
91 changes: 2 additions & 89 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,100 +3,13 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

export type * from './types.ts'

export * from './actions/index.ts'
export * from './fileListFilters.ts'
export * from './fileListHeaders.ts'
export * from './navigation/index.ts'
export * from './newMenu/index.ts'
export * from './node/index.ts'
export * from './permissions.ts'
export * from './types.ts'
export * from './utils/index.ts'

// Legacy export of dav utils
// TODO: Remove with version 4 (breaking change)
export {
type DavProperty,

/**
* @inheritdoc
* @deprecated use `defaultRemoteURL` from `@nextcloud/files/dav`
*/
defaultRemoteURL as davRemoteURL,
/**
* @inheritdoc
* @deprecated use `defaultRootPath` from `@nextcloud/files/dav`
*/
defaultRootPath as davRootPath,
/**
* @inheritdoc
* @deprecated use `defaultDavNamespaces` from `@nextcloud/files/dav`
*/
defaultDavNamespaces,
/**
* @inheritdoc
* @deprecated use `defaultDavProperties` from `@nextcloud/files/dav`
*/
defaultDavProperties,

/**
* @inheritdoc
* @deprecated use `getFavoriteNodes` from `@nextcloud/files/dav`
*/
getFavoriteNodes,
/**
* @inheritdoc
* @deprecated use `getClient` from `@nextcloud/files/dav`
*/
getClient as davGetClient,
/**
* @inheritdoc
* @deprecated use `getRemoteURL` from `@nextcloud/files/dav`
*/
getRemoteURL as davGetRemoteURL,
/**
* @inheritdoc
* @deprecated use `getRootPath` from `@nextcloud/files/dav`
*/
getRootPath as davGetRootPath,
/**
* @inheritdoc
* @deprecated use `resultToNode` from `@nextcloud/files/dav`
*/
resultToNode as davResultToNode,
/**
* @inheritdoc
* @deprecated use `getDefaultPropfind` from `@nextcloud/files/dav`
*/
getDefaultPropfind as davGetDefaultPropfind,
/**
* @inheritdoc
* @deprecated use `getFavoritesReport` from `@nextcloud/files/dav`
*/
getFavoritesReport as davGetFavoritesReport,
/**
* @inheritdoc
* @deprecated use `getRecentSearch` from `@nextcloud/files/dav`
*/
getRecentSearch as davGetRecentSearch,
/**
* @inheritdoc
* @deprecated use `parsePermissions` from `@nextcloud/files/dav`
*/
parsePermissions as davParsePermissions,
/**
* @inheritdoc
* @deprecated use `getDavNameSpaces` from `@nextcloud/files/dav`
*/
getDavNameSpaces,
/**
* @inheritdoc
* @deprecated use `getDavProperties` from `@nextcloud/files/dav`
*/
getDavProperties,
/**
* @inheritdoc
* @deprecated use `registerDavProperty` from `@nextcloud/files/dav`
*/
registerDavProperty,
} from './dav/index.ts'