@sync-in/server 1.3.8 → 1.4.0

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.
Files changed (128) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +3 -2
  3. package/environment/environment.dist.yaml +2 -0
  4. package/migrations/0001_square_mauler.sql +4 -0
  5. package/migrations/meta/0001_snapshot.json +2417 -0
  6. package/migrations/meta/_journal.json +7 -0
  7. package/package.json +20 -2
  8. package/server/app.bootstrap.js +9 -0
  9. package/server/app.bootstrap.js.map +1 -1
  10. package/server/app.service.spec.js +48 -23
  11. package/server/app.service.spec.js.map +1 -1
  12. package/server/applications/files/constants/files.js +0 -23
  13. package/server/applications/files/constants/files.js.map +1 -1
  14. package/server/applications/files/constants/only-office.js +8 -0
  15. package/server/applications/files/constants/only-office.js.map +1 -1
  16. package/server/applications/files/files.config.js +5 -0
  17. package/server/applications/files/files.config.js.map +1 -1
  18. package/server/applications/files/guards/files-only-office.strategy.js +0 -1
  19. package/server/applications/files/guards/files-only-office.strategy.js.map +1 -1
  20. package/server/applications/spaces/guards/space.guard.spec.js +153 -18
  21. package/server/applications/spaces/guards/space.guard.spec.js.map +1 -1
  22. package/server/applications/spaces/services/spaces-browser.service.js +7 -7
  23. package/server/applications/spaces/services/spaces-browser.service.js.map +1 -1
  24. package/server/applications/spaces/services/spaces-manager.service.js +17 -17
  25. package/server/applications/spaces/services/spaces-manager.service.js.map +1 -1
  26. package/server/applications/sync/schemas/sync-clients.schema.js +4 -4
  27. package/server/applications/sync/schemas/sync-clients.schema.js.map +1 -1
  28. package/server/applications/sync/utils/routes.js +1 -1
  29. package/server/applications/sync/utils/routes.js.map +1 -1
  30. package/server/applications/users/guards/permissions.guard.js +4 -4
  31. package/server/applications/users/guards/permissions.guard.js.map +1 -1
  32. package/server/applications/users/guards/permissions.guard.spec.js +6 -6
  33. package/server/applications/users/guards/permissions.guard.spec.js.map +1 -1
  34. package/server/applications/users/guards/roles.guard.js +1 -1
  35. package/server/applications/users/guards/roles.guard.js.map +1 -1
  36. package/server/applications/users/models/user.model.js +1 -1
  37. package/server/applications/users/models/user.model.js.map +1 -1
  38. package/server/applications/users/schemas/users.schema.js +4 -4
  39. package/server/applications/users/schemas/users.schema.js.map +1 -1
  40. package/server/authentication/guards/auth-basic.guard.spec.js +38 -2
  41. package/server/authentication/guards/auth-basic.guard.spec.js.map +1 -1
  42. package/server/authentication/guards/auth-basic.strategy.js +0 -1
  43. package/server/authentication/guards/auth-basic.strategy.js.map +1 -1
  44. package/server/authentication/guards/auth-local.guard.spec.js +7 -5
  45. package/server/authentication/guards/auth-local.guard.spec.js.map +1 -1
  46. package/server/authentication/guards/auth-local.strategy.js +0 -1
  47. package/server/authentication/guards/auth-local.strategy.js.map +1 -1
  48. package/server/authentication/guards/auth-token-access.guard.spec.js +30 -0
  49. package/server/authentication/guards/auth-token-access.guard.spec.js.map +1 -1
  50. package/server/authentication/guards/auth-token-access.strategy.js +0 -1
  51. package/server/authentication/guards/auth-token-access.strategy.js.map +1 -1
  52. package/server/authentication/guards/auth-token-refresh.strategy.js +0 -1
  53. package/server/authentication/guards/auth-token-refresh.strategy.js.map +1 -1
  54. package/server/authentication/services/auth-methods/auth-method-database.service.js +1 -1
  55. package/server/authentication/services/auth-methods/auth-method-database.service.js.map +1 -1
  56. package/server/authentication/services/auth-methods/auth-method-database.service.spec.js +8 -6
  57. package/server/authentication/services/auth-methods/auth-method-database.service.spec.js.map +1 -1
  58. package/server/authentication/services/auth-methods/auth-method-ldap.service.js +2 -2
  59. package/server/authentication/services/auth-methods/auth-method-ldap.service.js.map +1 -1
  60. package/server/authentication/services/auth-methods/auth-method-ldap.service.spec.js +500 -5
  61. package/server/authentication/services/auth-methods/auth-method-ldap.service.spec.js.map +1 -1
  62. package/server/configuration/config.constants.js +0 -4
  63. package/server/configuration/config.constants.js.map +1 -1
  64. package/server/configuration/config.loader.js +2 -5
  65. package/server/configuration/config.loader.js.map +1 -1
  66. package/server/infrastructure/context/services/context-manager.service.spec.js +98 -0
  67. package/server/infrastructure/context/services/context-manager.service.spec.js.map +1 -0
  68. package/server/infrastructure/database/configuration.js +1 -1
  69. package/server/infrastructure/database/configuration.js.map +1 -1
  70. package/server/infrastructure/database/constants.js +18 -5
  71. package/server/infrastructure/database/constants.js.map +1 -1
  72. package/server/infrastructure/database/scripts/seed/usersgroups.js +3 -3
  73. package/server/infrastructure/database/scripts/seed/usersgroups.js.map +1 -1
  74. package/server/infrastructure/mailer/mailer.service.js +20 -19
  75. package/server/infrastructure/mailer/mailer.service.js.map +1 -1
  76. package/server/infrastructure/mailer/mailer.service.spec.js +176 -0
  77. package/server/infrastructure/mailer/mailer.service.spec.js.map +1 -0
  78. package/static/{chunk-EVYNK2XG.js → chunk-3GC2BQZD.js} +1 -1
  79. package/static/{chunk-XN4TXQKE.js → chunk-5YKWZT33.js} +1 -1
  80. package/static/{chunk-VSBD6246.js → chunk-6F55D74O.js} +1 -1
  81. package/static/{chunk-MWPC5XQW.js → chunk-B2Y2RNFP.js} +1 -1
  82. package/static/{chunk-YTROXGRM.js → chunk-C23BPTJZ.js} +1 -1
  83. package/static/chunk-DGVNNICG.js +1 -0
  84. package/static/{chunk-WSVE6EWB.js → chunk-FQ4AFNGE.js} +1 -1
  85. package/static/{chunk-4YWOE6HM.js → chunk-GBCYYDCI.js} +1 -1
  86. package/static/{chunk-Z6S7RFGN.js → chunk-HZA7R43P.js} +1 -1
  87. package/static/{chunk-VO5W2VKC.js → chunk-KZQCFEPT.js} +1 -1
  88. package/static/{chunk-BLRDUWOI.js → chunk-LJIGRUEF.js} +1 -1
  89. package/static/chunk-MOVWEZ7J.js +1 -0
  90. package/static/{chunk-3UFSZ24R.js → chunk-MTRNPGS4.js} +1 -1
  91. package/static/{chunk-JM5PB2NQ.js → chunk-N2LYWNTC.js} +1 -1
  92. package/static/{chunk-L4F2K2VQ.js → chunk-PF4K7MVG.js} +1 -1
  93. package/static/{chunk-F2KKCIDO.js → chunk-PY3BGNJN.js} +1 -1
  94. package/static/chunk-RSNLYAN6.js +560 -0
  95. package/static/{chunk-VCXIQZT4.js → chunk-SH5EVL4E.js} +4 -4
  96. package/static/{chunk-BEJ62KA7.js → chunk-T55FAU2O.js} +1 -1
  97. package/static/{chunk-BEC2WQVF.js → chunk-TCFKH6K6.js} +1 -1
  98. package/static/{chunk-LATG3ZVP.js → chunk-TDQAEVZN.js} +1 -1
  99. package/static/{chunk-FNO4KAYG.js → chunk-TNW2CGK6.js} +1 -1
  100. package/static/{chunk-OWYD7F64.js → chunk-TTQ37MUV.js} +1 -1
  101. package/static/chunk-TXPODW5Q.js +7 -0
  102. package/static/chunk-VHYIXL7R.js +4 -0
  103. package/static/{chunk-UEN7RH33.js → chunk-VMQMD36Z.js} +1 -1
  104. package/static/{chunk-6E5YHOWA.js → chunk-VMUOUCEI.js} +1 -1
  105. package/static/{chunk-I6ACCGIM.js → chunk-W3QXNDI5.js} +1 -1
  106. package/static/chunk-WHMS3PJ3.js +24 -0
  107. package/static/{chunk-3PB73RWL.js → chunk-WWIC7UW3.js} +1 -1
  108. package/static/{chunk-6A5R4OPV.js → chunk-X43VWRFP.js} +1 -1
  109. package/static/chunk-XE5YHU5J.js +1 -0
  110. package/static/chunk-Y2CDUS4J.js +4 -0
  111. package/static/chunk-YCINY2YI.js +1 -0
  112. package/static/index.html +2 -2
  113. package/static/main-7LDKYVXO.js +10 -0
  114. package/static/{polyfills-GNKGQMRJ.js → polyfills-IA5XWQYN.js} +1 -1
  115. package/static/{scripts-263WP5VB.js → scripts-VZVAP2P4.js} +4 -4
  116. package/static/styles-FYUSO6OJ.css +1 -0
  117. package/sync-in-server.js +1 -1
  118. package/static/chunk-CIGVDQPA.js +0 -1
  119. package/static/chunk-CY3GGCEX.js +0 -7
  120. package/static/chunk-DJRILQTU.js +0 -1
  121. package/static/chunk-EDLO4Y5E.js +0 -4
  122. package/static/chunk-ENDRPUCI.js +0 -4
  123. package/static/chunk-HXRRMHEX.js +0 -1
  124. package/static/chunk-IJDFKCZM.js +0 -24
  125. package/static/chunk-J6YSVODR.js +0 -1
  126. package/static/chunk-JQOMI5VI.js +0 -560
  127. package/static/main-7LVJ2JSP.js +0 -10
  128. package/static/styles-3DONJ2Z4.css +0 -1
