@arrirpc/server 0.58.0 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -45,10 +45,10 @@ pnpm run dev
45
45
 
46
46
  ```bash
47
47
  # npm
48
- npm install arri @arri/server @arri/schema
48
+ npm install arri @arrirpc/server @arrirpc/schema
49
49
 
50
50
  # pnpm
51
- pnpm install arri @arri/server @arri/schema
51
+ pnpm install arri @arrirpc/server @arrirpc/schema
52
52
  ```
53
53
 
54
54
  ### Scaffold Your Project
@@ -82,12 +82,10 @@ Create an `arri.config.ts` in the project directory
82
82
 
83
83
  ```ts
84
84
  // arri.config.ts
85
- import { defineConfig, generators } from "arri";
85
+ import { defineConfig, servers, generators } from "arri";
86
86
 
87
87
  export default defineConfig({
88
- entry: "app.ts",
89
- port: 3000,
90
- srcDir: "src",
88
+ server: servers.tsServer(),
91
89
  generators: [
92
90
  generators.typescriptClient({
93
91
  // options
@@ -176,9 +174,11 @@ export default defineRpc({
176
174
 
177
175
  ```ts
178
176
  export default defineConfig({
177
+ servers: servers.tsServer({
178
+ procedureDir: "procedures", // change which directory to look for procedures (This is relative to the srcDir)
179
+ procedureGlobPatterns: ["**/*.rpc.ts"], // change the file name glob pattern for finding rpcs
180
+ }),
179
181
  // rest of config
180
- procedureDir: "procedures", // change which directory to look for procedures (This is relative to the srcDir)
181
- procedureGlobPatterns: ["**/*.rpc.ts"], // change the file name glob pattern for finding rpcs
182
182
  });
183
183
  ```
184
184
 
@@ -438,10 +438,10 @@ declare module "@arrirpc/server" {
438
438
 
439
439
  ```ts
440
440
  // arri.config.ts
441
- import { defineConfig, generators } from "arri";
441
+ import { defineConfig, servers, generators } from "arri";
442
442
 
443
443
  export default defineConfig({
444
- // rest of config
444
+ server: servers.tsServer(),
445
445
  generators: [
446
446
  generators.typescriptClient({...}),
447
447
  generators.dartClient({...}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/server",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -28,12 +28,12 @@
28
28
  "scule": "^1.3.0",
29
29
  "source-map-support": "^0.5.21",
30
30
  "uncrypto": "^0.1.3",
31
- "@arrirpc/codegen-dart": "0.58.0",
32
- "@arrirpc/codegen-kotlin": "0.58.0",
33
- "@arrirpc/schema": "0.58.0",
34
- "@arrirpc/codegen-utils": "0.58.0",
35
- "arri": "0.58.0",
36
- "@arrirpc/codegen-ts": "0.58.0"
31
+ "@arrirpc/codegen-dart": "0.59.0",
32
+ "@arrirpc/codegen-kotlin": "0.59.0",
33
+ "@arrirpc/codegen-ts": "0.59.0",
34
+ "@arrirpc/schema": "0.59.0",
35
+ "@arrirpc/codegen-utils": "0.59.0",
36
+ "arri": "0.59.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "bun-types": "^1.1.21"