@sentry/junior-plugin-api 0.123.0 → 0.124.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/README.md +4 -3
- package/dist/index.js +5 -0
- package/package.json +1 -1
- package/src/registration.ts +5 -0
package/README.md
CHANGED
|
@@ -88,9 +88,10 @@ routing, response validation, rendering, confirmation, and query state.
|
|
|
88
88
|
Register plugin-owned event definitions through `conversationEvents`. A
|
|
89
89
|
definition owns one local name, version, content schema, and `renderEvent()`
|
|
90
90
|
projection. The active plugin context supplies the namespace, so plugins cannot
|
|
91
|
-
emit native events or impersonate another plugin.
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
emit native events or impersonate another plugin. The `junior` plugin name is
|
|
92
|
+
reserved for host-owned native events. Stored events remain durable when a
|
|
93
|
+
plugin is removed, but normal transcript projection skips definitions that are
|
|
94
|
+
not currently registered.
|
|
94
95
|
|
|
95
96
|
## Database
|
|
96
97
|
|
package/dist/index.js
CHANGED
|
@@ -570,6 +570,11 @@ function defineJuniorPlugin(plugin) {
|
|
|
570
570
|
`Junior plugin registration name "${name}" must be a lowercase plugin identifier.`
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
|
+
if (name === "junior") {
|
|
574
|
+
throw new Error(
|
|
575
|
+
'Junior plugin registration name "junior" is reserved for native host events.'
|
|
576
|
+
);
|
|
577
|
+
}
|
|
573
578
|
if (typeof manifest.displayName !== "string" || !manifest.displayName.trim()) {
|
|
574
579
|
throw new Error(
|
|
575
580
|
`Junior plugin "${name}" manifest.displayName is required.`
|
package/package.json
CHANGED
package/src/registration.ts
CHANGED
|
@@ -55,6 +55,11 @@ export function defineJuniorPlugin(
|
|
|
55
55
|
`Junior plugin registration name "${name}" must be a lowercase plugin identifier.`,
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
+
if (name === "junior") {
|
|
59
|
+
throw new Error(
|
|
60
|
+
'Junior plugin registration name "junior" is reserved for native host events.',
|
|
61
|
+
);
|
|
62
|
+
}
|
|
58
63
|
if (
|
|
59
64
|
typeof manifest.displayName !== "string" ||
|
|
60
65
|
!manifest.displayName.trim()
|