Skip to content

Commit 12bd2f1

Browse files
authored
Merge pull request #1384 from nextcloud-libraries/chore/drop-deprecated-exports
chore!: drop deprecated DAV exports from main entry point
2 parents 74c7115 + df5ee74 commit 12bd2f1

3 files changed

Lines changed: 16 additions & 95 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66

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

9+
## 4.0.0 (UNRELEASED)
10+
### 📝 Notes
11+
#### DAV related export
12+
The DAV related exports from the main entry point were deprecated
13+
for a long time and are now removed from it.
14+
Instead you have to use the `@nextcloud/files/dav` entry point.
15+
16+
For example:
17+
18+
```diff
19+
- import { davRemoteURL } from '@nextcloud/files'
20+
+ import { defaultRemoteURL } from '@nextcloud/files/dav'
21+
```
22+
923
## 4.0.0-beta.1 - 2025-11-27
1024
### 🐛 Fixed bugs
1125
* fix: actions type exports by @skjnldsv in https://github.com/nextcloud-libraries/nextcloud-files/pull/1381

__tests__/index.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
Folder,
1717
Node,
1818
Permission,
19-
davParsePermissions,
2019
} from '../lib/index.ts'
2120
import { FileAction, registerFileAction, getFileActions } from '../lib/actions/fileAction.ts'
2221
import { NewMenu } from '../lib/newMenu/NewMenu.ts'
@@ -52,11 +51,6 @@ describe('Exports checks', () => {
5251
expect(typeof Permission).toBe('object')
5352
})
5453

55-
test('davParsePermissions', () => {
56-
expect(davParsePermissions).toBeTruthy()
57-
expect(typeof davParsePermissions).toBe('function')
58-
})
59-
6054
test('File', () => {
6155
expect(File).toBeTruthy()
6256
expect(typeof File).toBe('function')

lib/index.ts

Lines changed: 2 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -3,100 +3,13 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6+
export type * from './types.ts'
7+
68
export * from './actions/index.ts'
79
export * from './fileListFilters.ts'
810
export * from './fileListHeaders.ts'
911
export * from './navigation/index.ts'
1012
export * from './newMenu/index.ts'
1113
export * from './node/index.ts'
1214
export * from './permissions.ts'
13-
export * from './types.ts'
1415
export * from './utils/index.ts'
15-
16-
// Legacy export of dav utils
17-
// TODO: Remove with version 4 (breaking change)
18-
export {
19-
type DavProperty,
20-
21-
/**
22-
* @inheritdoc
23-
* @deprecated use `defaultRemoteURL` from `@nextcloud/files/dav`
24-
*/
25-
defaultRemoteURL as davRemoteURL,
26-
/**
27-
* @inheritdoc
28-
* @deprecated use `defaultRootPath` from `@nextcloud/files/dav`
29-
*/
30-
defaultRootPath as davRootPath,
31-
/**
32-
* @inheritdoc
33-
* @deprecated use `defaultDavNamespaces` from `@nextcloud/files/dav`
34-
*/
35-
defaultDavNamespaces,
36-
/**
37-
* @inheritdoc
38-
* @deprecated use `defaultDavProperties` from `@nextcloud/files/dav`
39-
*/
40-
defaultDavProperties,
41-
42-
/**
43-
* @inheritdoc
44-
* @deprecated use `getFavoriteNodes` from `@nextcloud/files/dav`
45-
*/
46-
getFavoriteNodes,
47-
/**
48-
* @inheritdoc
49-
* @deprecated use `getClient` from `@nextcloud/files/dav`
50-
*/
51-
getClient as davGetClient,
52-
/**
53-
* @inheritdoc
54-
* @deprecated use `getRemoteURL` from `@nextcloud/files/dav`
55-
*/
56-
getRemoteURL as davGetRemoteURL,
57-
/**
58-
* @inheritdoc
59-
* @deprecated use `getRootPath` from `@nextcloud/files/dav`
60-
*/
61-
getRootPath as davGetRootPath,
62-
/**
63-
* @inheritdoc
64-
* @deprecated use `resultToNode` from `@nextcloud/files/dav`
65-
*/
66-
resultToNode as davResultToNode,
67-
/**
68-
* @inheritdoc
69-
* @deprecated use `getDefaultPropfind` from `@nextcloud/files/dav`
70-
*/
71-
getDefaultPropfind as davGetDefaultPropfind,
72-
/**
73-
* @inheritdoc
74-
* @deprecated use `getFavoritesReport` from `@nextcloud/files/dav`
75-
*/
76-
getFavoritesReport as davGetFavoritesReport,
77-
/**
78-
* @inheritdoc
79-
* @deprecated use `getRecentSearch` from `@nextcloud/files/dav`
80-
*/
81-
getRecentSearch as davGetRecentSearch,
82-
/**
83-
* @inheritdoc
84-
* @deprecated use `parsePermissions` from `@nextcloud/files/dav`
85-
*/
86-
parsePermissions as davParsePermissions,
87-
/**
88-
* @inheritdoc
89-
* @deprecated use `getDavNameSpaces` from `@nextcloud/files/dav`
90-
*/
91-
getDavNameSpaces,
92-
/**
93-
* @inheritdoc
94-
* @deprecated use `getDavProperties` from `@nextcloud/files/dav`
95-
*/
96-
getDavProperties,
97-
/**
98-
* @inheritdoc
99-
* @deprecated use `registerDavProperty` from `@nextcloud/files/dav`
100-
*/
101-
registerDavProperty,
102-
} from './dav/index.ts'

0 commit comments

Comments
 (0)