From 3b2441f3338276f9c129ef1510a03fedd45422d9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 22:34:38 +0100 Subject: [PATCH 1/2] chore(deps): bump @mdn/fred from 2.2.0 to 2.2.1 (#43086) Bumps [@mdn/fred](https://github.com/mdn/fred) from 2.2.0 to 2.2.1. - [Release notes](https://github.com/mdn/fred/releases) - [Changelog](https://github.com/mdn/fred/blob/main/CHANGELOG.md) - [Commits](https://github.com/mdn/fred/compare/v2.2.0...v2.2.1) --- updated-dependencies: - dependency-name: "@mdn/fred" dependency-version: 2.2.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index a74149efb078603..59d641e85b0c07b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "SEE LICENSE IN LICENSE.md", "dependencies": { "@apideck/better-ajv-errors": "^0.3.6", - "@mdn/fred": "2.2.0", + "@mdn/fred": "2.2.1", "@octokit/rest": "^22.0.1", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", @@ -1058,9 +1058,9 @@ "license": "MIT" }, "node_modules/@mdn/fred": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@mdn/fred/-/fred-2.2.0.tgz", - "integrity": "sha512-jLEznzgIxUikIdp+9gMEV55eZLDxo6GjA7ekeF84duFDX3h0RjZIifbcVmGJx/J6ziIi1ua771/rbdSJPaeJmQ==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@mdn/fred/-/fred-2.2.1.tgz", + "integrity": "sha512-YcJwCQ2vIfSjBEbmqJSYTDX+xosMhH9PV4osxjoQdu0GGaXC89OVN8VgKJgKndDz365A0IWm4Kmrp9xdmk5oZg==", "license": "MPL-2.0", "dependencies": { "@codemirror/lang-css": "^6.3.1", @@ -1073,7 +1073,7 @@ "@lit-labs/ssr": "^4.0.0", "@lit-labs/ssr-client": "^1.1.8", "@lit/task": "^1.0.3", - "@mdn/rari": "0.2.11", + "@mdn/rari": "0.2.12", "@mdn/watify": "^1.1.8", "@mozilla/glean": "^5.0.7", "codemirror": "^6.0.1", @@ -1101,9 +1101,9 @@ } }, "node_modules/@mdn/rari": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/@mdn/rari/-/rari-0.2.11.tgz", - "integrity": "sha512-dAeH8DsrPXImVv3iZUjhS8XsThCn8ozqFQaHMY9ClwpnpNuo4xnGJWPVmdbdqzhmQ9Ai3hRcsvLh7d0CH3RT9Q==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@mdn/rari/-/rari-0.2.12.tgz", + "integrity": "sha512-P+3spJ+KIrq2Pn9h9PB4vFTyLi2tLBZ18cDDTwiqWlPUPf4voYaS9rpYB/AYW4vA7kzktAaEjOnSLgTpwPxdHw==", "hasInstallScript": true, "license": "MPL-2.0", "dependencies": { diff --git a/package.json b/package.json index 6e09fc795ee0af2..5ba0633626a9644 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ }, "dependencies": { "@apideck/better-ajv-errors": "^0.3.6", - "@mdn/fred": "2.2.0", + "@mdn/fred": "2.2.1", "@octokit/rest": "^22.0.1", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", From bdb19290fc91b32b03d5e117e7e12df71c2a85ad Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Tue, 10 Feb 2026 18:54:54 -0500 Subject: [PATCH 2/2] Replace IoC link with Wikipedia (#43090) --- .../web/javascript/reference/statements/function_star_/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/statements/function_star_/index.md b/files/en-us/web/javascript/reference/statements/function_star_/index.md index 66b8ca01650ccd9..4131d9152795d76 100644 --- a/files/en-us/web/javascript/reference/statements/function_star_/index.md +++ b/files/en-us/web/javascript/reference/statements/function_star_/index.md @@ -71,7 +71,7 @@ When the generator's [`next()`](/en-US/docs/Web/JavaScript/Reference/Global_Obje When the generator's [`throw()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/throw) method is called, it acts as if a `throw` statement is inserted in the generator's body at the current suspended position. Similarly, when the generator's [`return()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return) method is called, it acts as if a `return` statement is inserted in the generator's body at the current suspended position. Both methods usually finish the generator, unless the generator function catches the completion via {{jsxref("Statements/try...catch", "try...catch...finally")}}. -Generators used to be a paradigm for asynchronous programming, avoiding [Callback Hell](https://medium.com/@raihan_tazdid/callback-hell-in-javascript-all-you-need-to-know-296f7f5d3c1) by achieving [Inversion of Control](https://frontendmasters.com/courses/rethinking-async-js/callback-problems-inversion-of-control/). Nowadays, this use case is solved with the simpler [async functions](/en-US/docs/Web/JavaScript/Reference/Statements/async_function) model and the {{jsxref("Promise")}} object. However, generators are still useful for many other tasks, such as defining [iterators](/en-US/docs/Web/JavaScript/Guide/Iterators_and_generators) in a straightforward way. +Generators used to be a paradigm for asynchronous programming, avoiding [Callback Hell](https://medium.com/@raihan_tazdid/callback-hell-in-javascript-all-you-need-to-know-296f7f5d3c1) by achieving [Inversion of Control](https://en.wikipedia.org/wiki/Inversion_of_control). Nowadays, this use case is solved with the simpler [async functions](/en-US/docs/Web/JavaScript/Reference/Statements/async_function) model and the {{jsxref("Promise")}} object. However, generators are still useful for many other tasks, such as defining [iterators](/en-US/docs/Web/JavaScript/Guide/Iterators_and_generators) in a straightforward way. `function*` declarations behave similar to {{jsxref("Statements/function", "function")}} declarations — they are [hoisted](/en-US/docs/Glossary/Hoisting) to the top of their scope and can be called anywhere in their scope, and they can be redeclared only in certain contexts.