@nestbridge/vite 2.3.0 → 2.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @nestbridge/vite
2
2
 
3
+ ## 2.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @nestbridge/unplugin@2.4.1
8
+
9
+ ## 2.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - bb0f3a9: Add a `logLevel` plugin option (`'info' | 'warn' | 'error' | 'silent'`, the same values as Vite's) to quiet NestBridge's output, for example the watch-mode diagnostics that are logged as warnings so the dev server keeps running. `'error'` and `'silent'` hide those warnings, and `'warn'` and below hide `debug` messages. The level is set per app, and an unknown value fails with an explicit error. The `NestBridgeLogLevel` type is exported.
14
+
15
+ The plugin now reports through the bundler's own logger instead of the console — Vite's `config.logger` and webpack's infrastructure logger — so Vite's `logLevel` and `customLogger`, and webpack's `infrastructureLogging.level`, apply to NestBridge without any option. Other bundlers still use the console. Diagnostics that fail a one-shot build are thrown and are not affected by the level.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [2f13b42]
20
+ - Updated dependencies [bb0f3a9]
21
+ - @nestbridge/unplugin@2.4.0
22
+
3
23
  ## 2.3.0
4
24
 
5
25
  ### Patch Changes
package/README.md CHANGED
@@ -112,6 +112,7 @@ interface NestBridgeOptions {
112
112
  globalPrefix?: string | GlobalPrefixOption | false; // replaces the prefix read from `setGlobalPrefix()`; `false` ignores it
113
113
  versioning?: VersioningOption | false; // replaces the versioning read from `enableVersioning()`; `false` ignores it
114
114
  debug?: boolean; // logs discovery/analysis/watch activity
115
+ logLevel?: 'info' | 'warn' | 'error' | 'silent'; // how much the plugin logs; defaults to the bundler's own level (Vite's logLevel, webpack's infrastructureLogging.level)
115
116
  outputDir?: string; // defaults to ".nestbridge", resolved from the Vite root — independent of `root`
116
117
  root?: string; // base for discovering controllers/resolvers and the bootstrap file; relative paths resolve against the Vite root, which is also the default
117
118
  }
@@ -145,6 +146,10 @@ The global prefix and URI versioning that the app's bootstrap file sets are
145
146
  read statically and added to every request path, so keep `baseURL` to the
