Skip to content

feat: bump jss to 0.0.195 and enable --git by default#27

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
chore-bump-jss-0.0.195
May 16, 2026
Merged

feat: bump jss to 0.0.195 and enable --git by default#27
melvincarvalho merged 1 commit into
gh-pagesfrom
chore-bump-jss-0.0.195

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Closes #26.

Summary

JSS 0.0.195 (upstream PR) adds auto-init on first push, which makes JSS's git HTTP backend genuinely useful out of the box. This PR enables it by default in jspod.

After this lands:

  • git clone http://localhost:5444/public/apps/<name> for any public-read path
  • git push http://localhost:5444/public/apps/<name> to any owner-write path — auto-creates the bare repo on first push
  • git pull to stay current

The pod is a real git remote.

Changes

  • package.jsonjavascript-solid-server: ^0.0.194 → ^0.0.195
  • index.jsoptions.git: true default, new --no-git CLI flag (matches --no-auth / --no-open shape), always passes --git or --no-git to JSS explicitly so the intent is unambiguous
  • docs.html — new "Git remote" section + TOC entry, with clone / push / auth-ergonomics example commands

Smoke test (local)

  • Banner shows: Git: enabled (clone/push support)
  • GET /public/test-repo/info/refs?service=git-upload-pack (fetch on missing repo): 404 ✓ — fetches don't auto-init
  • GET /public/test-repo/info/refs?service=git-receive-pack (push on missing repo, unauth): 401 ✓ — ACL preHandler gates Write
  • --no-git opt-out also wired

Known follow-up

Git CLI doesn't speak DPoP natively, so git push from the CLI today needs git -c http.extraHeader="Authorization: DPoP <token>". Worth a dedicated jspod credential helper + a doc on the push flow once we have a working signed-in token. Tracked separately.

Refs #1 #25 #26

JSS 0.0.195 (JavaScriptSolidServer/JavaScriptSolidServer#466)
adds auto-init on first push, which closes the last gap that
prevented the git HTTP backend from being useful out of the box.

This PR turns on JSS's git backend by default in jspod, so every
fresh `npx jspod` produces a pod that is also a real git remote:

- `git clone http://localhost:5444/public/apps/<name>` for any
  public-read path
- `git push http://localhost:5444/public/apps/<name>` for any
  owner-write path (auto-creates the bare repo on first push)
- `git pull` to stay current

Implementation:

- package.json: bump javascript-solid-server from ^0.0.194 to
  ^0.0.195
- options.git defaults true; new --no-git CLI flag for opt-out
  (matches existing --no-auth / --no-open shape)
- --git or --no-git is always passed explicitly to JSS so the
  spawn intent is unambiguous regardless of JSS's own default
- docs.html grows a "Git remote" section explaining clone / push /
  auth ergonomics with a link to the upstream

Known follow-up (out of scope here): git CLI doesn't speak DPoP
natively, so push from the CLI today needs
`git -c http.extraHeader="Authorization: DPoP <token>"`. Worth a
dedicated jspod helper script + dedicated doc; tracked separately.

Refs #1 #26
@melvincarvalho
melvincarvalho merged commit c10ec2f into gh-pages May 16, 2026
@melvincarvalho
melvincarvalho deleted the chore-bump-jss-0.0.195 branch May 16, 2026 16:06
melvincarvalho added a commit that referenced this pull request May 16, 2026
Brings the JSS 0.0.195 dependency + --git enablement (PR #27) to
users. After publish, npx jspod produces a working pod that is also
a real git remote, with auto-init on first push.
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.

Enable JSS's --git backend by default (pod becomes a git remote)

1 participant