Update rspc to 0.0.6

This commit is contained in:
Utku Bakir
2022-09-07 11:55:37 +03:00
parent fa44b40fca
commit a21fb007f7
10 changed files with 16 additions and 17 deletions

View File

@@ -11,7 +11,8 @@
"build": "tauri build"
},
"dependencies": {
"@rspc/client": "^0.0.5",
"@rspc/client": "^0.0.6",
"@rspc/tauri": "^0.0.6",
"@sd/client": "workspace:*",
"@sd/core": "workspace:*",
"@sd/interface": "workspace:*",

View File

@@ -1,9 +1,10 @@
// import Spacedrive JS client
import { TauriTransport, createClient } from '@rspc/client';
import { createClient } from '@rspc/client';
import { TauriTransport } from '@rspc/tauri';
import { Operations, queryClient, rspc } from '@sd/client';
import SpacedriveInterface, { Platform } from '@sd/interface';
import { dialog, invoke, os, shell } from '@tauri-apps/api';
import { Event, listen } from '@tauri-apps/api/event';
import { listen } from '@tauri-apps/api/event';
import { convertFileSrc } from '@tauri-apps/api/tauri';
import { appWindow } from '@tauri-apps/api/window';
import React, { useEffect, useState } from 'react';

View File

@@ -17,7 +17,8 @@
"@react-navigation/drawer": "^6.4.4",
"@react-navigation/native": "^6.0.12",
"@react-navigation/stack": "^6.2.3",
"@rspc/client": "^0.0.5",
"@rspc/client": "^0.0.6",
"@rspc/react": "^0.0.6",
"@sd/assets": "file:../../packages/assets",
"@tanstack/react-query": "^4.2.3",
"byte-size": "^8.1.0",

View File

Binary file not shown.

View File

@@ -1,11 +1,5 @@
import {
ClientTransformer,
OperationKey,
OperationType,
RSPCError,
Transport,
createReactQueryHooks
} from '@rspc/client';
import { ClientTransformer, OperationKey, OperationType, RSPCError, Transport } from '@rspc/client';
import { createReactQueryHooks } from '@rspc/react';
import {
QueryClient,
UseMutationOptions,

View File

@@ -9,7 +9,7 @@
},
"dependencies": {
"@fontsource/inter": "^4.5.11",
"@rspc/client": "^0.0.5",
"@rspc/client": "^0.0.6",
"@sd/client": "workspace:*",
"@sd/core": "workspace:*",
"@sd/interface": "workspace:*",

View File

@@ -1,7 +1,7 @@
import { WebsocketTransport, createClient } from '@rspc/client';
import { Operations, queryClient, rspc } from '@sd/client';
import SpacedriveInterface from '@sd/interface';
import React, { useEffect } from 'react';
import { useEffect } from 'react';
const client = createClient<Operations>({
transport: new WebsocketTransport(

View File

@@ -17,9 +17,10 @@
"preset": "scripts/jest/node"
},
"dependencies": {
"@rspc/client": "^0.0.5",
"@sd/core": "workspace:*",
"@rspc/client": "^0.0.6",
"@rspc/react": "^0.0.6",
"@sd/config": "workspace:*",
"@sd/core": "workspace:*",
"@sd/interface": "workspace:*",
"@tanstack/react-query": "^4.0.10",
"eventemitter3": "^4.0.7",

View File

@@ -1,4 +1,5 @@
import { RSPCError, createReactQueryHooks } from '@rspc/client';
import { RSPCError } from '@rspc/client';
import { createReactQueryHooks } from '@rspc/react';
import { LibraryArgs, Operations } from '@sd/core';
import {
QueryClient,

BIN
pnpm-lock.yaml generated
View File

Binary file not shown.