Skip to content

Update jointjs w/ npm auto-update - #2230

Merged
MattIPv4 merged 1 commit into
cdnjs:masterfrom
simonabadoiu:fix/jointjs-npm
Nov 23, 2026
Merged

MattIPv4 merged 1 commit into
cdnjs:masterfrom
simonabadoiu:fix/jointjs-npm

Conversation

@simonabadoiu

Copy link
Copy Markdown
Contributor

📎 clopy sim-ai

Change

Switch jointjs from git to npm auto-update, targeting @joint/core, and narrow the file map to the files the package ships in dist/.

Since 4.0, JointJS moved to a monorepo and the clientIO/joint git tags hold only sources. All 11 4.x versions on cdnjs (4.0.0-alpha.1 to 4.1.3) list no files, while 3.7.7 and earlier have 33 each. The built files ship in @joint/core on npm, which points at the same clientIO/joint repository and MPL-2.0 license.

The new map replaces the **/!(*.mjs) globstar with *.js, joint.d.ts and version.mjs. version.mjs is a self-contained one-line module. filename stays joint.min.js, which every 4.x release ships.

Verification

  • With the file-map matcher on npm 4.0.0, 4.1.3 and 4.3.4 (latest), the map selects all 10 files listed in Add: @joint/core #1753: geometry, joint, joint.nowrap and vectorizer (each with .min.js), joint.d.ts and version.mjs.
  • The local checker is a Linux binary and Docker is unavailable here; CI still needs to validate the config.

Versions newer than 4.1.3 (4.1.4 through 4.3.4) will import normally. The empty 4.0.0 to 4.1.3 entries count as published, so they need a bot-side removal before they import again.

Refs #1753.

Since 4.0 the clientIO/joint git tags hold only sources, so every 4.x version on cdnjs has no files. The built dist/ ships in @joint/core on npm, from the same repository. Map its browser bundles, joint.d.ts and the self-contained version.mjs.
@MattIPv4 MattIPv4 changed the title Switch jointjs to npm auto-update from @joint/core Update jointjs w/ npm auto-update Nov 23, 2026
@MattIPv4
MattIPv4 merged commit 53485f2 into cdnjs:master Nov 23, 2026
1 check 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