Compare commits

..

1 Commits

Author SHA1 Message Date
Guido D'Orsi
989cd87eae fix: fix cannot find matching keyid: {signatures:[...],keys:[...]} on CI 2025-02-04 10:08:44 +01:00
99 changed files with 201 additions and 574 deletions

View File

@@ -27,7 +27,14 @@ jobs:
with:
submodules: true
- name: Enable latestcorepack
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
steps:
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
@@ -35,11 +42,8 @@ jobs:
corepack enable
pnpm --version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Enable corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash

View File

@@ -18,7 +18,13 @@ jobs:
with:
submodules: true
- name: Enable latestcorepack
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
@@ -26,11 +32,8 @@ jobs:
corepack enable
pnpm --version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Enable corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash

View File

@@ -16,7 +16,13 @@ jobs:
with:
submodules: true
- name: Enable latestcorepack
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
@@ -24,11 +30,8 @@ jobs:
corepack enable
pnpm --version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Enable corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash

View File

@@ -20,7 +20,13 @@ jobs:
with:
submodules: true
- name: Enable latestcorepack
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
@@ -28,11 +34,8 @@ jobs:
corepack enable
pnpm --version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Enable corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash

View File

@@ -22,7 +22,13 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Enable latestcorepack
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
@@ -30,11 +36,8 @@ jobs:
corepack enable
pnpm --version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Enable corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash

View File

@@ -15,7 +15,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Enable latestcorepack
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
@@ -23,11 +29,8 @@ jobs:
corepack enable
pnpm --version
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Enable corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash

View File

@@ -1,4 +1,4 @@
Copyright 2025, Garden Computing, Inc.
Copyright 2024, Garden Computing, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.

View File

