@vrtmrz/livesync-commonlib 0.1.14-canary.0 → 0.1.15

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/README.md CHANGED
@@ -20,8 +20,6 @@ Treat every `compat/*` subpath as a migration-only interface. A source-directory
20
20
 
21
21
  The package is ESM-only and declares Node 20 or later. Browser entry points are built with browser conditions, but the host remains responsible for checking the availability of browser capabilities such as the File System Access API.
22
22
 
23
- Every non-root module entry is available both without an extension and with an explicit `.js` suffix. For example, `@vrtmrz/livesync-commonlib/context` and `@vrtmrz/livesync-commonlib/context.js` resolve to the same runtime module and declaration file. Existing extensionless imports remain supported; consumers and review tools which require explicit JavaScript specifiers may use the `.js` form.
24
-
25
23
  ## Package entry points
26
24
 
27
25
  | Entry point | Intended use | Current contract status |
@@ -68,11 +68,7 @@ function expandDocumentIDPrefix(id) {
68
68
  const _hashString = memorizeFuncWithLRUCache(async (key) => {
69
69
  const buff = writeString(key);
70
70
  const webcrypto = await getWebCrypto();
71
- let digest = await webcrypto.subtle.digest("SHA-256", buff);
72
- const len = key.length;
73
- for (let i = 0; i < len; i++) {
74
- digest = await webcrypto.subtle.digest("SHA-256", buff);
75
- }
71
+ const digest = await webcrypto.subtle.digest("SHA-256", buff);
76
72
  return uint8ArrayToHexString(new Uint8Array(digest));
77
73
  });
78
74
  function hashString(key) {