@sentry/junior-sentry 0.266.0 → 0.267.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.
|
@@ -13,6 +13,7 @@ function sentryProjectsMatchFields(events) {
|
|
|
13
13
|
return eventMatchFieldsSchema.parse({
|
|
14
14
|
projects: {
|
|
15
15
|
kind: "string",
|
|
16
|
+
case: "lower",
|
|
16
17
|
list: true,
|
|
17
18
|
description: "lowercase Sentry project slugs, such as junior; an issue has one, a metric alert has the projects of its rule",
|
|
18
19
|
events
|
package/dist/events/issue.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const SENTRY_ISSUE_MATCH_FIELDS: Record<string, {
|
|
|
10
10
|
description: string;
|
|
11
11
|
enum?: string[] | undefined;
|
|
12
12
|
list?: true | undefined;
|
|
13
|
+
case?: "lower" | "upper" | undefined;
|
|
13
14
|
events?: string[] | undefined;
|
|
14
15
|
}>;
|
|
15
16
|
/** Build the stable Sentry issue identity shared by tools and webhooks. */
|
|
@@ -13,6 +13,7 @@ export declare const SENTRY_METRIC_ALERT_MATCH_FIELDS: Record<string, {
|
|
|
13
13
|
description: string;
|
|
14
14
|
enum?: string[] | undefined;
|
|
15
15
|
list?: true | undefined;
|
|
16
|
+
case?: "lower" | "upper" | undefined;
|
|
16
17
|
events?: string[] | undefined;
|
|
17
18
|
}>;
|
|
18
19
|
/** The identifier shape that `sentryMetricAlertResource` builds. */
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SENTRY_METRIC_ALERT_SUGGESTED_EVENTS,
|
|
8
8
|
createSentryWebhookRoute,
|
|
9
9
|
sentryWebhookSecret
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6QQNR5HC.js";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
import {
|
|
@@ -130,6 +130,14 @@ function sentryPlugin() {
|
|
|
130
130
|
matchFields: SENTRY_METRIC_ALERT_MATCH_FIELDS
|
|
131
131
|
}
|
|
132
132
|
],
|
|
133
|
+
// One install is one Sentry org. Issue and metric alert events carry
|
|
134
|
+
// alert facts, and Junior adds nothing to Sentry, so they can run for
|
|
135
|
+
// every project. Use the `projects` filter to narrow them.
|
|
136
|
+
events: Object.fromEntries(
|
|
137
|
+
[...SENTRY_ISSUE_EVENTS, ...SENTRY_METRIC_ALERT_EVENTS].map(
|
|
138
|
+
(eventType) => [eventType, { reach: "all" }]
|
|
139
|
+
)
|
|
140
|
+
),
|
|
133
141
|
isEnabled: () => Boolean(sentryWebhookSecret()),
|
|
134
142
|
normalizeIdentifier: (identifier) => identifier.toLowerCase()
|
|
135
143
|
},
|
package/dist/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-sentry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.267.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"zod": "^4.5.4",
|
|
30
|
-
"@sentry/junior-plugin-api": "0.
|
|
30
|
+
"@sentry/junior-plugin-api": "0.267.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@oxlint/plugins": "1.79.0",
|