Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .changeset/runtime-agnostic-clock.md

This file was deleted.

19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# assertron

## 11.5.5

### Patch Changes

- 419f686: Drop the last Node builtin from the shipped code.

`AssertOrder`'s clock imported the bare `perf_hooks` specifier and preferred
`process.hrtime`. It now uses `performance.now()`, which every runtime this package
supports provides as a global. The published `esm/` and `cjs/` output no longer references
any Node builtin, so it loads unchanged on Bun, Deno, browsers and edge runtimes.

Elapsed times from `AssertOrder#end()` and `getTimeTaken()` are still high-resolution
milliseconds; only the clock behind them changed. The `browser` field's
`"perf_hooks": false` mapping is removed because there is no longer an import for a
bundler to stub.

`node:assert` is unchanged and unaffected: it appears only in the test helpers and spec
files, neither of which is published.

## 11.5.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assertron",
"version": "11.5.4",
"version": "11.5.5",
"description": "A supplementary assertion library",
"homepage": "https://github.com/cyberuni/assertron",
"bugs": {
Expand Down
Loading