BREAKING CHANGE(Smarts3): Migrate Smarts3 configuration to nested server/storage objects and remove legacy flat config support

This commit is contained in:
2025-11-23 22:42:47 +00:00
parent 263e7a58b9
commit a9ba9de6be
5 changed files with 24 additions and 8 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smarts3',
version: '3.2.0',
version: '4.0.0',
description: 'A Node.js TypeScript package to create a local S3 endpoint for simulating AWS S3 operations using mapped local directories for development and testing purposes.'
}

View File

@@ -153,7 +153,7 @@ function mergeConfig(userConfig: ISmarts3Config): Required<ISmarts3Config> {
*/
export class Smarts3 {
// STATIC
public static async createAndStart(configArg: ISmarts3Config | ILegacySmarts3Config = {}) {
public static async createAndStart(configArg: ISmarts3Config = {}) {
const smartS3Instance = new Smarts3(configArg);
await smartS3Instance.start();
return smartS3Instance;
@@ -163,7 +163,7 @@ export class Smarts3 {
public config: Required<ISmarts3Config>;
public s3Instance: Smarts3Server;
constructor(configArg: ISmarts3Config | ILegacySmarts3Config = {}) {
constructor(configArg: ISmarts3Config = {}) {
this.config = mergeConfig(configArg);
}