@pkcprotocol/pkc-js 0.0.153 → 0.0.154

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 (96) hide show
  1. package/README.md +21 -1
  2. package/dist/browser/errors.d.ts +4 -2
  3. package/dist/browser/errors.js +4 -2
  4. package/dist/browser/errors.js.map +1 -1
  5. package/dist/browser/generated-version.d.ts +1 -1
  6. package/dist/browser/generated-version.js +1 -1
  7. package/dist/browser/pkc-error.d.ts +1 -1
  8. package/dist/browser/publications/comment/comment.d.ts +1 -0
  9. package/dist/browser/publications/comment/comment.js +57 -12
  10. package/dist/browser/publications/comment/comment.js.map +1 -1
  11. package/dist/browser/publications/publication.d.ts +8 -1
  12. package/dist/browser/publications/publication.js +393 -146
  13. package/dist/browser/publications/publication.js.map +1 -1
  14. package/dist/browser/publications/types.d.ts +1 -0
  15. package/dist/browser/rpc/src/index.js +12 -5
  16. package/dist/browser/rpc/src/index.js.map +1 -1
  17. package/dist/browser/runtime/node/blockstore.d.ts +2 -2
  18. package/dist/browser/runtime/node/blockstore.js +2 -2
  19. package/dist/browser/runtime/node/community/db-handler.d.ts +5 -7
  20. package/dist/browser/runtime/node/community/db-handler.js +79 -82
  21. package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
  22. package/dist/browser/runtime/node/community/local-community/cleanup.js +62 -12
  23. package/dist/browser/runtime/node/community/local-community/cleanup.js.map +1 -1
  24. package/dist/browser/runtime/node/community/local-community/db-state.d.ts +1 -1
  25. package/dist/browser/runtime/node/community/local-community/db-state.js +31 -39
  26. package/dist/browser/runtime/node/community/local-community/db-state.js.map +1 -1
  27. package/dist/browser/runtime/node/community/local-community/editing.js +71 -22
  28. package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
  29. package/dist/browser/runtime/node/community/local-community/ipns-publishing.js +1 -1
  30. package/dist/browser/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
  31. package/dist/browser/runtime/node/community/local-community/lifecycle.d.ts +0 -2
  32. package/dist/browser/runtime/node/community/local-community/lifecycle.js +50 -72
  33. package/dist/browser/runtime/node/community/local-community/lifecycle.js.map +1 -1
  34. package/dist/browser/runtime/node/community/local-community.d.ts +4 -2
  35. package/dist/browser/runtime/node/community/local-community.js +11 -7
  36. package/dist/browser/runtime/node/community/local-community.js.map +1 -1
  37. package/dist/browser/runtime/node/community/start-lock.d.ts +14 -5
  38. package/dist/browser/runtime/node/community/start-lock.js +153 -10
  39. package/dist/browser/runtime/node/community/start-lock.js.map +1 -1
  40. package/dist/browser/runtime/node/util.js +18 -10
  41. package/dist/browser/runtime/node/util.js.map +1 -1
  42. package/dist/bundled/bundle-manifest.json +35 -44
  43. package/dist/bundled/challenges.js +1 -1
  44. package/dist/bundled/chunks/{helia-for-pkc-COJ3xMF9.js → helia-for-pkc-CG9YohPs.js} +4 -4
  45. package/dist/bundled/chunks/{local-community-BTx2HxIm.js → local-community-CaQmhX8D.js} +1 -1
  46. package/dist/bundled/chunks/{local-community-CflGu_ET.js → local-community-V8_VyEhO.js} +217 -162
  47. package/dist/bundled/chunks/{node-B0b6lAIX.js → node-c4vpD2VN.js} +340 -172
  48. package/dist/bundled/chunks/{page-sort-scoring-DAMnUmDY.js → page-sort-scoring-d1frahfd.js} +1 -1
  49. package/dist/bundled/chunks/{rpc-local-community-Cy03QajY.js → rpc-local-community-DDAibWpE.js} +144 -1431
  50. package/dist/bundled/chunks/{util-C4y8KHmp.js → util-B_dKP7Te.js} +1 -1
  51. package/dist/bundled/chunks/{util-D7AtfLYH.js → util-BwEIge-b.js} +5 -3
  52. package/dist/bundled/chunks/{validate-package-factories-EH9ydbPR.js → validate-package-factories-DfpNf4oq.js} +2 -2
  53. package/dist/bundled/index.js +1 -1
  54. package/dist/bundled/page-sorts.js +1 -1
  55. package/dist/bundled/rpc/src/index.js +14 -9
  56. package/dist/node/errors.d.ts +4 -2
  57. package/dist/node/errors.js +4 -2
  58. package/dist/node/errors.js.map +1 -1
  59. package/dist/node/generated-version.d.ts +1 -1
  60. package/dist/node/generated-version.js +1 -1
  61. package/dist/node/pkc-error.d.ts +1 -1
  62. package/dist/node/publications/comment/comment.d.ts +1 -0
  63. package/dist/node/publications/comment/comment.js +57 -12
  64. package/dist/node/publications/comment/comment.js.map +1 -1
  65. package/dist/node/publications/publication.d.ts +8 -1
  66. package/dist/node/publications/publication.js +393 -146
  67. package/dist/node/publications/publication.js.map +1 -1
  68. package/dist/node/publications/types.d.ts +1 -0
  69. package/dist/node/rpc/src/index.js +12 -5
  70. package/dist/node/rpc/src/index.js.map +1 -1
  71. package/dist/node/runtime/node/blockstore.d.ts +2 -2
  72. package/dist/node/runtime/node/blockstore.js +2 -2
  73. package/dist/node/runtime/node/community/db-handler.d.ts +5 -7
  74. package/dist/node/runtime/node/community/db-handler.js +79 -82
  75. package/dist/node/runtime/node/community/db-handler.js.map +1 -1
  76. package/dist/node/runtime/node/community/local-community/cleanup.js +62 -12
  77. package/dist/node/runtime/node/community/local-community/cleanup.js.map +1 -1
  78. package/dist/node/runtime/node/community/local-community/db-state.d.ts +1 -1
  79. package/dist/node/runtime/node/community/local-community/db-state.js +31 -39
  80. package/dist/node/runtime/node/community/local-community/db-state.js.map +1 -1
  81. package/dist/node/runtime/node/community/local-community/editing.js +71 -22
  82. package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
  83. package/dist/node/runtime/node/community/local-community/ipns-publishing.js +1 -1
  84. package/dist/node/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
  85. package/dist/node/runtime/node/community/local-community/lifecycle.d.ts +0 -2
  86. package/dist/node/runtime/node/community/local-community/lifecycle.js +50 -72
  87. package/dist/node/runtime/node/community/local-community/lifecycle.js.map +1 -1
  88. package/dist/node/runtime/node/community/local-community.d.ts +4 -2
  89. package/dist/node/runtime/node/community/local-community.js +11 -7
  90. package/dist/node/runtime/node/community/local-community.js.map +1 -1
  91. package/dist/node/runtime/node/community/start-lock.d.ts +14 -5
  92. package/dist/node/runtime/node/community/start-lock.js +153 -10
  93. package/dist/node/runtime/node/community/start-lock.js.map +1 -1
  94. package/dist/node/runtime/node/util.js +18 -10
  95. package/dist/node/runtime/node/util.js.map +1 -1
  96. package/package.json +1 -2
