@salesforce/graphiti 12.8.0 → 12.10.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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [12.10.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.9.0...v12.10.0) (2026-10-06)
7
+
8
+ **Note:** Version bump only for package @salesforce/graphiti
9
+
10
+ ## [12.9.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.8.0...v12.9.0) (2026-09-29)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **graphiti:** remove @modelcontextprotocol/sdk pin @W-24250036@ ([#1021](https://github.com/salesforce-experience-platform-emu/webapps/issues/1021)) ([7b10e3d](https://github.com/salesforce-experience-platform-emu/webapps/commit/7b10e3da4268bbbaff007abb0807589fc2d73ee1))
15
+
6
16
  ## [12.8.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.7.0...v12.8.0) (2026-09-23)
7
17
 
8
18
  **Note:** Version bump only for package @salesforce/graphiti
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/graphiti",
3
- "version": "12.8.0",
3
+ "version": "12.10.0",
4
4
  "description": "Progressive GraphQL query builder CLI for Salesforce orgs",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "test:coverage": "vitest run --coverage"
28
28
  },
29
29
  "dependencies": {
30
- "@modelcontextprotocol/sdk": "1.27.1",
30
+ "@modelcontextprotocol/sdk": "^1.30.0",
31
31
  "@salesforce/core": "^8.23.4",
32
32
  "commander": "^13.1.0",
33
33
  "graphql": "^16.10.0",
@@ -415,15 +415,17 @@ describe("mcp/tools/sf-gql-aggregate", () => {
415
415
  });
416
416
 
417
417
  // W-23336443: the groupBy `function` enum is a PLAIN z.union member, so it is
418
- // wrapped in enumStripControlChars (a plain enum's invalid_enum_value echoes the
419
- // received value verbatim through the SDK's upstream validation). The aggregate
420
- // `function` DISCRIMINATOR is deliberately NOT wrapped — a bad discriminator
421
- // raises invalid_union_discriminator, which lists only the expected options and
422
- // does NOT echo the input, so there is no reflection channel to close. Both
423
- // claims are proven end-to-end through the real client.callTool channel below.
418
+ // wrapped in enumStripControlChars. The aggregate `function` DISCRIMINATOR is
419
+ // deliberately NOT wrapped — a bad discriminator raises
420
+ // invalid_union_discriminator, which lists only the expected options and does
421
+ // NOT echo the input, so there is no reflection channel to close. Both claims
422
+ // are proven end-to-end through the real client.callTool channel below.
424
423
  // Oracle: assert the specific injected code points absent, not a whole-class
425
- // scan (the SDK pretty-prints issues with \p{Cc} newlines). See
426
- // sf-gql-discover.spec.ts for the full rationale.
424
+ // scan. See sf-gql-discover.spec.ts for the full rationale.
425
+ //
426
+ // W-24250036: on SDK >= 1.30.0 a nested-enum rejection surfaces as the generic
427
+ // "Invalid input at groupBy[0]" and no longer echoes the received value, so we
428
+ // assert the offending path, not the stripped token. Security unchanged.
427
429
  describe("mcp/tools/sf-gql-aggregate — control-char neutralization (W-23336443)", () => {
428
430
  const BIDI = "\u{202e}";
429
431
  const ZWSP = "\u{200b}";
@@ -469,7 +471,8 @@ describe("mcp/tools/sf-gql-aggregate — control-char neutralization (W-23336443
469
471
  expect(text).not.toContain(BIDI);
470
472
  expect(text).not.toContain(ZWSP);
471
473
  expect(text).not.toContain(DEL);
472
- expect(text).toContain("bogus");
474
+ // SDK >= 1.30.0 reflects the path, not the value (see block comment).
475
+ expect(text).toContain("groupBy");
473
476
  } finally {
474
477
  await client.close();
475
478
  await server.close();