@arrirpc/server 0.50.0 → 0.51.1

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.
package/README.md CHANGED
@@ -81,21 +81,17 @@ Create an `arri.config.ts` in the project directory
81
81
 
82
82
  ```ts
83
83
  // arri.config.ts
84
- import {
85
- defineConfig,
86
- typescriptClientGenerator,
87
- dartClientGenerator,
88
- } from "arri";
84
+ import { defineConfig, generators } from "arri";
89
85
 
90
86
  export default defineConfig({
91
87
  entry: "app.ts",
92
88
  port: 3000,
93
89
  srcDir: "src",
94
90
  generators: [
95
- typescriptClientGenerator({
91
+ generators.typescriptClient({
96
92
  // options
97
93
  }),
98
- dartClientGenerator({
94
+ generators.dartClient({
99
95
  // options
100
96
  }),
101
97
  ],
@@ -434,14 +430,14 @@ Right now Arri RPC has client generators for the following languages:
434
430
 
435
431
  ```ts
436
432
  // arri.config.ts
437
- import { defineConfig, typescriptClientGenerator, dartClientGenerator, kotlinClientGenerator } from "arri";
433
+ import { defineConfig, generators } from "arri";
438
434
 
439
435
  export default defineConfig({
440
436
  // rest of config
441
437
  clientGenerators: [
442
- typescriptClientGenerator({...}),
443
- dartClientGenerator({...}),
444
- kotlinClientGenerator({...})
438
+ generators.typescriptClient({...}),
439
+ generators.dartClient({...}),
440
+ generators.kotlinClient({...})
445
441
  ]
446
442
  });
447
443
  ```
package/dist/index.cjs CHANGED
@@ -1148,7 +1148,7 @@ class ArriApp {
1148
1148
  }
1149
1149
  getAppDefinition() {
1150
1150
  const appDef = {
1151
- arriSchemaVersion: codegenUtils.SCHEMA_VERSION,
1151
+ schemaVersion: codegenUtils.SCHEMA_VERSION,
1152
1152
  info: this.appInfo,
1153
1153
  procedures: {},
1154
1154
  definitions: this._definitions
package/dist/index.mjs CHANGED
@@ -1147,7 +1147,7 @@ class ArriApp {
1147
1147
  }
1148
1148
  getAppDefinition() {
1149
1149
  const appDef = {
1150
- arriSchemaVersion: SCHEMA_VERSION,
1150
+ schemaVersion: SCHEMA_VERSION,
1151
1151
  info: this.appInfo,
1152
1152
  procedures: {},
1153
1153
  definitions: this._definitions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/server",
3
- "version": "0.50.0",
3
+ "version": "0.51.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,12 +29,12 @@
29
29
  "scule": "^1.3.0",
30
30
  "source-map-support": "^0.5.21",
31
31
  "uncrypto": "^0.1.3",
32
- "@arrirpc/codegen-dart": "0.50.0",
33
- "@arrirpc/codegen-kotlin": "0.50.0",
34
- "@arrirpc/codegen-utils": "0.50.0",
35
- "@arrirpc/codegen-ts": "0.50.0",
36
- "arri": "0.50.0",
37
- "@arrirpc/schema": "0.50.0"
32
+ "@arrirpc/codegen-dart": "0.51.1",
33
+ "@arrirpc/codegen-kotlin": "0.51.1",
34
+ "@arrirpc/codegen-utils": "0.51.1",
35
+ "@arrirpc/codegen-ts": "0.51.1",
36
+ "@arrirpc/schema": "0.51.1",
37
+ "arri": "0.51.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "bun-types": "^1.1.13"