Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NativeScript/runtime-common
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3f8261b
Choose a base ref
...
head repository: NativeScript/runtime-common
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac7baf5
Choose a head ref
  • 2 commits
  • 17 files changed
  • 1 contributor

Commits on Dec 5, 2026

  1. feat(http): lift the HTTP module loader's policy into the core

    Response classification (MIME rules, failure texts, the empty-module
    rule), the remote-module allowlist, registry-key canonicalization and
    fetch host classes, moved from both runtimes' HttpLoader with identical
    behavior and failure texts. The core reaches the runtime through
    link-time platform functions (ns/Platform.h): logging, trace categories,
    and the runtime's URL normalization and origin.
    
    Host tests link a fake platform.
    edusperoni committed Dec 5, 2026
    Configuration menu
    Copy the full SHA
    e953c56 View commit details
    Browse the repository at this point in the history
  2. feat(http): own the module fetch orchestration behind a transport seam

    The core now runs every HTTP module fetch and a platform transport only
    performs single attempts (ns/http/ModuleTransport.h): the gate, the
    request headers, timeouts, the single transport-error retry, deadline
    clamping, the synchronous fallback's wait bound, classification, the
    cache switch with its holders, and Clear-Site-Data. Transports that block
    run on fetch threads capped per host class; transports that schedule
    themselves get their retry delay from a core timer thread.
    
    Decisions D1-D10 from the design (docs/DESIGN.md section 7 D), including
    changes from today's runtimes:
    - the gate is re-checked against the URL a redirect ended at;
    - User-Agent: NativeScript-HTTP-ESM on every transport;
    - Clear-Site-Data clears the response and the fetching origin;
    - failed cache clears are reported through CacheOpResult.
    edusperoni committed Dec 5, 2026
    Configuration menu
    Copy the full SHA
    ac7baf5 View commit details
    Browse the repository at this point in the history
Loading