Skip to content

Commit e753dd2

Browse files
authored
content(migration): fix typo + grammar (#8303)
Fix grammatical errors in migration documentation Signed-off-by: Kevin Lu <kevinqianlu@gmail.com>
1 parent 40aa1b8 commit e753dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/pages/en/blog/migrations/v20-to-v22.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ This page provides a list of codemods to help you migrate your code from Node.js
1818

1919
## `import-assertions-to-attributes`
2020

21-
During the process of TC39 standardization, the `import assert` feature was introduced to allow importing [JSON modules](https://tc39.es/proposal-json-modules/), but during the during the transition to stage 4, the `assert` keyword was replaced with an `with` attribute on the `import` statement.
21+
During the process of TC39 standardization, the `import assert` feature was introduced to allow importing [JSON modules](https://tc39.es/proposal-json-modules/), but during the transition to stage 4, the `assert` keyword was replaced with the `with` attribute on the `import` statement.
2222

2323
So in [node.js v22](https://nodejs.org/fr/blog/release/v22.0.0#other-notable-changes), the `import assert` feature was removed and the `with` attribute is required instead.
2424

25-
Also note that the `with` keyword as been introduce in [node.js v18.20](https://nodejs.org/fr/blog/release/v18.20.0#added-support-for-import-attributes) but it was not mandatory until v22.
25+
Also note that the `with` keyword was introduced in [node.js v18.20](https://nodejs.org/fr/blog/release/v18.20.0#added-support-for-import-attributes) but it was not mandatory until v22.
2626

2727
The source code for this codemod can be found in the [import-assertions-to-attributes directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/import-assertions-to-attributes).
2828

0 commit comments

Comments
 (0)