Compare commits

..

22 Commits

Author SHA1 Message Date
Guido D'Orsi
62aa4146af Merge pull request #1966 from garden-co/changeset-release/main
Version Packages
2025-04-22 18:27:14 +02:00
github-actions[bot]
d423e3c4b3 Version Packages 2025-04-22 16:24:54 +00:00
Guido D'Orsi
bdac4d1188 Merge pull request #1965 from garden-co/clerk-rn-signup
fix(clerk-expo): correctly catch updates when doing a signup
2025-04-22 18:23:10 +02:00
Guido D'Orsi
47c9004d5f chore: format 2025-04-22 18:19:42 +02:00
Guido D'Orsi
de19a6db37 fix(clerk-expo): correctly catch updates when doing a signup 2025-04-22 18:18:42 +02:00
Guido D'Orsi
cdc885994c test: cover server restarts 2025-04-22 17:39:01 +02:00
Sammii
6e1b27b0c9 Merge pull request #1934 from garden-co/updating-jazz-blue-color-sitewide
Updating jazz blue color site-wide
2025-04-22 14:27:58 +01:00
Sammii
6ac8bebf90 more svg tweaks for dark mode to bring the two more inline 2025-04-22 10:30:55 +01:00
Sammii
29d0b6fa03 svg tweaks 2025-04-22 10:18:42 +01:00
Sammii
6a9baa304f updating images.tests 2025-04-17 10:37:53 +01:00
Sammii
99b9b10d2d more updates 2025-04-17 10:28:19 +01:00
Sammii
f42b73b09b updating all pngs 2025-04-17 09:57:55 +01:00
Sammii
89ff69f005 more favicon updates for example apps 2025-04-16 16:25:08 +01:00
Sammii
698d3b0a81 resolving class casing on diagram components 2025-04-16 16:14:55 +01:00
Sammii
cb5e55d18f amending favicon images 2025-04-16 16:14:41 +01:00
Sammii
cdab27084c Merge branch 'main' into updating-jazz-blue-color-sitewide 2025-04-16 15:48:06 +01:00
Sammii
17b499e68a amending favicons & title on form & password manager example
+ title on chat vue example app
2025-04-16 15:38:34 +01:00
Sammii
f3f2344948 updating logos and default colours to use new blue 2025-04-16 15:12:12 +01:00
Sammii
ce4064f6a7 Merge branch 'main' into updating-jazz-blue-color-sitewide 2025-04-16 15:08:24 +01:00
Sammii
d66bd6ee1f adding favicons to all examples 2025-04-16 15:01:28 +01:00
Sammii
02c27ababc updating diagrams 2025-04-16 14:45:14 +01:00
Sammii
0ab6a5c739 update all favicons 2025-04-16 10:49:01 +01:00
68 changed files with 904 additions and 923 deletions

View File

