@vrtmrz/livesync-commonlib 0.1.11 → 0.1.13

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.
@@ -22,7 +22,7 @@ Commonlib's injected CouchDB tests verify that a mixed remote chunk batch preser
22
22
 
23
23
  Commonlib's remote-preference result contract distinguishes available synchronisation settings, a remote which has not stored those settings yet, a failed read, and a remote type which does not support central preferences. Focused CouchDB and Object Storage tests cover absent milestone data separately from transport failures, while Self-hosted LiveSync owns the initialisation choices, cancellation policy, and user-facing explanation.
24
24
 
25
- Commonlib's full offline scanner distinguishes completed, deliberately skipped, and failed storage/database pairs. It continues processing after individual failures, returns a failed aggregate only for actual failures, and records a database mtime as local provenance only after database content has been reflected successfully. Self-hosted LiveSync consumes the aggregate directly during Fast Setup, where an actual reflection failure reaches the host-owned recovery choice without treating conflict or size-policy skips as failures.
25
+ Commonlib's full offline scanner distinguishes completed, deliberately skipped, and failed storage/database pairs. Before pair construction, it withholds Metadata whose actual document ID disagrees with its recorded path, without reflection, deletion, or last-seen side effects. A consistently addressed entry for the same logical path continues through the established path-based flow; only a path without such an entry also withholds storage processing. The read-only actual-ID Inspector and separately invoked one-entry repair retain ambiguous states for review, revalidate an exact source revision, verify a target-first copy, and preserve the source on failure. Self-hosted LiveSync keeps the existing Fast Setup aggregate policy and owns confirmation and presentation in its file/database repair interface.
26
26
 
27
27
  Most replication and storage services used by the plug-in still enter through explicit `compat/*` paths. Those imports prove that the published compatibility boundary supports the current migration; they are not examples of a finished high-level client API.
28
28
 
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@vrtmrz/livesync-commonlib",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Shared data, storage, and replication primitives for Self-hosted LiveSync clients.",
5
5
  "type": "module",
6
+ "types": "./dist/index.d.ts",
6
7
  "license": "MIT",
7
8
  "repository": {
8
9
  "type": "git",
@@ -614,6 +615,355 @@
614
615
  },
615
616
  "./package.json": "./package.json"
616
617
  },
