diff --git a/changelog.md b/changelog.md index 06ea7ce..7d91b4d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-10-26 - 2.2.1 - fix(core) +Fix import and typings for improved compatibility + +- Corrected the type signature for `getS3Descriptor` to return `IS3Descriptor`. +- Fixed import structure and updated dependencies for consistent namespace usage across plugins. + ## 2024-10-26 - 2.2.0 - feat(ci) Migrate CI/CD workflow from GitLab CI to Gitea CI diff --git a/package.json b/package.json index 02932fb..023cc3c 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "@push.rocks/smartbucket": "^2.0.2", "@push.rocks/smartfile": "^10.0.4", "@push.rocks/smartpath": "^5.0.5", + "@tsclass/tsclass": "^4.1.2", "@types/s3rver": "^3.7.0", "s3rver": "^3.7.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f4bf308..2248403 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ dependencies: '@push.rocks/smartpath': specifier: ^5.0.5 version: 5.0.18 + '@tsclass/tsclass': + specifier: ^4.1.2 + version: 4.1.2 '@types/s3rver': specifier: ^3.7.0 version: 3.7.4 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 7debcc1..aaff7d4 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smarts3', - version: '2.2.0', + version: '2.2.1', 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.' } diff --git a/ts/index.ts b/ts/index.ts index 8fb26cf..4fe004e 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -42,7 +42,7 @@ export class Smarts3 { console.log('s3 server is running'); } - public async getS3Descriptor(): Promise { + public async getS3Descriptor(): Promise { return { accessKey: 'S3RVER', accessSecret: 'S3RVER', diff --git a/ts/plugins.ts b/ts/plugins.ts index 14a3670..085f982 100644 --- a/ts/plugins.ts +++ b/ts/plugins.ts @@ -3,13 +3,19 @@ import * as path from 'path'; export { path }; -// pushrocks scope +// @push.rocks scope import * as smartbucket from '@push.rocks/smartbucket'; import * as smartfile from '@push.rocks/smartfile'; import * as smartpath from '@push.rocks/smartpath'; export { smartbucket, smartfile, smartpath }; +// @tsclass scope +import * as tsclass from '@tsclass/tsclass'; + +export { tsclass }; + + // thirdparty scope import s3rver from 's3rver';