@@ -1,2 +1,2 @@
1
- import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-EH9ydbPR.js";
1
+ import { t as validateChallengeFileFactory } from "./chunks/validate-package-factories-DfpNf4oq.js";
2
2
  export { validateChallengeFileFactory };
@@ -1,6 +1,6 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { C as hideClassPrivateProps, Lr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic, zr as logger_default } from "./util-D7AtfLYH.js";
3
- import { a as directFetchIpnsRecordFromProviders, c as readFreshCachedIpnsRecordFromPubsubLocalStore, i as connectToPubsubPeers, l as selectBitswapSessionSeedPeers, n as REACHABILITY_DOCS_URL, o as fetchBlockWithStalledSessionFailover, r as cacheIpnsRecordInPubsubLocalStore, s as getHeliaDebugContext, u as summarizeProviderReachability } from "./util-C4y8KHmp.js";
2
+ import { C as hideClassPrivateProps, Lr as PKCError, T as ipnsNameToIpnsOverPubsubTopic, n as binaryKeyToPubsubTopic, zr as logger_default } from "./util-BwEIge-b.js";
3
+ import { a as directFetchIpnsRecordFromProviders, c as readFreshCachedIpnsRecordFromPubsubLocalStore, i as connectToPubsubPeers, l as selectBitswapSessionSeedPeers, n as REACHABILITY_DOCS_URL, o as fetchBlockWithStalledSessionFailover, r as cacheIpnsRecordInPubsubLocalStore, s as getHeliaDebugContext, u as summarizeProviderReachability } from "./util-B_dKP7Te.js";
4
4
  import { t as map } from "./src-Cpx2Sts8.js";
5
5
  import { t as parallelBatch } from "./src-DKntVmyX.js";
6
6
  import { fileURLToPath } from "node:url";
@@ -6199,8 +6199,8 @@ const DEFAULT_IN_MEMORY_BLOCKSTORE_MAX_BYTES = 100 * 1024 * 1024;
6199
6199
  * under node), since there is nowhere to put a directory.
6200
6200
  *
6201
6201
  * Each libp2p-js client key gets its own directory. Two processes pointed at the same dataPath and
6202
- * the same key share one directory. Unlike the community databases (which take a proper-lock-file
6203
- * lock, see db-handler.ts) this is deliberately NOT locked: a lock would stop the second process
6202
+ * the same key share one directory. Unlike the community databases (which take a start lock, see
6203
+ * community/start-lock.ts) this is deliberately NOT locked: a lock would stop the second process
6204
6204
  * from running at all, which is the wrong trade for a cache that both can safely use. Measured
6205
6205
  * behaviour when shared:
6206
6206
  * - concurrent writes of the same block are safe; blockstore-fs writes via steno (temp file plus
@@ -1,2 +1,2 @@
1
- import { n as createNewLocalCommunityDb, r as updateInstancePropsWithStartedCommunityOrDb, t as LocalCommunity } from "./local-community-CflGu_ET.js";
1
+ import { n as createNewLocalCommunityDb, r as updateInstancePropsWithStartedCommunityOrDb, t as LocalCommunity } from "./local-community-V8_VyEhO.js";
2
2
  export { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb };