Compare commits

..

23 Commits

Author SHA1 Message Date
Trisha Lim
a7aa70bd8f Fix: missing dependencies in react starter 2025-01-07 11:04:37 +00:00
Guido D'Orsi
ee9f868bb4 chore: use pnpm to run the prepublishOnly hook 2025-01-07 11:59:07 +01:00
Guido D'Orsi
133abd5d8f Merge pull request #1125 from garden-co/changeset-release/main
Version Packages
2025-01-07 11:47:02 +01:00
github-actions[bot]
1a789717f0 Version Packages 2025-01-07 10:15:13 +00:00
Trisha Lim
d4d98c4b48 Create react starter app for create-jazz-app (#1112) 2025-01-07 10:14:02 +00:00
Guido D'Orsi
51d8fb7e77 Merge pull request #1127 from tobiaslins/fix-chat-rn-example
[react native] Fix permissions of messages and fix chat loading
2025-01-03 18:03:16 +01:00
Tobias Lins
315a00bcb5 Update chat.tsx 2025-01-03 14:42:17 +01:00
Tobias Lins
ed4ee686b5 Fix permissions of messages and fix chat loading 2025-01-03 14:38:44 +01:00
Anselm Eickhoff
b4dc466526 Merge pull request #1120 from garden-co/jazz-608-add-version-history-example-app
Add version history example app
2025-01-03 11:27:10 +00:00
Trisha Lim
af9ea3dc4b Change key type to string 2025-01-03 11:21:44 +00:00
Guido D'Orsi
67abc0e437 Merge pull request #1103 from garden-co/jazz-616-simplify-the-create-calls-by-accepting-account-group-as
feat: simplify the .create calls by accepting Account | Group as second param
2025-01-03 11:54:07 +01:00
Guido D'Orsi
2034ef2dcb Merge pull request #1123 from garden-co/changeset-release/main
Version Packages
2025-01-02 22:31:49 +01:00
github-actions[bot]
343b4c0c80 Version Packages 2025-01-02 21:30:25 +00:00
Guido D'Orsi
41e4083f97 Merge pull request #1124 from garden-co/fix-range-error-flatMap
fix: handle circular references in group inheritance
2025-01-02 22:29:16 +01:00
Guido D'Orsi
8d7fb18a08 Merge pull request #1122 from garden-co/fix-range-error-flatMap
fix(permissions): fix group self-extension
2025-01-02 21:24:40 +01:00
Trisha Lim
1ca1d15639 Update readme 2025-01-02 18:04:34 +00:00
Trisha Lim
bdd67ef34d Add version history example to examples page 2025-01-02 17:55:10 +00:00
Trisha Lim
dc62b9569b Add changeset 2025-01-02 17:55:10 +00:00
Trisha Lim
6fd920face Add verstion history example app 2025-01-02 17:55:10 +00:00
Guido D'Orsi
0689ed3767 Merge pull request #1121 from garden-co/changeset-release/main
Version Packages
2025-01-02 18:35:58 +01:00
github-actions[bot]
a4e1aa7f56 Version Packages 2025-01-02 17:35:18 +00:00
Guido D'Orsi
ca5d7cb2ee Merge pull request #1119 from garden-co/fix-range-error-flatMap
fix(permissions): fixes the transactions collection to avoid RangeError issues
2025-01-02 18:34:10 +01:00
Guido D'Orsi
1de26f8be9 feat: simplify the .create calls by accepting Account | Group as second param 2024-12-30 12:11:51 +01:00
139 changed files with 2361 additions and 208 deletions

View File

@@ -1,5 +0,0 @@
---
"cojson": patch
---
Fixes the transactions collection on permissions to avoid RangeError issues

View File

@@ -1,6 +0,0 @@
---
"cojson": patch
---
Handle circular references in group inheritance

52
.github/workflows/build-starters.yaml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Build Starters
on:
push:
branches: [ "main" ]
jobs:
build-starters:
runs-on: ubuntu-latest
strategy:
matrix:
starter: [
"react-demo-auth-tailwind",
]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- 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
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Pnpm Build
run: |
pnpm install
pnpm turbo build;
working-directory: ./starters/${{ matrix.starter }}

View File

@@ -1,5 +1,31 @@
# jazz-example-book-shelf
## 0.1.39
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.1.38
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.1.37
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.1.36
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-example-book-shelf",
"version": "0.1.36",
"version": "0.1.39",
"private": true,
"scripts": {
"dev": "next dev",
@@ -11,9 +11,9 @@
},
"dependencies": {
"clsx": "^2.0.0",
"jazz-browser-media-images": "workspace:0.8.48",
"jazz-react": "workspace:0.8.48",
"jazz-tools": "workspace:0.8.48",
"jazz-browser-media-images": "workspace:0.8.51",
"jazz-react": "workspace:0.8.51",
"jazz-tools": "workspace:0.8.51",
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1"

View File

@@ -1,5 +1,34 @@
# chat-rn-clerk
## 1.0.41
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react-native@0.8.51
- jazz-react-native-auth-clerk@0.8.51
- jazz-react-native-media-images@0.8.51
## 1.0.40
### Patch Changes
- jazz-react-native@0.8.50
- jazz-react-native-auth-clerk@0.8.50
- jazz-tools@0.8.50
- jazz-react-native-media-images@0.8.50
## 1.0.39
### Patch Changes
- jazz-react-native@0.8.49
- jazz-react-native-auth-clerk@0.8.49
- jazz-tools@0.8.49
- jazz-react-native-media-images@0.8.49
## 1.0.38
### Patch Changes

View File

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

View File

@@ -1,5 +1,28 @@
# chat-rn
## 1.0.38
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react-native@0.8.51
## 1.0.37
### Patch Changes
- jazz-react-native@0.8.50
- jazz-tools@0.8.50
## 1.0.36
### Patch Changes
- jazz-react-native@0.8.49
- jazz-tools@0.8.49
## 1.0.35
### Patch Changes

View File

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

View File

@@ -19,45 +19,35 @@ import { Chat, Message } from "./schema";
export default function ChatScreen({ navigation }: { navigation: any }) {
const { me, logOut } = useAccount();
const [chat, setChat] = useState<Chat>();
const [chatId, setChatId] = useState<ID<Chat>>();
const loadedChat = useCoState(Chat, chatId, [{}]);
const [message, setMessage] = useState("");
const loadedChat = useCoState(Chat, chat?.id, [{}]);
useEffect(() => {
navigation.setOptions({
headerRight: () => <Button onPress={logOut} title="Logout" />,
headerLeft: () =>
chat ? (
loadedChat ? (
<Button
onPress={() => {
if (chat?.id) {
if (loadedChat?.id) {
Clipboard.setStringAsync(
`https://chat.jazz.tools/#/chat/${chat.id}`,
`https://chat.jazz.tools/#/chat/${loadedChat.id}`,
);
Alert.alert("Copied to clipboard", `Chat ID: ${chat.id}`);
Alert.alert("Copied to clipboard", `Chat ID: ${loadedChat.id}`);
}
}}
title="Share"
/>
) : null,
});
}, [navigation, chat]);
}, [navigation, loadedChat]);
const createChat = () => {
const group = Group.create({ owner: me });
group.addMember("everyone", "writer");
const chat = Chat.create([], { owner: group });
setChat(chat);
};
const loadChat = async (chatId: ID<Chat>) => {
try {
const chat = await Chat.load(chatId, me, []);
setChat(chat);
} catch (error) {
console.log("Error loading chat", error);
Alert.alert("Error", `Error loading chat: ${error}`);
}
setChatId(chat.id);
};
const joinChat = () => {
@@ -73,7 +63,7 @@ export default function ChatScreen({ navigation }: { navigation: any }) {
text: "Join",
onPress: (chatId) => {
if (chatId) {
loadChat(chatId as ID<Chat>);
setChatId(chatId as ID<Chat>);
} else {
Alert.alert("Error", "Chat ID cannot be empty.");
}
@@ -85,9 +75,11 @@ export default function ChatScreen({ navigation }: { navigation: any }) {
};
const sendMessage = () => {
if (!chat) return;
if (!loadedChat) return;
if (message.trim()) {
chat.push(Message.create({ text: message }, { owner: chat._owner }));
loadedChat.push(
Message.create({ text: message }, { owner: loadedChat?._owner }),
);
setMessage("");
}
};
@@ -137,7 +129,7 @@ export default function ChatScreen({ navigation }: { navigation: any }) {
return (
<View className="flex flex-col h-full">
{!chat ? (
{!loadedChat ? (
<View className="flex flex-col h-full items-center justify-center">
<TouchableOpacity
onPress={createChat}

View File

@@ -1,5 +1,31 @@
# chat-vue
## 0.0.30
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser@0.8.51
- jazz-vue@0.8.51
## 0.0.29
### Patch Changes
- jazz-browser@0.8.50
- jazz-tools@0.8.50
- jazz-vue@0.8.50
## 0.0.28
### Patch Changes
- jazz-browser@0.8.49
- jazz-tools@0.8.49
- jazz-vue@0.8.49
## 0.0.27
### Patch Changes

View File

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

View File

@@ -1,5 +1,31 @@
# jazz-example-chat
## 0.0.125
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.0.124
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.0.123
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.0.122
### Patch Changes

View File

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

View File

@@ -1,5 +1,31 @@
# minimal-auth-clerk
## 0.0.24
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
- jazz-react-auth-clerk@0.8.51
## 0.0.23
### Patch Changes
- jazz-react@0.8.50
- jazz-react-auth-clerk@0.8.50
- jazz-tools@0.8.50
## 0.0.22
### Patch Changes
- jazz-react@0.8.49
- jazz-react-auth-clerk@0.8.49
- jazz-tools@0.8.49
## 0.0.21
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "clerk",
"private": true,
"version": "0.0.21",
"version": "0.0.24",
"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.8.48",
"jazz-react-auth-clerk": "workspace:0.8.51",
"jazz-tools": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"

View File

@@ -1,5 +1,28 @@
# file-share-svelte
## 0.0.10
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-svelte@0.8.51
## 0.0.9
### Patch Changes
- jazz-tools@0.8.50
- jazz-svelte@0.8.50
## 0.0.8
### Patch Changes
- jazz-tools@0.8.49
- jazz-svelte@0.8.49
## 0.0.7
### Patch Changes

View File

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

View File

@@ -1,5 +1,31 @@
# form
## 0.0.20
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.0.19
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.0.18
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.0.17
### Patch Changes

View File

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

View File

@@ -32,9 +32,9 @@ export function CreateOrder() {
// reset the draft
me.root.draft = DraftBubbleTeaOrder.create(
{
addOns: ListOfBubbleTeaAddOns.create([], { owner: me }),
addOns: ListOfBubbleTeaAddOns.create([], me),
},
{ owner: me },
me,
);
router.navigate("/");

View File

@@ -69,18 +69,19 @@ export class AccountRoot extends CoMap {
export class JazzAccount extends Account {
root = co.ref(AccountRoot);
migrate(this: JazzAccount) {
migrate() {
const account = this;
if (!this._refs.root) {
const ownership = { owner: this };
const orders = ListOfBubbleTeaOrders.create([], ownership);
const orders = ListOfBubbleTeaOrders.create([], account);
const draft = DraftBubbleTeaOrder.create(
{
addOns: ListOfBubbleTeaAddOns.create([], ownership),
addOns: ListOfBubbleTeaAddOns.create([], account),
},
ownership,
account,
);
this.root = AccountRoot.create({ draft, orders }, ownership);
this.root = AccountRoot.create({ draft, orders }, account);
}
}
}

View File

@@ -1,5 +1,31 @@
# image-upload
## 0.0.22
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.0.21
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.0.20
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.0.19
### Patch Changes

View File

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

View File

@@ -1,5 +1,21 @@
# jazz-example-inspector
## 0.0.92
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- cojson-transport-ws@0.8.50
## 0.0.91
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- cojson-transport-ws@0.8.49
## 0.0.90
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-inspector",
"private": true,
"version": "0.0.90",
"version": "0.0.92",
"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.8.48",
"cojson-transport-ws": "workspace:0.8.48",
"cojson": "workspace:0.8.50",
"cojson-transport-ws": "workspace:0.8.50",
"hash-slash": "workspace:0.2.1",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",

View File

@@ -1,5 +1,28 @@
# jazz-example-musicplayer
## 0.0.45
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
## 0.0.44
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
## 0.0.43
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
## 0.0.42
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-music-player",
"private": true,
"version": "0.0.42",
"version": "0.0.45",
"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.8.48",
"jazz-tools": "workspace:0.8.48",
"jazz-react": "workspace:0.8.51",
"jazz-tools": "workspace:0.8.51",
"lucide-react": "^0.274.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View File

@@ -29,25 +29,23 @@ export async function uploadMusicTracks(
for (const file of files) {
// The ownership object defines the user that owns the created coValues
// We are creating a group for each CoValue in order to be able to share them via Playlist
const ownership = {
owner: Group.create({ owner: account }),
};
const group = Group.create(account);
const data = await getAudioFileData(file);
// We transform the file blob into a FileStream
// making it a collaborative value that is encrypted, easy
// to share across devices and users and available offline!
const fileStream = await FileStream.createFromBlob(file, ownership);
const fileStream = await FileStream.createFromBlob(file, group);
const musicTrack = MusicTrack.create(
{
file: fileStream,
duration: data.duration,
waveform: MusicTrackWaveform.create({ data: data.waveform }, ownership),
waveform: MusicTrackWaveform.create({ data: data.waveform }, group),
title: file.name,
},
ownership,
group,
);
// The newly created musicTrack can be associated to the
@@ -60,16 +58,14 @@ export async function createNewPlaylist(account: MusicaAccount) {
// Since playlists are meant to be shared we associate them
// to a group which will contain the keys required to get
// access to the "owned" values
const playlistGroup = Group.create({ owner: account });
const ownership = { owner: playlistGroup };
const playlistGroup = Group.create(account);
const playlist = Playlist.create(
{
title: "New Playlist",
tracks: ListOfTracks.create([], ownership),
tracks: ListOfTracks.create([], playlistGroup),
},
ownership,
playlistGroup,
);
// Again, we associate the new playlist to the
@@ -112,7 +108,6 @@ export async function addTrackToPlaylist(
*
* Doing this for backwards compatibility for when the Group inheritance wasn't possible
*/
const ownership = { owner: playlist._owner };
const blob = await FileStream.loadAsBlob(track._refs.file.id, account);
const waveform = await MusicTrackWaveform.load(
track._refs.waveform.id,
@@ -124,13 +119,16 @@ export async function addTrackToPlaylist(
const trackClone = MusicTrack.create(
{
file: await FileStream.createFromBlob(blob, ownership),
file: await FileStream.createFromBlob(blob, playlist._owner),
duration: track.duration,
waveform: MusicTrackWaveform.create({ data: waveform.data }, ownership),
waveform: MusicTrackWaveform.create(
{ data: waveform.data },
playlist._owner,
),
title: track.title,
sourceTrack: track,
},
ownership,
playlist._owner,
);
playlist.tracks?.push(trackClone);

View File

@@ -1,5 +1,31 @@
# jazz-example-onboarding
## 0.0.26
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.0.25
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.0.24
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.0.23
### Patch Changes

View File

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

View File

@@ -1,5 +1,28 @@
# organization
## 0.0.18
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
## 0.0.17
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
## 0.0.16
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
## 0.0.15
### Patch Changes

View File

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

View File

@@ -1,5 +1,23 @@
# passkey-svelte
## 0.0.14
### Patch Changes
- jazz-svelte@0.8.51
## 0.0.13
### Patch Changes
- jazz-svelte@0.8.50
## 0.0.12
### Patch Changes
- jazz-svelte@0.8.49
## 0.0.11
### Patch Changes

View File

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

View File

@@ -1,5 +1,28 @@
# minimal-auth-passkey
## 0.0.23
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
## 0.0.22
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
## 0.0.21
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
## 0.0.20
### Patch Changes

View File

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

View File

@@ -1,5 +1,28 @@
# jazz-password-manager
## 0.0.44
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
## 0.0.43
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
## 0.0.42
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
## 0.0.41
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-password-manager",
"private": true,
"version": "0.0.41",
"version": "0.0.44",
"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.8.48",
"jazz-tools": "workspace:0.8.48",
"jazz-react": "workspace:0.8.51",
"jazz-tools": "workspace:0.8.51",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.41.5",

View File

@@ -1,5 +1,31 @@
# jazz-example-pets
## 0.0.142
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.0.141
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.0.140
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.0.139
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-pets",
"private": true,
"version": "0.0.139",
"version": "0.0.142",
"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.8.48",
"jazz-react": "workspace:0.8.48",
"jazz-tools": "workspace:0.8.48",
"jazz-browser-media-images": "workspace:0.8.51",
"jazz-react": "workspace:0.8.51",
"jazz-tools": "workspace:0.8.51",
"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.8.48",
"jazz-run": "workspace:0.8.51",
"postcss": "^8.4.27",
"tailwindcss": "^3.4.15",
"typescript": "~5.6.2",

View File

@@ -1,5 +1,31 @@
# reactions
## 0.0.22
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-media-images@0.8.51
- jazz-react@0.8.51
## 0.0.21
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
- jazz-browser-media-images@0.8.50
## 0.0.20
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
- jazz-browser-media-images@0.8.49
## 0.0.19
### Patch Changes

View File

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

View File

@@ -1,5 +1,31 @@
# todo-vue
## 0.0.28
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser@0.8.51
- jazz-vue@0.8.51
## 0.0.27
### Patch Changes
- jazz-browser@0.8.50
- jazz-tools@0.8.50
- jazz-vue@0.8.50
## 0.0.26
### Patch Changes
- jazz-browser@0.8.49
- jazz-tools@0.8.49
- jazz-vue@0.8.49
## 0.0.25
### Patch Changes

View File

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

View File

@@ -1,5 +1,28 @@
# jazz-example-todo
## 0.0.141
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
## 0.0.140
### Patch Changes
- jazz-react@0.8.50
- jazz-tools@0.8.50
## 0.0.139
### Patch Changes
- jazz-react@0.8.49
- jazz-tools@0.8.49
## 0.0.138
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "jazz-example-todo",
"private": true,
"version": "0.0.138",
"version": "0.0.141",
"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.8.48",
"jazz-tools": "workspace:0.8.48",
"jazz-react": "workspace:0.8.51",
"jazz-tools": "workspace:0.8.51",
"lucide-react": "^0.274.0",
"qrcode": "^1.5.3",
"react": "^18.3.1",

24
examples/version-history/.gitignore vendored Normal file
View File

@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

View File

@@ -0,0 +1,10 @@
# version-history
## 0.0.19
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51

View File

@@ -0,0 +1,38 @@
# Jazz Version History Example
A minimal example showing how to use Jazz's built-in version history to show and restore changes.
## Installing & running the example locally
(This requires `pnpm` to be installed, see [https://pnpm.io/installation](https://pnpm.io/installation))
Start by downloading the [jazz repository](https://github.com/garden-co/jazz):
```bash
npx degit gardencmp/jazz jazz
```
Go to the version-history example directory:
```bash
cd jazz/examples/version-history
```
Install and build dependencies:
```bash
pnpm i && npx turbo build
```
Start the dev server:
```bash
pnpm dev
```
## Questions / problems / feedback
If you have feedback, let us know on [Discord](https://discord.gg/utDMjHYg42) or open an issue or PR to fix something that seems wrong.
## Configuration: sync server
By default, the example app uses [Jazz Cloud](https://jazz.tools/cloud) (`wss://cloud.jazz.tools`) - so cross-device use, invites and collaboration should just work.
You can also run a local sync server by running `npx jazz-run sync` and adding the query param `?sync=ws://localhost:4200` to the URL of the example app (for example: `http://localhost:5173/?peer=ws://localhost:4200`), or by setting the `sync` parameter of `JazzProvider` component in [./src/main.tsx](./src/main.tsx).

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jazz | React + Tailwind + Demo Auth</title>
</head>
<body class="h-full flex flex-col">
<div id="root" class="align-self-center flex-1"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

View File

@@ -0,0 +1,30 @@
{
"name": "version-history",
"private": true,
"version": "0.0.19",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"format-and-lint": "biome check .",
"format-and-lint:fix": "biome check . --write"
},
"dependencies": {
"@tailwindcss/forms": "^0.5.9",
"jazz-react": "workspace:*",
"jazz-tools": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"globals": "^15.11.0",
"typescript": "~5.6.2",
"vite": "^5.4.10"
}
}

View File

@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

View File

@@ -0,0 +1,65 @@
import { Group, ID } from "jazz-tools";
import { useState } from "react";
import { IssueComponent } from "./Issue.tsx";
import { IssueVersionHistory } from "./IssueVersionHistory.tsx";
import { useAccount, useCoState } from "./main";
import { Issue } from "./schema";
function App() {
const { me, logOut } = useAccount();
const [issueID, setIssueID] = useState<ID<Issue> | undefined>(
(window.location.search?.replace("?issue=", "") || undefined) as
| ID<Issue>
| undefined,
);
const issue = useCoState(Issue, issueID);
const createIssue = () => {
const group = Group.create({ owner: me });
group.addMember("everyone", "writer");
const newIssue = Issue.create(
{
title: "Buy terrarium",
description: "Make sure it's big enough for 10 snails.",
estimate: 5,
status: "backlog",
},
{ owner: group },
);
setIssueID(newIssue.id);
window.history.pushState({}, "", `?issue=${newIssue.id}`);
};
return (
<>
<header>
<nav className="container flex justify-between items-center py-3">
<span>
You're logged in as <strong>{me?.profile?.name}</strong>
</span>
<button
className="bg-stone-100 py-1.5 px-3 text-sm rounded-md"
onClick={() => logOut()}
>
Log out
</button>
</nav>
</header>
<main className="container my-8 flex flex-col gap-8">
{issue ? (
<>
<h1 className="sr-only">Issue: {issue.title}</h1>
<IssueComponent issue={issue} />
<hr />
<IssueVersionHistory id={issue.id} />
</>
) : (
<button onClick={createIssue}>Create Issue</button>
)}
</main>
</>
);
}
export default App;

View File

@@ -0,0 +1,57 @@
import { Issue } from "./schema";
export function IssueComponent({ issue }: { issue: Issue }) {
return (
<div className="flex flex-col gap-5">
<label className="flex flex-col gap-2">
Title
<input
type="text"
value={issue.title}
onChange={(event) => {
issue.title = event.target.value;
}}
/>
</label>
<label className="flex flex-col gap-2">
Description
<textarea
value={issue.description}
onChange={(event) => {
issue.description = event.target.value;
}}
/>
</label>
<div className="grid grid-cols-2 gap-8">
<label className="flex gap-2 items-center">
Estimate:
<input
type="number"
value={issue.estimate}
onChange={(event) => {
issue.estimate = Number(event.target.value);
}}
/>
</label>
<label className="flex gap-2 items-center">
Status
<select
className="flex-1"
value={issue.status}
onChange={(event) => {
issue.status = event.target.value as
| "backlog"
| "in progress"
| "done";
}}
>
<option value="backlog">Backlog</option>
<option value="in progress">In Progress</option>
<option value="done">Done</option>
</select>
</label>
</div>
</div>
);
}

View File

@@ -0,0 +1,104 @@
import { ID } from "jazz-tools";
import { useEffect, useMemo, useState } from "react";
import { useCoState } from "./main.tsx";
import { Issue } from "./schema.ts";
function DescriptionVersionHistory({ id }: { id: ID<Issue> }) {
const issue = useCoState(Issue, id);
const [version, setVersion] = useState<any | undefined>();
const [isVersionLatest, setIsVersionLatest] = useState(true);
const edits = useMemo(() => {
if (!issue) return [];
return issue._edits.description.all.reverse();
}, [issue?._edits]);
useEffect(() => {
if (!version) {
setVersion(edits[0]);
setIsVersionLatest(true);
}
}, [edits]);
if (!issue) return <div>Loading...</div>;
const selectVersion = (version: any, isLatest: boolean) => {
setVersion(version);
setIsVersionLatest(isLatest);
};
return (
<div>
<h2 className="mb-3">Description version history</h2>
<div className="grid grid-cols-3 border">
{version && (
<div className="col-span-2 border-r p-3 flex flex-col justify-between">
<p>{version.value}</p>
{!isVersionLatest && (
<button
className="bg-black text-white py-1 px-2 rounded"
onClick={() => (issue.description = version.value)}
>
Restore
</button>
)}
</div>
)}
<div className="flex flex-col gap-1 p-2 max-h-96 overflow-y-auto">
{edits.map((edit, i) => (
<button
key={i}
className="text-xs text-left p-2 hover:bg-stone-100"
onClick={() => selectVersion(edit, i === 0)}
>
{i == 0 ? "(Latest)" : ""}
<div className="font-medium">{edit.madeAt.toLocaleString()}</div>
<div className="text-stone-500">{edit.by?.profile?.name}</div>
</button>
))}
</div>
</div>
</div>
);
}
export function IssueVersionHistory({ id }: { id: ID<Issue> }) {
const issue = useCoState(Issue, id);
const edits = useMemo(() => {
if (!issue) return [];
return [
...issue._edits.title.all,
...issue._edits.estimate.all,
...issue._edits.status.all,
].sort((a, b) => (a.madeAt < b.madeAt ? -1 : a.madeAt > b.madeAt ? 1 : 0));
}, [issue?._edits]);
return (
<>
<div className="flex flex-col text-sm gap-2">
<h2 className="sr-only">Edits</h2>
{edits.map((edit, i) => (
<div>
<p className="text-xs text-stone-400">
{edit.madeAt.toLocaleString()}
</p>
<p className="text-stone-600" key={i}>
<span className="font-medium text-stone-800">
{edit.by?.profile?.name}
</span>{" "}
changed{" "}
<span className="font-medium text-stone-800">{edit.key}</span> to{" "}
<span className="font-medium text-stone-800">{edit.value}</span>
</p>
</div>
))}
</div>
<hr />
<DescriptionVersionHistory id={id} />
</>
);
}

View File

@@ -0,0 +1,47 @@
import { createInviteLink } from "jazz-react";
import { ID } from "jazz-tools";
import { IssueComponent } from "./Issue.tsx";
import { useCoState } from "./main.tsx";
import { Issue, Project } from "./schema.ts";
export function ProjectComponent({ projectID }: { projectID: ID<Project> }) {
const project = useCoState(Project, projectID, { issues: [{}] });
if (!project) return;
const invite = (role: "reader" | "writer") => {
const link = createInviteLink(project, role, { valueHint: "project" });
navigator.clipboard.writeText(link);
};
const createAndAddIssue = () => {
project?.issues.push(
Issue.create(
{
title: "",
description: "",
estimate: 0,
status: "backlog",
},
{ owner: project._owner },
),
);
};
return project ? (
<div>
<h1>{project.name}</h1>
{project._owner?.myRole() === "admin" && (
<>
<button onClick={() => invite("reader")}>Invite Guest</button>
<button onClick={() => invite("writer")}>Invite Member</button>
</>
)}
<div className="border-r border-b">
{project.issues.map((issue) => (
<IssueComponent key={issue.id} issue={issue} />
))}
<button onClick={createAndAddIssue}>Create Issue</button>
</div>
</div>
) : (
<div>Loading project...</div>
);
}

View File

@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@@ -0,0 +1,36 @@
import { DemoAuthBasicUI, createJazzReactApp, useDemoAuth } from "jazz-react";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
const Jazz = createJazzReactApp();
export const { useAccount, useCoState } = Jazz;
function JazzAndAuth({ children }: { children: React.ReactNode }) {
const [auth, authState] = useDemoAuth();
return (
<>
<Jazz.Provider
auth={auth}
peer="wss://cloud.jazz.tools/?key=version-history@garden.co"
>
{children}
</Jazz.Provider>
{authState.state !== "signedIn" && (
<DemoAuthBasicUI appName="React + Demo Auth" state={authState} />
)}
</>
);
}
createRoot(document.getElementById("root")!).render(
<StrictMode>
<JazzAndAuth>
<App />
</JazzAndAuth>
</StrictMode>,
);

View File

@@ -0,0 +1,20 @@
/**
* Learn about schemas here:
* https://jazz.tools/docs/react/schemas/covalues
*/
import { CoList, CoMap, co } from "jazz-tools";
export class Issue extends CoMap {
title = co.string;
description = co.string;
estimate = co.number;
status? = co.literal("backlog", "in progress", "done");
}
export class ListOfIssues extends CoList.Of(co.ref(Issue)) {}
export class Project extends CoMap {
name = co.string;
issues = co.ref(ListOfIssues);
}

View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />

View File

@@ -0,0 +1,24 @@
import formsPlugin from "@tailwindcss/forms";
import type { Config } from "tailwindcss";
const config: Config = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
container: {
center: true,
padding: {
DEFAULT: "0.75rem",
sm: "1rem",
},
screens: {
lg: "600px",
xl: "600px",
},
},
},
},
plugins: [formsPlugin],
} as const;
export default config;

View File

@@ -0,0 +1,24 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
}

View File

@@ -0,0 +1,7 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["vite.config.ts"]
}

View File

@@ -0,0 +1,8 @@
{
"build": {
"env": {
"APP_NAME": "version-history"
}
},
"ignoreCommand": "node ../../ignore-vercel-build.js"
}

View File

@@ -0,0 +1,7 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
});

View File

@@ -145,6 +145,53 @@ const OrganizationIllustration = () => (
</div>
);
const VersionHistoryIllustration = () => (
<div className="flex flex-col justify-center items-center h-full">
<ul className="inline-flex flex-col gap-2 max-w-96 md:gap-4">
{[
{
userInitial: "B",
color: "orange-600",
user: "Bob",
action: "changed status to",
value: "Backlog",
},
{
userInitial: "A",
color: "rose-600",
user: "Alice",
action: "changed status to",
value: "In progress",
},
{
userInitial: "A",
color: "rose-600",
user: "Alice",
action: "changed estimate to",
value: "5",
},
].map((change, index) => (
<li
key={index}
className="flex items-center gap-2 text-sm sm:text-base md:gap-3"
>
<span
className={`size-5 shrink-0 text-xs inline-flex items-center justify-center font-medium rounded-full text-white bg-${change.color} sm:size-6`}
>
{change.userInitial}
</span>
<p>
{change.user} {change.action}{" "}
<span className="font-medium text-stone-900 dark:text-white">
{change.value}
</span>
</p>
</li>
))}
</ul>
</div>
);
const MusicIllustration = () => (
<div className="flex flex-col items-center justify-center h-full p-8">
<div className="p-3 w-[12rem] h-[8rem] border border-dashed border-blue dark:border-blue-500 rounded-lg flex gap-2 flex-col items-center justify-center">
@@ -426,6 +473,14 @@ const reactExamples: Example[] = [
features: [features.inviteLink],
illustration: <OrganizationIllustration />,
},
{
name: "Version history",
slug: "version-history",
description:
"Track and restore previous versions of your data, and see who made the changes.",
tech: [tech.react],
illustration: <VersionHistoryIllustration />,
},
];
const nextExamples: Example[] = [

View File

@@ -2,7 +2,7 @@
"name": "jazz-monorepo",
"private": true,
"type": "module",
"workspaces": ["packages/*", "examples/*"],
"workspaces": ["packages/*", "examples/*", "starters/*"],
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
"engines": {
"node": ">=22.0.0"

View File

@@ -1,5 +1,21 @@
# cojson-storage-indexeddb
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- cojson-storage@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- cojson-storage@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,21 @@
# cojson-storage-sqlite
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- cojson-storage@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- cojson-storage@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,19 @@
# cojson-storage
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,19 @@
# cojson-transport-nodejs-ws
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
## 0.8.48
### Patch Changes

View File

@@ -1,12 +1,12 @@
{
"name": "cojson-transport-ws",
"type": "module",
"version": "0.8.48",
"version": "0.8.50",
"main": "dist/index.js",
"types": "src/index.ts",
"license": "MIT",
"dependencies": {
"cojson": "workspace:0.8.48",
"cojson": "workspace:0.8.50",
"typescript": "~5.6.2"
},
"scripts": {

View File

@@ -1,5 +1,17 @@
# cojson
## 0.8.50
### Patch Changes
- 43378ef: Handle circular references in group inheritance
## 0.8.49
### Patch Changes
- 25dfd90: Fixes the transactions collection on permissions to avoid RangeError issues
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,11 @@
# create-jazz-app
## 0.1.3
### Patch Changes
- d4d98c4: Simplify starter app for react demo auth
## 0.1.2
### Patch Changes

View File

@@ -5,7 +5,7 @@
"types": "src/index.ts",
"type": "module",
"license": "MIT",
"version": "0.1.2",
"version": "0.1.3",
"bin": {
"create-jazz-app": "./dist/index.js"
},

View File

@@ -75,8 +75,8 @@ export const frameworkToAuthExamples: Partial<
Record<FrameworkAuthPair, { name: string; repo: string | undefined }>
> = {
"react-demo-auth": {
name: "React + Jazz + Demo Auth",
repo: "garden-co/jazz/examples/chat",
name: "React + Jazz + Demo Auth + Tailwind",
repo: "garden-co/jazz/starters/react-demo-auth-tailwind",
},
"react-passkey-auth": {
name: "React + Jazz + Passkey Auth",

View File

@@ -1,5 +1,32 @@
# jazz-browser-media-images
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- jazz-browser@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- jazz-browser@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,28 @@
# jazz-browser-media-images
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser@0.8.51
## 0.8.50
### Patch Changes
- jazz-browser@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- jazz-browser@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-browser-media-images",
"version": "0.8.48",
"version": "0.8.51",
"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.8.48",
"jazz-tools": "workspace:0.8.48",
"jazz-browser": "workspace:0.8.51",
"jazz-tools": "workspace:0.8.51",
"pica": "^9.0.1",
"typescript": "~5.6.2"
},

View File

@@ -1,5 +1,33 @@
# jazz-browser
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- cojson-storage-indexeddb@0.8.50
- cojson-transport-ws@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- cojson-storage-indexeddb@0.8.49
- cojson-transport-ws@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,31 @@
# jazz-autosub
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- cojson-transport-ws@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- cojson-transport-ws@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,35 @@
# jazz-browser-media-images
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser-auth-clerk@0.8.51
- jazz-react@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- jazz-browser-auth-clerk@0.8.50
- jazz-react@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- jazz-browser-auth-clerk@0.8.49
- jazz-react@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,32 @@
# jazz-react-native-auth-clerk
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react-native@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- jazz-react-native@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- jazz-react-native@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-native-auth-clerk",
"version": "0.8.48",
"version": "0.8.51",
"type": "module",
"main": "dist/index.js",
"types": "src/index.ts",
@@ -14,7 +14,7 @@
"format-and-lint": "biome check .",
"format-and-lint:fix": "biome check . --write",
"build": "rm -rf ./dist && tsc --sourceMap --outDir dist",
"prepublishOnly": "npm run build",
"prepublishOnly": "pnpm run build",
"test": "vitest --run --root ../../ --project jazz-react-native-auth-clerk",
"test:watch": "vitest --watch --root ../../ --project jazz-react-native-auth-clerk"
},

View File

@@ -1,5 +1,25 @@
# jazz-browser-media-images
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
## 0.8.50
### Patch Changes
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,31 @@
# jazz-browser
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- cojson-transport-ws@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- cojson-transport-ws@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

View File

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

View File

@@ -1,5 +1,32 @@
# jazz-react
## 0.8.51
### Patch Changes
- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-browser@0.8.51
## 0.8.50
### Patch Changes
- Updated dependencies [43378ef]
- cojson@0.8.50
- jazz-browser@0.8.50
- jazz-tools@0.8.50
## 0.8.49
### Patch Changes
- Updated dependencies [25dfd90]
- cojson@0.8.49
- jazz-browser@0.8.49
- jazz-tools@0.8.49
## 0.8.48
### Patch Changes

Some files were not shown because too many files have changed in this diff Show More