arri 0.54.0 → 0.57.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.
package/dist/cli.cjs CHANGED
@@ -11,7 +11,7 @@ const esbuild = require('esbuild');
11
11
  const esbuildPluginReplace = require('esbuild-plugin-replace');
12
12
  const path = require('pathe');
13
13
  const prettier = require('prettier');
14
- const dev = require('./shared/arri.8421be96.cjs');
14
+ const dev = require('./shared/arri.42cdc72b.cjs');
15
15
  const ofetch = require('ofetch');
16
16
  const Degit = require('degit');
17
17
  const enquirer = require('enquirer');
package/dist/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import { build as build$1 } from 'esbuild';
9
9
  import { replace } from 'esbuild-plugin-replace';
10
10
  import path from 'pathe';
11
11
  import prettier from 'prettier';
12
- import { d as defaultConfig, l as logger, s as setupWorkingDir, c as createAppWithRoutesModule, O as OUT_CODEGEN, e as OUT_SERVER_ENTRY, G as GEN_APP_FILE, f as OUT_APP_FILE, i as isArriConfig, g as getArriPackageMetadata, h as dev } from './shared/arri.1c716de9.mjs';
12
+ import { d as defaultConfig, l as logger, s as setupWorkingDir, c as createAppWithRoutesModule, O as OUT_CODEGEN, e as OUT_SERVER_ENTRY, G as GEN_APP_FILE, f as OUT_APP_FILE, i as isArriConfig, g as getArriPackageMetadata, h as dev } from './shared/arri.e6e562ed.mjs';
13
13
  import { ofetch } from 'ofetch';
14
14
  import Degit from 'degit';
15
15
  import enquirer from 'enquirer';
package/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@ const codegenDart = require('@arrirpc/codegen-dart');
4
4
  const codegenKotlin = require('@arrirpc/codegen-kotlin');
5
5
  const codegenRust = require('@arrirpc/codegen-rust');
6
6
  const codegenTs = require('@arrirpc/codegen-ts');
7
- const dev = require('./shared/arri.8421be96.cjs');
7
+ const dev = require('./shared/arri.42cdc72b.cjs');
8
8
  const codegenUtils = require('@arrirpc/codegen-utils');
9
9
  require('node:fs');
10
10
  require('node:fs/promises');
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { dartClientGenerator } from '@arrirpc/codegen-dart';
2
2
  import { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
3
3
  import { rustClientGenerator } from '@arrirpc/codegen-rust';
4
4
  import { typescriptClientGenerator } from '@arrirpc/codegen-ts';
5
- export { D as DEV_DEFINITION_ENDPOINT, d as defaultConfig, b as defineConfig, i as isArriConfig, a as isResolvedArriConfig } from './shared/arri.1c716de9.mjs';
5
+ export { D as DEV_DEFINITION_ENDPOINT, d as defaultConfig, b as defineConfig, i as isArriConfig, a as isResolvedArriConfig } from './shared/arri.e6e562ed.mjs';
6
6
  export { createAppDefinition } from '@arrirpc/codegen-utils';
7
7
  import 'node:fs';
8
8
  import 'node:fs/promises';
@@ -77,27 +77,10 @@ async function createAppWithRoutesModule(config) {
77
77
  ${routes.map(
78
78
  (route) => `import ${route.importName} from '${route.importPath}';`
79
79
  ).join("\n")}
80
- const routes: {id: string; route: any}[] = [${routes.map(
81
- (route) => `{ id: '${route.name}', route: ${route.importName} }`
82
- ).join(",\n")}
83
- ];
84
- for(const route of routes) {
85
- if(route.route.transport === 'http') {
86
- app.rpc({
87
- name: route.id,
88
- ...route.route,
89
- });
90
- continue;
91
- }
92
- if (route.route.transport === 'ws') {
93
- app.wsRpc({
94
- name: route.id,
95
- ...route.route,
96
- });
97
- continue;
98
- }
99
- }
100
- export default app`,
80
+
81
+ ${routes.map((route) => `app.rpc('${route.name}', ${route.importName});`).join("\n")}
82
+
83
+ export default app;`,
101
84
  { parser: "typescript", tabWidth: 4 }
102
85
  );
103
86
  await fs__default.writeFile(
@@ -56,27 +56,10 @@ async function createAppWithRoutesModule(config) {
56
56
  ${routes.map(
57
57
  (route) => `import ${route.importName} from '${route.importPath}';`
58
58
  ).join("\n")}
59
- const routes: {id: string; route: any}[] = [${routes.map(
60
- (route) => `{ id: '${route.name}', route: ${route.importName} }`
61
- ).join(",\n")}
62
- ];
63
- for(const route of routes) {
64
- if(route.route.transport === 'http') {
65
- app.rpc({
66
- name: route.id,
67
- ...route.route,
68
- });
69
- continue;
70
- }
71
- if (route.route.transport === 'ws') {
72
- app.wsRpc({
73
- name: route.id,
74
- ...route.route,
75
- });
76
- continue;
77
- }
78
- }
79
- export default app`,
59
+
60
+ ${routes.map((route) => `app.rpc('${route.name}', ${route.importName});`).join("\n")}
61
+
62
+ export default app;`,
80
63
  { parser: "typescript", tabWidth: 4 }
81
64
  );
82
65
  await fs.writeFile(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arri",
3
- "version": "0.54.0",
3
+ "version": "0.57.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -32,19 +32,19 @@
32
32
  "consola": "^3.2.3",
33
33
  "degit": "^2.8.4",
34
34
  "enquirer": "^2.4.1",
35
- "esbuild": "^0.21.5",
35
+ "esbuild": "^0.23.0",
36
36
  "esbuild-plugin-replace": "^1.4.0",
37
- "globby": "^14.0.1",
37
+ "globby": "^14.0.2",
38
38
  "h3": "^1.12.0",
39
39
  "ofetch": "^1.3.4",
40
40
  "pathe": "^1.1.2",
41
- "prettier": "^3.3.2",
42
- "@arrirpc/codegen-dart": "0.54.0",
43
- "@arrirpc/codegen-kotlin": "0.54.0",
44
- "@arrirpc/codegen-rust": "0.54.0",
45
- "@arrirpc/codegen-ts": "0.54.0",
46
- "@arrirpc/codegen-utils": "0.54.0",
47
- "@arrirpc/schema": "0.54.0"
41
+ "prettier": "^3.3.3",
42
+ "@arrirpc/codegen-dart": "0.57.0",
43
+ "@arrirpc/codegen-kotlin": "0.57.0",
44
+ "@arrirpc/codegen-rust": "0.57.0",
45
+ "@arrirpc/codegen-ts": "0.57.0",
46
+ "@arrirpc/codegen-utils": "0.57.0",
47
+ "@arrirpc/schema": "0.57.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/degit": "^2.8.6"