2 Commits

Author SHA1 Message Date
c73a931dad v1.1.3
Some checks failed
Default (tags) / security (push) Successful in 41s
Default (tags) / test (push) Failing after 38s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-11-30 18:10:25 +00:00
3bdb014d25 fix(smartfs.provider.node): Default createDirectory to recursive=true when option not provided in Node provider 2025-11-30 18:10:25 +00:00
4 changed files with 10 additions and 3 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-11-30 - 1.1.3 - fix(smartfs.provider.node)
Default createDirectory to recursive=true when option not provided in Node provider
- Node provider: createDirectory now defaults to recursive=true when options.recursive is undefined.
- Prevents errors when creating nested directories without explicitly passing the recursive option.
- No API signature changes; behavior change is limited to the Node provider implementation.
## 2025-11-29 - 1.1.2 - fix(SmartFsProviderNode)
Fix Node provider watch path handling and remove main test entry

View File

@@ -1,6 +1,6 @@
{
"name": "@push.rocks/smartfs",
"version": "1.1.2",
"version": "1.1.3",
"private": false,
"description": "a cross platform extendable fs module",
"main": "dist_ts/index.js",

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartfs',
version: '1.1.2',
version: '1.1.3',
description: 'a cross platform extendable fs module'
}

View File

@@ -237,7 +237,7 @@ export class SmartFsProviderNode implements ISmartFsProvider {
public async createDirectory(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void> {
await fs.mkdir(path, {
recursive: options?.recursive,
recursive: options?.recursive ?? true,
mode: options?.mode,
});
}