Skip to content

Conversation

char0n
Copy link
Contributor

@char0n char0n commented Jan 4, 2023

This will allow to use ApiDOM with Node.js >= 12.20.0. As exports field condition doesn't allow to specify Node.js versions, when code is requested using require(), non-protocol import fallback will be always used.

Protocol import support is as follows:

  • v16.0.0, v14.18.0 (ESM import and CommonJS require())
  • v14.13.1, v12.20.0 (only ESM import)

@char0n char0n self-assigned this Jan 4, 2023
@char0n char0n added enhancement New feature or request ApiDOM labels Jan 4, 2023
This will allow to use ApiDOM with Node.js >= 12.20.0.
As exports field condition doesn't allow to specify
Node.js versions, when code is requested using require(),
non-protocol import fallback will be always used.

Protocol import support is as follows:
- v16.0.0, v14.18.0 (ESM import and CommonJS require())
- v14.13.1, v12.20.0 (only ESM import)
@char0n char0n force-pushed the char0n/protocol-import-fallbacks branch from 9e8acf1 to be0422e Compare January 4, 2023 16:23
@char0n char0n merged commit b8ce5e4 into main Jan 4, 2023
@char0n char0n deleted the char0n/protocol-import-fallbacks branch January 4, 2023 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ApiDOM enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant