Skip to content

Update fileMaps for 247 packages w/ auto-update - #2214

Merged
MattIPv4 merged 4 commits into
cdnjs:masterfrom
niklhut:niklashuthmann/filemap-fixes-staging
Nov 18, 2026
Merged

MattIPv4 merged 4 commits into
cdnjs:masterfrom
niklhut:niklashuthmann/filemap-fixes-staging

Conversation

@niklhut

@niklhut niklhut commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes autoupdate.fileMap in 247 configs (186 npm, 61 git) whose recent releases matched no files, so the bot never published them. The list comes from cdnjs-bot's staging rejection log (no_matching_files).

Most upstreams moved their build output (for example dist/ to build/, .js to .mjs, a new bundle name, or a monorepo subfolder). For each package:

  • No pattern uses a globstar (**). Files are named, or matched with * inside one directory. Where a package ships a tree of ES modules, each directory is listed (for example chrono-node's locales/*/parsers/*.js). The only * directories are ones that stand for a real set of folders, such as codemirror's addon/*/ and mode/*/.
  • 109 configs drop entries: globstar patterns replaced by named files, and entries that match nothing in current releases (for example vast-client's root vast-client*). Versions already on cdnjs are never imported again, so this removes nothing that is published. The two double-slash patterns (dist//… in backbone-react-component, js//… in minitranslate) are gone too.
  • The latest stable release matches more than 0 and at most 3,000 files.
  • Only browser files ship: bundles, ES modules, source maps, CSS and the fonts and images that CSS loads. CommonJS-only builds, TypeScript sources and Node-only entries are left out. jsondiffpatch leaves out with-text-diffs.js, which imports @dmsnell/diff-match-patch by bare name.
  • filename changed in 131 configs. Each new value exists in the newest stable release. blueprintjs-core now ships only its CSS (blueprint.min.css); its JS needs React and other npm packages.
  • mapcreator-api gets "ignoreVersions": ["0.0.0-*"]. npm has 32 0.0.0-mr-… builds from merge requests, which the new fileMap would otherwise import.

Not changed: packages whose current releases have no browser build. That covers gentelella 4.x (a Vite-built site with hashed chunk names), azure-storage-blob, sentry-browser, pnp-config-store, pnp-graph, pnp-sp, react-day-picker, react-router, primeng (Angular-only .mjs from 18.0.0 on), html5media and better-ajv-errors 4.x (imports node:util). codemirror keeps codemirror.min.js and gets no entry for 6.x: npm's 6.0.x codemirror is an entry module that imports @codemirror/* by bare name, and its highest stable version, 6.65.7, is a mis-tagged copy of 5.65.7. Also muse-ui, whose npm name now belongs to an unrelated project from 4.0.0 on. Git-source packages whose tags contain no built files are switched to npm in separate PRs.

datepick's filename check needs cdnjs/tools#290: the checker only reads the last 10 git tags by name, which for datepick are all Release_* tags, so it never sees 5.1.1.

Every changed config passes checker lint (latest cdnjs/tools release). The only warnings are the existing popularity warnings (under 200 stars or 800 monthly downloads).

beep-boop-niklas-agent-🤖

@niklhut
niklhut marked this pull request as ready for review November 9, 2026 17:18
@niklhut niklhut changed the title Update fileMaps for 257 packages w/ auto-update Update fileMaps for 248 packages w/ auto-update Nov 11, 2026
@MattIPv4

Copy link
Copy Markdown
Member

🤔 CI is panicing on this PR, not sure why...

@niklhut

niklhut commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

I re-ran the failed job and it panicked again in the same place: npm.GetMonthlyDownload, called from checker lint. The first run got through 95 configs before the panic and the re-run only 47, so it isn't a particular config. api.npmjs.org seems to rate-limit the shared GitHub runner IP and send back a body that isn't JSON. json.Unmarshal then fails, and util.Check turns that into a panic. Only the 187 npm configs hit this API; the 61 git ones don't. I ran checker lint on all 248 configs locally and they all pass.

Two ways forward, whichever you prefer:

  • Admin merge this PR as it is.
  • I split it into 5 PRs of about 50 configs each, roughly 37 npm configs per PR.

beep-boop-niklas-agent-🤖

@MattIPv4

Copy link
Copy Markdown
Member

Let's either split this PR or update the CI to respect ratelimits correctly. I'm not keen on admin-merging unless it is very apparent that's the only path forward, as it risks introducing invalid configs.

@niklhut niklhut changed the title Update fileMaps for 248 packages w/ auto-update Update fileMaps for 247 packages w/ auto-update Nov 17, 2026
@niklhut

niklhut commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Should work after cdnjs/tools#290

@MattIPv4
MattIPv4 merged commit 6d1dfd9 into cdnjs:master Nov 18, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants