@nestbridge/vite 2.1.1 → 2.1.3

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/CHANGELOG.md ADDED
@@ -0,0 +1,98 @@
1
+ # @nestbridge/vite
2
+
3
+ ## 2.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - cec7886: Fix `Cannot find module '.../typescript/unstable/ast'` when loading `@nestbridge/vite` or `@nestbridge/webpack` in a project that has its own `typescript` (for example 6.x) installed. Each package previously bundled a private copy of its internal `@nestbridge/*` dependencies, so core's `typescript@7` import was resolved against the host project's `typescript` instead of the one core declares. Internal packages are now external, so imports resolve through the declared dependency chain and the bundles shrink accordingly.
8
+ - Updated dependencies [cec7886]
9
+ - @nestbridge/unplugin@2.1.3
10
+
11
+ ## 2.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - e391e8f: Fix `yarn add nestbridge` (and `npm install nestbridge`) failing with `Workspace not found (@nestbridge/runtime@workspace:*)`. Previously published manifests shipped Yarn's `workspace:*` dependency specifiers verbatim because the release pipeline packed with plain `npm publish`. Packages are now packed with `yarn pack`, which rewrites them to the real version, and the release aborts if any `workspace:` specifier survives in the tarball.
16
+ - Updated dependencies [e391e8f]
17
+ - @nestbridge/unplugin@2.1.2
18
+
19
+ ## 2.1.1
20
+
21
+ ### Patch Changes
22
+
23
+ - c7fe551: Fix `outputDir` resolving relative to `root` instead of the bundler's own project root. `root` now controls only where controllers, resolvers, and the bootstrap `main.ts` are discovered, while `outputDir` always resolves relative to Vite's `config.root` or webpack's `compiler.options.context`. This removes the need to widen `root` to a parent directory just to reach a bootstrap file that lives outside the client project, and fixes webpack builds that previously had no way to resolve their own project root at all.
24
+ - Updated dependencies [c7fe551]
25
+ - @nestbridge/unplugin@2.1.1
26
+
27
+ ## 2.1.0
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [a21adfa]
32
+ - @nestbridge/unplugin@2.1.0
33
+
34
+ ## 2.0.4
35
+
36
+ ### Patch Changes
37
+
38
+ - @nestbridge/unplugin@2.0.4
39
+
40
+ ## 2.0.0
41
+
42
+ ### Patch Changes
43
+
44
+ - f474d7f: Make the `@nestbridge/vite` plugin's `baseURL` option actually configure the generated client. Every generated controller/resolver module now statically imports a new `virtual:nestbridge/config` module that calls `setNestBridgeBaseURL(...)` before any user code runs, so requests are sent to the configured server without any manual setup.
45
+
46
+ **Breaking:** `NestBridgeConfig.baseURL` has been removed from `configureNestBridge`. `configureNestBridge` fully replaces its config object rather than merging into it, so a `baseURL` living inside it could be silently wiped out by a later `configureNestBridge({...})` call made for an unrelated reason (e.g. to set `headers`). The base URL is now tracked independently via the new `setNestBridgeBaseURL`/`getNestBridgeBaseURL` functions, which `configureNestBridge` never touches. If you were calling `configureNestBridge({ baseURL: '...' })` directly, call `setNestBridgeBaseURL('...')` instead.
47
+ - Updated dependencies [f474d7f]
48
+ - @nestbridge/runtime@2.0.0
49
+ - @nestbridge/core@2.0.0
50
+
51
+ ## 1.1.1
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [020df80]
56
+ - @nestbridge/runtime@1.1.1
57
+ - @nestbridge/core@1.1.1
58
+
59
+ ## 1.1.0
60
+
61
+ ### Minor Changes
62
+
63
+ - 7336719: Add support for controller methods that return `Observable<T>` or `StreamableFile`. The analyzer now detects these return types (`ResponseKind`), the generated client requests a blob for streamed responses, and `@nestbridge/runtime` exposes `RemoteObservableResult`/`RemoteStreamResult` helper types alongside the existing `RemoteResult`.
64
+
65
+ ### Patch Changes
66
+
67
+ - 7336719: Fix generated resolver client methods returning the raw GraphQL `data` envelope (e.g. `{ createBook: { id, title } }`) instead of the requested field's value (`{ id, title }`), so calling a generated resolver method behaves like calling the real one.
68
+ - Updated dependencies [7336719]
69
+ - Updated dependencies [7336719]
70
+ - @nestbridge/core@1.1.0
71
+ - @nestbridge/runtime@1.1.0
72
+
73
+ ## 1.0.1
74
+
75
+ ### Patch Changes
76
+
77
+ - Refresh package READMEs to document GraphQL resolver support.
78
+ - Updated dependencies
79
+ - @nestbridge/core@1.0.1
80
+ - @nestbridge/runtime@1.0.1
81
+
82
+ ## 1.0.0
83
+
84
+ ### Major Changes
85
+
86
+ - Release 1.0.0.
87
+
88
+ ### Minor Changes
89
+
90
+ - 4dea4e9: Add GraphQL resolver support. `@nestbridge/core` statically analyzes `@Resolver()`/`@Query()`/`@Mutation()` classes and `@ObjectType()`/`@Field()` types to build selection sets and diagnostics; `@nestbridge/runtime` adds a `graphqlRequest` client; `@nestbridge/vite` gains a `resolvers` option that generates client-facing resolver stubs backed by it; `nestbridge` re-exports the new GraphQL API.
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies
95
+ - Updated dependencies [b28bc2d]
96
+ - Updated dependencies [4dea4e9]
97
+ - @nestbridge/core@1.0.0
98
+ - @nestbridge/runtime@1.0.0
@@ -1,19 +1,10 @@
1
+ import { NestBridgeOptions, NestBridgeOptions as NestBridgeOptions$1 } from "@nestbridge/unplugin";
1
2
  import { Plugin } from "vite";
2
- //#region ../unplugin/src/options/nestbridge-options.d.ts
3
- interface NestBridgeOptions {
4
- controllers: string | string[];
5
- resolvers?: string | string[];
6
- baseURL?: string;
7
- debug?: boolean;
8
- outputDir?: string;
9
- root?: string;
10
- }
11
- //#endregion
12
3
  //#region src/version.d.ts
13
4
  export declare const VERSION: string;
14
5
  //#endregion
15
6
  //#region src/main.d.ts
16
- export declare const nestBridge: (options: NestBridgeOptions) => Plugin;
7
+ export declare const nestBridge: (options: NestBridgeOptions$1) => Plugin;
17
8
  //#endregion
18
9
  export type { NestBridgeOptions };
19
10
  //# sourceMappingURL=nestbridge.vite.d.ts.map