jazz-tools 0.9.23 → 0.10.1

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 (56) hide show
  1. package/.turbo/turbo-build.log +10 -12
  2. package/CHANGELOG.md +27 -0
  3. package/dist/{chunk-OJIEP4WE.js → chunk-24EJ3CKA.js} +566 -118
  4. package/dist/chunk-24EJ3CKA.js.map +1 -0
  5. package/dist/{index.web.js → index.js} +20 -9
  6. package/dist/index.js.map +1 -0
  7. package/dist/testing.js +125 -34
  8. package/dist/testing.js.map +1 -1
  9. package/package.json +11 -15
  10. package/src/auth/AuthSecretStorage.ts +109 -0
  11. package/src/auth/DemoAuth.ts +188 -0
  12. package/src/auth/InMemoryKVStore.ts +25 -0
  13. package/src/auth/KvStoreContext.ts +39 -0
  14. package/src/auth/PassphraseAuth.ts +113 -0
  15. package/src/coValues/account.ts +8 -3
  16. package/src/coValues/coFeed.ts +1 -1
  17. package/src/coValues/coList.ts +1 -1
  18. package/src/coValues/coMap.ts +1 -1
  19. package/src/coValues/group.ts +9 -8
  20. package/src/coValues/interfaces.ts +14 -5
  21. package/src/exports.ts +17 -3
  22. package/src/implementation/ContextManager.ts +178 -0
  23. package/src/implementation/activeAccountContext.ts +6 -1
  24. package/src/implementation/createContext.ts +173 -149
  25. package/src/implementation/schema.ts +3 -3
  26. package/src/index.ts +3 -0
  27. package/src/testing.ts +172 -34
  28. package/src/tests/AuthSecretStorage.test.ts +275 -0
  29. package/src/tests/ContextManager.test.ts +256 -0
  30. package/src/tests/DemoAuth.test.ts +269 -0
  31. package/src/tests/PassphraseAuth.test.ts +152 -0
  32. package/src/tests/coFeed.test.ts +48 -42
  33. package/src/tests/coList.test.ts +26 -24
  34. package/src/tests/coMap.test.ts +25 -23
  35. package/src/tests/coPlainText.test.ts +25 -23
  36. package/src/tests/coRichText.test.ts +24 -23
  37. package/src/tests/createContext.test.ts +339 -0
  38. package/src/tests/deepLoading.test.ts +44 -45
  39. package/src/tests/fixtures.ts +2050 -0
  40. package/src/tests/groupsAndAccounts.test.ts +3 -3
  41. package/src/tests/schema.test.ts +1 -1
  42. package/src/tests/schemaUnion.test.ts +2 -2
  43. package/src/tests/subscribe.test.ts +43 -10
  44. package/src/tests/testing.test.ts +56 -0
  45. package/src/tests/utils.ts +13 -13
  46. package/src/types.ts +54 -0
  47. package/tsconfig.json +3 -1
  48. package/tsup.config.ts +1 -2
  49. package/dist/chunk-OJIEP4WE.js.map +0 -1
  50. package/dist/index.native.js +0 -75
  51. package/dist/index.native.js.map +0 -1
  52. package/dist/index.web.js.map +0 -1
  53. package/src/index.native.ts +0 -6
  54. package/src/index.web.ts +0 -3
  55. package/tsconfig.native.json +0 -5
  56. package/tsconfig.web.json +0 -5
@@ -1,20 +1,18 @@
1
1
 
2
- > jazz-tools@0.9.23 build /home/runner/work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.10.1 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup
4
4
 
5
- CLI Building entry: {"index.web":"src/index.web.ts","index.native":"src/index.native.ts","testing":"src/testing.ts"}
5
+ CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.5
8
- CLI Using tsup config: /home/runner/work/jazz/jazz/packages/jazz-tools/tsup.config.ts
8
+ CLI Using tsup config: /home/runner/_work/jazz/jazz/packages/jazz-tools/tsup.config.ts
9
9
  CLI Target: es2021
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM dist/index.web.js 1.27 KB
13
- ESM dist/index.native.js 1.26 KB
14
- ESM dist/testing.js 3.43 KB
15
- ESM dist/chunk-OJIEP4WE.js 97.62 KB
16
- ESM dist/index.web.js.map 276.00 B
17
- ESM dist/index.native.js.map 286.00 B
18
- ESM dist/testing.js.map 6.94 KB
19
- ESM dist/chunk-OJIEP4WE.js.map 241.14 KB
20
- ESM ⚡️ Build success in 112ms
12
+ ESM dist/index.js 1.50 KB
13
+ ESM dist/testing.js 6.18 KB
14
+ ESM dist/chunk-24EJ3CKA.js 111.53 KB
15
+ ESM dist/index.js.map 259.00 B
16
+ ESM dist/testing.js.map 12.19 KB
17
+ ESM dist/chunk-24EJ3CKA.js.map 268.84 KB
18
+ ESM ⚡️ Build success in 48ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 5a63cba: Not re-export Crypto providers from cojson. Removed the separated bundle for React Native.
8
+ - Updated dependencies [5a63cba]
9
+ - cojson@0.10.1
10
+
11
+ ## 0.10.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 498954f: Introducing the new auth system!
16
+ - dd03464: Group.addMember and Group.removeMember are not chainable anymore.
17
+ Group.removeMember now returns the internal promise.
18
+ - b426342: Return null when a coValue is not found
19
+
20
+ ### Patch Changes
21
+
22
+ - d42c2aa: Make ensureLoaded throw when the resolved value is undefined
23
+ - Updated dependencies [b426342]
24
+ - Updated dependencies [498954f]
25
+ - Updated dependencies [8217981]
26
+ - Updated dependencies [ac3d9fa]
27
+ - Updated dependencies [610543c]
28
+ - cojson@0.10.0
29
+
3
30
  ## 0.9.23
4
31
 
5
32
  ### Patch Changes