@cyanheads/browser-compat-mcp-server 0.3.0 → 0.3.1

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 (31) hide show
  1. package/AGENTS.md +4 -4
  2. package/CLAUDE.md +4 -4
  3. package/README.md +10 -10
  4. package/THIRD_PARTY_NOTICES.md +5 -5
  5. package/changelog/0.3.x/0.3.1.md +36 -0
  6. package/changelog/template.md +10 -3
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts +1 -0
  10. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js +31 -7
  12. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts.map +1 -1
  14. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js +49 -36
  15. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
  16. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +1 -1
  17. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.d.ts.map +1 -1
  18. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +5 -13
  19. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
  20. package/dist/services/bcd/bcd-service.d.ts +7 -3
  21. package/dist/services/bcd/bcd-service.d.ts.map +1 -1
  22. package/dist/services/bcd/bcd-service.js +9 -3
  23. package/dist/services/bcd/bcd-service.js.map +1 -1
  24. package/dist/services/targets/targets-service.d.ts +20 -3
  25. package/dist/services/targets/targets-service.d.ts.map +1 -1
  26. package/dist/services/targets/targets-service.js +48 -11
  27. package/dist/services/targets/targets-service.js.map +1 -1
  28. package/dist/services/targets/types.d.ts +23 -6
  29. package/dist/services/targets/types.d.ts.map +1 -1
  30. package/package.json +12 -12
  31. package/server.json +3 -3
@@ -5,19 +5,36 @@
5
5
  */
6
6
  /**
7
7
  * Why a query target was not evaluated. The first two come from mapping the
8
- * token onto a release; `no_bcd_data` means a compared key records nothing for
9
- * the mapped browser, `no_feature_level_data` means a feature judged on
10
- * web-features' feature-level support has no answer for it (a non-core browser,
11
- * or a release before a `≤` bound), and `no_comparable_feature` means the call
12
- * held no feature that could be compared at all.
8
+ * token onto a release; `no_bcd_data` means a compared key's data does not
9
+ * establish support either way for the target (the key records nothing for the
10
+ * browser, or the target sits before a `≤` bound), `no_feature_level_data` means
11
+ * a feature judged on web-features' feature-level support has no answer for it
12
+ * (a non-core browser, or a release before a `≤` bound), and
13
+ * `no_comparable_feature` means the call held no feature that could be compared
14
+ * at all.
13
15
  */
14
16
  export type UncheckedReason = 'no_bcd_browser' | 'unknown_version' | 'no_bcd_data' | 'no_feature_level_data' | 'no_comparable_feature';
15
- /** A browserslist token that mapped onto a concrete BCD release. */
17
+ /** One BCD release a target covers: its ordinal, and its version or `null` before every release. */
18
+ export interface SpannedRelease {
19
+ index: number;
20
+ version: string | null;
21
+ }
22
+ /**
23
+ * A browserslist token that mapped onto a concrete BCD release. `bcd_version`
24
+ * and `bcd_release_index` name the release the token maps to — for a grouped
25
+ * token such as `15.0-15.1`, its lower endpoint's.
26
+ */
16
27
  export interface ResolvedTarget {
17
28
  agent: string;
18
29
  bcd_browser: string;
19
30
  bcd_release_index: number;
20
31
  bcd_version: string | null;
32
+ /**
33
+ * Every BCD release the token covers, oldest first: the release it maps to,
34
+ * then for a grouped token each listed release through the one its upper
35
+ * endpoint maps to. Judged release by release; never an output field.
36
+ */
37
+ span: readonly SpannedRelease[];
21
38
  version_token: string;
22
39
  }
23
40
  /** A browserslist token the server declined to claim a verdict for. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/targets/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,iBAAiB,GACjB,aAAa,GACb,uBAAuB,GACvB,uBAAuB,CAAC;AAE5B,oEAAoE;AACpE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/targets/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,iBAAiB,GACjB,aAAa,GACb,uBAAuB,GACvB,uBAAuB,CAAC;AAE5B,oGAAoG;AACpG,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,IAAI,EAAE,SAAS,cAAc,EAAE,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/browser-compat-mcp-server",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "mcpName": "io.github.cyanheads/browser-compat-mcp-server",
5
5
  "description": "Browser compatibility and Baseline status for any web feature — offline, from MDN's browser-compat-data, web-features, and caniuse. STDIO or Streamable HTTP.",
6
6
  "type": "module",
@@ -75,32 +75,32 @@
75
75
  "license": "Apache-2.0",
76
76
  "packageManager": "bun@1.4.4",
77
77
  "engines": {
78
- "bun": ">=1.4.0",
78
+ "bun": ">=1.4.4",
79
79
  "node": ">=24.0.0"
80
80
  },
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
84
  "dependencies": {
85
- "@cyanheads/mcp-ts-core": "^0.13.18",
86
- "@mdn/browser-compat-data": "^8.1.7",
87
- "browserslist": "^4.29.4",
88
- "caniuse-lite": "^1.0.30001819",
85
+ "@cyanheads/mcp-ts-core": "^0.13.22",
86
+ "@mdn/browser-compat-data": "^8.1.8",
87
+ "browserslist": "^4.29.5",
88
+ "caniuse-lite": "^1.0.30001823",
89
89
  "pino-pretty": "^13.2.0",
90
- "web-features": "^3.44.0",
90
+ "web-features": "^3.45.0",
91
91
  "zod": "^4.6.7"
92
92
  },
93
93
  "devDependencies": {
94
- "@biomejs/biome": "2.6.3",
94
+ "@biomejs/biome": "2.6.6",
95
95
  "@socketsecurity/bun-security-scanner": "^1.1.3",
96
- "@types/node": "26.6.5",
97
- "@vitest/coverage-istanbul": "5.0.5",
96
+ "@types/node": "26.6.6",
97
+ "@vitest/coverage-istanbul": "5.1.0",
98
98
  "depcheck": "^1.4.7",
99
99
  "fast-check": "^4.10.2",
100
100
  "ignore": "^7.0.14",
101
- "tsc-alias": "^1.9.9",
101
+ "tsc-alias": "^1.9.10",
102
102
  "typescript": "^7.0.2",
103
- "vitest": "^5.0.5"
103
+ "vitest": "^5.1.0"
104
104
  },
105
105
  "author": "Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)",
106
106
  "funding": [
package/server.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/cyanheads/browser-compat-mcp-server.git",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.3.0",
9
+ "version": "0.3.1",
10
10
  "remotes": [
11
11
  {
12
12
  "type": "streamable-http",
@@ -19,7 +19,7 @@
19
19
  "registryBaseUrl": "https://registry.npmjs.org",
20
20
  "identifier": "@cyanheads/browser-compat-mcp-server",
21
21
  "runtimeHint": "npx",
22
- "version": "0.3.0",
22
+ "version": "0.3.1",
23
23
  "environmentVariables": [
24
24
  {
25
25
  "name": "MCP_LOG_LEVEL",
@@ -38,7 +38,7 @@
38
38
  "registryBaseUrl": "https://registry.npmjs.org",
39
39
  "identifier": "@cyanheads/browser-compat-mcp-server",
40
40
  "runtimeHint": "npx",
41
- "version": "0.3.0",
41
+ "version": "0.3.1",
42
42
  "environmentVariables": [
43
43
  {
44
44
  "name": "MCP_TRANSPORT_TYPE",