Documentation
This policy describes how jQWidgets is designed, built, tested and released, and the security and quality controls applied at each stage. It exists so that customers performing supplier assessment can evaluate our process rather than take assurances on trust.
jQWidgets is a browser UI component library of 82 widgets, delivered for jQuery, Angular, React and Vue 3.
The property that most affects this policy: the framework integrations are generated, not hand-written. One set of 82 JSON API definitions is the single source that drives code generation for every Angular, React and Vue 3 wrapper, plus the API documentation.
The consequence is that a one-line change to a generator fans out to roughly 250 published files at once. This makes the automated generation gate (§6) the single most important control in this policy: without it, a generator defect ships silently across every framework simultaneously.
| Source control | Git, GitHub |
| Main branch | master - represents releasable state |
| Work | Feature branches merged into master |
| Commits | Must describe what changed and why |
| Class | Definition | Requirement |
|---|---|---|
| Patch | Defect fix, no API change | Automated gates pass |
| Minor | New widget, new option, backward-compatible | Gates pass; release note entry |
| Major | Breaking change to API, markup or supported framework versions | Gates pass; release note under Breaking Changes; migration guidance |
Changes to the emitted DOM structure or ARIA semantics of a widget are treated as major, even though no scripting API changes. Customer stylesheets and test suites select on that markup, and changing it breaks them.
| Phase | Activity |
|---|---|
| Design | Third-party components are assessed for licence and support status before adoption |
| Implementation | Untrusted input handled as data, never merged into prototypes or evaluated |
| Review | Changes touching input parsing, deep merge, HTML rendering or serialisation get explicit security attention |
| Test | Confirmed vulnerabilities get a committed regression test that fails without the fix |
| Release | SBOM regenerated; security fixes documented under a Security heading in the release notes |
| Post-release | Reports handled under the Vulnerability Management Policy |
Recorded so that reviewers do not have to discover them, and so that engineers know where the sharp edges are:
A wrapper-validation workflow runs on every push and pull request. It regenerates all wrappers for all three frameworks from the JSON definitions and fails the build on:
window access (which breaks server-side rendering)Current state: 82 widgets × 3 frameworks, all passing.
A visual-regression workflow runs when widget sources, theme stylesheets or the visual suite itself change. It rebuilds the reference pages, verifies each one renders before any image is compared, and fails the build on an unexplained visual difference, publishing the difference images for review.
Reference images are environment-specific - the themes resolve to system fonts, which rasterise differently across operating systems - so the workflow maintains its own set for the CI platform rather than reusing a developer's.
These suites are maintained alongside the product sources. jQWidgets re-runs any of them on request and reports the result:
| Command | Covers |
|---|---|
npm run browser | Behavioural and accessibility assertions in Chromium - currently 280 assertions |
npm run functional | Widget behaviour regression, independent of accessibility |
npm run jsdom | ARIA emission and DOM structure |
npm run security | Prototype pollution regression, including a counterfactual |
npm run sweep / keyboard-sweep | Suite-wide scans across the shipped demos |
npm run sr | NVDA screen-reader pass (requires a Windows host) |
npm run vr | Visual regression across the widget/theme matrix - 435 baselines |
npm run vr:update | Regenerate baselines after an intended visual change, for review |
npm run vr:fixtures | Gate that every fixture renders before any baseline is trusted |
npm run vr:review | Triage baselines for blank or unexpectedly duplicate images |
npm run claim-contrast | WCAG 1.4.3 text contrast across the supported themes |
npm run theme-contrast | The same measurement across all 40 shipped themes |
npm run nontext-contrast | WCAG 1.4.11 component boundaries and focus indicators |
npm run keyboard-reach | WCAG 2.1.1 - every widget driven with real Tab presses |
npm run criteria-sweep | Parsing, name/role/value, label-in-name and related rules across all widgets |
npm run visual-criteria | Resize text, reflow, text spacing and focus visibility |
npm run sequence-check | WCAG 1.3.2 focus order against both permitted reading orders |
npm run error-states | WCAG 3.3.1 - widgets driven into invalid states and inspected |
Nothing is released from an unbuilt working tree. Source changes that have not been through the build are not in the product, however complete they look in the repository.
Security fixes are provided for the current major version. Customers on older majors are supported for functional issues per their licence terms, and are advised to upgrade for security fixes.
Framework support ranges are declared in each package's peerDependencies so that package managers warn on mismatch rather than failing at compile time with an obscure error.
Covered by §5 of the Vulnerability Management Policy. Inventory: compliance/sbom.cyclonedx.json, regenerated per release.
CSS and widget-markup changes have the widest blast radius in this codebase: the product ships 82 widgets against 41 themes, so a single edit to a shared stylesheet fans out across roughly 3,400 widget/theme combinations. This was previously the largest gap in the lifecycle and is now covered.
What runs. npm run vr renders each widget in Chromium and compares it against a committed reference image. The matrix is bounded rather than exhaustive: every widget is shot against three contrasting themes, and the six widgets carrying the most theme rules are additionally shot against all 41. The full cross-product would be 3,362 images for very little extra signal - a theme regression surfaces on any widget using the affected rule, and a widget regression surfaces under any theme.
What it is tested against. The suite is verified in both directions, because a visual suite that has never failed proves nothing:
Fixtures, not demos. The reference pages are generated from a declarative specification rather than taken from the shipped demos. The demos are unsuitable as visual baselines: 275 of them use Math.random, 250 use new Date, and 161 run animations, so they would fail for reasons unrelated to any code change. npm run vr:fixtures gates every fixture before its image is trusted, because a widget that fails to render produces an empty image, and empty images compare equal to one another indefinitely.
Determinism. Animations and transitions are forced to zero duration, the clock is deterministic, fonts are awaited, and the suite waits for widget geometry to stop changing before capturing. One element cannot be made deterministic - the loader's animated GIF, which neither CSS nor the browser automation can freeze - so that image is suppressed at capture time while the loader's themed box, border and text remain compared.
Operating cost. Reference images are environment-specific: the themes resolve to system fonts, which rasterise differently on Windows and Linux, so each platform holds its own set. An intended visual change is expected to fail the suite; the workflow is to review the generated difference images, then regenerate the references with npm run vr:update.