Releases: feature-sliced/filesystem
Releases · feature-sliced/filesystem
v3.0.1
v3.0.0
This release adds support for having several index files, useful in full-stack frameworks that shouldn't mix client and server imports.
Changed
- The
isIndexfunction now recognizes dot-separated strings likeindex.client.jsas valid index files, as long as the part until the first dot isindex.
Added
- The
getIndexesfunction, similar to the previously existinggetIndex, but now returningArray<File>instead ofFile | undefined
Removed
- The
getIndexfunction, that would either return a single index file orundefinedhas been removed in favor ofgetIndexes
v2.4.0
v2.3.0
v2.2.5
v2.2.4
v2.2.3
v2.2.2
Fixed
resolveImportpreviously wouldn't accept a result of parsingtsconfig.jsonbecause some values first need to be converted through their specific enum. Meaning that you can now do this:
const tsCompilerOptions = { moduleResolution: "Bundler" as const, // previously this had to be ts.ModuleResolutionKind.Bundler baseUrl: ".", paths: { "~/*": ["./src/*"], }, }; resolveImport( "~/shared/ui", "src/pages/home/ui/HomePage.tsx", tsCompilerOptions, fs.fileExists, );Which is a lot easier! Shame on the API of TypeScript for requiring such hacks, but what can you do /shrug.
v2.2.1
Fixed
- TypeScript was referenced incorrectly, as described in this issue: microsoft/TypeScript#54018
v2.2.0
Added
- Definitions
layerSequence,unslicedLayers, andconventionalSegmentNamesto semantically describe FSD rules and keep a single source of truth - The
isSlicefunction is now exported, it determines if a folder is a slice based on whether it contains any conventional (or other, configurable) segments
Changed
- The
getAllSlicesfunction now augments the slice object with thelayerNameproperty, which is the name of the layer the slice is in.