Skip to content

Release 1.0.0-preview.4 - #4

Merged
soyeyalon merged 15 commits into
mainfrom
candidate
Dec 1, 2026
Merged

soyeyalon merged 15 commits into
mainfrom
candidate

Conversation

@soyeyalon

Copy link
Copy Markdown
Contributor

Promotes the candidate 69e7d3c to main as DOMQL 1.0.0-preview.4, the fourth preview, on the specification 1.0.0-preview.2 and Nexo's language 1.0.0-preview.3, from Nexo's release 1.0.0-preview.4.

  • The size laid out: an element's layoutSize answers the size layout gives its border box, along its writing mode, a transform aside, and a watch follows every change of it; a box of no size reads as none. size, the box as drawn, is partly observable.
  • Autofill and answers: a watch of autofilled follows an animation the page starts on a filled field, and an event source declaring answers is answered by its first subscription.
  • A faster start: DOMQL's own module and registry are created from a manifest its build makes, and domql.prepare lets a host prepare its modules and queries ahead of time, passing the manifest back as manifest. In Chromium, cold, DOMQL's import took about 33.5 ms where it took 43, and a host's first query about 5.6 ms where it took 11.6.
  • Connections: domql.connect carries DOMQL's operations across a boundary as messages, the requests of one batch answered as its task ends and each task's deliveries together, a watch's paced by its acknowledgment and an event behind nothing. DOMQL.NET hosts one from .NET.

Breaking: a watch of size is refused unless it accepts partial observation (DOMQL3003). The version history says how to migrate, and the changelog entry lists each change.

Work that stays out of the repository now goes in .sandbox/, which
Git ignores: experiments, notes, scratch and temporary files, and
benchmark baselines. The full gate's package consumers still install
outside the repository, and Test-Packages.ps1 says why.
size is the border box as the box is drawn, transforms applied, and
partly observable: a transform or an animation, its own or an
ancestor's, changes it with no resize observer reporting it, where it
was called observable. layoutSize is the size layout gives the box,
along its writing mode's axes, as the browser's resize observer
reports it, a maintained member every change of its layout reports.
The specification opens 1.0.0-preview.2 and the runtime
1.0.0-preview.4. D111 records it.

BREAKING CHANGE: a watch of size is refused unless it accepts partial
observation. Watch layoutSize where the size as laid out is needed,
or accept partial observation to keep the box as drawn.
autofilled observes animationstart and animationcancel on its field,
so a page whose style starts an animation on a field as the browser
fills or empties it, as a rule for :autofill naming one does, is
followed. DOMQL still writes no stylesheet into the page. D112 records
it.
An event source may declare answers, the type of what its
subscription answers each occurrence with. deliver fulfils, once every
subscription has applied the occurrence, with the first
subscription's answer, its handler's return or what the promise it
returns fulfils with, captured as that type. An answer the type
refuses rejects with DOMQL5025, and answers on anything but an event
source is refused with DOMQL4016. D113 records it.
DOMQL depends on Nexo's 1.0.0-preview.4, which its lock installs, and
describes itself on language 1.0.0-preview.3. A refusal of root says
that a binding named root is read as ~root. Every link into Nexo's
documents follows the pin to the new tag. D114 records it.
A continuous execution's start, a subscription's start and a once
execution find where their call stands only where a failure names it,
so one that fails nowhere reads its query's text no second time. In
Node, a query's first run took about 0.47 ms where it took 0.58.
DOMQL's sources hold the manifest Nexo makes of DOMQL's own module,
which npm run manifest writes and a test holds current. DOMQL creates
its module and registry under it, so a start makes none of the checks
it records: in Chromium, cold, the import took about 33.5 ms where it
took 43. D115 records it.
domql.prepare(modules, { scripts }) answers the manifest Nexo makes of
a host's modules, registered after DOMQL's own, and of its queries,
each text read with Domql supplied. createModule, registerModule,
registerModuleLoader and query take it as manifest, sparing the checks
it records: in Chromium, cold, a host's first query took about 5.6 ms
where it took 11.6. D116 records it.
A module's own event source hands deliver the event alone, so what else
it passes takes no subscription's answer away: events.forEach(deliver)
passed each index beside its event, and the first event's answer was
dropped.
layoutSize is null for a box of no size, 0 by 0, which a resize
observer measures as it measures no box: a watch of an empty element
stayed at 0 by 0 after it was hidden or detached, where a new
evaluation read null. Read alike, layoutSize stays observable. D117
records it.
The specification's example names Element.size among the members whose
watch must accept partial observation, as the refusal names it, and
the members by their types, Node.all and Element.rect, as it writes
them. Its observable member is layoutSize, which a resize observation
covers, where it was an element's size.
The packages script's comment says what its work folder is, outside
the repository, where no node_modules of the repository's own is found,
rather than why it was put there.
domql.connect carries DOMQL's operations across a boundary as
messages: a host's requests in batches, each answered once its task
ends, and each task's deliveries together, a watch's paced by its
acknowledgment and an event behind nothing. The NuGet package holds
the .NET half over it: AddDomql, a DomqlConnection for each browser
runtime, owners, watches that keep a copy by change sets,
subscriptions, executions and typed results, the operations of one
turn crossing in one call. Both appliers pass the change sets'
conformance corpus. D118 and D119 record it, D119 replacing D46.
The .NET half moves to DOMQL.NET, a project of its own, with its own
solution, gate and package. DOMQL keeps the connection, which any
host across a boundary speaks, and the change sets' conformance
corpus. DOMQL's NuGet package holds the bundle alone again, and its
gate runs no C# tests. D120 records it.
The fourth preview, implementing DOMQL's specification 1.0.0-preview.2
on Nexo's language 1.0.0-preview.3, from Nexo's release
1.0.0-preview.4. It dates the changelog's and the version history's
entries, and is tagged v1.0.0-preview.4, whose release publishes both
packages.
@soyeyalon
soyeyalon merged commit 69e7d3c into main Dec 1, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
release — 69e7d3c5 Deployed Dec 1, 2026 by soyeyalon via Release #4
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.

1 participant