Skip to content

Commit 7ba0b9a

Browse files
authored
Merge branch 'main' into chore/drop-deprecated-blacklist
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2 parents 264262f + 12bd2f1 commit 7ba0b9a

3 files changed

Lines changed: 14 additions & 95 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ All notable changes to this project will be documented in this file.
1212
this means some functions like filename validation will now only
1313
work with the capabilities provided by Nextcloud 30 or newer.
1414

15+
#### DAV related export
16+
The DAV related exports from the main entry point were deprecated
17+
for a long time and are now removed from it.
18+
Instead you have to use the `@nextcloud/files/dav` entry point.
19+
20+
For example:
21+
22+
```diff
23+
- import { davRemoteURL } from '@nextcloud/files'
24+
+ import { defaultRemoteURL } from '@nextcloud/files/dav'
25+
```
26+
1527
## 4.0.0-beta.1 - 2025-11-27
1628
### 🐛 Fixed bugs
1729
* 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)