@nestbridge/webpack 2.2.0 → 2.4.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/CHANGELOG.md +21 -0
- package/README.md +5 -0
- package/build/nestbridge.webpack.d.ts +2 -2
- package/build/nestbridge.webpack.js +1 -1
- package/build/nestbridge.webpack.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @nestbridge/webpack
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [2f13b42]
|
|
14
|
+
- Updated dependencies [bb0f3a9]
|
|
15
|
+
- @nestbridge/unplugin@2.4.0
|
|
16
|
+
|
|
17
|
+
## 2.3.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [1ca473c]
|
|
22
|
+
- @nestbridge/unplugin@2.3.0
|
|
23
|
+
|
|
3
24
|
## 2.2.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -120,6 +120,7 @@ interface NestBridgeOptions {
|
|
|
120
120
|
globalPrefix?: string | GlobalPrefixOption | false; // replaces the prefix read from `setGlobalPrefix()`; `false` ignores it
|
|
121
121
|
versioning?: VersioningOption | false; // replaces the versioning read from `enableVersioning()`; `false` ignores it
|
|
122
122
|
debug?: boolean; // logs discovery/analysis/watch activity
|
|
123
|
+
logLevel?: 'info' | 'warn' | 'error' | 'silent'; // how much the plugin logs; defaults to the bundler's own level (Vite's logLevel, webpack's infrastructureLogging.level)
|
|
123
124
|
outputDir?: string; // defaults to ".nestbridge", resolved from webpack's `context` — independent of `root`
|
|
124
125
|
root?: string; // base for discovering controllers/resolvers and the bootstrap file; relative paths resolve against process.cwd(), which is also the default
|
|
125
126
|
}
|
|
@@ -149,6 +150,10 @@ The global prefix and URI versioning that the app's bootstrap file sets are
|
|
|
149
150
|
read statically and added to every request path, so keep `baseURL` to the
|
|
150
151
|
origin — see [Global prefix and URI versioning](../../README.md#global-prefix-and-uri-versioning).
|
|
151
152
|
|
|
153
|
+
The plugin logs through webpack's own logger, so `infrastructureLogging.level` already applies to its
|
|
154
|
+
watch-mode warnings. `logLevel` (`'info'`, `'warn'`, `'error'` or `'silent'`) quiets only NestBridge — see
|
|
155
|
+
[Hiding NestBridge logs](../../README.md#hiding-nestbridge-logs).
|
|
156
|
+
|
|
152
157
|
## License
|
|
153
158
|
|
|
154
159
|
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 { WebpackPluginInstance } from "webpack";
|
|
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) => WebpackPluginInstance;
|
|
8
8
|
//#endregion
|
|
9
|
-
export type { GlobalPrefixOption, NestBridgeOptions, NestBridgePluginOptions, VersioningOption };
|
|
9
|
+
export type { GlobalPrefixOption, NestBridgeLogLevel, NestBridgeOptions, NestBridgePluginOptions, VersioningOption };
|
|
10
10
|
//# sourceMappingURL=nestbridge.webpack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nestbridge.webpack.js","names":[],"sources":["../package.json","../src/version.ts","../src/main.ts"],"sourcesContent":["{\n \"name\": \"@nestbridge/webpack\",\n \"version\": \"2.
|
|
1
|
+
{"version":3,"file":"nestbridge.webpack.js","names":[],"sources":["../package.json","../src/version.ts","../src/main.ts"],"sourcesContent":["{\n \"name\": \"@nestbridge/webpack\",\n \"version\": \"2.4.0\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/MDReal32/nestbridge.git\",\n \"directory\": \"packages/webpack\"\n },\n \"main\": \"./build/nestbridge.webpack.js\",\n \"types\": \"./build/nestbridge.webpack.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/nestbridge.webpack.d.ts\",\n \"import\": \"./build/nestbridge.webpack.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 \"esbuild-loader\": \"^4.5.0\",\n \"rolldown-plugin-dts\": \"^0.28.5\",\n \"typescript\": \"^7.0.2\",\n \"vite\": \"^8.2.2\",\n \"vitest\": \"^5.0.0\",\n \"webpack\": \"^5.110.3\"\n },\n \"peerDependencies\": {\n \"webpack\": \"^5.110.3\"\n }\n}\n","import { version } from '../package.json';\n\nexport const VERSION: string = version;\n","import { type NestBridgePluginOptions, nestBridgeUnplugin } from '@nestbridge/unplugin';\nimport type { WebpackPluginInstance } from 'webpack';\n\nexport type {\n GlobalPrefixOption,\n NestBridgeLogLevel,\n NestBridgeOptions,\n NestBridgePluginOptions,\n VersioningOption,\n} from '@nestbridge/unplugin';\nexport const nestBridge: (options: NestBridgePluginOptions) => WebpackPluginInstance =\n nestBridgeUnplugin.webpack;\nexport { VERSION } from './version';\n"],"mappings":";;;ACEA,IAAa,UAAkB;;;ACQ/B,IAAa,aACX,mBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestbridge/webpack",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
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.
|
|
29
|
+
"@nestbridge/unplugin": "2.4.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^26.4.1",
|