Compare commits

..

9 Commits

Author SHA1 Message Date
Guido D'Orsi
4ef43e3477 Merge pull request #1321 from garden-co/changeset-release/main
Version Packages
2025-02-10 11:34:24 +01:00
github-actions[bot]
ab378b3d16 Version Packages 2025-02-06 09:41:56 +00:00
Guido D'Orsi
bc2e531c05 Merge pull request #1323 from garden-co/fix/garden-copyright
Update copyright to 2025
2025-02-06 10:40:41 +01:00
Trisha Lim
14bdd496f7 Update copyright to 2025 2025-02-05 18:36:15 +07:00
Guido D'Orsi
91fcb3f6b6 Merge pull request #1309 from garden-co/fix/rotate-before-revoke
fix: move access revoke after key rotation
2025-02-05 11:19:18 +01:00
Guido D'Orsi
b5962b4f81 chore(ci): fix syntax errors 2025-02-04 11:19:07 +01:00
Guido D'Orsi
f038c2d378 Merge pull request #1315 from garden-co/jazz-686-use-latest-corepack
Uses latest corepack as part of CI build
2025-02-04 10:10:06 +01:00
Benjamin S. Leveritt
febafecfdd Uses latest corepack as part of CI build 2025-02-04 09:08:23 +00:00
Guido D'Orsi
70c9a5db88 fix: move access revoke after key rotation 2025-01-30 19:01:28 +01:00
99 changed files with 574 additions and 201 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
Copyright 2024, Garden Computing, Inc.
Copyright 2025, 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 2024 — Garden Computing, Inc.
Copyright 2025 — Garden Computing, Inc.

View File

