scratch-l10n 6.0.70 → 6.0.72
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 +14 -0
- package/package.json +1 -1
- package/scripts/lib/transifex.mts +4 -1
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.72](https://github.com/scratchfoundation/scratch-l10n/compare/v6.0.71...v6.0.72) (2025-10-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** lock file maintenance ([e50193b](https://github.com/scratchfoundation/scratch-l10n/commit/e50193ba1a5031aa7cb18dccca7105e15640bbb8))
|
|
12
|
+
|
|
13
|
+
## [6.0.71](https://github.com/scratchfoundation/scratch-l10n/compare/v6.0.70...v6.0.71) (2025-10-24)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* failing iteration through transifex iterable ([d060894](https://github.com/scratchfoundation/scratch-l10n/commit/d0608944b7e4e91c34363138294d1cc8c42971a3))
|
|
19
|
+
|
|
6
20
|
## [6.0.70](https://github.com/scratchfoundation/scratch-l10n/compare/v6.0.69...v6.0.70) (2025-10-24)
|
|
7
21
|
|
|
8
22
|
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|