@@ -1,5 +1,11 @@
# chat-rn-expo-clerk
## 1.0.100
### Patch Changes
- jazz-expo@0.13.8
## 1.0.99
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "chat-rn-expo-clerk",
"main": "index.js",
"version": "1.0.99",
"version": "1.0.100",
"scripts": {
"build": "expo export -p ios",
"start": "expo start",

View File

@@ -1,5 +1,11 @@
# chat-rn-expo
## 1.0.87
### Patch Changes
- jazz-expo@0.13.8
## 1.0.86
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "chat-rn-expo",
"version": "1.0.86",
"version": "1.0.87",
"main": "index.js",
"scripts": {
"build": "expo export -p ios",

View File

@@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="./public/favicon.ico" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>Jazz Chat Vue Example</title>
</head>
<body>
<div id="app"></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -36,7 +36,7 @@ const config: Config = {
blue: {
...colors.indigo,
500: "#5870F1",
DEFAULT: "#3313F7",
DEFAULT: "#146AFF",
},
},
container: {

View File

@@ -1,5 +1,11 @@
# minimal-auth-clerk
## 0.0.76
### Patch Changes
- jazz-react-auth-clerk@0.13.8
## 0.0.75
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "clerk",
"private": true,
"version": "0.0.75",
"version": "0.0.76",
"type": "module",
"scripts": {
"dev": "vite",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -2,7 +2,7 @@
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.ico" />
<link rel="icon" type="image/png" href="./public/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jazz | React + Demo Auth + Tailwind</title>
</head>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -14,7 +14,7 @@ export function Logo() {
fillRule="evenodd"
clipRule="evenodd"
d="M136.179 44.8277C136.179 44.8277 136.179 44.8277 136.179 44.8276V21.168C117.931 28.5527 97.9854 32.6192 77.0897 32.6192C65.1466 32.6192 53.5138 31.2908 42.331 28.7737V51.4076C42.331 51.4076 42.331 51.4076 42.331 51.4076V81.1508C41.2955 80.4385 40.1568 79.8458 38.9405 79.3915C36.1732 78.358 33.128 78.0876 30.1902 78.6145C27.2524 79.1414 24.5539 80.4419 22.4358 82.3516C20.3178 84.2613 18.8754 86.6944 18.291 89.3433C17.7066 91.9921 18.0066 94.7377 19.1528 97.2329C20.2991 99.728 22.2403 101.861 24.7308 103.361C27.2214 104.862 30.1495 105.662 33.1448 105.662H33.1455C33.6061 105.662 33.8365 105.662 34.0314 105.659C44.5583 105.449 53.042 96.9656 53.2513 86.4386C53.2534 86.3306 53.2544 86.2116 53.2548 86.0486H53.2552V85.7149L53.2552 85.5521V82.0762L53.2552 53.1993C61.0533 54.2324 69.0092 54.7656 77.0897 54.7656C77.6696 54.7656 78.2489 54.7629 78.8276 54.7574V110.696C77.792 109.983 76.6533 109.391 75.437 108.936C72.6697 107.903 69.6246 107.632 66.6867 108.159C63.7489 108.686 61.0504 109.987 58.9323 111.896C56.8143 113.806 55.3719 116.239 54.7875 118.888C54.2032 121.537 54.5031 124.283 55.6494 126.778C56.7956 129.273 58.7368 131.405 61.2273 132.906C63.7179 134.406 66.646 135.207 69.6414 135.207C70.1024 135.207 70.3329 135.207 70.5279 135.203C81.0548 134.994 89.5385 126.51 89.7478 115.983C89.7517 115.788 89.7517 115.558 89.7517 115.097V111.621L89.7517 54.3266C101.962 53.4768 113.837 51.4075 125.255 48.2397V80.9017C124.219 80.1894 123.081 79.5966 121.864 79.1424C119.097 78.1089 116.052 77.8384 113.114 78.3653C110.176 78.8922 107.478 80.1927 105.36 82.1025C103.242 84.0122 101.799 86.4453 101.215 89.0941C100.631 91.743 100.931 94.4886 102.077 96.9837C103.223 99.4789 105.164 101.612 107.655 103.112C110.145 104.612 113.073 105.413 116.069 105.413C116.53 105.413 116.76 105.413 116.955 105.409C127.482 105.2 135.966 96.7164 136.175 86.1895C136.179 85.9945 136.179 85.764 136.179 85.3029V81.8271L136.179 44.8277Z"
fill="#3313F7"
fill="#146AFF"
/>
</svg>
);

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jazz | Form example</title>
<link rel="icon" type="image/png" href="./public/favicon.ico">
</head>
<body class="h-full flex flex-col bg-white text-stone-700 dark:text-stone-400 dark:bg-stone-925">
<div id="root" class="align-self-center flex-1"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jazz | Image upload example</title>
<link rel="icon" href="./public/favicon.ico" type="image/png">
</head>
<body>
<div id="root"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -57,7 +57,7 @@ const config: Config = {
800: "#2A12BE",
900: "#12046A",
950: "#1e1b4b",
DEFAULT: "#3313F7",
DEFAULT: "#146AFF",
},
},
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -14,7 +14,7 @@ export function Logo() {
fillRule="evenodd"
clipRule="evenodd"
d="M136.179 44.8277C136.179 44.8277 136.179 44.8277 136.179 44.8276V21.168C117.931 28.5527 97.9854 32.6192 77.0897 32.6192C65.1466 32.6192 53.5138 31.2908 42.331 28.7737V51.4076C42.331 51.4076 42.331 51.4076 42.331 51.4076V81.1508C41.2955 80.4385 40.1568 79.8458 38.9405 79.3915C36.1732 78.358 33.128 78.0876 30.1902 78.6145C27.2524 79.1414 24.5539 80.4419 22.4358 82.3516C20.3178 84.2613 18.8754 86.6944 18.291 89.3433C17.7066 91.9921 18.0066 94.7377 19.1528 97.2329C20.2991 99.728 22.2403 101.861 24.7308 103.361C27.2214 104.862 30.1495 105.662 33.1448 105.662H33.1455C33.6061 105.662 33.8365 105.662 34.0314 105.659C44.5583 105.449 53.042 96.9656 53.2513 86.4386C53.2534 86.3306 53.2544 86.2116 53.2548 86.0486H53.2552V85.7149L53.2552 85.5521V82.0762L53.2552 53.1993C61.0533 54.2324 69.0092 54.7656 77.0897 54.7656C77.6696 54.7656 78.2489 54.7629 78.8276 54.7574V110.696C77.792 109.983 76.6533 109.391 75.437 108.936C72.6697 107.903 69.6246 107.632 66.6867 108.159C63.7489 108.686 61.0504 109.987 58.9323 111.896C56.8143 113.806 55.3719 116.239 54.7875 118.888C54.2032 121.537 54.5031 124.283 55.6494 126.778C56.7956 129.273 58.7368 131.405 61.2273 132.906C63.7179 134.406 66.646 135.207 69.6414 135.207C70.1024 135.207 70.3329 135.207 70.5279 135.203C81.0548 134.994 89.5385 126.51 89.7478 115.983C89.7517 115.788 89.7517 115.558 89.7517 115.097V111.621L89.7517 54.3266C101.962 53.4768 113.837 51.4075 125.255 48.2397V80.9017C124.219 80.1894 123.081 79.5966 121.864 79.1424C119.097 78.1089 116.052 77.8384 113.114 78.3653C110.176 78.8922 107.478 80.1927 105.36 82.1025C103.242 84.0122 101.799 86.4453 101.215 89.0941C100.631 91.743 100.931 94.4886 102.077 96.9837C103.223 99.4789 105.164 101.612 107.655 103.112C110.145 104.612 113.073 105.413 116.069 105.413C116.53 105.413 116.76 105.413 116.955 105.409C127.482 105.2 135.966 96.7164 136.175 86.1895C136.179 85.9945 136.179 85.764 136.179 85.3029V81.8271L136.179 44.8277Z"
fill="#3313F7"
fill="#146AFF"
/>
</svg>
);

View File

@@ -1,5 +1,11 @@
# multiauth
## 0.0.17
### Patch Changes
- jazz-react-auth-clerk@0.13.8
## 0.0.16
### Patch Changes

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,7 +1,7 @@
{
"name": "multiauth",
"private": true,
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"scripts": {
"dev": "vite",

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -5,6 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jazz | Minimal Auth Passkey Example</title>
<link rel="icon" href="./public/favicon.ico" type="image/png">
</head>
<body>
<div id="root"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -3,7 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS + React + Tailwind</title>
<title>Jazz Password Manager Example</title>
<link rel="icon" type="image/png" href="./public/favicon.ico">
</head>
<body>
<div id="root"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
examples/pets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="./public/favicon.ico" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -13,7 +13,7 @@ export function JazzIcon({ className }: { className?: string }) {
fillRule="evenodd"
clipRule="evenodd"
d="M118.179 29.6597V6C99.931 13.3847 79.9854 17.4512 59.0897 17.4512C47.1466 17.4512 35.5138 16.1228 24.331 13.6057V36.2396V65.9828C23.2955 65.2705 22.1568 64.6778 20.9405 64.2235C18.1732 63.19 15.128 62.9196 12.1902 63.4465C9.25242 63.9734 6.55392 65.2739 4.43582 67.1836C2.31782 69.0933 0.875416 71.5264 0.291016 74.1753C-0.293384 76.8241 0.00661504 79.5697 1.15281 82.0649C2.29911 84.56 4.24032 86.693 6.73082 88.193C9.22142 89.694 12.1495 90.494 15.1448 90.494C15.6054 90.494 15.8365 90.494 16.0314 90.491C26.5583 90.281 35.042 81.7976 35.2513 71.2706C35.2534 71.1626 35.2544 71.0436 35.2548 70.8806L35.2552 70.5469V70.3841V66.9082V38.0313C43.0533 39.0644 51.0092 39.5976 59.0897 39.5976C59.6696 39.5976 60.2489 39.5949 60.8276 39.5894V95.528C59.792 94.815 58.6533 94.223 57.437 93.768C54.6697 92.735 51.6246 92.464 48.6867 92.991C45.7489 93.518 43.0504 94.819 40.9323 96.728C38.8143 98.638 37.3719 101.071 36.7875 103.72C36.2032 106.369 36.5031 109.115 37.6494 111.61C38.7956 114.105 40.7368 116.237 43.2273 117.738C45.7179 119.238 48.646 120.039 51.6414 120.039C52.1024 120.039 52.3329 120.039 52.5279 120.035C63.0548 119.826 71.5385 111.342 71.7478 100.815C71.7517 100.62 71.7517 100.39 71.7517 99.929V96.453V39.1586C83.962 38.3088 95.837 36.2395 107.255 33.0717V65.7337C106.219 65.0214 105.081 64.4286 103.864 63.9744C101.097 62.9409 98.052 62.6704 95.114 63.1973C92.176 63.7242 89.478 65.0247 87.36 66.9345C85.242 68.8442 83.799 71.2773 83.215 73.9261C82.631 76.575 82.931 79.3206 84.077 81.8157C85.223 84.3109 87.164 86.444 89.655 87.944C92.145 89.444 95.073 90.245 98.069 90.245C98.53 90.245 98.76 90.245 98.955 90.241C109.482 90.032 117.966 81.5484 118.175 71.0215C118.179 70.8265 118.179 70.596 118.179 70.1349V66.6591V29.6597Z"
fill="#3313F7"
fill="#146AFF"
/>
</svg>
);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,7 @@ export const StarterTierLogo: React.FC<{ height?: number }> = ({
fillRule="evenodd"
clipRule="evenodd"
d="M323.76 374.99V604.118L323.76 609.218C323.76 612.374 323.76 613.952 323.733 615.287C322.3 687.368 264.211 745.457 192.13 746.89C190.795 746.917 189.217 746.917 186.061 746.917C165.551 746.917 145.502 741.433 128.448 731.159C111.395 720.886 98.1038 706.283 90.255 689.198C82.4063 672.113 80.3527 653.313 84.3539 635.176C88.3552 617.039 98.2316 600.379 112.734 587.303C127.237 574.226 145.714 565.321 165.83 561.714C185.946 558.106 206.796 559.957 225.745 567.034C234.073 570.145 241.87 574.203 248.96 579.081V168.523H323.539L323.825 168.088C335.078 196.126 351.639 217.913 373.775 232.481C412.506 257.968 464.782 259.038 526.401 239.056L437.345 374.385C394.515 384.815 356.243 385.345 323.76 374.99Z"
fill="#3313F7"
className="fill-primary"
/>
</svg>
);
@@ -28,7 +28,7 @@ export const IndieTierLogo: React.FC<{ height?: number }> = ({
fillRule="evenodd"
clipRule="evenodd"
d="M595.034 309.75C530.503 333.096 463.03 345.48 393.587 345.48C363.873 345.48 334.52 343.213 305.604 338.789L305.604 656.769V661.869C305.604 665.026 305.604 666.605 305.578 667.94C304.144 740.02 246.055 798.109 173.975 799.543C172.64 799.569 171.061 799.569 167.904 799.569C147.394 799.569 127.345 794.085 110.292 783.811C93.2381 773.538 79.9466 758.935 72.0978 741.85C64.249 724.765 62.1954 705.966 66.1967 687.828C70.198 669.691 80.0745 653.031 94.5772 639.955C109.08 626.879 127.557 617.974 147.673 614.366C167.789 610.758 188.64 612.61 207.588 619.687C215.917 622.797 223.714 626.856 230.805 631.734V221.176H231.398V167.507C283.579 184.743 337.86 193.839 393.588 193.839C491.089 193.839 584.158 165.996 669.304 115.432V212.883H669.834V530.782H669.835V554.581C669.835 557.738 669.835 559.317 669.808 560.652C668.375 632.732 610.285 690.821 538.205 692.255C536.87 692.281 535.292 692.281 532.135 692.281C511.625 692.281 491.575 686.798 474.522 676.524C457.469 666.25 444.177 651.647 436.328 634.562C428.479 617.478 426.426 598.678 430.427 580.541C434.428 562.404 444.305 545.744 458.808 532.667C473.31 519.591 491.788 510.686 511.904 507.079C532.02 503.471 552.87 505.322 571.819 512.399C580.147 515.51 587.943 519.568 595.034 524.445V309.75Z"
fill="#3313F7"
className="fill-primary"
/>
</svg>
);
@@ -43,7 +43,7 @@ export const ProTierLogo: React.FC<{ height?: number }> = ({ height = 24 }) => (
fillRule="evenodd"
clipRule="evenodd"
d="M787.801 263.514C709.62 285.205 628.31 299.374 544.7 305.192L544.7 697.499V721.299C544.7 724.456 544.7 726.034 544.674 727.369C543.24 799.45 485.151 857.539 413.07 858.972C411.735 858.999 410.157 858.999 407 858.999C386.49 858.999 366.441 853.515 349.387 843.241C332.334 832.967 319.043 818.365 311.194 801.28C303.345 784.195 301.291 765.395 305.293 747.258C309.294 729.121 319.17 712.461 333.673 699.384C348.176 686.308 366.653 677.403 386.769 673.796C406.885 670.188 427.736 672.039 446.684 679.116C455.013 682.227 462.809 686.285 469.9 691.163V308.142C465.938 308.18 461.971 308.199 458 308.199C402.672 308.199 348.196 304.548 294.8 297.474L294.8 495.2V519C294.8 519.617 294.8 520.174 294.8 520.681V522.399H294.798C294.795 523.516 294.789 524.331 294.774 525.07C293.34 597.151 235.251 655.24 163.171 656.674C161.836 656.7 160.257 656.7 157.1 656.7C136.591 656.7 116.541 651.216 99.4878 640.943C82.4344 630.669 69.1429 616.066 61.2941 598.981C53.4453 581.896 51.3917 563.096 55.393 544.959C59.3943 526.822 69.2708 510.162 83.7735 497.086C98.2762 484.009 116.754 475.104 136.87 471.497C156.985 467.889 177.836 469.741 196.785 476.817C205.113 479.928 212.909 483.986 220 488.864V285.206C220 285.206 220 285.206 220 285.206V130.226C296.571 147.461 376.224 156.558 458.001 156.558C601.078 156.558 737.652 128.713 862.599 78.1484V175.599H862.601V493.499H862.601V517.299C862.601 520.456 862.601 522.034 862.575 523.369C861.141 595.45 803.052 653.539 730.971 654.973C729.636 654.999 728.058 654.999 724.901 654.999C704.391 654.999 684.342 649.515 667.288 639.242C650.235 628.968 636.944 614.365 629.095 597.28C621.246 580.195 619.192 561.395 623.194 543.258C627.195 525.121 637.071 508.461 651.574 495.385C666.077 482.308 684.554 473.403 704.67 469.796C724.786 466.188 745.637 468.04 764.585 475.116C772.914 478.227 780.71 482.285 787.801 487.163V263.514Z"
fill="#3313F7"
className="fill-primary"
/>
</svg>
);

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,7 @@
import { assert, beforeEach, describe, expect, test } from "vitest";
import { expectMap } from "../coValue";
import { WasmCrypto } from "../crypto/WasmCrypto";
import { CoValueCore, RawCoMap } from "../exports";
import { LocalNode } from "../localNode";
import { toSimplifiedMessages } from "./messagesTestUtils";
import {
@@ -156,6 +157,55 @@ describe("peer reconciliation", () => {
`);
});
test("correctly handle server restarts in the middle of a sync", async () => {
const client = setupTestNode();
const group = client.node.createGroup();
const map = group.createMap();
map.set("hello", "world", "trusting");
await map.core.waitForSync();
jazzCloud.restart();
SyncMessagesLog.clear();
client.connectToSyncServer();
map.set("hello", "updated", "trusting");
await new Promise((resolve) => setTimeout(resolve, 0));
client.connectToSyncServer();
await waitFor(() => {
const mapOnSyncServer = jazzCloud.node.coValuesStore.get(map.id);
expect(mapOnSyncServer.state.type).toBe("available");
});
expect(
SyncMessagesLog.getMessages({
Group: group.core,
Map: map.core,
}),
).toMatchInlineSnapshot(`
[
"client -> server | LOAD Group sessions: header/3",
"server -> client | KNOWN Group sessions: empty",
"client -> server | LOAD Map sessions: header/2",
"server -> client | KNOWN Map sessions: empty",
"client -> server | CONTENT Group header: true new: After: 0 New: 3",
"server -> client | KNOWN Group sessions: header/3",
"client -> server | CONTENT Map header: true new: After: 0 New: 2",
"server -> client | KNOWN Map sessions: header/2",
"client -> server | LOAD Group sessions: header/3",
"server -> client | KNOWN Group sessions: header/3",
"client -> server | LOAD Map sessions: header/2",
"server -> client | KNOWN Map sessions: header/2",
]
`);
});
test.skip("handle peer reconnections with data loss", async () => {
const client = setupTestNode();

View File

@@ -472,13 +472,13 @@ export function setupTestNode(
connectToSyncServer();
}
return {
const ctx = {
node,
connectToSyncServer,
addStoragePeer,
restart: () => {
node.gracefulShutdown();
node = new LocalNode(admin, session, Crypto);
ctx.node = node = new LocalNode(admin, session, Crypto);
if (opts.isSyncServer) {
syncServer.current = node;
@@ -487,6 +487,8 @@ export function setupTestNode(
return node;
},
};
return ctx;
}
export async function setupTestAccount(

View File

@@ -1,5 +1,11 @@
# jazz-auth-clerk
## 0.13.8
### Patch Changes
- de19a6d: Consider the user as changed when clerk.user changes from null to non-null
## 0.13.7
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-auth-clerk",
"version": "0.13.7",
"version": "0.13.8",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -178,6 +178,19 @@ describe("JazzClerkAuth", () => {
expect(onClerkUserChangeSpy).toHaveBeenCalledTimes(2);
});
it("should call onClerkUserChange when user passes from null to non-null", async () => {
const { client, triggerUserChange } = setupMockClerk(null);
const auth = new JazzClerkAuth(mockAuthenticate, authSecretStorage);
const onClerkUserChangeSpy = vi.spyOn(auth, "onClerkUserChange");
auth.registerListener(client);
triggerUserChange(null);
expect(onClerkUserChangeSpy).toHaveBeenCalledTimes(1);
});
it("should not call onClerkUserChange when user is the same", async () => {
const { client, triggerUserChange } = setupMockClerk(null);

View File

@@ -45,6 +45,10 @@ export function isClerkAuthStateEqual(
previousUser: MinimalClerkClient["user"] | null | undefined,
newUser: MinimalClerkClient["user"] | null | undefined,
) {
if (Boolean(previousUser) !== Boolean(newUser)) {
return false;
}
const previousCredentials = isClerkCredentials(previousUser?.unsafeMetadata);
const newCredentials = isClerkCredentials(newUser?.unsafeMetadata);

View File

@@ -1,5 +1,12 @@
# jazz-browser
## 0.13.8
### Patch Changes
- Updated dependencies [de19a6d]
- jazz-auth-clerk@0.13.8
## 0.13.7
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-expo",
"version": "0.13.7",
"version": "0.13.8",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",

View File

@@ -4,10 +4,7 @@
"type": "module",
"main": "./dist/app.js",
"types": "./dist/app.d.ts",
"files": [
"dist/**",
"src"
],
"files": ["dist/**", "src"],
"scripts": {
"dev": "rm -rf ./dist && tsc --emitDeclarationOnly --watch & vite build --watch",
"build": "rm -rf ./dist && tsc --sourceMap --declaration --outDir dist",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -2,7 +2,7 @@ import { styled } from "goober";
export const GlobalStyles = styled("div")`
/* Colors */
--j-primary-color: #3313F7;
--j-primary-color: #146AFF;
--j-link-color: var(--j-primary-color);
--j-success-color: oklch(52.7% 0.154 150.069);
--j-destructive-color: oklch(50.5% 0.213 27.518);

View File

@@ -46,7 +46,7 @@ const JazzIcon = styled("svg")`
height: auto;
position: relative;
left: -1px;
color: #3313F7;
color: #146AFF;
`;
export function InspectorButton({

View File

@@ -1,5 +1,12 @@
# jazz-browser-media-images
## 0.13.8
### Patch Changes
- Updated dependencies [de19a6d]
- jazz-auth-clerk@0.13.8
## 0.13.7
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-auth-clerk",
"version": "0.13.7",
"version": "0.13.8",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -14,7 +14,7 @@ export function Logo() {
fillRule="evenodd"
clipRule="evenodd"
d="M136.179 44.8277C136.179 44.8277 136.179 44.8277 136.179 44.8276V21.168C117.931 28.5527 97.9854 32.6192 77.0897 32.6192C65.1466 32.6192 53.5138 31.2908 42.331 28.7737V51.4076C42.331 51.4076 42.331 51.4076 42.331 51.4076V81.1508C41.2955 80.4385 40.1568 79.8458 38.9405 79.3915C36.1732 78.358 33.128 78.0876 30.1902 78.6145C27.2524 79.1414 24.5539 80.4419 22.4358 82.3516C20.3178 84.2613 18.8754 86.6944 18.291 89.3433C17.7066 91.9921 18.0066 94.7377 19.1528 97.2329C20.2991 99.728 22.2403 101.861 24.7308 103.361C27.2214 104.862 30.1495 105.662 33.1448 105.662H33.1455C33.6061 105.662 33.8365 105.662 34.0314 105.659C44.5583 105.449 53.042 96.9656 53.2513 86.4386C53.2534 86.3306 53.2544 86.2116 53.2548 86.0486H53.2552V85.7149L53.2552 85.5521V82.0762L53.2552 53.1993C61.0533 54.2324 69.0092 54.7656 77.0897 54.7656C77.6696 54.7656 78.2489 54.7629 78.8276 54.7574V110.696C77.792 109.983 76.6533 109.391 75.437 108.936C72.6697 107.903 69.6246 107.632 66.6867 108.159C63.7489 108.686 61.0504 109.987 58.9323 111.896C56.8143 113.806 55.3719 116.239 54.7875 118.888C54.2032 121.537 54.5031 124.283 55.6494 126.778C56.7956 129.273 58.7368 131.405 61.2273 132.906C63.7179 134.406 66.646 135.207 69.6414 135.207C70.1024 135.207 70.3329 135.207 70.5279 135.203C81.0548 134.994 89.5385 126.51 89.7478 115.983C89.7517 115.788 89.7517 115.558 89.7517 115.097V111.621L89.7517 54.3266C101.962 53.4768 113.837 51.4075 125.255 48.2397V80.9017C124.219 80.1894 123.081 79.5966 121.864 79.1424C119.097 78.1089 116.052 77.8384 113.114 78.3653C110.176 78.8922 107.478 80.1927 105.36 82.1025C103.242 84.0122 101.799 86.4453 101.215 89.0941C100.631 91.743 100.931 94.4886 102.077 96.9837C103.223 99.4789 105.164 101.612 107.655 103.112C110.145 104.612 113.073 105.413 116.069 105.413C116.53 105.413 116.76 105.413 116.955 105.409C127.482 105.2 135.966 96.7164 136.175 86.1895C136.179 85.9945 136.179 85.764 136.179 85.3029V81.8271L136.179 44.8277Z"
fill="#3313F7"
fill="#146AFF"
/>
</svg>
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -33,7 +33,7 @@ describe("Images upload", () => {
await userEvent.upload(
page.getByRole("textbox"),
"./fixtures/jazz-logo.png",
"./fixtures/jazz-icon.png",
);
assert(file);
@@ -44,7 +44,7 @@ describe("Images upload", () => {
assert(highestRes);
expect(highestRes.res).toBe("476x460");
expect(highestRes.res).toBe("512x512");
const blob = highestRes.stream.toBlob();
@@ -64,8 +64,8 @@ describe("Images upload", () => {
expect(img.src).toBe(blobURI);
expect(img.naturalWidth).toBe(476);
expect(img.naturalHeight).toBe(460);
expect(img.naturalWidth).toBe(512);
expect(img.naturalHeight).toBe(512);
URL.revokeObjectURL(blobURI);
});