Skip to content

Switch 19 packages from git to npm auto-update with fileMap updates - #2219

Merged
MattIPv4 merged 4 commits into
cdnjs:masterfrom
niklhut:niklashuthmann/git-to-npm-filemap
Nov 17, 2026
Merged

MattIPv4 merged 4 commits into
cdnjs:masterfrom
niklhut:niklashuthmann/git-to-npm-filemap

Conversation

@niklhut

@niklhut niklhut commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Switches 19 packages from git to npm auto-update and updates their fileMap or filename for the npm layout.

Recent GitHub tags of these repositories matched nothing in the fileMap, because the tags hold sources and the built files only ship on npm. Each npm package below comes from the same GitHub repository as the current git target (compared by repository ID, so renames and org transfers are covered).

fileMap entries for older layouts are kept where they still match old releases. No fileMap uses a globstar (**) anymore: old ** entries that match nothing on npm are removed, and the rest are narrowed to the files a browser needs. filename changes where the old default file no longer exists in the latest npm release. react-cookie's repository.url also moves to ItsBenCodes/cookies, where the old eXon/react-cookie repository now redirects.

Checks per package:

  • The latest npm version, and every version that will be imported except flipclock 0.10.5, matches between 1 and 3000 files.
  • filename exists among the files the latest version publishes, counting the .min.js the bot generates for each unminified file.
  • No two fileMap entries publish the same path.
  • Every version that will be imported has npm integrity and a registry signature.
  • checker lint passes.

The last column is roughly what the bot imports after this merges, estimated with its version selection (5 versions per run, older releases only within a year of the newest).

Package npm fileMap change filename npm latest Imported after merge
behaviortree behaviortree added lib: index.umd.js btree-complete.min.js → index.umd.min.js 3.0.0-beta.1 ~3
bootstrap-touchspin bootstrap-touchspin dist: **/* → *.@(js|css|map) jquery.bootstrap-touchspin.min.js → jquery.touchspin-bootstrap5.umd.min.js 5.1.0 ~1
dflow dflow added (root): dflow.js; dist: **/* → dflow.js, nodes.js unchanged 0.45.0 ~3
doofinder doofinder added browser: doofinder*.js; removed dist: **/* unchanged 7.0.3 ~3
flipclock flipclock added dist: FlipClock.umd.js, FlipClock.umd.js.map, themes/flipclock.css flipclock.min.js → FlipClock.umd.min.js 1.0.1 ~4 (4 re-imported)
framework7 framework7 added (root): framework7-bundle.min.js, framework7-bundle.min.js.map, framework7-bundle.css, framework7-bundle.min.css, framework7-bundle-rtl.css, framework7-bundle-rtl.min.css; removed packages/core: **/framework7!(.module|.modular|.esm|.less)* js/framework7.min.js → framework7-bundle.min.js 9.3.0 ~12
fullcalendar-scheduler fullcalendar-scheduler added (root): all/global.js, index.global*.js; removed dist: **/!(*.ts) scheduler.min.js → all/global.min.js 7.1.4 ~11
intl-tel-input intl-tel-input added dist: css/*.css, js/*.js, js/locale/*.js, js/locale/country-names/*.js, img/*.@(webp|png); removed the old build/ entry build/js/intlTelInput.min.js → js/intlTelInput.min.js 29.5.11 ~106
js-yaml js-yaml added dist/browser: js-yaml.umd.min.js, js-yaml.umd.min.js.map js-yaml.min.js → js-yaml.umd.min.js 5.5.0 ~16
justgage justgage added dist: justgage.umd*.js* justgage.min.js → justgage.umd.min.js 2.0.1 ~5
Ladda ladda added js: ladda.js unchanged 2.0.3 ~4 (4 re-imported)
multiple-select multiple-select added dist: *.@(css|js), themes/*.css, locale/*.js unchanged 2.4.0 ~5 (2 re-imported)
ng-table ng-table added bundles: ng-table*.+(js|css|map) unchanged 3.0.1 ~9 (9 re-imported)
pako pako dist: **/* → browser/*.@(js|mjs|map), *.mjs?(.map) pako.min.js → browser/pako.umd.min.js 3.0.3 ~4
react-cookie react-cookie added umd: reactCookie*.js react-cookie.min.js → reactCookie.min.js 8.1.2 ~5 (2 re-imported)
shell.js shell.js added lib: shell*.js; removed dist: **/* js/shell.min.js → shell.min.js 4.3.4 ~5 (5 re-imported)
sip.js sip.js added lib: one *.js pattern per directory of the ES module tree; removed dist: *.js sip.min.js → index.js 0.21.2 ~4 (4 re-imported)
videomail-client videomail-client dist: **/* → umd/*.js videomail-client.min.js → umd/index.min.js 16.9.1 ~157
wangEditor @wangeditor/editor added dist: *.@(js|map), css/*.css; removed release: **/* wangEditor.min.js → index.min.js 5.1.23 ~10