146
147
  origin — see [Global prefix and URI versioning](../../README.md#global-prefix-and-uri-versioning).
147
148
 
149
+ The plugin logs through Vite's own logger, so Vite's `logLevel` already applies to its
150
+ watch-mode warnings. `logLevel` (`'info'`, `'warn'`, `'error'` or `'silent'`) quiets only NestBridge — see
151
+ [Hiding NestBridge logs](../../README.md#hiding-nestbridge-logs).
152
+
148
153
  ## License
149
154
 
150
155
  MIT
@@ -1,4 +1,4 @@
1
- import { GlobalPrefixOption, NestBridgeOptions, NestBridgePluginOptions, NestBridgePluginOptions as NestBridgePluginOptions$1, VersioningOption } from "@nestbridge/unplugin";
1
+ import { GlobalPrefixOption, NestBridgeLogLevel, NestBridgeOptions, NestBridgePluginOptions, NestBridgePluginOptions as NestBridgePluginOptions$1, VersioningOption } from "@nestbridge/unplugin";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/version.d.ts
4
4
  export declare const VERSION: string;
@@ -6,5 +6,5 @@ export declare const VERSION: string;
6
6
  //#region src/main.d.ts
7
7
  export declare const nestBridge: (options: NestBridgePluginOptions$1) => Plugin;
8
8
  //#endregion
9
- export type { GlobalPrefixOption, NestBridgeOptions, NestBridgePluginOptions, VersioningOption };
9
+ export type { GlobalPrefixOption, NestBridgeLogLevel, NestBridgeOptions, NestBridgePluginOptions, VersioningOption };
10
10
  //# sourceMappingURL=nestbridge.vite.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { nestBridgeUnplugin } from "@nestbridge/unplugin";
2
2
  //#endregion
3
3
  //#region src/version.ts
4
- var VERSION = "2.3.0";
4
+ var VERSION = "2.4.1";
5
5
  //#endregion
6
6
  //#region src/main.ts
7
7
  var nestBridge = nestBridgeUnplugin.vite;
@@ -1 +1 @@
1
- {"version":3,"file":"nestbridge.vite.js","names":[],"sources":["../package.json","../src/version.ts","../src/main.ts"],"sourcesContent":["{\n \"name\": \"@nestbridge/vite\",\n \"version\": \"2.3.0\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/MDReal32/nestbridge.git\",\n \"directory\": \"packages/vite\"\n },\n \"main\": \"./build/nestbridge.vite.js\",\n \"types\": \"./build/nestbridge.vite.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/nestbridge.vite.d.ts\",\n \"import\": \"./build/nestbridge.vite.js\"\n }\n },\n \"files\": [\n \"build\"\n ],\n \"scripts\": {\n \"build\": \"vite build\",\n \"test\": \"vitest run\",\n \"typecheck\": \"tsc -p tsconfig.json --noEmit\",\n \"lint\": \"biome check .\"\n },\n \"dependencies\": {\n \"@nestbridge/unplugin\": \"workspace:*\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^26.4.1\",\n \"rolldown-plugin-dts\": \"^0.28.5\",\n \"typescript\": \"^7.0.2\",\n \"vite\": \"^8.2.2\",\n \"vitest\": \"^5.0.0\"\n },\n \"peerDependencies\": {\n \"vite\": \"^8.2.2\"\n }\n}\n","import { version } from '../package.json';\n\nexport const VERSION: string = version;\n","import { type NestBridgePluginOptions, nestBridgeUnplugin } from '@nestbridge/unplugin';\nimport type { Plugin } from 'vite';\n\nexport type {\n GlobalPrefixOption,\n NestBridgeOptions,\n NestBridgePluginOptions,\n VersioningOption,\n} from '@nestbridge/unplugin';\nexport const nestBridge: (options: NestBridgePluginOptions) => Plugin = nestBridgeUnplugin.vite;\nexport { VERSION } from './version';\n"],"mappings":";;;ACEA,IAAa,UAAkB;;;ACO/B,IAAa,aAA2D,mBAAmB"}
1
+ {"version":3,"file":"nestbridge.vite.js","names":[],"sources":["../package.json","../src/version.ts","../src/main.ts"],"sourcesContent":["{\n \"name\": \"@nestbridge/vite\",\n \"version\": \"2.4.1\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/MDReal32/nestbridge.git\",\n \"directory\": \"packages/vite\"\n },\n \"main\": \"./build/nestbridge.vite.js\",\n \"types\": \"./build/nestbridge.vite.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/nestbridge.vite.d.ts\",\n \"import\": \"./build/nestbridge.vite.js\"\n }\n },\n \"files\": [\n \"build\"\n ],\n \"scripts\": {\n \"build\": \"vite build\",\n \"test\": \"vitest run\",\n \"typecheck\": \"tsc -p tsconfig.json --noEmit\",\n \"lint\": \"biome check .\"\n },\n \"dependencies\": {\n \"@nestbridge/unplugin\": \"workspace:*\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^26.4.1\",\n \"rolldown-plugin-dts\": \"^0.28.5\",\n \"typescript\": \"^7.0.2\",\n \"vite\": \"^8.2.2\",\n \"vitest\": \"^5.0.0\"\n },\n \"peerDependencies\": {\n \"vite\": \"^8.2.2\"\n }\n}\n","import { version } from '../package.json';\n\nexport const VERSION: string = version;\n","import { type NestBridgePluginOptions, nestBridgeUnplugin } from '@nestbridge/unplugin';\nimport type { Plugin } from 'vite';\n\nexport type {\n GlobalPrefixOption,\n NestBridgeLogLevel,\n NestBridgeOptions,\n NestBridgePluginOptions,\n VersioningOption,\n} from '@nestbridge/unplugin';\nexport const nestBridge: (options: NestBridgePluginOptions) => Plugin = nestBridgeUnplugin.vite;\nexport { VERSION } from './version';\n"],"mappings":";;;ACEA,IAAa,UAAkB;;;ACQ/B,IAAa,aAA2D,mBAAmB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestbridge/vite",
3
- "version": "2.3.0",
3
+ "version": "2.4.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "lint": "biome check ."
27
27
  },
28
28
  "dependencies": {
29
- "@nestbridge/unplugin": "2.3.0"
29
+ "@nestbridge/unplugin": "2.4.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^26.4.1",