Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 18, 2025

Summary

This PR implements a comprehensive browser compatibility data system following the @mdn/browser-compat-data structure to properly document JSAR Runtime's Web API support. The implementation adds missing JSON files and updates the compatibility dashboard to handle the new data structure.

Changes Made

📁 New Browser Compatibility Data Files

Added 22 new JSON files following MDN's browser-compat-data structure:

Web APIs:

  • Console.json - Console API methods (log, error, warn, etc.)
  • Event.json - Event interface and properties
  • EventTarget.json - Event handling methods
  • Geolocation.json - Geolocation API
  • Navigator.json - Navigator interface properties
  • Storage.json - localStorage/sessionStorage APIs
  • Window.json - Window object methods and properties
  • XMLHttpRequest.json - AJAX request capabilities

CSS Properties:

  • color.json, display.json, height.json, position.json, width.json

HTML Elements:

  • a.json, button.json, form.json, h1.json, h2.json, h3.json, input.json, style.json, title.json

🔧 Data Structure

Each file follows the MDN schema with:

{
  "api_name": {
    "__compat": {
      "mdn_url": "https://developer.mozilla.org/docs/Web/API/...",
      "spec_url": "https://...",
      "support": {
        "jsar": {
          "version_added": false  // or specific version like "0.6.0"
        }
      },
      "status": {
        "experimental": false,
        "standard_track": true,
        "deprecated": false
      }
    }
  }
}

📊 Dashboard Results

The browser compatibility dashboard now shows:

  • 131 total APIs tracked across categories
  • 122 stable APIs with production-ready implementations
  • 8 experimental APIs under development
  • Proper search and filtering functionality
  • Version-based compatibility tracking

🖼️ Screenshot

JSAR Browser Compatibility Dashboard

The updated dashboard displays all APIs organized by category with:

  • Search functionality for finding specific APIs
  • Filter options by category and minimum version
  • Compatibility overview with statistics
  • API support charts across JSAR Runtime versions
  • Detailed API reference with MDN and specification links

Testing

✅ Verified the browser compatibility page loads correctly
✅ Confirmed search and filtering work as expected
✅ Validated JSON structure matches MDN browser-compat-data format
✅ Tested that all 131 APIs are properly categorized and displayed

Impact

This implementation provides:

  • Standardized documentation of JSAR's Web API support
  • Better developer experience with searchable compatibility data
  • Foundation for tracking API support across JSAR versions
  • Alignment with web standards documentation practices

Fixes the missing browser compatibility data structure and ensures developers can easily understand which Web APIs are supported in JSAR Runtime.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • registry.npmmirror.com
    • Triggering command: npm install @mdn/browser-compat-data (dns block)
    • Triggering command: npm install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…wser-compat-data structure

Co-authored-by: yorkie <1935767+yorkie@users.noreply.github.com>
Copilot AI changed the title [WIP] Following @mdn/browser-compat-data to add missing json files in /docs/api/browser-compat-data, and remove other browsers supported data and set jsar not supported like: "support": { "jsar": { "version_added": false ... Implement MDN-compatible browser compatibility data structure for JSAR Runtime Jul 18, 2025
Copilot AI requested a review from yorkie July 18, 2025 21:26
@yorkie yorkie marked this pull request as ready for review July 18, 2025 21:31
@yorkie yorkie merged commit 1838b4d into main Jul 18, 2025
2 checks passed
@yorkie yorkie deleted the copilot/fix-dec0fff0-1d16-47a9-83b9-f2349f6aa6f0 branch July 18, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants