@glance-apps/sync 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.1.1] - 2026-06-03
11
+
12
+ ### Fixed
13
+
14
+ - **WebDAV — 405 on MKCOL treated as directory-already-exists**: `mkcolWithParents`
15
+ now handles HTTP 405 (Method Not Allowed) the same as 409/404, triggering the
16
+ parent-directory creation fallback. Some WebDAV servers (e.g. certain nginx
17
+ configurations) return 405 rather than 409 when MKCOL is called on a path that
18
+ already exists as a collection.
19
+
10
20
  ## [1.1.0] - 2026-05-25
11
21
 
12
22
  ### Added
@@ -97,7 +107,9 @@ entire sync infrastructure can be shared across the GLANCE app family.
97
107
  - TypeScript declarations in `types/index.d.ts`.
98
108
  - WebDAV CORS proxy handler in `api/webdav-proxy.js`.
99
109
 
100
- [Unreleased]: https://github.com/glance-apps/glance-sync/compare/v1.0.3...HEAD
110
+ [Unreleased]: https://github.com/glance-apps/glance-sync/compare/v1.1.1...HEAD
111
+ [1.1.1]: https://github.com/glance-apps/glance-sync/compare/v1.1.0...v1.1.1
112
+ [1.1.0]: https://github.com/glance-apps/glance-sync/compare/v1.0.3...v1.1.0
101
113
  [1.0.3]: https://github.com/glance-apps/glance-sync/compare/v1.0.2...v1.0.3
102
114
  [1.0.2]: https://github.com/glance-apps/glance-sync/compare/v1.0.1...v1.0.2
103
115
  [1.0.1]: https://github.com/glance-apps/glance-sync/compare/v1.0.0...v1.0.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glance-apps/sync",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/providers.js CHANGED
@@ -102,7 +102,7 @@ async function parseDownloadResponse(res, engineConfig) {
102
102
 
103
103
  async function mkcolWithParents(dirUrl, authHeaders, wf) {
104
104
  const res = await wf('MKCOL', dirUrl, authHeaders);
105
- if (res.status === 409 || res.status === 404) {
105
+ if (res.status === 409 || res.status === 404 || res.status === 405) {
106
106
  // Derive parent by stripping the last path segment via URL() to avoid
107
107
  // producing malformed strings on root-level inputs.
108
108
  let parent;