@@ -17,4 +17,4 @@ For community and support, please join our [Discord](https://discord.gg/utDMjHYg
- Community & support: [Discord](https://discord.gg/utDMjHYg42)
- Updates: [X](https://x.com/jazz_tools) & [Email](https://garden.co/news)
Copyright 2025 — Garden Computing, Inc.
Copyright 2024 — Garden Computing, Inc.

View File

@@ -1,14 +1,5 @@
# chat-rn-clerk
## 1.0.64
### Patch Changes
- jazz-react-native@0.9.23
- jazz-react-native-auth-clerk@0.9.23
- jazz-tools@0.9.23
- jazz-react-native-media-images@0.9.23
## 1.0.63
### Patch Changes

View File

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

View File

@@ -1,12 +1,5 @@
# chat-rn
## 1.0.61
### Patch Changes
- jazz-react-native@0.9.23
- jazz-tools@0.9.23
## 1.0.60
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# chat-vue
## 0.0.48
### Patch Changes
- jazz-browser@0.9.23
- jazz-tools@0.9.23
- jazz-vue@0.9.23
## 0.0.47
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# jazz-example-chat
## 0.0.144
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
- jazz-browser-media-images@0.9.23
## 0.0.143
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# minimal-auth-clerk
## 0.0.43
### Patch Changes
- jazz-react@0.9.23
- jazz-react-auth-clerk@0.9.23
- jazz-tools@0.9.23
## 0.0.42
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "clerk",
"private": true,
"version": "0.0.43",
"version": "0.0.42",
"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.9.23",
"jazz-react-auth-clerk": "workspace:0.9.22",
"jazz-tools": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"

View File

@@ -1,12 +1,5 @@
# file-share-svelte
## 0.0.28
### Patch Changes
- jazz-svelte@0.9.23
- jazz-tools@0.9.23
## 0.0.27
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# form
## 0.0.39
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
- jazz-browser-media-images@0.9.23
## 0.0.38
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# image-upload
## 0.0.41
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
- jazz-browser-media-images@0.9.23
## 0.0.40
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# jazz-example-inspector
## 0.0.102
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-transport-ws@0.9.23
## 0.0.101
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-inspector-app",
"private": true,
"version": "0.0.102",
"version": "0.0.101",
"type": "module",
"scripts": {
"dev": "vite",
@@ -16,8 +16,8 @@
"@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"cojson": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"cojson": "workspace:0.9.19",
"cojson-transport-ws": "workspace:0.9.22",
"hash-slash": "workspace:0.2.1",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",

View File

@@ -1,13 +1,5 @@
# jazz-example-musicplayer
## 0.0.65
### Patch Changes
- jazz-inspector@0.9.23
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.64
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-music-player",
"private": true,
"version": "0.0.65",
"version": "0.0.64",
"type": "module",
"scripts": {
"dev": "vite",
@@ -18,8 +18,8 @@
"@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"jazz-react": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"jazz-inspector": "workspace:*",
"lucide-react": "^0.274.0",
"react": "^18.3.1",

View File

@@ -1,13 +1,5 @@
# jazz-example-onboarding
## 0.0.45
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
- jazz-browser-media-images@0.9.23
## 0.0.44
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-onboarding",
"private": true,
"version": "0.0.45",
"version": "0.0.44",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,12 +1,5 @@
# organization
## 0.0.37
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.36
### Patch Changes

View File

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

View File

@@ -1,11 +1,5 @@
# passkey-svelte
## 0.0.32
### Patch Changes
- jazz-svelte@0.9.23
## 0.0.31
### Patch Changes

View File

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

View File

@@ -1,12 +1,5 @@
# minimal-auth-passkey
## 0.0.42
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.41
### Patch Changes

View File

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

View File

@@ -1,12 +1,5 @@
# jazz-password-manager
## 0.0.63
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.62
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-password-manager",
"private": true,
"version": "0.0.63",
"version": "0.0.62",
"type": "module",
"scripts": {
"dev": "vite",
@@ -12,8 +12,8 @@
"clean-install": "rm -rf node_modules pnpm-lock.yaml && pnpm install"
},
"dependencies": {
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"jazz-react": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.41.5",

View File

@@ -1,13 +1,5 @@
# jazz-example-pets
## 0.0.161
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
- jazz-browser-media-images@0.9.23
## 0.0.160
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-pets",
"private": true,
"version": "0.0.161",
"version": "0.0.160",
"type": "module",
"scripts": {
"dev": "vite",
@@ -19,9 +19,9 @@
"@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"jazz-browser-media-images": "workspace:0.9.23",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"jazz-browser-media-images": "workspace:0.9.22",
"jazz-react": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",
"react": "^18.3.1",
@@ -41,7 +41,7 @@
"@vitejs/plugin-react-swc": "^3.3.2",
"autoprefixer": "^10.4.20",
"is-ci": "^3.0.1",
"jazz-run": "workspace:0.9.23",
"jazz-run": "workspace:0.9.22",
"postcss": "^8.4.27",
"tailwindcss": "^3.4.15",
"typescript": "~5.6.2",

View File

@@ -1,13 +1,5 @@
# reactions
## 0.0.41
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
- jazz-browser-media-images@0.9.23
## 0.0.40
### Patch Changes

View File

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

View File

@@ -1,13 +1,5 @@
# todo-vue
## 0.0.46
### Patch Changes
- jazz-browser@0.9.23
- jazz-tools@0.9.23
- jazz-vue@0.9.23
## 0.0.45
### Patch Changes

View File

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

View File

@@ -1,12 +1,5 @@
# jazz-example-todo
## 0.0.160
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.159
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-todo",
"private": true,
"version": "0.0.160",
"version": "0.0.159",
"type": "module",
"scripts": {
"dev": "vite",
@@ -16,8 +16,8 @@
"@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"jazz-react": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",
"react": "^18.3.1",

View File

@@ -1,12 +1,5 @@
# version-history
## 0.0.38
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.37
### Patch Changes

View File

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

View File

@@ -1,13 +0,0 @@
export function Copyright({
className,
companyName = "Garden Computing, Inc.",
}: {
companyName?: string;
className?: string;
}) {
return (
<p className={className}>
© {new Date().getFullYear()} {companyName}
</p>
);
}

View File

@@ -4,7 +4,6 @@ import clsx from "clsx";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { ComponentType, ReactNode } from "react";
import { Copyright } from "../atoms/Copyright";
import { NewsletterForm } from "./NewsletterForm";
import { SocialLinks, SocialLinksProps } from "./SocialLinks";
@@ -19,13 +18,29 @@ type FooterSection = {
type FooterProps = {
logo: ReactNode;
companyName: string;
sections: FooterSection[];
socials: SocialLinksProps;
themeToggle: ComponentType<{ className?: string }>;
};
function Copyright({
className,
companyName,
}: {
companyName: string;
className?: string;
}) {
return (
<p className={clsx(className, "text-sm")}>
© {new Date().getFullYear()} {companyName}
</p>
);
}
export function Footer({
logo,
companyName,
sections,
socials,
themeToggle: ThemeToggle,
@@ -67,7 +82,10 @@ export function Footer({
</div>
))}
<Copyright className="text-sm order-last col-span-full self-center md:col-span-10 md:order-none" />
<Copyright
className="order-last col-span-full self-center md:col-span-10 md:order-none"
companyName={companyName}
/>
<div className="col-span-full flex items-center justify-between gap-6 md:col-span-2">
<SocialLinks {...socials}></SocialLinks>

View File

@@ -9,7 +9,6 @@ import { GcmpNav } from "@/components/Nav";
import { ThemeToggle } from "@/components/ThemeToggle";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { Copyright } from "gcmp-design-system/src/app/components/atoms/Copyright";
// If loading a variable font, you don't need to specify the font weight
const manrope = Manrope({
@@ -99,7 +98,7 @@ export default function RootLayout({
<GcmpNav />
<main className="flex-1 w-full">{children}</main>
<footer className="py-8 text-sm flex justify-between gap-3 w-full container mt-12 md:mt-20">
<Copyright />
<p>©2024 Garden Computing, Inc.</p>
<ThemeToggle className="hidden md:block" />
</footer>

View File

@@ -7,6 +7,7 @@ export function JazzFooter() {
return (
<Footer
logo={<GcmpLogo monochrome className="w-36" />}
companyName="Garden Computing, Inc."
socials={socials}
themeToggle={ThemeToggle}
sections={[

View File

@@ -1,13 +1,5 @@
# cojson-storage-indexeddb
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-storage@0.9.23
## 0.9.19
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "cojson-storage-indexeddb",
"version": "0.9.23",
"version": "0.9.19",
"main": "dist/index.js",
"type": "module",
"types": "src/index.ts",

View File

@@ -1,13 +1,5 @@
# cojson-storage-sqlite
## 0.8.59
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-storage@0.9.23
## 0.8.58
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "cojson-storage-rn-sqlite",
"type": "module",
"version": "0.8.59",
"version": "0.8.58",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",

View File

@@ -1,13 +1,5 @@
# cojson-storage-sqlite
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-storage@0.9.23
## 0.9.19
### Patch Changes

View File

@@ -1,13 +1,13 @@
{
"name": "cojson-storage-sqlite",
"type": "module",
"version": "0.9.23",
"version": "0.9.19",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"better-sqlite3": "^11.7.0",
"cojson": "workspace:0.9.23",
"cojson": "workspace:0.9.19",
"cojson-storage": "workspace:*"
},
"devDependencies": {

View File

@@ -1,12 +1,5 @@
# cojson-storage
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
## 0.9.19
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "cojson-storage",
"version": "0.9.23",
"version": "0.9.19",
"main": "dist/index.js",
"type": "module",
"types": "src/index.ts",

View File

@@ -1,12 +1,5 @@
# cojson-transport-nodejs-ws
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "cojson-transport-ws",
"type": "module",
"version": "0.9.23",
"version": "0.9.22",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",

View File

@@ -1,11 +1,5 @@
# cojson
## 0.9.23
### Patch Changes
- 70c9a5d: Rotate keys before revoking access, so when admins remove themselves the keys are successfully rotated
## 0.9.19
### Patch Changes

View File

@@ -24,7 +24,7 @@
},
"type": "module",
"license": "MIT",
"version": "0.9.23",
"version": "0.9.19",
"devDependencies": {
"@opentelemetry/sdk-metrics": "^1.29.0",
"@types/jest": "^29.5.3",

View File

@@ -383,10 +383,8 @@ export class RawGroup<
}
/** @internal */
rotateReadKey(removedMemberKey?: RawAccountID | AgentID | "everyone") {
const memberKeys = this.getMemberKeys().filter(
(key) => key !== removedMemberKey,
);
rotateReadKey() {
const memberKeys = this.getMemberKeys();
const currentlyPermittedReaders = memberKeys.filter((key) => {
const role = this.get(key);
@@ -524,7 +522,7 @@ export class RawGroup<
continue;
}
child.rotateReadKey(removedMemberKey);
child.rotateReadKey();
}
}
@@ -619,9 +617,8 @@ export class RawGroup<
account: RawAccount | ControlledAccountOrAgent | AgentID | Everyone,
) {
const memberKey = typeof account === "string" ? account : account.id;
this.rotateReadKey(memberKey);
this.set(memberKey, "revoked", "trusting");
this.rotateReadKey();
}
/**

View File

@@ -1,4 +1,4 @@
import { expect, test, vi } from "vitest";
import { expect, test } from "vitest";
import { expectMap } from "../coValue.js";
import { ControlledAgent } from "../coValues/account.js";
import { WasmCrypto } from "../crypto/WasmCrypto.js";
@@ -2908,61 +2908,3 @@ test("extend cycles should not break the keys rotation", () => {
expect(map.get("test")).toEqual("Hello!");
});
test("Admin can remove themselves from a group", async () => {
const warnSpy = vi.spyOn(console, "warn");
const { group, admin } = newGroupHighLevel();
// Admin removes themselves
await group.removeMember(admin);
expect(group.myRole()).toBeUndefined();
expect(warnSpy).not.toHaveBeenCalled();
});
test("Can revoke read permission from 'everyone'", async () => {
const { group } = newGroupHighLevel();
const childObject = group.createMap();
// Give everyone read access
group.addMember("everyone", "reader");
childObject.set("foo", "bar", "private");
expect(childObject.get("foo")).toEqual("bar");
// Create a new account to verify access
const newAccount = new ControlledAgent(Crypto.newRandomAgentSecret(), Crypto);
const childContent = expectMap(
childObject.core
.testWithDifferentAccount(
newAccount,
Crypto.newRandomSessionID(newAccount.currentAgentID()._unsafeUnwrap()),
)
.getCurrentContent(),
);
// Verify the new account can read
expect(childContent.get("foo")).toEqual("bar");
// Revoke everyone's access
await group.removeMember("everyone");
childObject.set("foo", "updated after revoke", "private");
// Create another new account to verify access is revoked
const newAccount2 = new ControlledAgent(
Crypto.newRandomAgentSecret(),
Crypto,
);
const childContent2 = expectMap(
childObject.core
.testWithDifferentAccount(
newAccount2,
Crypto.newRandomSessionID(newAccount2.currentAgentID()._unsafeUnwrap()),
)
.getCurrentContent(),
);
// Verify the new account cannot read after revocation
expect(childContent2.get("foo")).toEqual("bar");
});

View File

@@ -1,14 +1,5 @@
# jazz-browser-media-images
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-browser@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,14 +1,14 @@
{
"name": "jazz-browser-auth-clerk",
"version": "0.9.23",
"version": "0.9.22",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"cojson": "workspace:0.9.23",
"jazz-browser": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23"
"cojson": "workspace:0.9.19",
"jazz-browser": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21"
},
"scripts": {
"format-and-lint": "biome check .",

View File

@@ -1,12 +1,5 @@
# jazz-browser-media-images
## 0.9.23
### Patch Changes
- jazz-browser@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

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

View File

@@ -1,15 +1,5 @@
# jazz-browser
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-storage-indexeddb@0.9.23
- cojson-transport-ws@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,16 +1,16 @@
{
"name": "jazz-browser",
"version": "0.9.23",
"version": "0.9.22",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"@scure/bip39": "^1.3.0",
"cojson": "workspace:0.9.23",
"cojson-storage-indexeddb": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"cojson": "workspace:0.9.19",
"cojson-storage-indexeddb": "workspace:0.9.19",
"cojson-transport-ws": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"typescript": "~5.6.2"
},
"scripts": {

View File

@@ -1,14 +1,5 @@
# jazz-inspector
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-react-core@0.9.22
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-inspector",
"version": "0.9.23",
"version": "0.9.22",
"type": "module",
"main": "./dist/app.js",
"types": "./dist/app.d.ts",

View File

@@ -1,14 +1,5 @@
# jazz-autosub
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-transport-ws@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -5,11 +5,11 @@
"types": "src/index.ts",
"type": "module",
"license": "MIT",
"version": "0.9.23",
"version": "0.9.22",
"dependencies": {
"cojson": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"cojson": "workspace:0.9.19",
"cojson-transport-ws": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"ws": "^8.14.2"
},
"devDependencies": {

View File

@@ -1,15 +1,5 @@
# jazz-browser-media-images
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-browser-auth-clerk@0.9.23
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,15 +1,15 @@
{
"name": "jazz-react-auth-clerk",
"version": "0.9.23",
"version": "0.9.22",
"type": "module",
"main": "dist/index.js",
"types": "src/index.tsx",
"license": "MIT",
"dependencies": {
"cojson": "workspace:0.9.23",
"jazz-browser-auth-clerk": "workspace:0.9.23",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23"
"cojson": "workspace:0.9.19",
"jazz-browser-auth-clerk": "workspace:0.9.22",
"jazz-react": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21"
},
"peerDependencies": {
"react": "^18.2.0"

View File

@@ -1,13 +1,5 @@
# jazz-react-core
## 0.9.22
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-tools@0.9.23
## 0.9.21
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-core",
"version": "0.9.22",
"version": "0.9.21",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

View File

@@ -1,14 +1,5 @@
# jazz-react-native-auth-clerk
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-react-native@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

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

View File

@@ -1,11 +1,5 @@
# jazz-browser-media-images
## 0.9.23
### Patch Changes
- jazz-tools@0.9.23
## 0.9.21
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-native-media-images",
"version": "0.9.23",
"version": "0.9.21",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

View File

@@ -1,16 +1,5 @@
# jazz-browser
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-storage-rn-sqlite@0.8.59
- cojson-transport-ws@0.9.23
- jazz-react-core@0.9.22
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-native",
"version": "0.9.23",
"version": "0.9.22",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",

View File

@@ -1,15 +1,5 @@
# jazz-react
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-browser@0.9.23
- jazz-react-core@0.9.22
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react",
"version": "0.9.23",
"version": "0.9.22",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
@@ -17,9 +17,9 @@
},
"dependencies": {
"@scure/bip39": "^1.3.0",
"cojson": "workspace:0.9.23",
"jazz-browser": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"cojson": "workspace:0.9.19",
"jazz-browser": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"jazz-react-core": "workspace:*"
},
"devDependencies": {

View File

@@ -1,15 +1,5 @@
# jazz-run
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- cojson-storage-sqlite@0.9.23
- cojson-transport-ws@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

@@ -3,7 +3,7 @@
"bin": "./dist/index.js",
"type": "module",
"license": "MIT",
"version": "0.9.23",
"version": "0.9.22",
"exports": {
"./startSyncServer": {
"import": "./dist/startSyncServer.js",
@@ -28,11 +28,11 @@
"@effect/printer-ansi": "^0.34.5",
"@effect/schema": "^0.71.1",
"@effect/typeclass": "^0.25.5",
"cojson": "workspace:0.9.23",
"cojson-storage-sqlite": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"cojson": "workspace:0.9.19",
"cojson-storage-sqlite": "workspace:0.9.19",
"cojson-transport-ws": "workspace:0.9.22",
"effect": "^3.6.5",
"jazz-tools": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.21",
"ws": "^8.14.2"
},
"devDependencies": {

View File

@@ -1,14 +1,5 @@
# jazz-svelte
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-browser@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

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

View File

@@ -1,12 +1,5 @@
# jazz-tools
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
## 0.9.21
### Patch Changes

View File

@@ -23,7 +23,7 @@
},
"type": "module",
"license": "MIT",
"version": "0.9.23",
"version": "0.9.21",
"dependencies": {
"cojson": "workspace:*"
},

View File

@@ -1,14 +1,5 @@
# jazz-react
## 0.9.23
### Patch Changes
- Updated dependencies [70c9a5d]
- cojson@0.9.23
- jazz-browser@0.9.23
- jazz-tools@0.9.23
## 0.9.22
### Patch Changes

View File

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

74
pnpm-lock.yaml generated
View File

@@ -453,7 +453,7 @@ importers:
specifier: workspace:*
version: link:../../packages/jazz-react
jazz-react-auth-clerk:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-react-auth-clerk
jazz-tools:
specifier: workspace:*
@@ -682,10 +682,10 @@ importers:
specifier: ^2.0.0
version: 2.1.1
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../../packages/cojson
cojson-transport-ws:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/cojson-transport-ws
hash-slash:
specifier: workspace:0.2.1
@@ -770,10 +770,10 @@ importers:
specifier: workspace:*
version: link:../../packages/jazz-inspector
jazz-react:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../../packages/jazz-tools
lucide-react:
specifier: ^0.274.0
@@ -1027,10 +1027,10 @@ importers:
examples/password-manager:
dependencies:
jazz-react:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../../packages/jazz-tools
react:
specifier: 18.3.1
@@ -1091,13 +1091,13 @@ importers:
specifier: ^2.0.0
version: 2.1.1
jazz-browser-media-images:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-browser-media-images
jazz-react:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../../packages/jazz-tools
lucide-react:
specifier: ^0.274.0
@@ -1152,7 +1152,7 @@ importers:
specifier: ^3.0.1
version: 3.0.1
jazz-run:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-run
postcss:
specifier: ^8.4.27
@@ -1231,10 +1231,10 @@ importers:
specifier: ^2.0.0
version: 2.1.1
jazz-react:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../../packages/jazz-tools
lucide-react:
specifier: ^0.274.0
@@ -1502,7 +1502,7 @@ importers:
specifier: ^11.7.0
version: 11.7.0
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
cojson-storage:
specifier: workspace:*
@@ -1583,16 +1583,16 @@ importers:
specifier: ^1.3.0
version: 1.5.0
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
cojson-storage-indexeddb:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson-storage-indexeddb
cojson-transport-ws:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../cojson-transport-ws
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
typescript:
specifier: ~5.6.2
@@ -1601,13 +1601,13 @@ importers:
packages/jazz-browser-auth-clerk:
dependencies:
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
jazz-browser:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../jazz-browser
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
devDependencies:
typescript:
@@ -1623,10 +1623,10 @@ importers:
specifier: ^4.1.0
version: 4.1.0
jazz-browser:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../jazz-browser
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
pica:
specifier: ^9.0.1
@@ -1676,13 +1676,13 @@ importers:
packages/jazz-nodejs:
dependencies:
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
cojson-transport-ws:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../cojson-transport-ws
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
ws:
specifier: ^8.14.2
@@ -1704,16 +1704,16 @@ importers:
specifier: ^1.3.0
version: 1.5.0
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
jazz-browser:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../jazz-browser
jazz-react-core:
specifier: workspace:*
version: link:../jazz-react-core
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
devDependencies:
'@testing-library/dom':
@@ -1741,16 +1741,16 @@ importers:
packages/jazz-react-auth-clerk:
dependencies:
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
jazz-browser-auth-clerk:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../jazz-browser-auth-clerk
jazz-react:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../jazz-react
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
react:
specifier: 18.3.1
@@ -1887,19 +1887,19 @@ importers:
specifier: ^0.25.5
version: 0.25.8(effect@3.11.9)
cojson:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson
cojson-storage-sqlite:
specifier: workspace:0.9.23
specifier: workspace:0.9.19
version: link:../cojson-storage-sqlite
cojson-transport-ws:
specifier: workspace:0.9.23
specifier: workspace:0.9.22
version: link:../cojson-transport-ws
effect:
specifier: ^3.6.5
version: 3.11.9
jazz-tools:
specifier: workspace:0.9.23
specifier: workspace:0.9.21
version: link:../jazz-tools
ws:
specifier: ^8.14.2

View File

@@ -1,12 +1,5 @@
# jazz-tailwind-demo-auth-starter
## 0.0.38
### Patch Changes
- jazz-react@0.9.23
- jazz-tools@0.9.23
## 0.0.37
### Patch Changes

View File

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