618
+ "typesVersions": {
619
+ "*": {
620
+ "browser": [
621
+ "dist/platform/browser/index.d.ts"
622
+ ],
623
+ "context": [
624
+ "dist/context.d.ts"
625
+ ],
626
+ "node": [
627
+ "dist/platform/node/index.d.ts"
628
+ ],
629
+ "rpc": [
630
+ "dist/rpc/index.d.ts"
631
+ ],
632
+ "remote-configurations": [
633
+ "dist/remoteConfigurations.d.ts"
634
+ ],
635
+ "settings": [
636
+ "dist/settings.d.ts"
637
+ ],
638
+ "compat/API/processSetting": [
639
+ "dist/API/processSetting.d.ts"
640
+ ],
641
+ "compat/common/ConnectionString": [
642
+ "dist/common/ConnectionString.d.ts"
643
+ ],
644
+ "compat/common/LSError": [
645
+ "dist/common/LSError.d.ts"
646
+ ],
647
+ "compat/common/configForDoc": [
648
+ "dist/common/configForDoc.d.ts"
649
+ ],
650
+ "compat/common/coreEnvFunctions": [
651
+ "dist/common/coreEnvFunctions.d.ts"
652
+ ],
653
+ "compat/common/coreEnvVars": [
654
+ "dist/common/coreEnvVars.d.ts"
655
+ ],
656
+ "compat/common/logger": [
657
+ "dist/common/logger.d.ts"
658
+ ],
659
+ "compat/common/models/fileaccess.const": [
660
+ "dist/common/models/fileaccess.const.d.ts"
661
+ ],
662
+ "compat/common/models/redflag.const": [
663
+ "dist/common/models/redflag.const.d.ts"
664
+ ],
665
+ "compat/common/models/setting.const": [
666
+ "dist/common/models/setting.const.d.ts"
667
+ ],
668
+ "compat/common/models/setting.type": [
669
+ "dist/common/models/setting.type.d.ts"
670
+ ],
671
+ "compat/common/models/shared.const": [
672
+ "dist/common/models/shared.const.d.ts"
673
+ ],
674
+ "compat/common/models/shared.const.symbols": [
675
+ "dist/common/models/shared.const.symbols.d.ts"
676
+ ],
677
+ "compat/common/models/tweak.definition": [
678
+ "dist/common/models/tweak.definition.d.ts"
679
+ ],
680
+ "compat/common/settingConstants": [
681
+ "dist/common/settingConstants.d.ts"
682
+ ],
683
+ "compat/common/typeUtils": [
684
+ "dist/common/typeUtils.d.ts"
685
+ ],
686
+ "compat/common/types": [
687
+ "dist/common/types.d.ts"
688
+ ],
689
+ "compat/common/utils": [
690
+ "dist/common/utils.d.ts"
691
+ ],
692
+ "compat/common/utils.doc": [
693
+ "dist/common/utils.doc.d.ts"
694
+ ],
695
+ "compat/common/utils.type": [
696
+ "dist/common/utils.type.d.ts"
697
+ ],
698
+ "compat/dev/checks": [
699
+ "dist/dev/checks.d.ts"
700
+ ],
701
+ "compat/encryption/stringEncryption": [
702
+ "dist/encryption/stringEncryption.d.ts"
703
+ ],
704
+ "compat/events/coreEvents": [
705
+ "dist/events/coreEvents.d.ts"
706
+ ],
707
+ "compat/interfaces/Confirm": [
708
+ "dist/interfaces/Confirm.d.ts"
709
+ ],
710
+ "compat/interfaces/DatabaseFileAccess": [
711
+ "dist/interfaces/DatabaseFileAccess.d.ts"
712
+ ],
713
+ "compat/interfaces/DatabaseRebuilder": [
714
+ "dist/interfaces/DatabaseRebuilder.d.ts"
715
+ ],
716
+ "compat/interfaces/FileHandler": [
717
+ "dist/interfaces/FileHandler.d.ts"
718
+ ],
719
+ "compat/interfaces/FileReflectionProvenance": [
720
+ "dist/interfaces/FileReflectionProvenance.d.ts"
721
+ ],
722
+ "compat/interfaces/KeyValueDatabase": [
723
+ "dist/interfaces/KeyValueDatabase.d.ts"
724
+ ],
725
+ "compat/interfaces/ServiceModule": [
726
+ "dist/interfaces/ServiceModule.d.ts"
727
+ ],
728
+ "compat/interfaces/StorageAccess": [
729
+ "dist/interfaces/StorageAccess.d.ts"
730
+ ],
731
+ "compat/managers/StorageEventManager": [
732
+ "dist/managers/StorageEventManager.d.ts"
733
+ ],
734
+ "compat/managers/StorageProcessingManager": [
735
+ "dist/managers/StorageProcessingManager.d.ts"
736
+ ],
737
+ "compat/managers/adapters": [
738
+ "dist/managers/adapters/index.d.ts"
739
+ ],
740
+ "compat/mock_and_interop/stores": [
741
+ "dist/mock_and_interop/stores.d.ts"
742
+ ],
743
+ "compat/mock_and_interop/wrapper": [
744
+ "dist/mock_and_interop/wrapper.d.ts"
745
+ ],
746
+ "compat/pouchdb/LiveSyncLocalDB": [
747
+ "dist/pouchdb/LiveSyncLocalDB.d.ts"
748
+ ],
749
+ "compat/pouchdb/chunks": [
750
+ "dist/pouchdb/chunks.d.ts"
751
+ ],
752
+ "compat/pouchdb/negotiation": [
753
+ "dist/pouchdb/negotiation.d.ts"
754
+ ],
755
+ "compat/pouchdb/pouchdb-browser": [
756
+ "dist/pouchdb/pouchdb-browser.d.ts"
757
+ ],
758
+ "compat/pouchdb/utils_couchdb": [
759
+ "dist/pouchdb/utils_couchdb.d.ts"
760
+ ],
761
+ "compat/replication/LiveSyncAbstractReplicator": [
762
+ "dist/replication/LiveSyncAbstractReplicator.d.ts"
763
+ ],
764
+ "compat/replication/SyncParamsHandler": [
765
+ "dist/replication/SyncParamsHandler.d.ts"
766
+ ],
767
+ "compat/replication/couchdb/LiveSyncReplicator": [
768
+ "dist/replication/couchdb/LiveSyncReplicator.d.ts"
769
+ ],
770
+ "compat/replication/httplib": [
771
+ "dist/replication/httplib.d.ts"
772
+ ],
773
+ "compat/replication/journal/JournalSyncCore": [
774
+ "dist/replication/journal/JournalSyncCore.d.ts"
775
+ ],
776
+ "compat/replication/journal/JournalSyncTypes": [
777
+ "dist/replication/journal/JournalSyncTypes.d.ts"
778
+ ],
779
+ "compat/replication/journal/LiveSyncJournalReplicator": [
780
+ "dist/replication/journal/LiveSyncJournalReplicator.d.ts"
781
+ ],
782
+ "compat/replication/journal/LiveSyncJournalReplicatorEnv": [
783
+ "dist/replication/journal/LiveSyncJournalReplicatorEnv.d.ts"
784
+ ],
785
+ "compat/replication/journal/objectstore/MinioStorageAdapter": [
786
+ "dist/replication/journal/objectstore/MinioStorageAdapter.d.ts"
787
+ ],
788
+ "compat/replication/trystero/LiveSyncTrysteroReplicator": [
789
+ "dist/replication/trystero/LiveSyncTrysteroReplicator.d.ts"
790
+ ],
791
+ "compat/replication/trystero/P2PLogCollector": [
792
+ "dist/replication/trystero/P2PLogCollector.d.ts"
793
+ ],
794
+ "compat/replication/trystero/P2PReplicatorPaneCommon": [
795
+ "dist/replication/trystero/P2PReplicatorPaneCommon.d.ts"
796
+ ],
797
+ "compat/replication/trystero/TrysteroReplicator": [
798
+ "dist/replication/trystero/TrysteroReplicator.d.ts"
799
+ ],
800
+ "compat/replication/trystero/TrysteroReplicatorP2PServer": [
801
+ "dist/replication/trystero/TrysteroReplicatorP2PServer.d.ts"
802
+ ],
803
+ "compat/replication/trystero/UseP2PReplicatorResult": [
804
+ "dist/replication/trystero/UseP2PReplicatorResult.d.ts"
805
+ ],
806
+ "compat/replication/trystero/types": [
807
+ "dist/replication/trystero/types.d.ts"
808
+ ],
809
+ "compat/replication/trystero/useP2PReplicatorCommands": [
810
+ "dist/replication/trystero/useP2PReplicatorCommands.d.ts"
811
+ ],
812
+ "compat/replication/trystero/useP2PReplicatorFeature": [
813
+ "dist/replication/trystero/useP2PReplicatorFeature.d.ts"
814
+ ],
815
+ "compat/rpc/transports/DiagRTCPeerConnections.utils": [
816
+ "dist/rpc/transports/DiagRTCPeerConnections.utils.d.ts"
817
+ ],
818
+ "compat/serviceFeatures/checkRemoteSize": [
819
+ "dist/serviceFeatures/checkRemoteSize.d.ts"
820
+ ],
821
+ "compat/serviceFeatures/offlineScanner": [
822
+ "dist/serviceFeatures/offlineScanner.d.ts"
823
+ ],
824
+ "compat/serviceFeatures/prepareDatabaseForUse": [
825
+ "dist/serviceFeatures/prepareDatabaseForUse.d.ts"
826
+ ],
827
+ "compat/serviceFeatures/remoteConfig": [
828
+ "dist/serviceFeatures/remoteConfig.d.ts"
829
+ ],
830
+ "compat/serviceFeatures/targetFilter": [
831
+ "dist/serviceFeatures/targetFilter.d.ts"
832
+ ],
833
+ "compat/serviceModules/FileAccessBase": [
834
+ "dist/serviceModules/FileAccessBase.d.ts"
835
+ ],
836
+ "compat/serviceModules/Rebuilder": [
837
+ "dist/serviceModules/Rebuilder.d.ts"
838
+ ],
839
+ "compat/serviceModules/ServiceDatabaseFileAccessBase": [
840
+ "dist/serviceModules/ServiceDatabaseFileAccessBase.d.ts"
841
+ ],
842
+ "compat/serviceModules/ServiceFileAccessBase": [
843
+ "dist/serviceModules/ServiceFileAccessBase.d.ts"
844
+ ],
845
+ "compat/serviceModules/ServiceFileHandlerBase": [
846
+ "dist/serviceModules/ServiceFileHandlerBase.d.ts"
847
+ ],
848
+ "compat/serviceModules/adapters": [
849
+ "dist/serviceModules/adapters/index.d.ts"
850
+ ],
851
+ "compat/services/ServiceHub": [
852
+ "dist/services/ServiceHub.d.ts"
853
+ ],
854
+ "compat/services/base/AppLifecycleService": [
855
+ "dist/services/base/AppLifecycleService.d.ts"
856
+ ],
857
+ "compat/services/base/ConfigService": [
858
+ "dist/services/base/ConfigService.d.ts"
859
+ ],
860
+ "compat/services/base/ControlService": [
861
+ "dist/services/base/ControlService.d.ts"
862
+ ],
863
+ "compat/services/base/DatabaseService": [
864
+ "dist/services/base/DatabaseService.d.ts"
865
+ ],
866
+ "compat/services/base/FileProcessingService": [
867
+ "dist/services/base/FileProcessingService.d.ts"
868
+ ],
869
+ "compat/services/base/IService": [
870
+ "dist/services/base/IService.d.ts"
871
+ ],
872
+ "compat/services/base/KeyValueDBService": [
873
+ "dist/services/base/KeyValueDBService.d.ts"
874
+ ],
875
+ "compat/services/base/PathService": [
876
+ "dist/services/base/PathService.d.ts"
877
+ ],
878
+ "compat/services/base/ReplicatorService": [
879
+ "dist/services/base/ReplicatorService.d.ts"
880
+ ],
881
+ "compat/services/base/ServiceBase": [
882
+ "dist/services/base/ServiceBase.d.ts"
883
+ ],
884
+ "compat/services/base/SettingService": [
885
+ "dist/services/base/SettingService.d.ts"
886
+ ],
887
+ "compat/services/base/UnresolvedErrorManager": [
888
+ "dist/services/base/UnresolvedErrorManager.d.ts"
889
+ ],
890
+ "compat/services/implements/base/SvelteDialog": [
891
+ "dist/services/implements/base/SvelteDialog.d.ts"
892
+ ],
893
+ "compat/services/implements/base/UIService": [
894
+ "dist/services/implements/base/UIService.d.ts"
895
+ ],
896
+ "compat/services/implements/browser/ConfigServiceBrowserCompat": [
897
+ "dist/services/implements/browser/ConfigServiceBrowserCompat.d.ts"
898
+ ],
899
+ "compat/services/implements/headless/HeadlessAPIService": [
900
+ "dist/services/implements/headless/HeadlessAPIService.d.ts"
901
+ ],
902
+ "compat/services/implements/injectable/InjectableAPIService": [
903
+ "dist/services/implements/injectable/InjectableAPIService.d.ts"
904
+ ],
905
+ "compat/services/implements/injectable/InjectableAppLifecycleService": [
906
+ "dist/services/implements/injectable/InjectableAppLifecycleService.d.ts"
907
+ ],
908
+ "compat/services/implements/injectable/InjectableConflictService": [
909
+ "dist/services/implements/injectable/InjectableConflictService.d.ts"
910
+ ],
911
+ "compat/services/implements/injectable/InjectableDatabaseEventService": [
912
+ "dist/services/implements/injectable/InjectableDatabaseEventService.d.ts"
913
+ ],
914
+ "compat/services/implements/injectable/InjectableFileProcessingService": [
915
+ "dist/services/implements/injectable/InjectableFileProcessingService.d.ts"
916
+ ],
917
+ "compat/services/implements/injectable/InjectablePathService": [
918
+ "dist/services/implements/injectable/InjectablePathService.d.ts"
919
+ ],
920
+ "compat/services/implements/injectable/InjectableRemoteService": [
921
+ "dist/services/implements/injectable/InjectableRemoteService.d.ts"
922
+ ],
923
+ "compat/services/implements/injectable/InjectableReplicationService": [
924
+ "dist/services/implements/injectable/InjectableReplicationService.d.ts"
925
+ ],
926
+ "compat/services/implements/injectable/InjectableReplicatorService": [
927
+ "dist/services/implements/injectable/InjectableReplicatorService.d.ts"
928
+ ],
929
+ "compat/services/implements/injectable/InjectableServiceHub": [
930
+ "dist/services/implements/injectable/InjectableServiceHub.d.ts"
931
+ ],
932
+ "compat/services/implements/injectable/InjectableSettingService": [
933
+ "dist/services/implements/injectable/InjectableSettingService.d.ts"
934
+ ],
935
+ "compat/services/implements/injectable/InjectableTestService": [
936
+ "dist/services/implements/injectable/InjectableTestService.d.ts"
937
+ ],
938
+ "compat/services/implements/injectable/InjectableTweakValueService": [
939
+ "dist/services/implements/injectable/InjectableTweakValueService.d.ts"
940
+ ],
941
+ "compat/services/implements/injectable/InjectableVaultService": [
942
+ "dist/services/implements/injectable/InjectableVaultService.d.ts"
943
+ ],
944
+ "compat/services/lib/HandlerUtils": [
945
+ "dist/services/lib/HandlerUtils.d.ts"
946
+ ],
947
+ "compat/services/lib/logUtils": [
948
+ "dist/services/lib/logUtils.d.ts"
949
+ ],
950
+ "compat/string_and_binary/chunks": [
951
+ "dist/string_and_binary/chunks.d.ts"
952
+ ],
953
+ "compat/string_and_binary/convert": [
954
+ "dist/string_and_binary/convert.d.ts"
955
+ ],
956
+ "compat/string_and_binary/hash": [
957
+ "dist/string_and_binary/hash.d.ts"
958
+ ],
959
+ "compat/string_and_binary/path": [
960
+ "dist/string_and_binary/path.d.ts"
961
+ ],
962
+ "compat/worker/bgWorker": [
963
+ "dist/worker/bgWorker.d.ts"
964
+ ]
965
+ }
966
+ },
617
967
  "dependencies": {
618
968
  "@aws-sdk/client-s3": "^3.808.0",
619
969
  "@smithy/fetch-http-handler": "^5.3.10",
@@ -628,7 +978,7 @@
628
978
  "idb": "^8.0.3",
629
979
  "markdown-it": "^14.2.0",
630
980
  "minimatch": "^10.2.5",
631
- "octagonal-wheels": "^0.1.51",
981
+ "octagonal-wheels": "^0.1.53",
632
982
  "pouchdb-adapter-http": "^9.0.0",
633
983
  "pouchdb-adapter-idb": "^9.0.0",
634
984
  "pouchdb-adapter-indexeddb": "^9.0.0",