@sentry/junior-plugin-api 0.239.0 → 0.241.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 CHANGED
@@ -66,7 +66,8 @@ reports, and other typed hook surfaces exported by this package.
66
66
  one subject user on a person profile. Core owns viewer authorization,
67
67
  collection, sanitization, and browser rendering.
68
68
  - Tool hooks may resolve the active Actor's Identity and User through
69
- `ctx.users.resolveActor()`.
69
+ `ctx.users.resolveActor()`, and the Actor's timezone through
70
+ `ctx.users.resolveTimezone()`.
70
71
  - Authenticated API route hooks receive `ctx.users.resolve(email)` for lazy
71
72
  User lookup. Routes that do not need User data do not query identity storage.
72
73
  - User page readers receive the signed-in `User`. Plugins return limited data.
package/dist/index.d.ts CHANGED
@@ -2172,6 +2172,11 @@ interface BaseToolRegistrationHookContext extends PluginContext {
2172
2172
  identity: Identity;
2173
2173
  user?: User;
2174
2174
  } | undefined>;
2175
+ /**
2176
+ * Resolve the current actor's IANA timezone. Uses their profile when
2177
+ * Junior knows it, else the install default. Always returns a timezone.
2178
+ */
2179
+ resolveTimezone(): Promise<string>;
2175
2180
  };
2176
2181
  userText?: string;
2177
2182
  workspaces: PluginWorkspaceToolContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.239.0",
3
+ "version": "0.241.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"