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
isIndex
function now recognizes dot-separated strings likeindex.client.js
as valid index files, as long as the part until the first dot isindex
.
Added
- The
getIndexes
function, similar to the previously existinggetIndex
, but now returningArray<File>
instead ofFile | undefined
Removed
- The
getIndex
function, that would either return a single index file orundefined
has been removed in favor ofgetIndexes
v2.4.0
v2.3.0
v2.2.5
v2.2.4
v2.2.3
v2.2.2
Fixed
resolveImport
previously wouldn't accept a result of parsingtsconfig.json
because 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
, andconventionalSegmentNames
to semantically describe FSD rules and keep a single source of truth - The
isSlice
function is now exported, it determines if a folder is a slice based on whether it contains any conventional (or other, configurable) segments
Changed
- The
getAllSlices
function now augments the slice object with thelayerName
property, which is the name of the layer the slice is in.