Ladda's new js/ladda.js is an ES module that imports spin.js by bare name, so it needs an import map in the browser. sip.js and dflow ship ES modules without bare imports. sip.js has no browser bundle on npm, so its whole lib tree is published; its last release was in 2022, so the directory list will not drift. cdnjs lists an empty sip.js 0.21.3 as latest, which npm never had; it will be removed on the bot side too. flipclock 0.10.5 matches no files and will be skipped.

wangEditor moves to @wangeditor/editor. The wangeditor package stopped at 4.7.15 (2022); v5 ships as @wangeditor/editor from the same repository, and the installation docs load dist/index.min.js and dist/css/style.css from a CDN. dist/index.js is a UMD bundle (global wangEditor) and dist/index.esm.js an ES module, neither with external imports. cdnjs has none of its versions, so the bot imports the newest 10 (5.1.14 to 5.1.23); 4.7.15 is not imported. cdnjs also lists 10.0.13 and @wangeditor/video-module@0.10.8, which came from the git tags. 10.0.13 would otherwise stay the latest version, and with the new filename its default link would point at a file it doesn't have, so both entries will be removed on the bot side.

"Re-imported" means cdnjs currently lists those versions with no files. Those entries count as published, so they will be removed on the bot side and imported again from npm. Older versions listed without files stay as they are.

The git-to-npm switches that need no fileMap change went into #2218. markdown-it moved to #2223, because CI checks its filename against the wrong version.

beep-boop-niklas-agent-🤖

Comment thread packages/m/multiple-select.json Resolved
Comment thread packages/s/shell.js.json Resolved
Comment thread packages/s/sip.js.json Resolved
Comment thread packages/v/videomail-client.json Resolved
Comment thread packages/w/wangEditor.json Resolved
Comment thread packages/w/wangEditor.json Resolved
@MattIPv4

Copy link
Copy Markdown
Member

🤔 Hm, the failure in markdown-it seems odd, it seems to be picking the wrong version as latest?

@niklhut

niklhut commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

The check fails because checker show-files takes the most recently published version as the latest. markdown-it still maintains 14.x (v14-legacy) next to 15.x, and 14.3.3 went out 22 minutes after 15.0.3, so CI checks filename against 14.3.3. cdnjs-bot takes the highest version, 15.0.3, which has markdown-it.umd.min.js.

Both lines are supported: 14.x versions publish dist/markdown-it.min.js, 15.x versions publish dist/browser/markdown-it.umd.min.js. Only filename can't cover both, since it is one value for the latest version and no file has the same name in both lines. Ignoring 14.x would turn CI green but drop its patches from cdnjs, so I kept the 15.x filename.

beep-boop-niklas-agent-🤖

@niklhut

niklhut commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Pushed a follow-up: markdown-it's dist entry was *, which on 15.x also published the CommonJS build, the type definitions and dist/markdown-it.mjs (it imports other npm packages by bare name). It now lists markdown-it.js, markdown-it.min.js and their maps for 14.x, and dist/browser adds markdown-it.esm.min.mjs (self-contained) and its map next to the UMD build. Each version publishes 4 files.

beep-boop-niklas-agent-🤖

@MattIPv4

Copy link
Copy Markdown
Member

Hm, the CI is still failing on the same issue, the filename set for markdown-it does not exist in what the CI thinks is the most recent version.

@niklhut niklhut changed the title Switch 20 packages from git to npm auto-update with fileMap updates Switch 19 packages from git to npm auto-update with fileMap updates Nov 16, 2026
@niklhut

niklhut commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

I moved markdown it into a separate PR now to unblock this one and there is a tools MR to fix the CI.

@MattIPv4
MattIPv4 merged commit 725e51d into cdnjs:master Nov 17, 2026
1 check passed
MattIPv4 added a commit that referenced this pull request Nov 23, 2026
* Publish intl-tel-input ESM modules from npm

Map the three self-contained dist/js/*.mjs modules alongside the existing browser JS/CSS assets. They are supported by cdnjs and available on npm, but were omitted when the package switched from git to npm in #2219. Existing versions need reingestion to gain the modules. Refs #2114

* Publish intl-tel-input type declarations

Map the four dist/js/*.d.ts files that pair with the ESM builds, for consumers importing from a URL (e.g. Deno). cdnjs published intlTelInput.d.ts under the old git layout. css/styles.d.ts is left out: it only types CSS-module imports.

* Apply suggestion from @MattIPv4

---------

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
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