diff --git a/pages/blog/posts/2020-10-10-webpack-5-release.md b/pages/blog/posts/2020-10-10-webpack-5-release.md index ce121f94..de6623e8 100644 --- a/pages/blog/posts/2020-10-10-webpack-5-release.md +++ b/pages/blog/posts/2020-10-10-webpack-5-release.md @@ -1066,7 +1066,7 @@ That means the following information about modules has been moved: - Module connections -> ModuleGraph - Module issuer -> ModuleGraph -- Module optimization bailout -> ModuleGraph (TODO: check if it should ChunkGraph instead) +- Module optimization bailout -> ModuleGraph - Module usedExports -> ModuleGraph - Module providedExports -> ModuleGraph - Module pre order index -> ModuleGraph @@ -1257,8 +1257,8 @@ These dependencies are cheaper to process and webpack uses them when possible - `Chunk.getChunkModuleMaps` is deprecated - `Chunk.hasModuleInGraph` is deprecated - `Chunk.updateHash` signature changed -- `Chunk.getChildIdsByOrders` signature changed (TODO: consider moving to `ChunkGraph`) -- `Chunk.getChildIdsByOrdersMap` signature changed (TODO: consider moving to `ChunkGraph`) +- `Chunk.getChildIdsByOrders` signature changed +- `Chunk.getChildIdsByOrdersMap` signature changed - `Chunk.getChunkModuleMaps` removed - `Chunk.setModules` removed - deprecated Chunk methods removed diff --git a/scripts/markdown/readmes.mjs b/scripts/markdown/readmes.mjs index eca0560e..dea12d77 100644 --- a/scripts/markdown/readmes.mjs +++ b/scripts/markdown/readmes.mjs @@ -15,6 +15,9 @@ const discoverRepos = async () => { while (url) { const res = await fetchWithAuth(url); + if (!res.ok) { + throw new Error(`GitHub API returned ${res.status}: ${await res.text()}`); + } for (const repo of await res.json()) { if (repo.archived) continue; diff --git a/scripts/utils/fetch.mjs b/scripts/utils/fetch.mjs index cac9e373..b7e1b1c3 100644 --- a/scripts/utils/fetch.mjs +++ b/scripts/utils/fetch.mjs @@ -51,7 +51,7 @@ export const fetchWithAuth = (url, fetchOptions = {}, retryOptions) => ...fetchOptions, headers: { ...fetchOptions?.headers, - githubHeaders, + ...githubHeaders, }, }, retryOptions