package/CHANGELOG.md CHANGED
@@ -1,4 +1,32 @@
1
1
 
2
+ ## [1.4.0](https://github.com/Sync-in/server/compare/v1.3.9...v1.4.0) (2025-08-26)
3
+
4
+
5
+ ### Features
6
+
7
+ * **backend:webdav:** add temporary hook for Joplin sync compatibility (laurent22/joplin[#12249](https://github.com/Sync-in/server/issues/12249)) ([fc22a7d](https://github.com/Sync-in/server/commit/fc22a7d828f99abe65423d03418fe397ab45d7b0))
8
+ * **backend:files:** add showHiddenFiles option to toggle visibility of dotfiles ([ed47fbf](https://github.com/Sync-in/server/commit/ed47fbf3fe7fe5b66868489c319d3c438fde0dbf))
9
+ * **backend:files:** allow markdown files to be edited with onlyOffice ([c3d9d85](https://github.com/Sync-in/server/commit/c3d9d85d3f1dc90f4afae8db8ce9d128c8ecadf2))
10
+ * **frontend:spaces:** open documents in edit mode on double-click ([d6ef175](https://github.com/Sync-in/server/commit/d6ef175d951b4e11ce78d280e4982e3ed8a4bb3f))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **backend:users:** ensure permission guards correctly evaluate array permissions ([c27dc7b](https://github.com/Sync-in/server/commit/c27dc7b7ac20293febca17d18ae8608d61eb1b44))
16
+
17
+ ## [1.3.9](https://github.com/Sync-in/server/compare/v1.3.8...v1.3.9) (2025-08-22)
18
+
19
+
20
+ ### Features
21
+
22
+ * **backend:** allow IPv6 in database fields for IP addresses ([757f2d1](https://github.com/Sync-in/server/commit/757f2d117865fa41c2cdf759b9f54477434dee79))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **backend:config:** do not lowercase env var values ([cb73ab0](https://github.com/Sync-in/server/commit/cb73ab0287346b58ae8f34ed985d891a9a5a6732))
28
+ * **docker:nginx:** optionalize OnlyOffice proxying and avoid startup failure when container is absent ([2be107f](https://github.com/Sync-in/server/commit/2be107feda42ca8bb1edd1a9b99e3e62ff9dc234))
29
+
2
30
  ## [1.3.8](https://github.com/Sync-in/server/compare/v1.3.7...v1.3.8) (2025-08-19)
3
31
 
4
32
 
package/README.md CHANGED
@@ -14,9 +14,10 @@ _Welcome to the official Sync-in server repository!_
14
14
  - 📦 [Deploy with NPM](https://sync-in.com/docs/setup-guide/npm)
15
15
 
16
16
  <a href="#-license"><img src="https://img.shields.io/badge/Licence-AGPL%20v3.0-green.svg" alt="License"/></a>
17
- <a href="https://discord.gg/qhJyzwaymT" target="_blank"><img src="https://img.shields.io/discord/1391081837849346088?logo=discord&label=Discord" alt="Discord"/></a>
18
- <a href="https://www.npmjs.com/package/@sync-in/server" target="_blank"><img src="https://img.shields.io/npm/d18m/@sync-in/server.svg?logo=npm&label=NPM%20Downloads&color=cb3837" alt="NPM"/></a>
17
+ <a href="https://github.com/Sync-in/server/releases" target="_blank"><img src="https://img.shields.io/github/v/release/Sync-in/server?sort=semver&display_name=tag&style=flat&logo=github&label=Release" alt="GitHub Release"/></a>
19
18
  <a href="https://hub.docker.com/r/syncin/server" target="_blank"><img src="https://img.shields.io/docker/pulls/syncin/server?logo=docker&label=Docker%20Hub%20Pulls" alt="Docker pulls"/></a>
19
+ <a href="https://www.npmjs.com/package/@sync-in/server" target="_blank"><img src="https://img.shields.io/npm/d18m/@sync-in/server.svg?logo=npm&label=NPM%20Downloads&color=cb3837" alt="NPM"/></a>
20
+ <a href="https://discord.gg/qhJyzwaymT" target="_blank"><img src="https://img.shields.io/discord/1391081837849346088?logo=discord&label=Discord" alt="Discord"/></a>
20
21
 
21
22
  The **Sync-in Server** is designed to run on your own infrastructure, it gives you **full control over your data** while offering a modern,
22
23
  intuitive interface for both internal and external users.
@@ -81,6 +81,8 @@ applications:
81
81
  dataPath: /home/sync-in
82
82
  # Default to 5 GB if not specified
83
83
  maxUploadSize: 5368709120
84
+ # Show files starting with a dot in the file explorer (default: false)
85
+ showHiddenFiles: false
84
86
  onlyoffice:
85
87
  enabled: false
86
88
  # for an external server (e.g: https://onlyoffice.domain.com), remember the url must be accessible from browser !
@@ -0,0 +1,4 @@
1
+ ALTER TABLE `users` MODIFY COLUMN `currentIp` varchar(45);--> statement-breakpoint
2
+ ALTER TABLE `users` MODIFY COLUMN `lastIp` varchar(45);--> statement-breakpoint
3
+ ALTER TABLE `sync_clients` MODIFY COLUMN `currentIp` varchar(45);--> statement-breakpoint
4
+ ALTER TABLE `sync_clients` MODIFY COLUMN `lastIp` varchar(45);