Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jasonkuhrt
Copy link
Owner

Summary

  • Move the standalone fs-memory module into the fs module as Fs.Memory
  • This better reflects the relationship: fs-memory provides the in-memory backend that makes Kit's Fs operations work without touching disk
  • Remove the #fs-memory path alias entirely

API Change

Before:

import { FsMemory } from '@wollybeard/kit'
const layer = FsMemory.layer({ '/path': 'content' })

After:

import { Fs } from '@wollybeard/kit'
const layer = Fs.Memory.layer({ '/path': 'content' })

Test plan

  • pnpm check:types passes
  • pnpm test src/utils/fs/ src/utils/dir/ passes
  • pnpm fix:format applied

Closes #101

Move the standalone fs-memory module into the fs module as Fs.Memory.
This better reflects the relationship: fs-memory provides the in-memory
backend that makes Kit's Fs operations work without touching disk.

API Change:
- Before: import { FsMemory } from '@wollybeard/kit'
- After: import { Fs } from '@wollybeard/kit' then use Fs.Memory

Changes:
- Move src/utils/fs-memory/ to src/utils/fs/memory/
- Update fs module exports to use local path
- Update imports in test files
- Remove #fs-memory path aliases from tsconfig.json and package.json
- Update modularization.md

Closes #101
@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for wollybeard-kit canceled.

Name Link
🔨 Latest commit d93c192
🔍 Latest deploy log https://app.netlify.com/projects/wollybeard-kit/deploys/6925d33890e752000816a659

…fs-memory-into-fs

# Conflicts:
#	modularization.md
@jasonkuhrt jasonkuhrt merged commit 4926194 into main Nov 25, 2025
11 checks passed
@jasonkuhrt jasonkuhrt deleted the feat/101-consolidate-fs-memory-into-fs branch November 25, 2025 16:06
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.

Consolidate fs-memory into Fs.Memory

2 participants