Compare commits

...

7 Commits

Author SHA1 Message Date
Guido D'Orsi
4d0b9b1bf1 Merge pull request #1466 from garden-co/changeset-release/main
Version Packages
2025-02-22 17:59:46 +01:00
github-actions[bot]
403d61c8e8 Version Packages 2025-02-22 16:58:53 +00:00
Guido D'Orsi
0685c1cd5f Merge pull request #1465 from garden-co/passkey-attachment
fix: remove the attachment setting to restore the faceid login
2025-02-22 17:57:16 +01:00
Guido D'Orsi
834203f270 fix: remove the attachment setting to restore the faceid login 2025-02-22 17:54:02 +01:00
Guido D'Orsi
f01bc19257 test: remove .only 2025-02-21 16:07:33 +01:00
Guido D'Orsi
6405a77aa2 chore: fix tsconfig module value on the root 2025-02-21 11:30:43 +01:00
Guido D'Orsi
ace6486075 test: add deepLoading tests on CoMap.Record 2025-02-21 11:29:51 +01:00
60 changed files with 270 additions and 49 deletions

View File

@@ -1,5 +1,11 @@
# chat-rn-clerk
## 1.0.74
### Patch Changes
- jazz-react-native-auth-clerk@0.10.9
## 1.0.73
### Patch Changes

View File

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

View File