@@ -1,5 +1,14 @@
# 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.63",
"version": "1.0.64",
"scripts": {
"build": "expo export -p ios",
"start": "expo start",

View File

@@ -1,5 +1,12 @@
# 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.60",
"version": "1.0.61",
"main": "index.js",
"scripts": {
"build": "expo export -p ios",

View File

@@ -1,5 +1,13 @@
# 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.47",
"version": "0.0.48",
"private": true,
"type": "module",
"scripts": {

View File

@@ -1,5 +1,13 @@
# 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.143",
"version": "0.0.144",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,13 @@
# 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.42",
"version": "0.0.43",
"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.22",
"jazz-react-auth-clerk": "workspace:0.9.23",
"jazz-tools": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"

View File

@@ -1,5 +1,12 @@
# 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.27",
"version": "0.0.28",
"private": true,
"type": "module",
"scripts": {

View File

@@ -1,5 +1,13 @@
# 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.38",
"version": "0.0.39",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,13 @@
# 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.40",
"version": "0.0.41",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,13 @@
# 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.101",
"version": "0.0.102",
"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.19",
"cojson-transport-ws": "workspace:0.9.22",
"cojson": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"hash-slash": "workspace:0.2.1",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",

View File

@@ -1,5 +1,13 @@
# 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.64",
"version": "0.0.65",
"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.22",
"jazz-tools": "workspace:0.9.21",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"jazz-inspector": "workspace:*",
"lucide-react": "^0.274.0",
"react": "^18.3.1",

View File

@@ -1,5 +1,13 @@
# 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.44",
"version": "0.0.45",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,12 @@
# 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.36",
"version": "0.0.37",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,11 @@
# 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.31",
"version": "0.0.32",
"type": "module",
"private": true,
"scripts": {

View File

@@ -1,5 +1,12 @@
# 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.41",
"version": "0.0.42",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,12 @@
# 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.62",
"version": "0.0.63",
"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.22",
"jazz-tools": "workspace:0.9.21",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.41.5",

View File

@@ -1,5 +1,13 @@
# 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.160",
"version": "0.0.161",
"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.22",
"jazz-react": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"jazz-browser-media-images": "workspace:0.9.23",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"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.22",
"jazz-run": "workspace:0.9.23",
"postcss": "^8.4.27",
"tailwindcss": "^3.4.15",
"typescript": "~5.6.2",

View File

@@ -1,5 +1,13 @@
# 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.40",
"version": "0.0.41",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,5 +1,13 @@
# 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.45",
"version": "0.0.46",
"private": true,
"type": "module",
"scripts": {

View File

@@ -1,5 +1,12 @@
# 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.159",
"version": "0.0.160",
"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.22",
"jazz-tools": "workspace:0.9.21",
"jazz-react": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",
"react": "^18.3.1",

View File

@@ -1,5 +1,12 @@
# 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.37",
"version": "0.0.38",
"type": "module",
"scripts": {
"dev": "vite",

View File

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

View File

@@ -4,6 +4,7 @@ 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";
@@ -18,29 +19,13 @@ 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,
@@ -82,10 +67,7 @@ export function Footer({
</div>
))}
<Copyright
className="order-last col-span-full self-center md:col-span-10 md:order-none"
companyName={companyName}
/>
<Copyright className="text-sm order-last col-span-full self-center md:col-span-10 md:order-none" />
<div className="col-span-full flex items-center justify-between gap-6 md:col-span-2">
<SocialLinks {...socials}></SocialLinks>

View File

@@ -9,6 +9,7 @@ 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({
@@ -98,7 +99,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">
<p>©2024 Garden Computing, Inc.</p>
<Copyright />
<ThemeToggle className="hidden md:block" />
</footer>

View File

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

View File

@@ -1,5 +1,13 @@
# 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.19",
"version": "0.9.23",
"main": "dist/index.js",
"type": "module",
"types": "src/index.ts",

View File

@@ -1,5 +1,13 @@
# 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.58",
"version": "0.8.59",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",

View File

@@ -1,5 +1,13 @@
# 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.19",
"version": "0.9.23",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"better-sqlite3": "^11.7.0",
"cojson": "workspace:0.9.19",
"cojson": "workspace:0.9.23",
"cojson-storage": "workspace:*"
},
"devDependencies": {

View File

@@ -1,5 +1,12 @@
# 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.19",
"version": "0.9.23",
"main": "dist/index.js",
"type": "module",
"types": "src/index.ts",

View File

@@ -1,5 +1,12 @@
# 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.22",
"version": "0.9.23",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",

View File

@@ -1,5 +1,11 @@
# 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.19",
"version": "0.9.23",
"devDependencies": {
"@opentelemetry/sdk-metrics": "^1.29.0",
"@types/jest": "^29.5.3",

View File

@@ -383,8 +383,10 @@ export class RawGroup<
}
/** @internal */
rotateReadKey() {
const memberKeys = this.getMemberKeys();
rotateReadKey(removedMemberKey?: RawAccountID | AgentID | "everyone") {
const memberKeys = this.getMemberKeys().filter(
(key) => key !== removedMemberKey,
);
const currentlyPermittedReaders = memberKeys.filter((key) => {
const role = this.get(key);
@@ -522,7 +524,7 @@ export class RawGroup<
continue;
}
child.rotateReadKey();
child.rotateReadKey(removedMemberKey);
}
}
@@ -617,8 +619,9 @@ 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 } from "vitest";
import { expect, test, vi } from "vitest";
import { expectMap } from "../coValue.js";
import { ControlledAgent } from "../coValues/account.js";
import { WasmCrypto } from "../crypto/WasmCrypto.js";
@@ -2908,3 +2908,61 @@ 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,5 +1,14 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"cojson": "workspace:0.9.19",
"jazz-browser": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21"
"cojson": "workspace:0.9.23",
"jazz-browser": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23"
},
"scripts": {
"format-and-lint": "biome check .",

View File

@@ -1,5 +1,12 @@
# 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.22",
"version": "0.9.23",
"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.22",
"jazz-tools": "workspace:0.9.21",
"jazz-browser": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"pica": "^9.0.1",
"typescript": "~5.6.2"
},

View File

@@ -1,5 +1,15 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"@scure/bip39": "^1.3.0",
"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",
"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",
"typescript": "~5.6.2"
},
"scripts": {

View File

@@ -1,5 +1,14 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "./dist/app.js",
"types": "./dist/app.d.ts",

View File

@@ -1,5 +1,14 @@
# 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.22",
"version": "0.9.23",
"dependencies": {
"cojson": "workspace:0.9.19",
"cojson-transport-ws": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"cojson": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"ws": "^8.14.2"
},
"devDependencies": {

View File

@@ -1,5 +1,15 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "dist/index.js",
"types": "src/index.tsx",
"license": "MIT",
"dependencies": {
"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"
"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"
},
"peerDependencies": {
"react": "^18.2.0"

View File

@@ -1,5 +1,13 @@
# 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.21",
"version": "0.9.22",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

View File

@@ -1,5 +1,14 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

View File

@@ -1,5 +1,11 @@
# 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.21",
"version": "0.9.23",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",

View File

@@ -1,5 +1,16 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",

View File

@@ -1,5 +1,15 @@
# 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.22",
"version": "0.9.23",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
@@ -17,9 +17,9 @@
},
"dependencies": {
"@scure/bip39": "^1.3.0",
"cojson": "workspace:0.9.19",
"jazz-browser": "workspace:0.9.22",
"jazz-tools": "workspace:0.9.21",
"cojson": "workspace:0.9.23",
"jazz-browser": "workspace:0.9.23",
"jazz-tools": "workspace:0.9.23",
"jazz-react-core": "workspace:*"
},
"devDependencies": {

View File

@@ -1,5 +1,15 @@
# 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.22",
"version": "0.9.23",
"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.19",
"cojson-storage-sqlite": "workspace:0.9.19",
"cojson-transport-ws": "workspace:0.9.22",
"cojson": "workspace:0.9.23",
"cojson-storage-sqlite": "workspace:0.9.23",
"cojson-transport-ws": "workspace:0.9.23",
"effect": "^3.6.5",
"jazz-tools": "workspace:0.9.21",
"jazz-tools": "workspace:0.9.23",
"ws": "^8.14.2"
},
"devDependencies": {

View File

@@ -1,5 +1,14 @@
# 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.22",
"version": "0.9.23",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",

View File

@@ -1,5 +1,12 @@
# 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.21",
"version": "0.9.23",
"dependencies": {
"cojson": "workspace:*"
},

View File

@@ -1,5 +1,14 @@
# 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.22",
"version": "0.9.23",
"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.22
specifier: workspace:0.9.23
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.19
specifier: workspace:0.9.23
version: link:../../packages/cojson
cojson-transport-ws:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
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.22
specifier: workspace:0.9.23
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.22
specifier: workspace:0.9.23
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.22
specifier: workspace:0.9.23
version: link:../../packages/jazz-browser-media-images
jazz-react:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.22
specifier: workspace:0.9.23
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.22
specifier: workspace:0.9.23
version: link:../../packages/jazz-react
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.19
specifier: workspace:0.9.23
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.19
specifier: workspace:0.9.23
version: link:../cojson
cojson-storage-indexeddb:
specifier: workspace:0.9.19
specifier: workspace:0.9.23
version: link:../cojson-storage-indexeddb
cojson-transport-ws:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../cojson-transport-ws
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.19
specifier: workspace:0.9.23
version: link:../cojson
jazz-browser:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../jazz-browser
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.22
specifier: workspace:0.9.23
version: link:../jazz-browser
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
version: link:../jazz-tools
pica:
specifier: ^9.0.1
@@ -1676,13 +1676,13 @@ importers:
packages/jazz-nodejs:
dependencies:
cojson:
specifier: workspace:0.9.19
specifier: workspace:0.9.23
version: link:../cojson
cojson-transport-ws:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../cojson-transport-ws
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.19
specifier: workspace:0.9.23
version: link:../cojson
jazz-browser:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../jazz-browser
jazz-react-core:
specifier: workspace:*
version: link:../jazz-react-core
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
version: link:../jazz-tools
devDependencies:
'@testing-library/dom':
@@ -1741,16 +1741,16 @@ importers:
packages/jazz-react-auth-clerk:
dependencies:
cojson:
specifier: workspace:0.9.19
specifier: workspace:0.9.23
version: link:../cojson
jazz-browser-auth-clerk:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../jazz-browser-auth-clerk
jazz-react:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../jazz-react
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
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.19
specifier: workspace:0.9.23
version: link:../cojson
cojson-storage-sqlite:
specifier: workspace:0.9.19
specifier: workspace:0.9.23
version: link:../cojson-storage-sqlite
cojson-transport-ws:
specifier: workspace:0.9.22
specifier: workspace:0.9.23
version: link:../cojson-transport-ws
effect:
specifier: ^3.6.5
version: 3.11.9
jazz-tools:
specifier: workspace:0.9.21
specifier: workspace:0.9.23
version: link:../jazz-tools
ws:
specifier: ^8.14.2

View File

@@ -1,5 +1,12 @@
# 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.37",
"version": "0.0.38",
"type": "module",
"scripts": {
"dev": "vite",