Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c73a931dad | |||
| 3bdb014d25 |
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# 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)
|
## 2025-11-29 - 1.1.2 - fix(SmartFsProviderNode)
|
||||||
Fix Node provider watch path handling and remove main test entry
|
Fix Node provider watch path handling and remove main test entry
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartfs",
|
"name": "@push.rocks/smartfs",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a cross platform extendable fs module",
|
"description": "a cross platform extendable fs module",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartfs',
|
name: '@push.rocks/smartfs',
|
||||||
version: '1.1.2',
|
version: '1.1.3',
|
||||||
description: 'a cross platform extendable fs module'
|
description: 'a cross platform extendable fs module'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ export class SmartFsProviderNode implements ISmartFsProvider {
|
|||||||
|
|
||||||
public async createDirectory(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void> {
|
public async createDirectory(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void> {
|
||||||
await fs.mkdir(path, {
|
await fs.mkdir(path, {
|
||||||
recursive: options?.recursive,
|
recursive: options?.recursive ?? true,
|
||||||
mode: options?.mode,
|
mode: options?.mode,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user