scratch-l10n 6.0.69 → 6.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.0.71](https://github.com/scratchfoundation/scratch-l10n/compare/v6.0.70...v6.0.71) (2025-10-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * failing iteration through transifex iterable ([d060894](https://github.com/scratchfoundation/scratch-l10n/commit/d0608944b7e4e91c34363138294d1cc8c42971a3))
12
+
13
+ ## [6.0.70](https://github.com/scratchfoundation/scratch-l10n/compare/v6.0.69...v6.0.70) (2025-10-24)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **deps:** lock file maintenance ([411bca7](https://github.com/scratchfoundation/scratch-l10n/commit/411bca772edf7ee1d4705e3e079c5efee7ca5722))
19
+
6
20
  ## [6.0.69](https://github.com/scratchfoundation/scratch-l10n/compare/v6.0.68...v6.0.69) (2025-10-23)
7
21
 
8
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scratch-l10n",
3
- "version": "6.0.69",
3
+ "version": "6.0.71",
4
4
  "description": "Localization for the Scratch 3.0 components",
5
5
  "main": "./dist/l10n.js",
6
6
  "browser": "./src/index.mjs",
@@ -40,7 +40,10 @@ transifexApi.setup({
40
40
  const collectAll = async function <T extends JsonApiResource>(collection: Collection): Promise<T[]> {
41
41
  await collection.fetch() // fetch the first page if it hasn't already been fetched
42
42
  const collected: T[] = []
43
- for (const item of collection.all()) {
43
+ // According to `transifexApi.d.ts`, `all()` returns an `Iterable<JsonApiResource>`.
44
+ // However, that's not the case in practice; it actually returns an `AsyncGenerator`,
45
+ // hence the need `for await` (pun slightly intended) and the ugly cast.
46
+ for await (const item of collection.all() as unknown as AsyncIterable<JsonApiResource>) {
44
47
  collected.push(item as T)
45
48
  }
46
49
  return collected