Repository navigation
chore: version packages - #149
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 31, 2026 22:51
dc35aac to
f48ffcc
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 31, 2026 23:30
f48ffcc to
2971b1e
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 31, 2026 23:42
2971b1e to
b72a0e1
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 31, 2026 23:50
b72a0e1 to
11f631f
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 1, 2026 04:22
11f631f to
e565dff
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@humanjs/cli@0.1.0
Minor Changes
a38cf74: Add
humanjs compare <url>— the side-by-side, generated for your own site.Records the same tour twice, once as straight Playwright and once humanized, and stacks them horizontally into one video:
The robotic lane is not a caricature of bad automation — it is
speed: 'instant', the documented mode that bypasses humanization entirely. Both lanes run the identical tour, so the only variable on screen is the motion, and no timing math is reimplemented to fake the comparison.The lanes rarely last the same time, which is the message rather than a problem: the shorter one is extended by holding its final frame, so the robotic side sits frozen while the other is still working. The summary names the ratio.
Lane labels are painted with CSS through
body::beforerather than burned in with ffmpeg'sdrawtext, which needs a font file present on the host and fails differently on every machine.434933d: Initial release — the
humanjscommand line.humanjs demo <url>drives any page the way a person would skim it: land, read the heading, scroll in stages, drift the cursor over a link. It is the ten-second answer to "is the motion actually convincing?", with no project to create first. It never clicks, because it runs on your site rather than ours.humanjs run <script>executes a HumanJS flow with the browser and theHumaninstance already wired, so the script is only the flow..tsfiles run directly with no build step.Both accept
--record <file>, which dispatches on the extension —.mp4,.webm,.gif,.json,.ts, or.spec.tsfor a committable Playwright test — plus--personality,--speed,--seed,--viewportand--headless.Note that the unscoped
humanjsname on npm belongs to an unrelated 2022 package, so the CLI is reached asnpx @humanjs/cli. Installed globally, the binary is plainhumanjs.94aaaaf: Add media emulation flags to every command, and a
checkcommand that reports which ones a page responds to.--reduced-motion,--color-scheme <light|dark>and--forced-colorsare applied before the first navigation, so a page that reads the preference once at boot still sees it. Reduced motion is the one that matters: it cannot normally be exercised without changing an OS setting, so that branch ships unverified — and it fails quietly, since the people who depend on it are the least likely to report it. Paired with--record, the path can finally be watched:humanjs check <url>renders the page under baseline, dark, light, forced-colors and reduced-motion, writes a screenshot of each, and compares them. Four screenshots alone are four screenshots someone has to eyeball; the comparison is the value — a condition rendering byte-identical to baseline is a page that very likely has no branch for it.Reduced motion is excluded from that verdict on purpose. The difference there is in movement, not layout, so a still frame cannot settle it either way; the command says so and points at the recording route instead of implying a conclusion it cannot support.
1598660: Add
humanjs replay <timeline.json>, and fix--recordfor the formats it already advertised.replayTimelinehas returned per-step pass/fail since the recorder shipped, but nothing outside the library could reach it.replayexposes it and exits 1 on the first failed step, naming the step that broke — so a recorded.jsonbecomes a regression check that drops into CI with no test framework and no code:The personality, speed and seed the timeline was captured with are reused unless overridden. A run recorded as
distractedreplays differently undercareful, andreplayTimelineon its own always starts fromcareful/human.Two fixes found while building it:
--recordonly ever dispatched.gifagainst video, because that is all the recorder's own output handling distinguishes..json,.tsand.spec.tswere routed to the video encoder and written as mp4s with a misleading extension, despite the help text promising all five. The CLI now owns the mapping, and validates the extension before launching a browser — a typo costs milliseconds instead of a full run.demopassed aLocatortohover, and the recorder serialises a target withString(), so timelines captured fromdemocontainedlocator('a[href]').first()— not a selector, and unreplayable. Targets are now narrowed with Playwright's>> nth=0, which avoids strict-mode hangs and survives the round trip.Also adds
--timeout <ms>. Playwright's 30s default made a failing step take 32 seconds to report something it knew in two.7145c1c:
--viewportaccepts a list, anddemoreports when it is not recording.Passing
--viewport 1440x900,390x844runs the command once per size, appending the size to each output filename — so checking a desktop and a phone layout is one invocation rather than two that have to be kept in sync by hand. It applies to every command,replayincluded, which makes a responsive regression check a single line in CI.Filenames are suffixed before the extension, and
.spec.tsis handled as the two-part extension it is:flow.spec.tsbecomesflow-390x844.spec.ts, notflow.spec-390x844.ts— the latter would quietly demote a Playwright test into a standalone script. A single viewport still writes the exact filename requested, with no suffix and no banner.Separately,
demoprinted nothing at all when run without--record, which reads as though it never ran — especially headless, where there is no window to watch either. It now reports the URL, the viewport and the elapsed time.