arri 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 +4 -9
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +13 -6
- package/dist/index.d.mts +13 -6
- package/dist/index.d.ts +13 -6
- package/dist/index.mjs +11 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -58,22 +58,17 @@ export default createAppDefinition({
|
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
60
|
// arri.config.ts
|
|
61
|
-
import {
|
|
62
|
-
defineConfig,
|
|
63
|
-
typescriptClientGenerator,
|
|
64
|
-
dartClientGenerator,
|
|
65
|
-
kotlinClientGenerator,
|
|
66
|
-
} from "arri";
|
|
61
|
+
import { defineConfig, generators } from "arri";
|
|
67
62
|
|
|
68
63
|
export default defineConfig({
|
|
69
64
|
generators: [
|
|
70
|
-
|
|
65
|
+
generators.typescriptClient({
|
|
71
66
|
// options
|
|
72
67
|
}),
|
|
73
|
-
|
|
68
|
+
generators.dartClient({
|
|
74
69
|
// options
|
|
75
70
|
}),
|
|
76
|
-
|
|
71
|
+
generators.kotlinClient({
|
|
77
72
|
// options
|
|
78
73
|
}),
|
|
79
74
|
],
|
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const dev = require('./shared/arri.8421be96.cjs');
|
|
4
3
|
const codegenDart = require('@arrirpc/codegen-dart');
|
|
5
4
|
const codegenKotlin = require('@arrirpc/codegen-kotlin');
|
|
6
5
|
const codegenTs = require('@arrirpc/codegen-ts');
|
|
6
|
+
const dev = require('./shared/arri.8421be96.cjs');
|
|
7
7
|
const codegenUtils = require('@arrirpc/codegen-utils');
|
|
8
8
|
require('node:fs');
|
|
9
9
|
require('node:fs/promises');
|
|
@@ -18,14 +18,16 @@ require('@arrirpc/schema');
|
|
|
18
18
|
require('consola');
|
|
19
19
|
require('prettier');
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const generators = {
|
|
22
|
+
dartClient: codegenDart.dartClientGenerator,
|
|
23
|
+
kotlinClient: codegenKotlin.kotlinClientGenerator,
|
|
24
|
+
typescriptClient: codegenTs.typescriptClientGenerator
|
|
25
|
+
};
|
|
22
26
|
|
|
23
27
|
exports.DEV_DEFINITION_ENDPOINT = dev.DEV_DEFINITION_ENDPOINT;
|
|
24
28
|
exports.defaultConfig = dev.defaultConfig;
|
|
25
29
|
exports.defineConfig = dev.defineConfig;
|
|
26
30
|
exports.isArriConfig = dev.isArriConfig;
|
|
27
31
|
exports.isResolvedArriConfig = dev.isResolvedArriConfig;
|
|
28
|
-
exports.dartClientGenerator = codegenDart.dartClientGenerator;
|
|
29
|
-
exports.kotlinClientGenerator = codegenKotlin.kotlinClientGenerator;
|
|
30
|
-
exports.typescriptClientGenerator = codegenTs.typescriptClientGenerator;
|
|
31
32
|
exports.createAppDefinition = codegenUtils.createAppDefinition;
|
|
33
|
+
exports.generators = generators;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _arrirpc_codegen_ts from '@arrirpc/codegen-ts';
|
|
2
|
+
import * as _arrirpc_codegen_kotlin from '@arrirpc/codegen-kotlin';
|
|
3
|
+
import * as _arrirpc_codegen_utils from '@arrirpc/codegen-utils';
|
|
4
|
+
import { Generator } from '@arrirpc/codegen-utils';
|
|
2
5
|
export { AppDefinition, createAppDefinition } from '@arrirpc/codegen-utils';
|
|
6
|
+
import * as _arrirpc_codegen_dart from '@arrirpc/codegen-dart';
|
|
3
7
|
import { BuildOptions } from 'esbuild';
|
|
4
|
-
export { dartClientGenerator } from '@arrirpc/codegen-dart';
|
|
5
|
-
export { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
|
|
6
|
-
export { typescriptClientGenerator } from '@arrirpc/codegen-ts';
|
|
7
8
|
|
|
8
9
|
declare const DEV_DEFINITION_ENDPOINT = "/__arri_dev__/__definition";
|
|
9
10
|
|
|
@@ -18,7 +19,7 @@ interface ArriConfig {
|
|
|
18
19
|
* this defaults to ["***\/*\*.rpc.ts"]
|
|
19
20
|
*/
|
|
20
21
|
procedureGlobPatterns?: string[];
|
|
21
|
-
generators?: Array<
|
|
22
|
+
generators?: Array<Generator<any>>;
|
|
22
23
|
buildDir?: string;
|
|
23
24
|
esbuild?: Omit<BuildOptions, "bundle" | "format" | "outfile" | "outdir" | "entryNames" | "entryPoints" | "packages">;
|
|
24
25
|
https?: {
|
|
@@ -40,4 +41,10 @@ type ResolvedArriConfig = Required<ArriConfig>;
|
|
|
40
41
|
declare const defaultConfig: Required<ArriConfig>;
|
|
41
42
|
declare function defineConfig(config: ArriConfig): ResolvedArriConfig;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
declare const generators: {
|
|
45
|
+
readonly dartClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_dart.DartClientGeneratorOptions>;
|
|
46
|
+
readonly kotlinClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_kotlin.KotlinClientOptions>;
|
|
47
|
+
readonly typescriptClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_ts.TypescriptGeneratorOptions>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { type ArriConfig, DEV_DEFINITION_ENDPOINT, type ResolvedArriConfig, defaultConfig, defineConfig, generators, isArriConfig, isResolvedArriConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _arrirpc_codegen_ts from '@arrirpc/codegen-ts';
|
|
2
|
+
import * as _arrirpc_codegen_kotlin from '@arrirpc/codegen-kotlin';
|
|
3
|
+
import * as _arrirpc_codegen_utils from '@arrirpc/codegen-utils';
|
|
4
|
+
import { Generator } from '@arrirpc/codegen-utils';
|
|
2
5
|
export { AppDefinition, createAppDefinition } from '@arrirpc/codegen-utils';
|
|
6
|
+
import * as _arrirpc_codegen_dart from '@arrirpc/codegen-dart';
|
|
3
7
|
import { BuildOptions } from 'esbuild';
|
|
4
|
-
export { dartClientGenerator } from '@arrirpc/codegen-dart';
|
|
5
|
-
export { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
|
|
6
|
-
export { typescriptClientGenerator } from '@arrirpc/codegen-ts';
|
|
7
8
|
|
|
8
9
|
declare const DEV_DEFINITION_ENDPOINT = "/__arri_dev__/__definition";
|
|
9
10
|
|
|
@@ -18,7 +19,7 @@ interface ArriConfig {
|
|
|
18
19
|
* this defaults to ["***\/*\*.rpc.ts"]
|
|
19
20
|
*/
|
|
20
21
|
procedureGlobPatterns?: string[];
|
|
21
|
-
generators?: Array<
|
|
22
|
+
generators?: Array<Generator<any>>;
|
|
22
23
|
buildDir?: string;
|
|
23
24
|
esbuild?: Omit<BuildOptions, "bundle" | "format" | "outfile" | "outdir" | "entryNames" | "entryPoints" | "packages">;
|
|
24
25
|
https?: {
|
|
@@ -40,4 +41,10 @@ type ResolvedArriConfig = Required<ArriConfig>;
|
|
|
40
41
|
declare const defaultConfig: Required<ArriConfig>;
|
|
41
42
|
declare function defineConfig(config: ArriConfig): ResolvedArriConfig;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
declare const generators: {
|
|
45
|
+
readonly dartClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_dart.DartClientGeneratorOptions>;
|
|
46
|
+
readonly kotlinClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_kotlin.KotlinClientOptions>;
|
|
47
|
+
readonly typescriptClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_ts.TypescriptGeneratorOptions>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { type ArriConfig, DEV_DEFINITION_ENDPOINT, type ResolvedArriConfig, defaultConfig, defineConfig, generators, isArriConfig, isResolvedArriConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _arrirpc_codegen_ts from '@arrirpc/codegen-ts';
|
|
2
|
+
import * as _arrirpc_codegen_kotlin from '@arrirpc/codegen-kotlin';
|
|
3
|
+
import * as _arrirpc_codegen_utils from '@arrirpc/codegen-utils';
|
|
4
|
+
import { Generator } from '@arrirpc/codegen-utils';
|
|
2
5
|
export { AppDefinition, createAppDefinition } from '@arrirpc/codegen-utils';
|
|
6
|
+
import * as _arrirpc_codegen_dart from '@arrirpc/codegen-dart';
|
|
3
7
|
import { BuildOptions } from 'esbuild';
|
|
4
|
-
export { dartClientGenerator } from '@arrirpc/codegen-dart';
|
|
5
|
-
export { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
|
|
6
|
-
export { typescriptClientGenerator } from '@arrirpc/codegen-ts';
|
|
7
8
|
|
|
8
9
|
declare const DEV_DEFINITION_ENDPOINT = "/__arri_dev__/__definition";
|
|
9
10
|
|
|
@@ -18,7 +19,7 @@ interface ArriConfig {
|
|
|
18
19
|
* this defaults to ["***\/*\*.rpc.ts"]
|
|
19
20
|
*/
|
|
20
21
|
procedureGlobPatterns?: string[];
|
|
21
|
-
generators?: Array<
|
|
22
|
+
generators?: Array<Generator<any>>;
|
|
22
23
|
buildDir?: string;
|
|
23
24
|
esbuild?: Omit<BuildOptions, "bundle" | "format" | "outfile" | "outdir" | "entryNames" | "entryPoints" | "packages">;
|
|
24
25
|
https?: {
|
|
@@ -40,4 +41,10 @@ type ResolvedArriConfig = Required<ArriConfig>;
|
|
|
40
41
|
declare const defaultConfig: Required<ArriConfig>;
|
|
41
42
|
declare function defineConfig(config: ArriConfig): ResolvedArriConfig;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
declare const generators: {
|
|
45
|
+
readonly dartClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_dart.DartClientGeneratorOptions>;
|
|
46
|
+
readonly kotlinClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_kotlin.KotlinClientOptions>;
|
|
47
|
+
readonly typescriptClient: _arrirpc_codegen_utils.GeneratorPlugin<_arrirpc_codegen_ts.TypescriptGeneratorOptions>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { type ArriConfig, DEV_DEFINITION_ENDPOINT, type ResolvedArriConfig, defaultConfig, defineConfig, generators, isArriConfig, isResolvedArriConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { dartClientGenerator } from '@arrirpc/codegen-dart';
|
|
2
|
+
import { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
|
|
3
|
+
import { typescriptClientGenerator } from '@arrirpc/codegen-ts';
|
|
1
4
|
export { D as DEV_DEFINITION_ENDPOINT, d as defaultConfig, b as defineConfig, i as isArriConfig, a as isResolvedArriConfig } from './shared/arri.1c716de9.mjs';
|
|
2
|
-
export { dartClientGenerator } from '@arrirpc/codegen-dart';
|
|
3
|
-
export { kotlinClientGenerator } from '@arrirpc/codegen-kotlin';
|
|
4
|
-
export { typescriptClientGenerator } from '@arrirpc/codegen-ts';
|
|
5
5
|
export { createAppDefinition } from '@arrirpc/codegen-utils';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:fs/promises';
|
|
@@ -15,3 +15,11 @@ import 'pathe';
|
|
|
15
15
|
import '@arrirpc/schema';
|
|
16
16
|
import 'consola';
|
|
17
17
|
import 'prettier';
|
|
18
|
+
|
|
19
|
+
const generators = {
|
|
20
|
+
dartClient: dartClientGenerator,
|
|
21
|
+
kotlinClient: kotlinClientGenerator,
|
|
22
|
+
typescriptClient: typescriptClientGenerator
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { generators };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"ofetch": "^1.3.4",
|
|
40
40
|
"pathe": "^1.1.2",
|
|
41
41
|
"prettier": "^3.3.2",
|
|
42
|
-
"@arrirpc/codegen-dart": "0.
|
|
43
|
-
"@arrirpc/codegen-
|
|
44
|
-
"@arrirpc/
|
|
45
|
-
"@arrirpc/codegen-
|
|
46
|
-
"@arrirpc/
|
|
42
|
+
"@arrirpc/codegen-dart": "0.51.1",
|
|
43
|
+
"@arrirpc/codegen-ts": "0.51.1",
|
|
44
|
+
"@arrirpc/schema": "0.51.1",
|
|
45
|
+
"@arrirpc/codegen-utils": "0.51.1",
|
|
46
|
+
"@arrirpc/codegen-kotlin": "0.51.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/degit": "^2.8.6"
|