Commit Graph

10 Commits

Author SHA1 Message Date
Peter Steinberger
bac1e5ac39
docs: include new pages in site nav 2026-05-06 04:20:05 +01:00
Peter Steinberger
cc0757aa82
refactor: split root internals and security test helpers 2026-05-06 03:29:31 +01:00
Peter Steinberger
2f4c4262f0
fix: clear lockfile-only during source prepack 2026-05-06 00:09:25 +01:00
Peter Steinberger
b2e6db91c5
fix: make git source prepack self-contained 2026-05-06 00:08:28 +01:00
Peter Steinberger
e210a26af2
feat: unify store helpers 2026-05-06 00:07:28 +01:00
Peter Steinberger
ff2e84aaea
feat: add persistent fs-safe python helper 2026-05-05 23:25:07 +01:00
Peter Steinberger
49d11edd45
ci: add benchmarks and coverage gates 2026-05-05 19:50:19 +01:00
Peter Steinberger
7f2b962c92
docs: refresh for renamed APIs and new stores
Sync the docs site with recent source changes:

- json: writeJsonAtomic/writeTextAtomic → writeJson/writeText; readJsonFile/Strict
  → readJson + readJsonIfExists + tryReadJson; ensureDirMode → dirMode;
  appendTrailingNewline → trailingNewline.
- temp: createPrivateTempWorkspace/createTempFileTarget → tempWorkspace/tempFile;
  PrivateTempWorkspaceOptions → TempWorkspaceOptions; TempFileTarget → TempFile.
- atomic: replaceDirectoryStaged → replaceDirectoryAtomic; mode/dirMode names.
- root: read{Path → Absolute}; RootDefaults gains mode; per-method options pick
  mode through RootWriteOptions / RootCopyOptions / RootOpenWritableOptions.
- secret-file: writePrivateSecretFileAtomic gains mode/dirMode and now requires
  rootDir; documents the asserted-mode behavior on each component.
- sidecar-lock: SidecarLockHandle has [Symbol.asyncDispose]; document the new
  top-level withSidecarLock helper.

New pages:
- file-store.md — fileStore() + copyIntoRoot.
- json-store.md — jsonStore<T>() with optional cross-process lock.

Add a "Stores" section to the sidebar; update install.md subpath table to list
json-store, file-store, and local-roots.
2026-05-05 19:30:54 +01:00
Peter Steinberger
f0d61765f5
docs: add social card for fs-safe.io
1200×630 PNG (rendered from SVG) wired into og:image / twitter:image meta
on every page. Dark theme matches the site, shield mark + wordmark + tagline
+ url. Twitter card upgraded to summary_large_image.
2026-05-05 19:05:10 +01:00
Peter Steinberger
a559283ac5
docs: add fs-safe.io documentation site
- 25 markdown guides covering every public primitive: root(), pathScope(),
  reading/writing, atomic writes, JSON, temp workspaces, archive extraction,
  secret files, sidecar locks, pinned open, local roots, path/filename helpers,
  install paths, errors, types, testing, timing, contributing.
- Custom Node-based static site generator (scripts/build-docs-site.mjs) with
  link validation, dark mode, mobile nav, search, copy buttons.
- GitHub Actions workflow deploys to Pages on docs/script changes.
- CNAME points to fs-safe.io (DNS already configured to GitHub Pages IPs).

To activate: switch repo Pages source from legacy/branch to workflow.
2026-05-05 17:57:31 +01:00