Skip to content

fix: canonical https repository URL in package.json#109

Open
jdjioe5-cpu wants to merge 1 commit into
juliangruber:masterfrom
jdjioe5-cpu:fix/public-repository-metadata
Open

fix: canonical https repository URL in package.json#109
jdjioe5-cpu wants to merge 1 commit into
juliangruber:masterfrom
jdjioe5-cpu:fix/public-repository-metadata

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown

Bounty #2113 — same fix shape as brace-expansion#115 (also your repo, merged earlier today).

This package.json has repository.url = ssh://github.com/juliangruber/isarray.git. This is broken:

  1. GitHub disabled the unauthenticated git:// protocol in 2022 (https://github.blog/security/application-security/improving-git-protocol-security-github/).
  2. ssh:// for github.com without a git+ prefix is non-canonical. npm, yarn, and modern tooling expect git+https://.
  3. PR Fix broken repository URL in package.json #99 already fixed this once (changed git://ssh:// on 2025-08-19), but ssh://github.com/... is still broken for the same reason — the fix never went far enough.

Diff (+1/-1 in package.json):

   "repository": {
     "type": "git",
-    "url": "ssh://github.com/juliangruber/isarray.git"
+    "url": "git+https://github.com/juliangruber/isarray.git"
   },

Verification:

  • git diff --check clean.
  • node -e "<11 test cases from test.js>" all pass — only package.json changed, source code untouched.
  • Reuses the established upstream PR Fix broken repository URL in package.json #99 fix-author (ExplodingCabbage's intent) and the just-merged brace-expansion#115 fix shape.

No tests need to change because test.js does not exercise package.json. No source files change because this is purely metadata.

Same fix as PR juliangruber#99 (which changed git:// -> ssh://); this commits the
final canonical form (git+https://) which is what npm installs and
modern tooling expects.

GitHub disabled the unauthenticated git protocol in 2022, so any
package.json that still has ssh:// or git:// for a GitHub-hosted
project is broken for fresh installs.
jdjioe5-cpu added a commit to jdjioe5-cpu/isarray that referenced this pull request Jun 20, 2026
@jdjioe5-cpu jdjioe5-cpu force-pushed the fix/public-repository-metadata branch from a917a53 to 4729896 Compare June 20, 2026 12:08
@juliangruber juliangruber requested a review from Copilot June 20, 2026 17:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the npm package metadata to use a canonical, tooling-friendly GitHub repository URL, aligning with modern expectations for repository.url.

Changes:

  • Change package.json repository.url from ssh://github.com/... to git+https://github.com/...

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@juliangruber

Copy link
Copy Markdown
Owner

please set up commit signing

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.

3 participants