@bsb/base 9.0.1 → 9.0.4
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 +188 -190
- package/bsb-plugin.json +6 -3
- package/lib/plugins/config-default/index.js +4 -1
- package/lib/plugins/config-default/index.js.map +1 -1
- package/lib/plugins/events-default/index.js +4 -1
- package/lib/plugins/events-default/index.js.map +1 -1
- package/lib/plugins/observable-default/index.js +4 -1
- package/lib/plugins/observable-default/index.js.map +1 -1
- package/lib/schemas/config-default.plugin.json +3 -2
- package/lib/schemas/events-default.plugin.json +3 -2
- package/lib/schemas/observable-default.plugin.json +3 -2
- package/lib/scripts/bsb-client-cli.d.ts +1 -1
- package/lib/scripts/bsb-client-cli.js +1 -1
- package/lib/serviceBase/plugins.js +10 -20
- package/lib/serviceBase/plugins.js.map +1 -1
- package/lib/tests/mocks.d.ts +37 -0
- package/lib/tests/mocks.js +164 -0
- package/lib/tests/mocks.js.map +1 -0
- package/lib/tests/sb/plugins/events/broadcast.d.ts +30 -0
- package/lib/tests/sb/plugins/events/broadcast.js +357 -0
- package/lib/tests/sb/plugins/events/broadcast.js.map +1 -0
- package/lib/tests/sb/plugins/events/emit.d.ts +30 -0
- package/lib/tests/sb/plugins/events/emit.js +353 -0
- package/lib/tests/sb/plugins/events/emit.js.map +1 -0
- package/lib/tests/sb/plugins/events/emitAndReturn.d.ts +30 -0
- package/lib/tests/sb/plugins/events/emitAndReturn.js +382 -0
- package/lib/tests/sb/plugins/events/emitAndReturn.js.map +1 -0
- package/lib/{plugins/service-default1/client.d.ts → tests/sb/plugins/events/emitStreamAndReceiveStream.d.ts} +4 -16
- package/lib/tests/sb/plugins/events/emitStreamAndReceiveStream.js +298 -0
- package/lib/tests/sb/plugins/events/emitStreamAndReceiveStream.js.map +1 -0
- package/lib/tests/sb/plugins/events/index.d.ts +28 -0
- package/lib/tests/sb/plugins/events/index.js +69 -0
- package/lib/tests/sb/plugins/events/index.js.map +1 -0
- package/lib/tests/trace.d.ts +41 -0
- package/lib/tests/trace.js +85 -0
- package/lib/tests/trace.js.map +1 -0
- package/lib/tests.d.ts +27 -0
- package/lib/{plugins/service-default4/index.js → tests.js} +16 -35
- package/lib/tests.js.map +1 -0
- package/package.json +4 -3
- package/lib/plugins/service-benchmarkify/index.d.ts +0 -312
- package/lib/plugins/service-benchmarkify/index.js +0 -138
- package/lib/plugins/service-benchmarkify/index.js.map +0 -1
- package/lib/plugins/service-default0/index.d.ts +0 -287
- package/lib/plugins/service-default0/index.js +0 -118
- package/lib/plugins/service-default0/index.js.map +0 -1
- package/lib/plugins/service-default1/client.js +0 -70
- package/lib/plugins/service-default1/client.js.map +0 -1
- package/lib/plugins/service-default1/index.d.ts +0 -304
- package/lib/plugins/service-default1/index.js +0 -179
- package/lib/plugins/service-default1/index.js.map +0 -1
- package/lib/plugins/service-default2/index.d.ts +0 -359
- package/lib/plugins/service-default2/index.js +0 -137
- package/lib/plugins/service-default2/index.js.map +0 -1
- package/lib/plugins/service-default3/index.d.ts +0 -119
- package/lib/plugins/service-default3/index.js +0 -88
- package/lib/plugins/service-default3/index.js.map +0 -1
- package/lib/plugins/service-default4/index.d.ts +0 -81
- package/lib/plugins/service-default4/index.js.map +0 -1
- package/lib/schemas/service-benchmarkify.json +0 -229
- package/lib/schemas/service-default0.json +0 -216
- package/lib/schemas/service-default1.json +0 -242
- package/lib/schemas/service-default2.json +0 -268
- package/lib/schemas/service-default3.json +0 -65
- package/lib/schemas/service-default4.json +0 -33
package/README.md
CHANGED
|
@@ -1,228 +1,226 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Better Service Base (BSB) is an event
|
|
4
|
-
|
|
5
|
-
**Version 9.0** introduces breaking changes with improved type safety, cross-language support, and automated code generation. See
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
1
|
+
# @bsb/base (Node.js Service Base)
|
|
2
|
+
|
|
3
|
+
Better Service Base (BSB) is an event-driven microservices framework for Node.js and TypeScript with built-in Zod schema validation, type-safe events, and a pluggable architecture for config, observability (logging, metrics, tracing), and events. It is designed for production-ready, secure-by-default backends with validated APIs and a type-safe event bus.
|
|
4
|
+
|
|
5
|
+
**Version 9.0** introduces breaking changes with improved type safety, cross-language support, and automated code generation. See the Plugin Development Guide for v9 patterns:
|
|
6
|
+
`https://github.com/BetterCorp/better-service-base/blob/master/nodejs/PLUGIN_DEVELOPMENT.md`
|
|
7
|
+
|
|
8
|
+
## Links
|
|
9
|
+
|
|
10
|
+
- GitHub: `https://github.com/BetterCorp/better-service-base/tree/master/nodejs`
|
|
11
|
+
- BSB Registry (package): `https://io.bsbcode.dev/packages/nodejs/@bsb/base`
|
|
12
|
+
|
|
13
|
+
### Intended Usage (Container-first)
|
|
14
|
+
- This project is designed to run standalone inside a Docker container and execute plugins authored and published separately.
|
|
15
|
+
- It is not intended to be embedded or imported as a library into another application package.
|
|
16
|
+
- Deploy the container and supply plugins via `BSB_PLUGIN_DIR` (recommended) or `BSB_PLUGINS` installation at container startup.
|
|
17
|
+
|
|
18
|
+
#### Requirements
|
|
19
|
+
- Node.js >= 23.0.0, npm >= 11.0.0
|
|
20
|
+
- TypeScript 5.x for development
|
|
21
|
+
|
|
16
22
|
### Project Structure
|
|
17
|
-
- `src/`
|
|
18
|
-
- `index.ts`: Public exports for the package (base classes, interfaces, controllers).
|
|
19
|
-
- `cli.ts`: Production CLI entry (also exposed as `bin`
|
|
20
|
-
- `dev.ts`: Development runner with hot-reload and restart controls.
|
|
21
|
-
- `client.ts`: Legacy helper for embedding a client; avoid in new code.
|
|
23
|
+
- `src/`
|
|
24
|
+
- `index.ts`: Public exports for the package (base classes, interfaces, controllers).
|
|
25
|
+
- `cli.ts`: Production CLI entry (also exposed as `bin` -> `bsb`).
|
|
26
|
+
- `dev.ts`: Development runner with hot-reload and restart controls.
|
|
27
|
+
- `client.ts`: Legacy helper for embedding a client; avoid in new code.
|
|
22
28
|
- `base/`: Core building blocks used by plugins and services
|
|
23
29
|
- `BSBService`, `BSBServiceClient`: Base classes for service plugins and their clients
|
|
24
|
-
- `
|
|
25
|
-
- `BSBConfig`, `
|
|
26
|
-
- `factory.ts`: Option resolution and presets for `ServiceBase`
|
|
27
|
-
- `interfaces/`: Strong TypeScript contracts for options,
|
|
30
|
+
- `PluginObservable`, `PluginEvents`: Per-plugin facades into observability and events
|
|
31
|
+
- `BSBConfig`, `BSBObservable`, `BSBEvents`: Base plugin contracts
|
|
32
|
+
- `factory.ts`: Option resolution and presets for `ServiceBase`
|
|
33
|
+
- `interfaces/`: Strong TypeScript contracts for options, observability, events, results, tools
|
|
28
34
|
- `serviceBase/`: Runtime controllers that orchestrate the system
|
|
29
|
-
- `serviceBase.ts`: Main runtime (`ServiceBase`)
|
|
35
|
+
- `serviceBase.ts`: Main runtime (`ServiceBase`) - boot/init/run/dispose pipeline
|
|
30
36
|
- `config.ts`: Loads and initializes the configuration plugin
|
|
31
|
-
- `
|
|
32
|
-
- `metrics.ts`: Manages metrics plugins via an internal event bus
|
|
37
|
+
- `observable.ts`: Unified logging, metrics, and tracing via observable plugins
|
|
33
38
|
- `events.ts`: Manages event plugins and exposes event APIs (broadcast, emit, return, streams)
|
|
34
39
|
- `plugins.ts`: Resolves and loads plugins from local build or external locations
|
|
35
40
|
- `services.ts`: Loads, orders, and runs service plugins + their clients
|
|
36
|
-
- `plugins/`: Built
|
|
41
|
+
- `plugins/`: Built-in plugins
|
|
37
42
|
- `config-default/`: Default configuration plugin
|
|
38
43
|
- `events-default/`: Default event bus
|
|
39
|
-
- `
|
|
40
|
-
- `metrics-default/`: Basic metrics implementation
|
|
44
|
+
- `observable-default/`: Console-based logging, metrics, and tracing
|
|
41
45
|
- `service-default{0..4}/`, `service-benchmarkify/`: Example/demo service plugins
|
|
42
|
-
- `tests/`: Mocha + ts-node test suite
|
|
43
|
-
- `lib/`: Compiled JavaScript output (generated by `tsc`)
|
|
44
|
-
- `templates/`: Scaffolding for new plugins (`plugin.ts`, `pluginClient.ts`, `events.ts`, `logger.ts`)
|
|
45
|
-
- `Dockerfile`, `entrypoint.sh`, `entrypoint.js`: Container build/runtime assets
|
|
46
|
-
- `typedoc.json`, `docs.json`, `typedoc-theme/`: API docs generation configuration/theme
|
|
47
|
-
|
|
48
|
-
### What's New in v9
|
|
49
|
-
|
|
50
|
-
v9 introduces breaking changes focused on type safety, developer experience, and cross-language support:
|
|
51
|
-
|
|
52
|
-
**Type Safety Improvements:**
|
|
53
|
-
- `createEventSchemas()` - No more `as const` required, automatic type inference
|
|
54
|
-
- Type branding - Compile-time validation that event types match categories
|
|
55
|
-
- Duplicate name detection - Warns about confusing duplicate event names
|
|
56
|
-
|
|
57
|
-
**Simplified Configuration:**
|
|
58
|
-
- `createConfigSchema()` - Single function replaces class pattern
|
|
59
|
-
- Plugin metadata - Define once, auto-generates PLUGIN_CLIENT and bsb-plugin.json
|
|
60
|
-
- Centralized schemas - All generated JSON in lib/schemas/ with JSON $ref references
|
|
61
|
-
|
|
62
|
-
**Cross-Language Support:**
|
|
63
|
-
- Type helpers - int32, int64, uuid, datetime for precise type mapping
|
|
64
|
-
- Schema export - Auto-generates JSON schemas for client code generation
|
|
65
|
-
- Multi-language clients - Generate type-safe clients in TypeScript, C#, Go, Java
|
|
66
|
-
- Cross-plugin events - Type-safe communication between plugins (no `any` types)
|
|
67
|
-
|
|
68
|
-
See [Plugin Development Guide](
|
|
69
|
-
|
|
46
|
+
- `tests/`: Mocha + ts-node test suite
|
|
47
|
+
- `lib/`: Compiled JavaScript output (generated by `tsc`)
|
|
48
|
+
- `templates/`: Scaffolding for new plugins (`plugin.ts`, `pluginClient.ts`, `events.ts`, `logger.ts`)
|
|
49
|
+
- `Dockerfile`, `entrypoint.sh`, `entrypoint.js`: Container build/runtime assets
|
|
50
|
+
- `typedoc.json`, `docs.json`, `typedoc-theme/`: API docs generation configuration/theme
|
|
51
|
+
|
|
52
|
+
### What's New in v9
|
|
53
|
+
|
|
54
|
+
v9 introduces breaking changes focused on type safety, developer experience, and cross-language support:
|
|
55
|
+
|
|
56
|
+
**Type Safety Improvements:**
|
|
57
|
+
- `createEventSchemas()` - No more `as const` required, automatic type inference
|
|
58
|
+
- Type branding - Compile-time validation that event types match categories
|
|
59
|
+
- Duplicate name detection - Warns about confusing duplicate event names
|
|
60
|
+
|
|
61
|
+
**Simplified Configuration:**
|
|
62
|
+
- `createConfigSchema()` - Single function replaces class pattern
|
|
63
|
+
- Plugin metadata - Define once, auto-generates PLUGIN_CLIENT and bsb-plugin.json
|
|
64
|
+
- Centralized schemas - All generated JSON in lib/schemas/ with JSON $ref references
|
|
65
|
+
|
|
66
|
+
**Cross-Language Support:**
|
|
67
|
+
- Type helpers - int32, int64, uuid, datetime for precise type mapping
|
|
68
|
+
- Schema export - Auto-generates JSON schemas for client code generation
|
|
69
|
+
- Multi-language clients - Generate type-safe clients in TypeScript, C#, Go, Java
|
|
70
|
+
- Cross-plugin events - Type-safe communication between plugins (no `any` types)
|
|
71
|
+
|
|
72
|
+
See [Plugin Development Guide](https://github.com/BetterCorp/better-service-base/blob/master/nodejs/PLUGIN_DEVELOPMENT.md) for migration details and examples.
|
|
73
|
+
|
|
70
74
|
### Runtime Architecture
|
|
71
75
|
The `ServiceBase` class is the primary entry point. It coordinates the framework subsystems and plugin lifecycle.
|
|
72
76
|
|
|
73
77
|
Boot flow (high level):
|
|
74
78
|
1) Construct `ServiceBase` (select mode, cwd, and controller implementations)
|
|
75
79
|
2) `init()` sequence
|
|
76
|
-
- `SBConfig.init()`
|
|
77
|
-
- `
|
|
78
|
-
- `
|
|
79
|
-
- `
|
|
80
|
-
- `SBServices.setup()` → discover service plugins from config, create instances, and map dependencies; then `SBServices.init()` respecting declared ordering
|
|
80
|
+
- `SBConfig.init()` -> choose and init configuration plugin
|
|
81
|
+
- `SBObservable.init()` -> load observable plugins (logging, metrics, tracing)
|
|
82
|
+
- `SBEvents.init()` -> load events plugins (+ always adds `events-default` first)
|
|
83
|
+
- `SBServices.setup()` -> discover service plugins from config, create instances, and map dependencies; then `SBServices.init()` respecting declared ordering
|
|
81
84
|
3) `run()` sequence
|
|
82
|
-
- Start
|
|
85
|
+
- Start observable, events, then `SBServices.run()` (ordered)
|
|
83
86
|
- Dispose config for safety, start heartbeat metric
|
|
84
87
|
4) `dispose()`
|
|
85
|
-
- Disposes services, events,
|
|
88
|
+
- Disposes services, events, observable, and config; exits the process
|
|
86
89
|
|
|
87
90
|
Timekeeping metrics are recorded for each step and logged as timers. A heartbeat counter runs hourly.
|
|
88
|
-
|
|
91
|
+
|
|
89
92
|
### Subsystems
|
|
90
93
|
- `SBConfig` (configuration)
|
|
91
94
|
- Defaults to `config-default` plugin; can be replaced via environment variables
|
|
92
|
-
- Provides resolved plugin lists: services, events,
|
|
93
|
-
- Exposes `getPluginConfig()` for per
|
|
94
|
-
- `
|
|
95
|
-
- Manages
|
|
96
|
-
-
|
|
97
|
-
- `SBMetrics` (metrics)
|
|
98
|
-
- Broadcasts metric operations (counters, gauges, histograms) and tracing (traces/spans) to all metrics plugins
|
|
95
|
+
- Provides resolved plugin lists: services, events, observable
|
|
96
|
+
- Exposes `getPluginConfig()` for per-plugin configuration
|
|
97
|
+
- `SBObservable` (observability)
|
|
98
|
+
- Manages observable plugins for logging, metrics, and tracing
|
|
99
|
+
- Routes log, metric, and trace operations via an internal bus with filtering
|
|
99
100
|
- `SBEvents` (events)
|
|
100
101
|
- Loads events plugins and always includes `events-default` as a fallback
|
|
101
102
|
- Offers APIs for broadcast, fire-and-forget, request/response, and streaming
|
|
102
103
|
- `SBServices` (services)
|
|
103
104
|
- Loads service plugins from config, re-maps declared `init/run` before/after dependencies, and initializes/runs them in order
|
|
104
|
-
|
|
105
|
-
### Plugin Resolution & Layout
|
|
106
|
-
`SBPlugins` looks for plugins in the following order (container usage prefers the first external option):
|
|
107
|
-
- Local project (dev): `src/plugins/<type>-<name>/index.ts`
|
|
108
|
-
- Local build: `lib/plugins/<type>-<name>/index.js`
|
|
109
|
-
- External plugin directory (`BSB_PLUGIN_DIR`) [preferred in container]: `<dir>/<npmPackage>/<
|
|
105
|
+
|
|
106
|
+
### Plugin Resolution & Layout
|
|
107
|
+
`SBPlugins` looks for plugins in the following order (container usage prefers the first external option):
|
|
108
|
+
- Local project (dev): `src/plugins/<type>-<name>/index.ts`
|
|
109
|
+
- Local build: `lib/plugins/<type>-<name>/index.js`
|
|
110
|
+
- External plugin directory (`BSB_PLUGIN_DIR`) [preferred in container]: `<dir>/<npmPackage>/<major>/<minor>/<micro>/lib/plugins/<type>-<name>/index.js`
|
|
110
111
|
- Node modules: `node_modules/<npmPackage>/lib/plugins/<type>-<name>/index.js`
|
|
111
|
-
|
|
112
|
+
|
|
112
113
|
Each plugin folder must export at least a `Plugin` class. Optionally export a `Config` class that extends `BSBPluginConfig` to provide validation and structured config.
|
|
113
114
|
|
|
114
|
-
Built
|
|
115
|
-
|
|
116
|
-
### Development vs Production
|
|
117
|
-
- Container runtime (production): The container runs `lib/cli.js` (bin: `bsb`) and is the supported production path.
|
|
118
|
-
- Runs `new ServiceBase(false, true, CWD)` (legacy signature
|
|
119
|
-
- Development runner: `src/dev.ts`
|
|
120
|
-
- Runs `new ServiceBase(true, false, CWD)` with file watching
|
|
121
|
-
- Creates `.bsbdevwatch` on first run; supports include/exclude patterns
|
|
122
|
-
- Interactive controls:
|
|
123
|
-
- `Ctrl+R` or typing `rs` to restart
|
|
124
|
-
- `Ctrl+C`/`Ctrl+D` to dispose and exit
|
|
125
|
-
|
|
126
|
-
### NPM Scripts
|
|
127
|
-
- `npm run dev`: Start development runner with hot-reload
|
|
128
|
-
- `npm start`: Run production CLI (`lib/cli.js` or `bsb`)
|
|
129
|
-
- `npm run tsc`: Clean and compile TypeScript to `lib/`
|
|
130
|
-
- `npm run build`: Clean
|
|
131
|
-
- `npm run build-release`: Compile using `tsconfig-release.json`
|
|
132
|
-
- `npm run lint`: ESLint over `src/`
|
|
133
|
-
- `npm test`: Mocha + NYC coverage in TS mode
|
|
134
|
-
- `npm run testDev`: Run tests without coverage (faster for development)
|
|
135
|
-
- `npm run generate-docs`: Generate TypeDoc JSON to `docs.json`
|
|
136
|
-
- API Reference: Hosted at `https://types.bsbcode.dev/nodejs/`
|
|
137
|
-
- `npm run export-schemas`: Export event schemas to `lib/schemas/{plugin-name}.json`
|
|
138
|
-
- `npm run generate-plugin-json`: Generate plugin metadata in `lib/schemas/`
|
|
139
|
-
|
|
140
|
-
### Docker
|
|
141
|
-
Multi
|
|
142
|
-
- `ENV BSB_LIVE=true`, `ENV BSB_CONTAINER=true`, `ENV BSB_PLUGIN_DIR=/mnt/plugins`
|
|
143
|
-
- Volumes: `/mnt/plugins` (external plugins), `/mnt/temp`
|
|
144
|
-
- Entrypoint runs `node lib/cli.js` as an unprivileged `node` user
|
|
145
|
-
- Optional plugin install/update at startup:
|
|
146
|
-
- `BSB_PLUGINS="@scope/plugin-a:1.2.3,@scope/plugin-b"`
|
|
147
|
-
- `BSB_PLUGIN_UPDATE=yes`
|
|
148
|
-
|
|
149
|
-
Example run (with mounted plugins directory):
|
|
150
|
-
```bash
|
|
151
|
-
docker run --rm \
|
|
152
|
-
-e BSB_PLUGINS="@bettercorp/your-plugin" \
|
|
153
|
-
-v $(pwd)/plugins:/mnt/plugins \
|
|
154
|
-
betterweb/service-base:9
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
Recommended plugin directory layout (when using `BSB_PLUGIN_DIR`):
|
|
158
|
-
```
|
|
159
|
-
/mnt/plugins/
|
|
160
|
-
@org/plugin-a/
|
|
161
|
-
|
|
162
|
-
package.json # version field used when resolving
|
|
163
|
-
lib/plugins/service-plugin-a/index.js
|
|
164
|
-
lib/plugins/logging-xyz/index.js
|
|
165
|
-
1.2.3/
|
|
115
|
+
Built-in plugin types include: `config-*`, `observable-*`, `events-*`, `service-*`.
|
|
116
|
+
|
|
117
|
+
### Development vs Production
|
|
118
|
+
- Container runtime (production): The container runs `lib/cli.js` (bin: `bsb`) and is the supported production path.
|
|
119
|
+
- Runs `new ServiceBase(false, true, CWD)` (legacy signature -> optimized for production) inside the container entrypoint.
|
|
120
|
+
- Development runner: `src/dev.ts`
|
|
121
|
+
- Runs `new ServiceBase(true, false, CWD)` with file watching
|
|
122
|
+
- Creates `.bsbdevwatch` on first run; supports include/exclude patterns
|
|
123
|
+
- Interactive controls:
|
|
124
|
+
- `Ctrl+R` or typing `rs` to restart
|
|
125
|
+
- `Ctrl+C`/`Ctrl+D` to dispose and exit
|
|
126
|
+
|
|
127
|
+
### NPM Scripts
|
|
128
|
+
- `npm run dev`: Start development runner with hot-reload
|
|
129
|
+
- `npm start`: Run production CLI (`lib/cli.js` or `bsb`)
|
|
130
|
+
- `npm run tsc`: Clean and compile TypeScript to `lib/`
|
|
131
|
+
- `npm run build`: Clean -> tsc -> tests -> generate docs -> export schemas -> generate plugin metadata
|
|
132
|
+
- `npm run build-release`: Compile using `tsconfig-release.json`
|
|
133
|
+
- `npm run lint`: ESLint over `src/`
|
|
134
|
+
- `npm test`: Mocha + NYC coverage in TS mode
|
|
135
|
+
- `npm run testDev`: Run tests without coverage (faster for development)
|
|
136
|
+
- `npm run generate-docs`: Generate TypeDoc JSON to `docs.json`
|
|
137
|
+
- API Reference: Hosted at `https://types.bsbcode.dev/nodejs/`
|
|
138
|
+
- `npm run export-schemas`: Export event schemas to `lib/schemas/{plugin-name}.json`
|
|
139
|
+
- `npm run generate-plugin-json`: Generate plugin metadata in `lib/schemas/`
|
|
140
|
+
|
|
141
|
+
### Docker
|
|
142
|
+
Multi-stage build produces a minimal runtime image:
|
|
143
|
+
- `ENV BSB_LIVE=true`, `ENV BSB_CONTAINER=true`, `ENV BSB_PLUGIN_DIR=/mnt/plugins`
|
|
144
|
+
- Volumes: `/mnt/plugins` (external plugins), `/mnt/temp`
|
|
145
|
+
- Entrypoint runs `node lib/cli.js` as an unprivileged `node` user
|
|
146
|
+
- Optional plugin install/update at startup:
|
|
147
|
+
- `BSB_PLUGINS="@scope/plugin-a:1.2.3,@scope/plugin-b"` -> installs/updates listed packages
|
|
148
|
+
- `BSB_PLUGIN_UPDATE=yes` -> runs `npm update`
|
|
149
|
+
|
|
150
|
+
Example run (with mounted plugins directory):
|
|
151
|
+
```bash
|
|
152
|
+
docker run --rm \
|
|
153
|
+
-e BSB_PLUGINS="@bettercorp/your-plugin" \
|
|
154
|
+
-v $(pwd)/plugins:/mnt/plugins \
|
|
155
|
+
betterweb/service-base:9
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Recommended plugin directory layout (when using `BSB_PLUGIN_DIR`):
|
|
159
|
+
```
|
|
160
|
+
/mnt/plugins/
|
|
161
|
+
@org/plugin-a/
|
|
162
|
+
1/2/3/
|
|
166
163
|
package.json
|
|
167
164
|
lib/plugins/service-plugin-a/index.js
|
|
165
|
+
lib/plugins/observable-xyz/index.js
|
|
168
166
|
@org/plugin-b/
|
|
169
|
-
|
|
167
|
+
2/4/1/
|
|
170
168
|
package.json
|
|
171
169
|
lib/plugins/events-abc/index.js
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
Notes
|
|
175
|
-
- In container deployments, prefer placing prebuilt plugins under `BSB_PLUGIN_DIR` as above. This avoids network installs on boot and ensures deterministic versions via versioned folders
|
|
176
|
-
- `BSB_PLUGINS` is available for dynamic `npm install` at startup, but mounting a curated plugin repository via `BSB_PLUGIN_DIR` is recommended for production.
|
|
177
|
-
|
|
178
|
-
### Environment Variables
|
|
179
|
-
- `APP_DIR`: Override working directory (mainly used in local development/testing)
|
|
180
|
-
- `BSB_PLUGIN_DIR`: External plugin repository root (e.g., container volume `/mnt/plugins`)
|
|
181
|
-
- `BSB_PLUGINS`: Comma
|
|
182
|
-
- `BSB_PLUGIN_UPDATE`: `yes|y|true` to run `npm update` at container start
|
|
183
|
-
- Config plugin override (advanced):
|
|
184
|
-
- `BSB_CONFIG_PLUGIN`: Name of config plugin (must start with `config-`)
|
|
185
|
-
- `BSB_CONFIG_PLUGIN_PACKAGE`: npm package name hosting the config plugin
|
|
186
|
-
|
|
187
|
-
### Documentation
|
|
188
|
-
|
|
189
|
-
#### Plugin Development (v9)
|
|
190
|
-
- [Plugin Development Guide](
|
|
191
|
-
- [Type System Guide](
|
|
192
|
-
|
|
193
|
-
#### API Documentation
|
|
194
|
-
- API docs are generated with TypeDoc (`typedoc.json`).
|
|
195
|
-
- `npm run generate-docs`
|
|
196
|
-
- API docs are served at `https://types.bsbcode.dev/nodejs/`
|
|
197
|
-
|
|
198
|
-
### Testing
|
|
199
|
-
- Tests: Mocha + ts-node with NYC coverage
|
|
200
|
-
- `npm test`
|
|
201
|
-
- `npm run testDev`
|
|
202
|
-
|
|
203
|
-
### Creating Plugins
|
|
204
|
-
|
|
205
|
-
**For v9 plugin development, see the [Plugin Development Guide](
|
|
206
|
-
|
|
207
|
-
Quick reference:
|
|
208
|
-
- Use `createEventSchemas()` to define typed events with compile-time validation
|
|
209
|
-
- Use `createConfigSchema()` to define plugin configuration with metadata
|
|
210
|
-
- Use cross-language type helpers (`uuid`, `int32`, `datetime`, etc.) for better code generation
|
|
211
|
-
- Plugin metadata auto-generates `PLUGIN_CLIENT` and schema files during build
|
|
212
|
-
|
|
213
|
-
At minimum, export a `Plugin` class in `lib/plugins/<type>-<name>/index.js` (or `src/plugins/.../index.ts` in dev). For configurable plugins, export a `Config` created with `createConfigSchema()`. Publish your plugin as an npm package or ship its prebuilt folder structure under `BSB_PLUGIN_DIR`.
|
|
214
|
-
|
|
215
|
-
### Quick Start (Container)
|
|
216
|
-
```bash
|
|
217
|
-
# Provide prebuilt plugins under ./plugins, matching the recommended layout
|
|
218
|
-
docker run --rm \
|
|
219
|
-
-v $(pwd)/plugins:/mnt/plugins:ro \
|
|
220
|
-
-e BSB_PLUGIN_DIR=/mnt/plugins \
|
|
221
|
-
betterweb/service-base:9
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
Local development (for contributors only):
|
|
225
|
-
```bash
|
|
226
|
-
npm install
|
|
227
|
-
npm run dev
|
|
228
|
-
```
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Notes
|
|
173
|
+
- In container deployments, prefer placing prebuilt plugins under `BSB_PLUGIN_DIR` as above. This avoids network installs on boot and ensures deterministic versions via immutable versioned folders.
|
|
174
|
+
- `BSB_PLUGINS` is available for dynamic `npm install` at startup, but mounting a curated plugin repository via `BSB_PLUGIN_DIR` is recommended for production.
|
|
175
|
+
|
|
176
|
+
### Environment Variables
|
|
177
|
+
- `APP_DIR`: Override working directory (mainly used in local development/testing)
|
|
178
|
+
- `BSB_PLUGIN_DIR`: External plugin repository root (e.g., container volume `/mnt/plugins`)
|
|
179
|
+
- `BSB_PLUGINS`: Comma-separated list of npm packages to install at container start (entrypoint.js)
|
|
180
|
+
- `BSB_PLUGIN_UPDATE`: `yes|y|true` to run `npm update` at container start
|
|
181
|
+
- Config plugin override (advanced):
|
|
182
|
+
- `BSB_CONFIG_PLUGIN`: Name of config plugin (must start with `config-`)
|
|
183
|
+
- `BSB_CONFIG_PLUGIN_PACKAGE`: npm package name hosting the config plugin
|
|
184
|
+
|
|
185
|
+
### Documentation
|
|
186
|
+
|
|
187
|
+
#### Plugin Development (v9)
|
|
188
|
+
- [Plugin Development Guide](https://github.com/BetterCorp/better-service-base/blob/master/nodejs/PLUGIN_DEVELOPMENT.md) - Complete guide for creating BSB plugins
|
|
189
|
+
- [Type System Guide](https://github.com/BetterCorp/better-service-base/blob/master/nodejs/TYPE_SYSTEM.md) - Cross-language type system reference
|
|
190
|
+
|
|
191
|
+
#### API Documentation
|
|
192
|
+
- API docs are generated with TypeDoc (`typedoc.json`).
|
|
193
|
+
- `npm run generate-docs` -> emits `docs.json`
|
|
194
|
+
- API docs are served at `https://types.bsbcode.dev/nodejs/`
|
|
195
|
+
|
|
196
|
+
### Testing
|
|
197
|
+
- Tests: Mocha + ts-node with NYC coverage
|
|
198
|
+
- `npm test` -> CI-style JSON + lcov reports (`coverage/`)
|
|
199
|
+
- `npm run testDev` -> dev-friendly TS execution
|
|
200
|
+
|
|
201
|
+
### Creating Plugins
|
|
202
|
+
|
|
203
|
+
**For v9 plugin development, see the [Plugin Development Guide](https://github.com/BetterCorp/better-service-base/blob/master/nodejs/PLUGIN_DEVELOPMENT.md) for complete examples and best practices.**
|
|
204
|
+
|
|
205
|
+
Quick reference:
|
|
206
|
+
- Use `createEventSchemas()` to define typed events with compile-time validation
|
|
207
|
+
- Use `createConfigSchema()` to define plugin configuration with metadata
|
|
208
|
+
- Use cross-language type helpers (`uuid`, `int32`, `datetime`, etc.) for better code generation
|
|
209
|
+
- Plugin metadata auto-generates `PLUGIN_CLIENT` and schema files during build
|
|
210
|
+
|
|
211
|
+
At minimum, export a `Plugin` class in `lib/plugins/<type>-<name>/index.js` (or `src/plugins/.../index.ts` in dev). For configurable plugins, export a `Config` created with `createConfigSchema()`. Publish your plugin as an npm package or ship its prebuilt folder structure under `BSB_PLUGIN_DIR`.
|
|
212
|
+
|
|
213
|
+
### Quick Start (Container)
|
|
214
|
+
```bash
|
|
215
|
+
# Provide prebuilt plugins under ./plugins, matching the recommended layout
|
|
216
|
+
docker run --rm \
|
|
217
|
+
-v $(pwd)/plugins:/mnt/plugins:ro \
|
|
218
|
+
-e BSB_PLUGIN_DIR=/mnt/plugins \
|
|
219
|
+
betterweb/service-base:9
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Local development (for contributors only):
|
|
223
|
+
```bash
|
|
224
|
+
npm install
|
|
225
|
+
npm run dev
|
|
226
|
+
```
|
package/bsb-plugin.json
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"default"
|
|
12
12
|
],
|
|
13
13
|
"documentation": [
|
|
14
|
-
"./docs/core-plugins/config-default.md"
|
|
14
|
+
"./docs/core-plugins/config-default.md",
|
|
15
|
+
"./docs/core-plugins/config-default-reference.md"
|
|
15
16
|
],
|
|
16
17
|
"pluginPath": "src/plugins/config-default/",
|
|
17
18
|
"image": "../docs/public/assets/images/bsb-logo.png",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"default"
|
|
31
32
|
],
|
|
32
33
|
"documentation": [
|
|
33
|
-
"./docs/core-plugins/events-default.md"
|
|
34
|
+
"./docs/core-plugins/events-default.md",
|
|
35
|
+
"./docs/core-plugins/events-default-patterns.md"
|
|
34
36
|
],
|
|
35
37
|
"pluginPath": "src/plugins/events-default/",
|
|
36
38
|
"image": "../docs/public/assets/images/bsb-logo.png",
|
|
@@ -50,7 +52,8 @@
|
|
|
50
52
|
"console"
|
|
51
53
|
],
|
|
52
54
|
"documentation": [
|
|
53
|
-
"./docs/core-plugins/observable-default.md"
|
|
55
|
+
"./docs/core-plugins/observable-default.md",
|
|
56
|
+
"./docs/core-plugins/observable-default-production.md"
|
|
54
57
|
],
|
|
55
58
|
"pluginPath": "src/plugins/observable-default/",
|
|
56
59
|
"image": "../docs/public/assets/images/bsb-logo.png",
|
|
@@ -44,7 +44,10 @@ exports.Config = (0, PluginConfig_1.createConfigSchema)({
|
|
|
44
44
|
version: "1.0.0",
|
|
45
45
|
image: "../docs/public/assets/images/bsb-logo.png",
|
|
46
46
|
tags: ["core", "config", "default"],
|
|
47
|
-
documentation: [
|
|
47
|
+
documentation: [
|
|
48
|
+
"./docs/core-plugins/config-default.md",
|
|
49
|
+
"./docs/core-plugins/config-default-reference.md",
|
|
50
|
+
],
|
|
48
51
|
}, ConfigSchema);
|
|
49
52
|
class Plugin extends BSBConfig_1.BSBConfig {
|
|
50
53
|
static Config = exports.Config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/config-default/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;AAEH,kCAAkC;AAClC,8BAA8B;AAC9B,+BAA6B;AAC7B,uCAQqB;AACrB,oDAAuE;AACvE,0DAA6D;AAC7D,6BAAwB;AAGxB,MAAM,YAAY,GAAG,OAAC,CAAC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,CAChB,GAAG,CAAC,KAAK,EACT,2EAA2E,EAC3E;gBACE,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;aAC3C,CACF,CAAC;QACJ,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,KAAK,CACX,wCAAwC,EAAE;YAC1C,OAAO,EAAE,IAAI,CAAC,kBAAkB;SACjC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU;QAQd,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC;aAClE,GAAG,CACF,CAAC,CAAC,EAAE,EAAE;YACJ,OAAO;gBACL,UAAU,EACR,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;gBAC9D,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM;gBACnE,IAAI,EAAE,CAAC;gBACP,OAAO,EACL,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO;oBAC5D,IAAI;aACP,CAAC;QACJ,CAAC,CACF,CAAC;IACN,CAAC;;AA3MH,wBA4MC"}
|
|
@@ -36,7 +36,10 @@ exports.Config = (0, PluginConfig_1.createConfigSchema)({
|
|
|
36
36
|
version: "1.0.0",
|
|
37
37
|
image: "../docs/public/assets/images/bsb-logo.png",
|
|
38
38
|
tags: ["core", "events", "default"],
|
|
39
|
-
documentation: [
|
|
39
|
+
documentation: [
|
|
40
|
+
"./docs/core-plugins/events-default.md",
|
|
41
|
+
"./docs/core-plugins/events-default-patterns.md",
|
|
42
|
+
],
|
|
40
43
|
});
|
|
41
44
|
class Plugin extends BSBEvents_1.BSBEvents {
|
|
42
45
|
static Config = exports.Config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/events-default/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;AAGH,qEAKmD;AAEnD,oDAAuE;AACvE,0DAA6D;AAEhD,QAAA,MAAM,GAAG,IAAA,iCAAkB,EACtC;IACE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,wDAAwD;IACrE,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,2CAA2C;IAClD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;IACnC,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/events-default/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;AAGH,qEAKmD;AAEnD,oDAAuE;AACvE,0DAA6D;AAEhD,QAAA,MAAM,GAAG,IAAA,iCAAkB,EACtC;IACE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,wDAAwD;IACrE,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,2CAA2C;IAClD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;IACnC,aAAa,EAAE;QACb,uCAAuC;QACvC,gDAAgD;KACjD;CACF,CACF,CAAC;AAEF,MAAa,MACX,SAAQ,qBAAsC;IAC9C,MAAM,CAAC,MAAM,GAAG,cAAM,CAAC;IAGb,SAAS,CAAa;IACtB,IAAI,CAAQ;IACZ,GAAG,CAAiB;IACpB,GAAG,CAA8B;IAE3C,YAAY,MAAyD;QACnE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,SAAS,GAAG,IAAI,iBAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAChD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,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACrE,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAC7B,GAAe,EACf,UAAkB,EAClB,KAAa,EACb,cAAsB,EACtB,IAAgB;QAEhB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,kBAAkB,CACtC,GAAG,EACH,UAAU,EACV,KAAK,EACL,cAAc,EACd,IAAI,CACL,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,aAAa,CACxB,GAAe,EACf,UAAkB,EAClB,KAAa,EACb,QAAqF,EACrF,cAAuB;QAEvB,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;IAClF,CAAC;IAEM,KAAK,CAAC,UAAU,CACrB,GAAe,EACf,UAAkB,EAClB,KAAa,EACb,QAAgB,EAChB,MAAgB;QAEhB,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC;;AAzGH,wBA0GC"}
|
|
@@ -67,7 +67,10 @@ exports.Config = (0, base_1.createConfigSchema)({
|
|
|
67
67
|
version: "1.0.0",
|
|
68
68
|
image: "../docs/public/assets/images/bsb-logo.png",
|
|
69
69
|
tags: ["core", "observable", "default", "console"],
|
|
70
|
-
documentation: [
|
|
70
|
+
documentation: [
|
|
71
|
+
"./docs/core-plugins/observable-default.md",
|
|
72
|
+
"./docs/core-plugins/observable-default-production.md",
|
|
73
|
+
],
|
|
71
74
|
}, zod_1.z.object({}));
|
|
72
75
|
class Plugin extends base_1.BSBObservable {
|
|
73
76
|
static Config = exports.Config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/observable-default/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;AAEH,qCAAiH;AAEjH,6BAAwB;AAExB,iCAAiC;AACjC,MAAM,eAAe,GAAG;IACtB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,SAAS;IACd,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,UAAU;IACrB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,UAAU;IACrB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,UAAU;CACX,CAAC;AAIX,MAAM,UAAU,GAAG;IACjB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAIE,QAAA,MAAM,GAAG,IAAA,yBAAkB,EACtC;IACE,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,sDAAsD;IACnE,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,2CAA2C;IAClD,IAAI,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,CAAC;IAClD,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/observable-default/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;AAEH,qCAAiH;AAEjH,6BAAwB;AAExB,iCAAiC;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GAAG,CAAC,IAAI,CAAC,CAAC;YACzG,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACvE,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED,mFAAmF;IACnF,kFAAkF;IAElF,oBAAoB;IACb,OAAO;QACZ,6CAA6C;IAC/C,CAAC;IAEM,KAAK,CAAC,IAAI;QACf,8CAA8C;IAChD,CAAC;IAEM,KAAK,CAAC,GAAG;QACd,6CAA6C;IAC/C,CAAC;;AA5FH,wBA6FC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "config-default",
|
|
3
3
|
"name": "config-default",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.4",
|
|
5
5
|
"description": "Default configuration plugin for profile and plugin resolution",
|
|
6
6
|
"category": "config",
|
|
7
7
|
"tags": [
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"default"
|
|
11
11
|
],
|
|
12
12
|
"documentation": [
|
|
13
|
-
"./docs/core-plugins/config-default.md"
|
|
13
|
+
"./docs/core-plugins/config-default.md",
|
|
14
|
+
"./docs/core-plugins/config-default-reference.md"
|
|
14
15
|
],
|
|
15
16
|
"dependencies": [],
|
|
16
17
|
"image": "../docs/public/assets/images/bsb-logo.png",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "events-default",
|
|
3
3
|
"name": "events-default",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.4",
|
|
5
5
|
"description": "Default in-process events plugin for BSB event routing",
|
|
6
6
|
"category": "events",
|
|
7
7
|
"tags": [
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"default"
|
|
11
11
|
],
|
|
12
12
|
"documentation": [
|
|
13
|
-
"./docs/core-plugins/events-default.md"
|
|
13
|
+
"./docs/core-plugins/events-default.md",
|
|
14
|
+
"./docs/core-plugins/events-default-patterns.md"
|
|
14
15
|
],
|
|
15
16
|
"dependencies": [],
|
|
16
17
|
"image": "../docs/public/assets/images/bsb-logo.png"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "observable-default",
|
|
3
3
|
"name": "observable-default",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.4",
|
|
5
5
|
"description": "Default console observable plugin for logging output",
|
|
6
6
|
"category": "observable",
|
|
7
7
|
"tags": [
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"console"
|
|
12
12
|
],
|
|
13
13
|
"documentation": [
|
|
14
|
-
"./docs/core-plugins/observable-default.md"
|
|
14
|
+
"./docs/core-plugins/observable-default.md",
|
|
15
|
+
"./docs/core-plugins/observable-default-production.md"
|
|
15
16
|
],
|
|
16
17
|
"dependencies": [],
|
|
17
18
|
"image": "../docs/public/assets/images/bsb-logo.png",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* bsb-client token generate - Generate a new API token
|
|
16
16
|
*
|
|
17
17
|
* Environment:
|
|
18
|
-
* BSB_REGISTRY_URL - Registry URL (default: https://
|
|
18
|
+
* BSB_REGISTRY_URL - Registry URL (default: https://io.bsbcode.dev)
|
|
19
19
|
* BSB_REGISTRY_TOKEN - API token for authentication
|
|
20
20
|
*/
|
|
21
21
|
export {};
|