Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@swagger-api/apidom-core@0.76.0 requires node 15 or greater, breaks Node-14 CI #3127

Closed
shazron opened this issue Sep 6, 2023 · 4 comments
Closed

Comments

@shazron
Copy link

shazron commented Sep 6, 2023

However this lib's version range will include it:

"@swagger-api/apidom-core": ">=0.74.1 <1.0.0",

It fails Node-14 CI because @swagger-api/apidom-core@0.76.0 uses AggregateError which only occurs in Node-15.

A "fix" would be to either:

  1. polyfill this module it with https://www.npmjs.com/package/es-aggregate-error
  2. limit @swagger-api/apidom-core version range to 0.75.0 or lesser in this module's package.json
  3. fix the issue in @swagger-api/apidom-core@0.76.0 so it is compatible with Node-14 (use the shim specified above, if not available in the current node runtime)
@char0n
Copy link
Member

char0n commented Sep 7, 2023

Hi @shazron,

Thanks for the report. You're absolutely right, Node.js >12.20.0 is our supported runtime for swagger-client.

Created tracking issue with ApiDOM and working on the fix: swagger-api/apidom#3128

@char0n
Copy link
Member

char0n commented Sep 7, 2023

Backward compatibility in ApiDOM addressed in https://github.com/swagger-api/apidom/pull/3129/files and released in https://github.com/swagger-api/apidom/releases/tag/v0.76.1

@char0n
Copy link
Member

char0n commented Sep 7, 2023

Addressed in this repo by #3129

swagger-bot pushed a commit that referenced this issue Sep 7, 2023
## [3.20.1](v3.20.0...v3.20.1) (2023-09-07)

### Bug Fixes

* use ApiDOM@0.76.1 to be further compatible with Node.js>=12.20.0 ([#3129](#3129)) ([34ff082](34ff082)), closes [#3127](#3127)
@char0n
Copy link
Member

char0n commented Sep 7, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants