Skip to content

chore: require JSS >= 0.0.211 so serving never seeds index.html/.acl#6

Merged
melvincarvalho merged 1 commit into
mainfrom
chore/require-jss-0.0.211
Jul 9, 2026
Merged

chore: require JSS >= 0.0.211 so serving never seeds index.html/.acl#6
melvincarvalho merged 1 commit into
mainfrom
chore/require-jss-0.0.211

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Problem

Older JSS versions seed a landing page (/index.html) and .acl files into the server root on first start — which for servejss means polluting whatever directory it was pointed at.

Fix

Upstream JSS fixed this in 0.0.211 (ec8547b, #578/#579): root seeding is skipped entirely in --public and --read-only modes, with servejss's serve-a-directory use case named as the motivation.

  • javascript-solid-server floor raised >=0.0.136>=0.0.211, so every install is guaranteed the guard
  • lockfile refreshed (resolves 0.0.212, current latest)
  • version bumped to 0.0.8
  • README: install section notes that a stale globally installed jss also needs updating, since bin/jsserve.js falls back to it when the bundled dependency is missing — a lockfile bump alone can't fix that path

Verified

Ran servejss against a directory containing a single file, exercised GET (200) and PUT (201), then inspected the directory: only the original file and the PUT-created one present — no index.html, no .acl seeded.

JSS used to seed a landing page and .acl files into the server root on
first start, polluting whatever directory servejss was pointed at.
Upstream fixed this in 0.0.211 (ec8547b, #578/#579): seeding is skipped
in --public and --read-only modes. Raise the dependency floor so every
install is guaranteed the guard, refresh the lockfile (resolves 0.0.212),
and bump to 0.0.8.

README notes the global-jss fallback: a stale global install also needs
updating, since bin/jsserve.js falls back to it when the bundled
dependency is missing.

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

This PR raises the minimum required javascript-solid-server (JSS) version so servejss no longer risks JSS seeding index.html and .acl files into the served directory on startup, and updates docs/versioning to match.

Changes:

  • Bump javascript-solid-server dependency floor to >=0.0.211 and refresh the lockfile (resolving 0.0.212).
  • Bump servejss package version to 0.0.8.
  • Document the requirement and the “fallback to globally installed jss” behavior in the README.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Documents the JSS minimum version and notes updating any globally installed jss fallback.
package.json Bumps servejss version and raises the javascript-solid-server minimum version.
package-lock.json Refreshes lockfile to reflect the new JSS floor and updated dependency resolution.

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

@melvincarvalho melvincarvalho merged commit 86ec41b into main Jul 9, 2026
1 check passed
@melvincarvalho melvincarvalho deleted the chore/require-jss-0.0.211 branch July 9, 2026 11:22
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