Skip to content

Commit aabb0e3

Browse files
authored
Change to ESM-first message (dotansimha#10719)
1 parent a0c02cc commit aabb0e3

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

website/src/pages/docs/migration/operations-and-client-preset-from-5-0.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,15 +453,16 @@ Now, the default is `sha256`. When using `sha256`, the generated hash conforms t
453453
in the
454454
[GraphQL over HTTP spec for persisted document identifiers](https://github.com/graphql/graphql-over-http/blob/52d56fb36d51c17e08a920510a23bdc2f6a720be/spec/Appendix%20A%20--%20Persisted%20Documents.md#sha256-hex-document-identifier).
455455
456-
### 14. Core plugins have ESM dependencies
456+
### 14. ESM-first
457457
458-
<Callout>This change mainly impacts plugin maintainers.</Callout>
458+
Previously, the Codegen CLI and official plugins were stuck on older dependency versions because
459+
ESM-only packages made integration and testing harder for maintainers.
459460
460-
Previously, core plugins were stuck on older dependency versions because ESM-only packages made
461-
integration and testing harder for maintainers.
461+
Now that Node.js 20 support has been dropped, Node.js 22 can load ESM seamlessly at runtime with no
462+
extra configuration. This allows us to move to ESM across the board:
462463
463-
Now, Node.js 20 support has been dropped, Node.js 22 can load ESM seamlessly at runtime, with no
464-
extra configuration. This allows core plugins to adopt dependencies that are ESM-only.
464+
- Official plugins now use ESM-only dependencies.
465+
- The Codegen CLI is still published in both ESM and CJS formats, with ESM as the default.
465466
466467
Plugin maintainers using [Jest](https://jestjs.io/) may still encounter issues. We recommend
467468
switching to [Vitest](https://vitest.dev/), which has native ESM support.

0 commit comments

Comments
 (0)