api-elements.js icon indicating copy to clipboard operation
api-elements.js copied to clipboard

chore: loosen ramda dependency range for openapi3-parser

Open tklever opened this issue 4 years ago • 0 comments

Goal: Widen ramda dependency range to allow use of version [email protected] in openapi3-parser.

Adding the carat in openapi3-parser's dependency configuration is consistent with the use of ramda in the api-elements package in this same monorepo: https://github.com/apiaryio/api-elements.js/blob/0b3d0622b2310e91bbf0915a9912c9a1920c03f6/packages/api-elements/package.json#L25

Additionally, allowing downstream consumers to utilize [email protected] allows them to use a version which includes this security fix https://github.com/ramda/ramda/pull/3177

Bigger picture, as both of the libraries mentioned are included in the dependency tree of dredd (by way of dredd-transactions), unifying their use of this dependency will allow deduplication when using that project. The two independent versions of ramda can be seen here

└─┬ [email protected]
  ├─┬ [email protected]
  │ ├─┬ @apielements/[email protected]
  │ │ └─┬ [email protected]
  │ │   └── [email protected]
  │ └─┬ @apielements/[email protected]
  │   └── [email protected]

Alternatives

This dependency could be updated to ^0.28.0, which is latest at time of writing, but this change seemed less invasive and aligned api-elements and openapi3-parser to be upgraded in tandem later

tklever avatar Jun 20 '22 23:06 tklever