v0.4.0
Changelog
- DoExtend on TraverseOptions has been removed. All TraverseItems now include the fully populated Extension
β¨ Introducing:
- Sampling: a partial traversal can now be run where by a sample is taken for each directory navigated. This will be useful in those situations where a relatively long running process (eg invoking an external command which may take a few seconds or more as oppossed to micro seconds to complete, is invoked for every file encountered). So a client may wish to perform a preview operation where the command to invoke per file file, only runs on a reduced set. This reduce set an be defined 1 of 3 ways:
π slice: take slice of directory contents. The slice may be the first or last n entries (as defined in Options/Store/Sampling.NoOf). By default, the first entries are taken as the sample, but this can be changed to take the last, by setting Options/Store/Sampling.SamplingInReverse to true.
π filter: requires a filter to be defined. The sampler will use the filter to create the sample set and will also use the NoOf (mentioned above), to quantify the number of files/folders or both (for universal).
π custom: requires the client to define 2 new predicates in Options/Sampler.Custom, each and where. Together, they allow to client to customise how encountered directory's sample is taken - New filter scope: 2 new scopes have been introduced, for files and directories. This means the client can now target file or directory types for filtering.
π Features
- 0446725: feat(nav): implement directory sampling (#369) (@plastikfan)
- dfa5088: feat(nav): implement directory sampling (#373) (@plastikfan)
π Bug fixes
- fe9ee39: fix(nav): traversal skip (#363) (@plastikfan)
π₯ Others
- aeb9bb4: chore(deps): bump github.com/onsi/ginkgo/v2 from 2.13.0 to 2.13.1 (@dependabot[bot])
- fa956de: chore(deps): bump github.com/onsi/gomega from 1.29.0 to 1.30.0 (@dependabot[bot])
- e4bd397: chore(deps): bump golang.org/x/text from 0.13.0 to 0.14.0 (@dependabot[bot])
- 216e7ff: ref(nav): make extendion mandatory (#375) (@plastikfan)
- 566d8c7: test(nav): add sampling tests for folders with files (#369) (@plastikfan)