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
23 changes: 0 additions & 23 deletions .changeset/check-peers-outdated-range.md

This file was deleted.

24 changes: 24 additions & 0 deletions packages/dev-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @openzeppelin/ui-dev-cli

## 1.4.0

### Minor Changes

- [#229](https://github.com/OpenZeppelin/openzeppelin-ui/pull/229) [`4e7e728`](https://github.com/OpenZeppelin/openzeppelin-ui/commit/4e7e7280bb62f64e107c181dbcb26e29521e18bf) Thanks [@pasevin](https://github.com/pasevin)! - `check-peers` now warns when an adapter's declared `@openzeppelin/ui-*` range does not admit
the version installed beside it.

The check compared the _minimum_ a range admits against the installed version, mirroring
`validatePeerVersions` in `@openzeppelin/ui-utils`. That is right for the failure it was
built for — an installed peer that is too old — but it left the opposite drift invisible: an
adapter declaring `^2.0.0` against an installed `4.0.1` satisfies its own runtime check and
still cannot be installed by a consumer app, because a package manager reads the declared
range and not the baked minimum. Nothing anywhere reported it, which is how the
`openzeppelin-adapters` packages carried v2 ranges for `ui-components`, `ui-react` and
`ui-utils` across two majors of the kit.

Such pairs are now reported as a `warning` with code `outdated-range`, naming the bump that
fixes each one. `AdapterPeerPair` gains `range` (the range as declared) and `rangeSatisfied`
(whether the range itself admits the installed version, or `null` for range syntax this check
does not model, which is left unreported rather than guessed at). `ok` and the exit code
remain driven by errors alone, so adding this to an existing pipeline does not change its
result; `printAdapterPeerResult` prints warnings on the passing path, where they would
otherwise be invisible.

## 1.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@openzeppelin/ui-dev-cli",
"private": false,
"version": "1.3.0",
"version": "1.4.0",
"description": "Shared local development CLI for OpenZeppelin UI consumer applications.",
"type": "module",
"bin": {
Expand Down
Loading