From 0e4701bab02eb6cdc67fbe498e2aad774df4cbd1 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Tue, 3 Dec 2024 23:19:06 +0800 Subject: [PATCH] :tada: Publish 0.3.1 --- Cargo.toml | 2 +- crates/axum/Cargo.toml | 4 +- crates/tauri/Cargo.toml | 4 +- packages/client/package.json | 84 +++++++++++------------ packages/client/tsconfig.json | 9 ++- packages/query-core/package.json | 96 +++++++++++++------------- packages/query-core/tsconfig.json | 9 ++- packages/react-query/package.json | 106 ++++++++++++++--------------- packages/react-query/tsconfig.json | 13 ++-- packages/solid-query/package.json | 90 ++++++++++++------------ packages/svelte-query/package.json | 88 ++++++++++++------------ packages/tauri/package.json | 102 +++++++++++++-------------- 12 files changed, 307 insertions(+), 300 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 974582b8..1454f437 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rspc" description = "A blazing fast and easy to use TRPC server for Rust." -version = "0.3.0" +version = "0.3.1" authors = ["Oscar Beaumont "] edition = "2021" license = "MIT" diff --git a/crates/axum/Cargo.toml b/crates/axum/Cargo.toml index 20ad5729..ab4013e7 100644 --- a/crates/axum/Cargo.toml +++ b/crates/axum/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rspc-axum" description = "Axum adapter for rspc" -version = "0.2.0" +version = "0.2.1" authors = ["Oscar Beaumont "] edition = "2021" license = "MIT" @@ -20,7 +20,7 @@ default = [] ws = ["dep:tokio", "axum/ws"] [dependencies] -rspc = { version = "0.3.0", path = "../.." } +rspc = { version = "0.3.1", path = "../.." } axum = "0.7.9" serde_json = "1.0.133" diff --git a/crates/tauri/Cargo.toml b/crates/tauri/Cargo.toml index 908b56c7..c68636ab 100644 --- a/crates/tauri/Cargo.toml +++ b/crates/tauri/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rspc-tauri" description = "Tauri adapter for rspc" -version = "0.1.0" +version = "0.1.1" authors = ["Oscar Beaumont "] edition = "2021" license = "MIT" @@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"] # TODO: Cleanup deps [dependencies] -rspc = { version = "0.3.0", path = "../.." } +rspc = { version = "0.3.1", path = "../.." } specta = { version = "1.0.5", features = ["serde", "typescript"] } serde = { version = "1.0.215", features = ["derive"] } serde_json = "1.0.133" diff --git a/packages/client/package.json b/packages/client/package.json index 94f67007..223858f5 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,44 +1,44 @@ { - "name": "@rspc/client", - "version": "0.3.0", - "description": "A blazing fast and easy to use TRPC-like server for Rust.", - "keywords": [], - "author": "Oscar Beaumont", - "license": "MIT", - "type": "module", - "main": "dist/index.cjs", - "types": "dist/index.d.ts", - "exports": { - "./package.json": "./package.json", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "default": "./dist/index.cjs" - } - }, - "files": [ - "dist" - ], - "scripts": { - "dev": "tsup --watch", - "build": "tsup", - "prepare": "tsup" - }, - "devDependencies": { - "tsup": "^8.3.5", - "typescript": "^5.6.3" - }, - "tsup": { - "entry": [ - "src/index.ts" - ], - "format": [ - "esm", - "cjs" - ], - "dts": true, - "splitting": true, - "clean": true, - "sourcemap": true - } + "name": "@rspc/client", + "version": "0.3.1", + "description": "A blazing fast and easy to use TRPC-like server for Rust.", + "keywords": [], + "author": "Oscar Beaumont", + "license": "MIT", + "type": "module", + "main": "dist/index.cjs", + "types": "dist/index.d.ts", + "exports": { + "./package.json": "./package.json", + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "default": "./dist/index.cjs" + } + }, + "files": [ + "dist" + ], + "scripts": { + "dev": "tsup --watch", + "build": "tsup", + "prepare": "tsup" + }, + "devDependencies": { + "tsup": "^8.3.5", + "typescript": "^5.6.3" + }, + "tsup": { + "entry": [ + "src/index.ts" + ], + "format": [ + "esm", + "cjs" + ], + "dts": true, + "splitting": true, + "clean": true, + "sourcemap": true + } } diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index cf99572b..0440eb61 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -1,5 +1,8 @@ { - "extends": "../tsconfig.json", - "include": ["src/**/*"], - "exclude": ["dist/**/*"] + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + }, + "include": ["src/**/*"], + "exclude": ["dist/**/*"] } diff --git a/packages/query-core/package.json b/packages/query-core/package.json index 139d6bc2..ebdaaea8 100644 --- a/packages/query-core/package.json +++ b/packages/query-core/package.json @@ -1,50 +1,50 @@ { - "name": "@rspc/query-core", - "version": "0.3.0", - "description": "A blazing fast and easy to use TRPC-like server for Rust.", - "keywords": [], - "author": "Oscar Beaumont", - "license": "MIT", - "type": "module", - "main": "dist/index.cjs", - "types": "dist/index.d.ts", - "exports": { - "./package.json": "./package.json", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "default": "./dist/index.cjs" - } - }, - "files": [ - "dist" - ], - "scripts": { - "dev": "tsup --watch", - "build": "tsup", - "prepare": "tsup" - }, - "dependencies": { - "@tanstack/query-core": "^5.60.6" - }, - "devDependencies": { - "tsup": "^8.3.5", - "typescript": "^5.6.3" - }, - "peerDependencies": { - "@rspc/client": "workspace:*" - }, - "tsup": { - "entry": [ - "src/index.ts" - ], - "format": [ - "esm", - "cjs" - ], - "dts": true, - "splitting": true, - "clean": true, - "sourcemap": true - } + "name": "@rspc/query-core", + "version": "0.3.1", + "description": "A blazing fast and easy to use TRPC-like server for Rust.", + "keywords": [], + "author": "Oscar Beaumont", + "license": "MIT", + "type": "module", + "main": "dist/index.cjs", + "types": "dist/index.d.ts", + "exports": { + "./package.json": "./package.json", + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "default": "./dist/index.cjs" + } + }, + "files": [ + "dist" + ], + "scripts": { + "dev": "tsup --watch", + "build": "tsup", + "prepare": "tsup" + }, + "dependencies": { + "@tanstack/query-core": "^5.60.6" + }, + "devDependencies": { + "tsup": "^8.3.5", + "typescript": "^5.6.3" + }, + "peerDependencies": { + "@rspc/client": "workspace:*" + }, + "tsup": { + "entry": [ + "src/index.ts" + ], + "format": [ + "esm", + "cjs" + ], + "dts": true, + "splitting": true, + "clean": true, + "sourcemap": true + } } diff --git a/packages/query-core/tsconfig.json b/packages/query-core/tsconfig.json index cf99572b..0440eb61 100644 --- a/packages/query-core/tsconfig.json +++ b/packages/query-core/tsconfig.json @@ -1,5 +1,8 @@ { - "extends": "../tsconfig.json", - "include": ["src/**/*"], - "exclude": ["dist/**/*"] + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "dist" + }, + "include": ["src/**/*"], + "exclude": ["dist/**/*"] } diff --git a/packages/react-query/package.json b/packages/react-query/package.json index ce6c128c..489c5335 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,55 +1,55 @@ { - "name": "@rspc/react-query", - "version": "0.3.0", - "description": "A blazing fast and easy to use TRPC-like server for Rust.", - "keywords": [], - "author": "Oscar Beaumont", - "license": "MIT", - "type": "module", - "main": "dist/index.cjs", - "types": "dist/index.d.ts", - "exports": { - "./package.json": "./package.json", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "default": "./dist/index.cjs" - } - }, - "files": [ - "dist" - ], - "scripts": { - "dev": "tsup --watch", - "build": "tsup", - "prepare": "tsup" - }, - "tsup": { - "entry": [ - "src/index.tsx" - ], - "format": [ - "esm", - "cjs" - ], - "dts": true, - "splitting": true, - "clean": true, - "sourcemap": true - }, - "dependencies": { - "@rspc/client": "workspace:*", - "@rspc/query-core": "workspace:*" - }, - "devDependencies": { - "@tanstack/react-query": "^5.61.0", - "@types/react": "^18.3.12", - "react": "^18.3.1", - "tsup": "^8.3.5", - "typescript": "^5.6.3" - }, - "peerDependencies": { - "@tanstack/react-query": "^5.0.0", - "react": "^18.0.0" - } + "name": "@rspc/react-query", + "version": "0.3.1", + "description": "A blazing fast and easy to use TRPC-like server for Rust.", + "keywords": [], + "author": "Oscar Beaumont", + "license": "MIT", + "type": "module", + "main": "dist/index.cjs", + "types": "dist/index.d.ts", + "exports": { + "./package.json": "./package.json", + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "default": "./dist/index.cjs" + } + }, + "files": [ + "dist" + ], + "scripts": { + "dev": "tsup --watch", + "build": "tsup", + "prepare": "tsup" + }, + "tsup": { + "entry": [ + "src/index.tsx" + ], + "format": [ + "esm", + "cjs" + ], + "dts": true, + "splitting": true, + "clean": true, + "sourcemap": true + }, + "dependencies": { + "@rspc/client": "workspace:*", + "@rspc/query-core": "workspace:*" + }, + "devDependencies": { + "@tanstack/react-query": "^5.61.0", + "@types/react": "^18.3.12", + "react": "^18.3.1", + "tsup": "^8.3.5", + "typescript": "^5.6.3" + }, + "peerDependencies": { + "@tanstack/react-query": "^5.0.0", + "react": "^18.0.0" + } } diff --git a/packages/react-query/tsconfig.json b/packages/react-query/tsconfig.json index dcde1d62..974cb703 100644 --- a/packages/react-query/tsconfig.json +++ b/packages/react-query/tsconfig.json @@ -1,8 +1,9 @@ { - "extends": "../tsconfig.json", - "compilerOptions": { - "jsx": "react-jsx", - }, - "include": ["src/**/*"], - "exclude": ["dist/**/*"] + "extends": "../tsconfig.json", + "compilerOptions": { + "jsx": "react-jsx", + "outDir": "dist" + }, + "include": ["src/**/*"], + "exclude": ["dist/**/*"] } diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index a288c933..2556150f 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -1,47 +1,47 @@ { - "name": "@rspc/solid-query", - "version": "0.3.0", - "description": "A blazing fast and easy to use TRPC-like server for Rust.", - "keywords": [], - "author": "Oscar Beaumont", - "license": "MIT", - "type": "module", - "source": "src/index.tsx", - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "types": "dist/types/index.d.ts", - "files": [ - "dist" - ], - "exports": { - ".": { - "types": "./dist/types/index.d.ts", - "solid": "./dist/source/index.jsx", - "import": "./dist/esm/index.js", - "browser": "./dist/esm/index.js", - "require": "./dist/cjs/index.js", - "node": "./dist/cjs/index.js" - } - }, - "scripts": { - "dev": "rollup -c -w", - "build": "rollup -c && tsc", - "prepare": "rollup -c && tsc" - }, - "dependencies": { - "@rspc/client": "workspace:*", - "@rspc/query-core": "workspace:*" - }, - "devDependencies": { - "@tanstack/solid-query": "^5.60.6", - "rollup": "^4.27.3", - "rollup-preset-solid": "^2.0.1", - "solid-js": "^1.9.3", - "turbo": "^2.3.0", - "typescript": "^5.6.3" - }, - "peerDependencies": { - "@tanstack/solid-query": "^5.0.0", - "solid-js": "^1.0.0" - } + "name": "@rspc/solid-query", + "version": "0.3.1", + "description": "A blazing fast and easy to use TRPC-like server for Rust.", + "keywords": [], + "author": "Oscar Beaumont", + "license": "MIT", + "type": "module", + "source": "src/index.tsx", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "types": "dist/types/index.d.ts", + "files": [ + "dist" + ], + "exports": { + ".": { + "types": "./dist/types/index.d.ts", + "solid": "./dist/source/index.jsx", + "import": "./dist/esm/index.js", + "browser": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "node": "./dist/cjs/index.js" + } + }, + "scripts": { + "dev": "rollup -c -w", + "build": "rollup -c && tsc", + "prepare": "rollup -c && tsc" + }, + "dependencies": { + "@rspc/client": "workspace:*", + "@rspc/query-core": "workspace:*" + }, + "devDependencies": { + "@tanstack/solid-query": "^5.60.6", + "rollup": "^4.27.3", + "rollup-preset-solid": "^2.0.1", + "solid-js": "^1.9.3", + "turbo": "^2.3.0", + "typescript": "^5.6.3" + }, + "peerDependencies": { + "@tanstack/solid-query": "^5.0.0", + "solid-js": "^1.0.0" + } } diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index f4139665..6d39c382 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -1,46 +1,46 @@ { - "name": "@rspc/svelte-query", - "version": "0.3.0", - "description": "A blazingly fast and easy to use tRPC-like server for Rust.", - "keywords": [], - "author": "Oscar Beaumont", - "license": "MIT", - "type": "module", - "source": "./src/index.tsx", - "types": "./dist/index.d.ts", - "main": "./dist/index.js", - "module": "./dist/index.js", - "svelte": "./dist/index.js", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "svelte": "./dist/index.js", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "svelte-package --input ./src --output ./dist", - "test": "vitest" - }, - "dependencies": { - "@rspc/client": "workspace:*", - "@rspc/query-core": "workspace:*" - }, - "devDependencies": { - "@rspc/client": "workspace:*", - "@sveltejs/package": "^2.3.7", - "@tanstack/svelte-query": "^5.60.6", - "tslib": "^2.8.1", - "typescript": "^5.6.3", - "vitest": "^2.1.5" - }, - "peerDependencies": { - "@tanstack/svelte-query": "^5.0.0", - "svelte": ">=3 <5" - } + "name": "@rspc/svelte-query", + "version": "0.3.1", + "description": "A blazingly fast and easy to use tRPC-like server for Rust.", + "keywords": [], + "author": "Oscar Beaumont", + "license": "MIT", + "type": "module", + "source": "./src/index.tsx", + "types": "./dist/index.d.ts", + "main": "./dist/index.js", + "module": "./dist/index.js", + "svelte": "./dist/index.js", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "svelte": "./dist/index.js", + "default": "./dist/index.js" + }, + "./package.json": "./package.json" + }, + "files": [ + "dist" + ], + "scripts": { + "build": "svelte-package --input ./src --output ./dist", + "test": "vitest" + }, + "dependencies": { + "@rspc/client": "workspace:*", + "@rspc/query-core": "workspace:*" + }, + "devDependencies": { + "@rspc/client": "workspace:*", + "@sveltejs/package": "^2.3.7", + "@tanstack/svelte-query": "^5.60.6", + "tslib": "^2.8.1", + "typescript": "^5.6.3", + "vitest": "^2.1.5" + }, + "peerDependencies": { + "@tanstack/svelte-query": "^5.0.0", + "svelte": ">=3 <5" + } } diff --git a/packages/tauri/package.json b/packages/tauri/package.json index 3bcaf6d8..d1fcc3e3 100644 --- a/packages/tauri/package.json +++ b/packages/tauri/package.json @@ -1,53 +1,53 @@ { - "name": "@rspc/tauri", - "version": "0.3.0", - "description": "A blazing fast and easy to use TRPC-like server for Rust.", - "keywords": [], - "author": "Oscar Beaumont", - "license": "MIT", - "type": "module", - "main": "dist/index.cjs", - "exports": { - "./package.json": "./package.json", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "default": "./dist/index.cjs" - } - }, - "types": "dist/index.d.ts", - "files": [ - "dist" - ], - "scripts": { - "dev": "tsup --watch", - "build": "tsup", - "prepare": "tsup" - }, - "tsup": { - "entry": [ - "src/index.ts" - ], - "format": [ - "esm", - "cjs" - ], - "dts": { - "resolve": true - }, - "splitting": true, - "clean": true, - "sourcemap": true - }, - "dependencies": { - "@rspc/client": "workspace:*" - }, - "devDependencies": { - "@tauri-apps/api": "^2.1.1", - "tsup": "^8.3.5", - "typescript": "^5.6.3" - }, - "peerDependencies": { - "@tauri-apps/api": "^2.1.1" - } + "name": "@rspc/tauri", + "version": "0.3.1", + "description": "A blazing fast and easy to use TRPC-like server for Rust.", + "keywords": [], + "author": "Oscar Beaumont", + "license": "MIT", + "type": "module", + "main": "dist/index.cjs", + "exports": { + "./package.json": "./package.json", + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "default": "./dist/index.cjs" + } + }, + "types": "dist/index.d.ts", + "files": [ + "dist" + ], + "scripts": { + "dev": "tsup --watch", + "build": "tsup", + "prepare": "tsup" + }, + "tsup": { + "entry": [ + "src/index.ts" + ], + "format": [ + "esm", + "cjs" + ], + "dts": { + "resolve": true + }, + "splitting": true, + "clean": true, + "sourcemap": true + }, + "dependencies": { + "@rspc/client": "workspace:*" + }, + "devDependencies": { + "@tauri-apps/api": "^2.1.1", + "tsup": "^8.3.5", + "typescript": "^5.6.3" + }, + "peerDependencies": { + "@tauri-apps/api": "^2.1.1" + } }