Transitive inclusion of `should` mutating Object prototype
See original GitHub issueOne issue with #139 is that v2.9.2 of openapi-spec-converter transitively includes the should package at runtime via swagger2openapi, which mutates the Object prototype and can cause runtime errors. This extends to this package.
I merged a fix to the offending package (https://github.com/Mermade/oas-kit/pull/83) but the issue is that it’s on v3.2.10 now, and I think that needs some work for compatibility. In the meantime, I’ve just been using the following resolutions statement in my package.json:
"api-spec-converter/swagger2openapi": "github:vaskevich/oas-kit#swagger2openapi-v2.9.2-gitpkg"
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Why is mutating the [[prototype]] of an object bad for ...
It means that all property lookup optimisations are flushed, and precompiled code will need to be discarded. Or it simply falls back to...
Read more >Immutability - University of Washington
To guarantee transitive non-mutability, an object's state must be (transitively) held directly in variables/fields rather than ac- cessed by a pointer. However, ...
Read more >Semantics of the Transitive Construction: Prototype Effects ...
This paper investigates whether an abstract linguistic construction shows the kind of prototype effects characteristic of non-linguistic ...
Read more >ECMA-262 Edition 5.1 - ECMAScript Language Specification
Every object created by a constructor has an implicit reference (called the object's prototype) to the value of its constructor's “ prototype ”...
Read more >Remarks on the basic transitive sentence - ScienceDirect.com
The goal of this paper is to propose a new kind of (specified) prototype that could possibly be more suitable for typological studies...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

OK - pinned to
2.9.*inapi-spec-converter@2.7.31Thanks for the fix Mike!
“2.9.*” should be safe and allow additional patch releases for api-spec-converter.