Situation
Latest updates to packages in this repo consist of a set of releases that are ESM only.
For instance @actions/core@3.0.0 says:
- Breaking change: Package is now ESM-only
- CommonJS consumers must use dynamic
import() instead of require()
README > Import the package documentation continues to show:
// javascript
const core = require('@actions/core');
// typescript
import * as core from '@actions/core';
Suggestion
Please modify the documentation so that it is correct for the ESM releases. Possibly it should describe both the usage before the ESM release and after, so that it covers a transition period.
cc: danwkennedy