Scan your whole stack
Are you using jsii-diff?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.143.0
jsii-diff was last scanned on 16 Nov 2026 at version 1.143.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.143.0 LATEST | 16 Nov 2026 | No rules fired |
| 1.142.0 | 20 Oct 2026 | No rules fired |
| 1.141.0 | 1 Oct 2026 | No rules fired |
| 1.140.0 | 24 Aug 2026 | Not shown |
Findings for v1.143.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.143.0; other versions have their own rules, not their own score.
0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
jsii-diff compares two jsii assemblies for compatibility.
In the future, it will be able to do generic comparisons. But for now it will compare assemblies for API compatibility, and exit with a non-zero exit code if any stable or deprecated APIs have had incompatible changes.
API items that have no stability are treated as stable.
To treat unmarked API items as experimental, pass the --default-experimental flag.
To compare two JSII packages:
jsii-diff <old> [new]
Packages can be identified by either:
.jsii file.npm:[<package>[@version]], in
which case the indicated version is downloaded and used. If @version is
left out, the latest version will be used. If package is left out,
the assembly name of .jsii in the current directory will be used.To compare current package against latest published NPM release:
jsii-diff npm:<package>
By default only incompatible changes to stable or deprecated APIs are treated as errors and will fail the command.
Changes to experimental or external APIs emit a warning.
Change this behavior with the --error-on flag:
jsii-diff npm:<package> --error-on=all
The following --error-on groups are available:
--error-on |
Stabilities that cause an ERROR |
|---|---|
prod (default) |
stable, deprecated |
non-experimental |
stable, deprecated, external |
all |
stable, deprecated, experimental, external |
jsii-diff will assert that code written against version A of a library will still typecheck when compiled against version B of that library. It does this by verifying the following properties:
Strengthening a type refers to excluding more possible values. Changing
a field from optional to required, or changing a type from any to
string are examples of strengthening.
As the opposite of strengthening, weakening refers to allowing more
possible values. Changing a field from required to optional, or
changing a type to a superclass or interface are examples of weakening.
An API can change in the following way without breaking its consumer:
Structs (interfaces consisting completely of readonly properties) are
treated as bags of data. Their API compatibility will be evaluated depending
on whether they appear in input or output position of operations.
jsii-diff will check the evolution of structs against their position in an operation, similar to other types. Input structs may be weakened, and output structs may be strengthened.
Classes and non-struct interface types are considered "reference types". By default we treat them as being the result of a function call:
This means their evolution falls under the rules of "strengthening": they may only add fields, never take any away or make them optional.
@subclassableSome classes or interfaces may be intended to be implemented by consumers.
Those should be marked with the docstring tag @subclassable.
This will effectively cause changes against those types to be checked against the rules for weakening as well (i.e., no new (abstract) fields or members added). This is necessary because otherwise any existing implementor of that interface would be broken, since they wouldn't be implementing the new abstract members yet.
@subclassable is not the default since most interfaces are not intended
for subclassing, but treating them as such would limit the evolvability of
libraries too much.
Sometimes you want to move forward with a change, even if it would technically
be a breaking change to your API. In order to do that, run jsii-diff
with the flag --keys. It will then print an identifier for every violation
between square brackets, for example:
$ jsii-diff <old> --keys
IFACE pkg.MyStruct: formerly required property 'prop' is optional: returned from pkg.IConsumer.someMethod [weakened:pkg.MyStruct]
To accept a breaking finding, put the key (in this example weakened:pkg.MyStruct)
into a text file, for example allowed-breaking-changes.txt, and pass it to
jsii-diff as an ignore file:
$ jsii-diff <old> --keys --ignore-file allowed-breaking-changes.txt
(no error)
If you've moved API elements around between versions of your library, you can
put a special ignore marker starting with move: into your --ignore-file. To
separate the old and new class names, you can use :, , or whitespace.
For example:
move:package.OldClassName package.NewClassName
move:package.OldClassName:package.NewClassName
move:package.OldClassName, package.NewClassName
Moving API elements is always breaking, but using this feature you can confirm that you at least didn't break anything in the API surface of the moved classes themselves.
See BREAKING_CHANGES.md for more information.
jsii-diff is distributed under the Apache License, Version 2.0.
See LICENSE and NOTICE for more information.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.