@vrtmrz/livesync-commonlib 0.4.2 → 0.4.3

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 (45) hide show
  1. package/README.md +7 -5
  2. package/dist/API/DirectFileManipulatorV2.d.ts +1 -0
  3. package/dist/API/DirectFileManipulatorV2.js +3 -1
  4. package/dist/API/processSetting.d.ts +1 -0
  5. package/dist/API/processSetting.js +3 -0
  6. package/dist/common/models/setting.const.defaults.js +1 -0
  7. package/dist/common/models/setting.const.qr.js +2 -1
  8. package/dist/common/models/setting.encryption.d.ts +2 -0
  9. package/dist/common/models/setting.encryption.js +6 -0
  10. package/dist/common/models/setting.lifecycle.js +7 -2
  11. package/dist/common/models/setting.policy.d.ts +4 -0
  12. package/dist/common/models/setting.policy.js +9 -0
  13. package/dist/common/models/setting.type.d.ts +2 -0
  14. package/dist/common/models/shared.definition.configNames.js +5 -0
  15. package/dist/common/models/tweak.definition.d.ts +1 -0
  16. package/dist/common/settingConstants.d.ts +1 -0
  17. package/dist/common/utils.js +5 -4
  18. package/dist/diagnostics/couchdb.js +4 -2
  19. package/dist/managers/ChunkFetcher.js +27 -4
  20. package/dist/managers/chunkFetcher.helper.js +1 -1
  21. package/dist/pouchdb/StreamingFetch.d.ts +1 -2
  22. package/dist/pouchdb/encryption.d.ts +5 -10
  23. package/dist/pouchdb/encryption.eden.d.ts +11 -0
  24. package/dist/pouchdb/encryption.eden.js +37 -0
  25. package/dist/pouchdb/encryption.js +67 -63
  26. package/dist/pouchdb/encryption.policy.d.ts +9 -0
  27. package/dist/pouchdb/encryption.policy.js +125 -0
  28. package/dist/replication/UnencryptedContentRejectedError.d.ts +16 -0
  29. package/dist/replication/UnencryptedContentRejectedError.js +44 -0
  30. package/dist/replication/couchdb/LiveSyncReplicator.js +41 -4
  31. package/dist/replication/index.d.ts +2 -0
  32. package/dist/replication/index.js +3 -0
  33. package/dist/replication/trystero/TrysteroReplicator.d.ts +2 -0
  34. package/dist/replication/unencryptedContentMessages.d.ts +8 -0
  35. package/dist/replication/unencryptedContentMessages.js +12 -0
  36. package/dist/serviceModules/Rebuilder.js +28 -4
  37. package/dist/services/base/RemoteConnection.d.ts +2 -0
  38. package/dist/services/base/RemoteService.js +2 -1
  39. package/dist/services/base/SettingService.js +2 -0
  40. package/dist/settings.d.ts +2 -1
  41. package/dist/settings.js +2 -0
  42. package/dist/worker/bgWorker.js +1 -1
  43. package/docs/offline-scanner.md +2 -1
  44. package/docs/settings-lifecycle.md +4 -0
  45. package/package.json +1 -1
@@ -199,4 +199,5 @@ For `db-only-deleted` pairs, one optional provenance key enumeration identifies
199
199
  stale bookkeeping. Cleanup-only work precedes new deletions and never reads file
200
200
  bodies or invokes physical deletion. All affected paths are revalidated by their
201
201
  handler. See [Deletion recovery](deletion-recovery.md) for completion, error,
202
- concurrency, and cost contracts. This extension is unreleased.
202
+ concurrency, and cost contracts. This opt-in extension is published in
203
+ [Commonlib 0.4.2](https://github.com/vrtmrz/livesync-commonlib/releases/tag/0.4.2).
@@ -8,6 +8,10 @@ Commonlib separates three values which older integrations commonly treated as on
8
8
 
9
9
  `DEFAULT_SETTINGS` remains an alias of `SETTINGS_SCHEMA_DEFAULTS` for compatibility. New code should choose the named contract which matches its operation.
10
10
 
11
+ ## Unreleased: plaintext acceptance setting
12
+
13
+ The unreleased `acceptUnencryptedContent` setting defaults to `false`; only the boolean value `true` enables it. With E2EE enabled, it permits receipt of unencrypted file content from third-party tools which do not use the E2EE passphrase. Content sent by the plug-in remains encrypted. Complete Setup URI and QR imports normalise a missing or invalid value to `false`. Settings Markdown includes the value regardless of credential-sharing choice; a partial Markdown import preserves the current value when the field is absent and treats an explicitly invalid value as `false`.
14
+
11
15
  ## Starting a new Vault
12
16
 
13
17
  Use `createNewVaultSettings()` only when the settings store is absent or empty, or when the user explicitly requests a factory reset. `NEW_VAULT_SETTINGS` exposes the values for inspection, while the factory prevents mutable nested settings from being shared between clients:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrtmrz/livesync-commonlib",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Shared data, storage, and replication primitives for Self-hosted LiveSync clients.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",