@@ -1,5 +1,13 @@
# chat-vue
## 0.0.58
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
- jazz-vue@0.10.9
## 0.0.57
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "chat-vue",
"version": "0.0.57",
"version": "0.0.58",
"private": true,
"type": "module",
"scripts": {

View File

@@ -1,5 +1,12 @@
# jazz-example-chat
## 0.0.154
### Patch Changes
- jazz-browser-media-images@0.10.9
- jazz-react@0.10.9
## 0.0.153
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-chat",
"private": true,
"version": "0.0.153",
"version": "0.0.154",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,12 @@
# minimal-auth-clerk
## 0.0.53
### Patch Changes
- jazz-react@0.10.9
- jazz-react-auth-clerk@0.10.9
## 0.0.52
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "clerk",
"private": true,
"version": "0.0.52",
"version": "0.0.53",
"type": "module",
"scripts": {
"dev": "vite",
@@ -13,7 +13,7 @@
"dependencies": {
"@clerk/clerk-react": "^5.4.1",
"jazz-react": "workspace:*",
"jazz-react-auth-clerk": "workspace:0.10.8",
"jazz-react-auth-clerk": "workspace:0.10.9",
"jazz-tools": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"

View File

@@ -1,5 +1,11 @@
# file-share-svelte
## 0.0.38
### Patch Changes
- jazz-svelte@0.10.9
## 0.0.37
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "file-share-svelte",
"version": "0.0.37",
"version": "0.0.38",
"private": true,
"type": "module",
"scripts": {

View File

@@ -1,5 +1,12 @@
# form
## 0.0.49
### Patch Changes
- jazz-browser-media-images@0.10.9
- jazz-react@0.10.9
## 0.0.48
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "form",
"private": true,
"version": "0.0.48",
"version": "0.0.49",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,12 @@
# image-upload
## 0.0.51
### Patch Changes
- jazz-browser-media-images@0.10.9
- jazz-react@0.10.9
## 0.0.50
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "image-upload",
"private": true,
"version": "0.0.50",
"version": "0.0.51",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,11 @@
# jazz-example-musicplayer
## 0.0.75
### Patch Changes
- jazz-react@0.10.9
## 0.0.74
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-music-player",
"private": true,
"version": "0.0.74",
"version": "0.0.75",
"type": "module",
"scripts": {
"dev": "vite",
@@ -22,7 +22,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"jazz-inspector": "workspace:*",
"jazz-react": "workspace:0.10.8",
"jazz-react": "workspace:0.10.9",
"jazz-tools": "workspace:0.10.8",
"lucide-react": "^0.274.0",
"react": "^18.3.1",

View File

@@ -1,5 +1,11 @@
# organization
## 0.0.47
### Patch Changes
- jazz-react@0.10.9
## 0.0.46
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "organization",
"private": true,
"version": "0.0.46",
"version": "0.0.47",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,11 @@
# passkey-svelte
## 0.0.42
### Patch Changes
- jazz-svelte@0.10.9
## 0.0.41
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "passkey-svelte",
"version": "0.0.41",
"version": "0.0.42",
"type": "module",
"private": true,
"scripts": {

View File

@@ -1,5 +1,11 @@
# minimal-auth-passkey
## 0.0.52
### Patch Changes
- jazz-react@0.10.9
## 0.0.51
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "passkey",
"private": true,
"version": "0.0.51",
"version": "0.0.52",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,11 @@
# passphrase
## 0.0.49
### Patch Changes
- jazz-react@0.10.9
## 0.0.48
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "passphrase",
"private": true,
"version": "0.0.48",
"version": "0.0.49",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,11 @@
# jazz-password-manager
## 0.0.73
### Patch Changes
- jazz-react@0.10.9
## 0.0.72
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-password-manager",
"private": true,
"version": "0.0.72",
"version": "0.0.73",
"type": "module",
"scripts": {
"dev": "vite",
@@ -12,7 +12,7 @@
"clean-install": "rm -rf node_modules pnpm-lock.yaml && pnpm install"
},
"dependencies": {
"jazz-react": "workspace:0.10.8",
"jazz-react": "workspace:0.10.9",
"jazz-tools": "workspace:0.10.8",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View File

@@ -1,5 +1,12 @@
# jazz-example-pets
## 0.0.171
### Patch Changes
- jazz-browser-media-images@0.10.9
- jazz-react@0.10.9
## 0.0.170
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-pets",
"private": true,
"version": "0.0.170",
"version": "0.0.171",
"type": "module",
"scripts": {
"dev": "vite",
@@ -19,8 +19,8 @@
"@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"jazz-browser-media-images": "workspace:0.10.8",
"jazz-react": "workspace:0.10.8",
"jazz-browser-media-images": "workspace:0.10.9",
"jazz-react": "workspace:0.10.9",
"jazz-tools": "workspace:0.10.8",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",

View File

@@ -1,5 +1,12 @@
# reactions
## 0.0.51
### Patch Changes
- jazz-browser-media-images@0.10.9
- jazz-react@0.10.9
## 0.0.50
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "reactions",
"private": true,
"version": "0.0.50",
"version": "0.0.51",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,13 @@
# todo-vue
## 0.0.56
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
- jazz-vue@0.10.9
## 0.0.55
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "todo-vue",
"version": "0.0.55",
"version": "0.0.56",
"private": true,
"type": "module",
"scripts": {

View File

@@ -1,5 +1,11 @@
# jazz-example-todo
## 0.0.170
### Patch Changes
- jazz-react@0.10.9
## 0.0.169
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-todo",
"private": true,
"version": "0.0.169",
"version": "0.0.170",
"type": "module",
"scripts": {
"dev": "vite",
@@ -16,7 +16,7 @@
"@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"jazz-react": "workspace:0.10.8",
"jazz-react": "workspace:0.10.9",
"jazz-tools": "workspace:0.10.8",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",

View File

@@ -1,5 +1,11 @@
# version-history
## 0.0.48
### Patch Changes
- jazz-react@0.10.9
## 0.0.47
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "version-history",
"private": true,
"version": "0.0.47",
"version": "0.0.48",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,12 @@
# jazz-browser-media-images
## 0.10.9
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,13 +1,13 @@
{
"name": "jazz-auth-clerk",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"cojson": "workspace:0.10.8",
"jazz-browser": "workspace:0.10.8",
"jazz-browser": "workspace:0.10.9",
"jazz-tools": "workspace:0.10.8"
},
"scripts": {

View File

@@ -1,5 +1,12 @@
# jazz-browser-media-images
## 0.10.9
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-browser-media-images",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
@@ -8,7 +8,7 @@
"dependencies": {
"@types/image-blob-reduce": "^4.1.1",
"image-blob-reduce": "^4.1.0",
"jazz-browser": "workspace:0.10.8",
"jazz-browser": "workspace:0.10.9",
"jazz-tools": "workspace:0.10.8",
"pica": "^9.0.1",
"typescript": "~5.6.2"

View File

@@ -1,5 +1,11 @@
# jazz-browser
## 0.10.9
### Patch Changes
- 834203f: Fix the attachment setting to restore the faceid login
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-browser",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

View File

@@ -135,7 +135,6 @@ export class BrowserPasskeyAuth {
{ alg: -257, type: "public-key" },
],
authenticatorSelection: {
authenticatorAttachment: "cross-platform",
requireResidentKey: true,
residentKey: "required",
userVerification: "preferred",

View File

@@ -1,5 +1,14 @@
# jazz-browser-media-images
## 0.10.9
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
- jazz-auth-clerk@0.10.9
- jazz-react@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-auth-clerk",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.tsx",

View File

@@ -1,5 +1,11 @@
# jazz-react-native-auth-clerk
## 0.10.9
### Patch Changes
- jazz-auth-clerk@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-native-auth-clerk",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.tsx",

View File

@@ -1,5 +1,12 @@
# jazz-react
## 0.10.9
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
@@ -18,7 +18,7 @@
"dependencies": {
"@scure/bip39": "^1.3.0",
"cojson": "workspace:0.10.8",
"jazz-browser": "workspace:0.10.8",
"jazz-browser": "workspace:0.10.9",
"jazz-react-core": "workspace:*",
"jazz-tools": "workspace:0.10.8"
},

View File

@@ -1,5 +1,12 @@
# jazz-svelte
## 0.10.9
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-svelte",
"version": "0.10.8",
"version": "0.10.9",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",

View File

@@ -29,7 +29,6 @@ export function fulfillsDepth(depth: any, value: CoValue): boolean {
const map = value as unknown as {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
_refs: { [key: string]: Ref<CoValue> | undefined };
};
if (map._raw.get(key) === undefined) {

View File

@@ -26,7 +26,6 @@ import {
setupJazzTestSync,
} from "../testing";
// @ts-ignore Typescript in VSCode doesn't like top level await
const Crypto = await WasmCrypto.create();
class TestJazzContextManager<Acc extends Account> extends JazzContextManager<

View File

@@ -387,3 +387,47 @@ test("throw when calling ensureLoaded on a ref that is not defined in the schema
}),
).rejects.toThrow("Failed to deeply load CoValue " + root.id);
});
test("should not throw when calling ensureLoaded a record with a deleted ref", async () => {
class JazzProfile extends CoMap {
firstName = co.string;
}
class JazzySnapStore extends CoMap.Record(co.ref(JazzProfile)) {}
const me = await Account.create({
creationProps: { name: "Tester McTesterson" },
crypto: Crypto,
});
const root = JazzySnapStore.create(
{
profile: JazzProfile.create({ firstName: "John" }, me),
},
me,
);
let value: any;
let unsub = root.subscribe([{}], (v) => {
value = v;
});
await waitFor(() => expect(value.profile).toBeDefined());
delete root.profile;
await waitFor(() => expect(value.profile).toBeUndefined());
unsub();
value = undefined;
unsub = root.subscribe([{}], (v) => {
value = v;
});
await waitFor(() => expect(value).toBeDefined());
expect(value.profile).toBeUndefined();
unsub();
});

View File

@@ -1,5 +1,12 @@
# jazz-react
## 0.10.9
### Patch Changes
- Updated dependencies [834203f]
- jazz-browser@0.10.9
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-vue",
"version": "0.10.8",
"version": "0.10.9",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

18
pnpm-lock.yaml generated
View File

@@ -450,7 +450,7 @@ importers:
specifier: workspace:*
version: link:../../packages/jazz-react
jazz-react-auth-clerk:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../../packages/jazz-react-auth-clerk
jazz-tools:
specifier: workspace:*
@@ -776,7 +776,7 @@ importers:
specifier: workspace:*
version: link:../../packages/jazz-inspector
jazz-react:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.10.8
@@ -1018,7 +1018,7 @@ importers:
examples/password-manager:
dependencies:
jazz-react:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.10.8
@@ -1082,10 +1082,10 @@ importers:
specifier: ^2.0.0
version: 2.1.1
jazz-browser-media-images:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../../packages/jazz-browser-media-images
jazz-react:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.10.8
@@ -1222,7 +1222,7 @@ importers:
specifier: ^2.0.0
version: 2.1.1
jazz-react:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.10.8
@@ -1562,7 +1562,7 @@ importers:
specifier: workspace:0.10.8
version: link:../cojson
jazz-browser:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../jazz-browser
jazz-tools:
specifier: workspace:0.10.8
@@ -1603,7 +1603,7 @@ importers:
specifier: ^4.1.0
version: 4.1.0
jazz-browser:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../jazz-browser
jazz-tools:
specifier: workspace:0.10.8
@@ -1681,7 +1681,7 @@ importers:
specifier: workspace:0.10.8
version: link:../cojson
jazz-browser:
specifier: workspace:0.10.8
specifier: workspace:0.10.9
version: link:../jazz-browser
jazz-react-core:
specifier: workspace:*

View File

@@ -1,5 +1,11 @@
# jazz-tailwind-demo-auth-starter
## 0.0.48
### Patch Changes
- jazz-react@0.10.9
## 0.0.47
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-tailwind-demo-auth-starter",
"private": true,
"version": "0.0.47",
"version": "0.0.48",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2018",
"module": "commonjs",
"module": "preserve",
"moduleResolution": "bundler",
"strict": true,
"importHelpers": false,