@terreno/announcements 58.1.1 → 58.3.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -20,6 +20,34 @@ Upgrade notes for consumer action live in [`mcp-server/src/docs/upgrades/`](mcp-
20
20
 
21
21
  Unreleased changes live in [`changelog/unreleased/`](changelog/unreleased/). Add one Markdown file per feature (see that directory's README) instead of editing this section.
22
22
 
23
+ ## [58.3.0] - 2026-11-28
24
+
25
+ ### Added
26
+
27
+ - `@terreno/api` exports `initErrorTracking(options?)` (import it from `@terreno/api/sentry`, which loads neither Express nor Mongoose), an opt-in helper that starts `@sentry/bun` for Sentry or any Sentry-protocol server such as a self-hosted GlitchTip. It does nothing without a DSN (`SENTRY_DSN`), tags events with an environment (`SENTRY_ENVIRONMENT`, `ERROR_TRACKING_ENVIRONMENT` or `NODE_ENV`) and a release (`SENTRY_RELEASE` or `RELEASE`), turns tracing off, collects no user data, and redacts the `Authorization`, `Cookie` and `Set-Cookie` headers and any field named like `token`, `secret` or `password` before an event leaves the process. `redactSensitiveEvent` is exported for apps with their own `beforeSend`. Existing `Sentry.init` calls are unaffected. See [Track errors with Sentry or GlitchTip](docs/how-to/error-tracking.md).
28
+ - `@terreno/syncdb/errorTracking` exports `initErrorTracking(options?)`, the Expo and web counterpart of the API helper. It starts `@sentry/react` on web and `@sentry/react-native` on native (the SDK import is a platform file, so a web bundle never contains `@sentry/react-native`). Web reads the DSN from the runtime config Pier serves at `/pier-config.js` (`window.__PIER_CONFIG__.public.EXPO_PUBLIC_SENTRY_DSN`) before `EXPO_PUBLIC_SENTRY_DSN`; native reads `EXPO_PUBLIC_SENTRY_DSN` only. It turns personal data and tracing off, redacts credentials from events, and does nothing without a DSN. `captureApiError` and `isExternalTrackingDisabled` honor the server's `disableExternalErrorTracking`, and an unhandled `ApiError` carrying it is dropped. `@sentry/react` and `@sentry/react-native` are optional peer dependencies. See [Track errors with Sentry or GlitchTip](docs/how-to/error-tracking.md).
29
+
30
+ ### Fixed
31
+
32
+ - `@terreno/test`: `authAsUser` now accepts a served app's URL (a string) as well as an Express app, and keeps one loopback server per agent. Previously a URL threw `The "options" argument must be of type object`, and two concurrent streaming requests on one agent dropped the second when the first finished.
33
+
34
+ ## [58.2.0] - 2026-11-24
35
+
36
+ ### Added
37
+
38
+ - `@terreno/api` MCP OAuth accepts Client ID Metadata Documents, so a Claude.ai connector can use "Use Claude's published identity" with no client to create. List the accepted ids in `mcpOAuth.clientIdMetadataDocuments.allowedClientIds` (for example `https://claude.ai/oauth/mcp-oauth-client-metadata`). `/oauth/authorize` fetches an allowlisted id's document with no redirects, a 5 second timeout, and a 16 KiB cap, caches it for 10 minutes, and stores it as a public `McpOAuthClient` (`McpOAuthClient.upsertFromMetadataDocument`). The metadata then has `client_id_metadata_document_supported: true`. A revoked metadata-document client stays revoked, and no other URL is ever fetched.
39
+ - `mcpOAuth.consent.mode: "builtin"` serves a consent page from the API at `/oauth/consent/:request`. It asks for email, password, and an authenticator code on every approval, checks them against Better Auth in-process without creating a session, refuses a reused code, and locks consent for an email after five failures in 15 minutes (`McpOAuthConsentAttempt`). `consentUrl` is optional in this mode. It needs a `BetterAuthApp` whose config sets `twoFactor`.
40
+ - `mcpOAuth.consent.requireAdmin` and `requireTwoFactor` limit who may approve a connection. The JSON approve endpoint answers 403 to anyone else and leaves the request pending; the built-in page shows an error.
41
+ - `GET /oauth/authorize/:request` and the approve endpoint now refuse a client revoked after authorize with 400 `The client was revoked`.
42
+
43
+ ### Changed
44
+
45
+ - `@terreno/ui` default `primary500` is `#0C80A7`. `primary300` stays `#40B8E0` and `primary400` stays `#0E9DCD`. Light-mode `surface.primary` still maps to `primary400`. New `surface.primaryDark` maps to `primary500` in light mode and `primary300` in dark mode. Primary `Button` fills use `surface.primaryDark` (`#0C80A7` in light mode, `#40B8E0` in dark mode), including the active fill for variants other than primary and destructive. Dark-mode `border.ai` follows `primary500`, so it is `#0C80A7`. `IconButton`, `Slider`, and `DataTable` still use `surface.primary`. Custom theme configs may omit `surface.primaryDark`. Theme resolution copies `surface.primary` into that role, and `Button` uses `surface.primary` when a computed theme has no `primaryDark`, so older custom themes keep a primary fill.
46
+
47
+ ### Fixed
48
+
49
+ - `@terreno/admin-spa` publishes with its web export again. 58.1.1 shipped without `dist/`, so `AdminSpaServeApp` answered `/console` with 503. Both release paths (CircleCI `publish-release` and the GitHub `publish-on-tag` fallback) now run `build:web` before `npm publish`, and refuse to publish when `dist/server/_expo/routes.json` or `dist/client/_expo` is missing.
50
+
23
51
  ## [58.1.1] - 2026-11-21
24
52
 
25
53
  ### Added
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "url": "https://github.com/TerrenoLabs/terreno/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@terreno/api": "58.1.1",
7
+ "@terreno/api": "58.3.0",
8
8
  "express": "^5.2.1",
9
9
  "luxon": "^3.7.2"
10
10
  },
11
11
  "description": "In-app product update announcements plugin for @terreno/api — part of Terreno, the batteries-included TypeScript framework for universal apps.",
12
12
  "devDependencies": {
13
13
  "@biomejs/biome": "2.5.13",
14
- "@terreno/test": "58.1.1",
14
+ "@terreno/test": "58.3.0",
15
15
  "@types/bun": "^1.4.0",
16
16
  "@types/express": "^5.0.6",
17
17
  "@types/supertest": "^7.2.0",
@@ -55,5 +55,5 @@
55
55
  "typecheck": "tsc -p tsconfig.typecheck.json"
56
56
  },
57
57
  "types": "dist/index.d.ts",
58
- "version": "58.1.1"
58
+ "version": "58.3.0"
59
59
  }