@terreno/api 58.0.0 → 58.0.2
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/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,23 @@ 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.0.2] - 2026-11-09
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- Patch the remaining critical and high security advisories in Terreno's dependency tree. `@terreno/ui` now asks for `@react-navigation/native` `^7.5.1`, whose `@react-navigation/core` no longer pulls in the vulnerable `decode-uri-component` (#1693). The docs site moves to tinypool 2.2.0 (critical) and serialize-javascript 7.1.4 (#1690, #1691), Metro's stale nested copy no longer brings in image-size 1.x (#1694), and rulesync 43.8.0 drops its pinned zod 4.6.5 (#1695). Dependabot now opens one security PR per advisory instead of one grouped PR per package block (#1689). Expo tooling still carries zod 3.25.76, which has no fixed 3.x release.
|
|
28
|
+
|
|
29
|
+
## [58.0.1] - 2026-11-09
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- `@terreno/api/sentry` exports `SENTRY_V10_DATA_COLLECTION`, a Sentry 11 `dataCollection` setting that keeps Sentry 10's privacy defaults: no cookies, user info, database query data, HTTP bodies, or AI inputs and outputs, and IP-like headers and query params denied. Pass it to `Sentry.init({dataCollection})`. (#1687)
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Patch security advisories in Terreno's dependencies: Better Auth 1.7.7 (critical), multer 2.5.0, `@modelcontextprotocol/node` 2.1.2, `@modelcontextprotocol/sdk` 1.32.2, markdown-it 14.3.3, `@hono/node-server` 2.1.3, smol-toml 1.9.1, csv-parse 7, plus in-range lockfile fixes (undici, zod, dompurify, body-parser, qs, follow-redirects, and others). `bun audit` drops from 111 advisories to 15, all in transitive build and dev tooling. (#1687)
|
|
38
|
+
- Upgrade to Sentry 11 and Biome 2.5.13. (#1687)
|
|
39
|
+
|
|
23
40
|
## [58.0.0] - 2026-11-06
|
|
24
41
|
|
|
25
42
|
### Breaking
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BunOptions } from "@sentry/bun";
|
|
2
|
+
/**
|
|
3
|
+
* Sentry v11 collects more request/user data by default than v10 did with `sendDefaultPii` unset.
|
|
4
|
+
* Use this baseline anywhere `@sentry/bun` v11 is initialized so behavior matches the prior major.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SENTRY_V10_DATA_COLLECTION: NonNullable<BunOptions["dataCollection"]>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SENTRY_V10_DATA_COLLECTION = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Sentry v11 collects more request/user data by default than v10 did with `sendDefaultPii` unset.
|
|
6
|
+
* Use this baseline anywhere `@sentry/bun` v11 is initialized so behavior matches the prior major.
|
|
7
|
+
*/
|
|
8
|
+
exports.SENTRY_V10_DATA_COLLECTION = {
|
|
9
|
+
cookies: false,
|
|
10
|
+
databaseQueryData: false,
|
|
11
|
+
genAI: { inputs: false, outputs: false },
|
|
12
|
+
graphQL: { document: false, variables: false },
|
|
13
|
+
httpBodies: [],
|
|
14
|
+
httpHeaders: {
|
|
15
|
+
request: { deny: ["forwarded", "-ip", "remote-", "via", "-user"] },
|
|
16
|
+
response: { deny: ["forwarded", "-ip", "remote-", "via", "-user"] },
|
|
17
|
+
},
|
|
18
|
+
urlQueryParams: { deny: ["forwarded", "-ip", "remote-", "via", "-user"] },
|
|
19
|
+
userInfo: false,
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@asteasolutions/zod-to-openapi": "^9.1.0",
|
|
11
11
|
"@better-auth/expo": "^1.6.25",
|
|
12
|
-
"@better-auth/passkey": "1.7.
|
|
13
|
-
"@modelcontextprotocol/node": "^2.
|
|
12
|
+
"@better-auth/passkey": "1.7.7",
|
|
13
|
+
"@modelcontextprotocol/node": "^2.1.2",
|
|
14
14
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
15
15
|
"@sentry/bun": "^11.0.0",
|
|
16
|
-
"@terreno/test": "58.0.
|
|
16
|
+
"@terreno/test": "58.0.2",
|
|
17
17
|
"@thream/socketio-jwt": "^3.1.4",
|
|
18
18
|
"@types/qs": "^6.14.0",
|
|
19
19
|
"ajv": "8.20.0",
|
|
20
20
|
"ajv-formats": "^3.0.1",
|
|
21
21
|
"ajv-keywords": "^5.1.0",
|
|
22
22
|
"axios": "^1.13.2",
|
|
23
|
-
"better-auth": "^1.
|
|
23
|
+
"better-auth": "^1.7.7",
|
|
24
24
|
"cors": "^2.8.5",
|
|
25
25
|
"cron": "^4.3.4",
|
|
26
26
|
"express": "^5.2.1",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"description": "REST API framework for Express/Mongoose (modelRouter, auth, OpenAPI) — part of Terreno, the batteries-included TypeScript framework for universal apps.",
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@biomejs/biome": "
|
|
52
|
+
"@biomejs/biome": "2.5.13",
|
|
53
53
|
"@modelcontextprotocol/client": "^2.0.0",
|
|
54
|
-
"@terreno/syncdb": "58.0.
|
|
54
|
+
"@terreno/syncdb": "58.0.2",
|
|
55
55
|
"@types/bun": "^1.4.0",
|
|
56
56
|
"@types/cors": "^2.8.17",
|
|
57
57
|
"@types/express": "^5.0.6",
|
|
@@ -77,6 +77,10 @@
|
|
|
77
77
|
"default": "./dist/index.js",
|
|
78
78
|
"types": "./dist/index.d.ts"
|
|
79
79
|
},
|
|
80
|
+
"./sentry": {
|
|
81
|
+
"default": "./dist/sentryV10DataCollection.js",
|
|
82
|
+
"types": "./dist/sentryV10DataCollection.d.ts"
|
|
83
|
+
},
|
|
80
84
|
"./testing": {
|
|
81
85
|
"default": "./dist/tests.js",
|
|
82
86
|
"types": "./dist/tests.d.ts"
|
|
@@ -148,5 +152,5 @@
|
|
|
148
152
|
"updateSnapshot": "bun test --update-snapshots"
|
|
149
153
|
},
|
|
150
154
|
"types": "dist/index.d.ts",
|
|
151
|
-
"version": "58.0.
|
|
155
|
+
"version": "58.0.2"
|
|
152
156
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {describe, expect, it} from "bun:test";
|
|
2
|
+
|
|
3
|
+
import {SENTRY_V10_DATA_COLLECTION} from "./sentryV10DataCollection";
|
|
4
|
+
|
|
5
|
+
describe("SENTRY_V10_DATA_COLLECTION", () => {
|
|
6
|
+
it("turns off the data Sentry 11 collects by default", () => {
|
|
7
|
+
expect(SENTRY_V10_DATA_COLLECTION.cookies).toBe(false);
|
|
8
|
+
expect(SENTRY_V10_DATA_COLLECTION.userInfo).toBe(false);
|
|
9
|
+
expect(SENTRY_V10_DATA_COLLECTION.databaseQueryData).toBe(false);
|
|
10
|
+
expect(SENTRY_V10_DATA_COLLECTION.httpBodies).toEqual([]);
|
|
11
|
+
expect(SENTRY_V10_DATA_COLLECTION.genAI).toEqual({inputs: false, outputs: false});
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it("denies IP-like headers and query params", () => {
|
|
15
|
+
const denied = ["forwarded", "-ip", "remote-", "via", "-user"];
|
|
16
|
+
expect(SENTRY_V10_DATA_COLLECTION.httpHeaders).toEqual({
|
|
17
|
+
request: {deny: denied},
|
|
18
|
+
response: {deny: denied},
|
|
19
|
+
});
|
|
20
|
+
expect(SENTRY_V10_DATA_COLLECTION.urlQueryParams).toEqual({deny: denied});
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type {BunOptions} from "@sentry/bun";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sentry v11 collects more request/user data by default than v10 did with `sendDefaultPii` unset.
|
|
5
|
+
* Use this baseline anywhere `@sentry/bun` v11 is initialized so behavior matches the prior major.
|
|
6
|
+
*/
|
|
7
|
+
export const SENTRY_V10_DATA_COLLECTION: NonNullable<BunOptions["dataCollection"]> = {
|
|
8
|
+
cookies: false,
|
|
9
|
+
databaseQueryData: false,
|
|
10
|
+
genAI: {inputs: false, outputs: false},
|
|
11
|
+
graphQL: {document: false, variables: false},
|
|
12
|
+
httpBodies: [],
|
|
13
|
+
httpHeaders: {
|
|
14
|
+
request: {deny: ["forwarded", "-ip", "remote-", "via", "-user"]},
|
|
15
|
+
response: {deny: ["forwarded", "-ip", "remote-", "via", "-user"]},
|
|
16
|
+
},
|
|
17
|
+
urlQueryParams: {deny: ["forwarded", "-ip", "remote-", "via", "-user"]},
|
|
18
|
+
userInfo: false,
|
|
19
|
+
};
|