Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 23aa29a5b8 | |||
| 5bf2aae2b9 | |||
| 5cf9155205 | |||
| ef5491075f | |||
| 3f5101c061 | |||
| 4f1d359752 | |||
| aead721a58 | |||
| c3a8a15225 |
24
changelog.md
24
changelog.md
@@ -1,5 +1,29 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-11-28 - 7.0.3 - fix(build)
|
||||||
|
Bump devDependency @git.zone/tsbuild to ^3.1.2
|
||||||
|
|
||||||
|
- Updated @git.zone/tsbuild in devDependencies from ^3.1.1 to ^3.1.2
|
||||||
|
|
||||||
|
## 2025-11-28 - 7.0.2 - fix(collectionfactory)
|
||||||
|
Simplify CollectionFactory.getCollection: remove unnecessary IIFE and instantiate collection only when dbArg is SmartdataDb
|
||||||
|
|
||||||
|
- Remove redundant IIFE wrapper in getCollection for improved readability
|
||||||
|
- Only create and cache a SmartdataCollection when dbArg is an instance of SmartdataDb
|
||||||
|
- Avoid assigning undefined to the collections map by guarding instantiation and returning existing collection
|
||||||
|
|
||||||
|
## 2025-11-27 - 7.0.1 - fix(build)
|
||||||
|
Update build tooling and TypeScript compilation target
|
||||||
|
|
||||||
|
- Bump devDependency @git.zone/tsbuild from ^3.1.0 to ^3.1.1.
|
||||||
|
- Update tsconfig.json compiler target from ES2022 to ES2024 (affects emitted JS language level).
|
||||||
|
|
||||||
|
## 2025-11-27 - 7.0.0 - BREAKING CHANGE(mongodb)
|
||||||
|
Upgrade dependencies: bump mongodb to ^7.0.0 and @git.zone/tstest to ^3.1.3
|
||||||
|
|
||||||
|
- Bump 'mongodb' dependency from ^6.20.0 to ^7.0.0 — major version upgrade; may introduce breaking API changes and require code updates or verification against the new driver.
|
||||||
|
- Update devDependency '@git.zone/tstest' from ^2.8.1 to ^3.1.3 — test tooling updated.
|
||||||
|
|
||||||
## 2025-11-17 - 6.0.0 - BREAKING CHANGE(decorators)
|
## 2025-11-17 - 6.0.0 - BREAKING CHANGE(decorators)
|
||||||
Migrate to TC39 Stage 3 decorators and refactor decorator metadata handling; update class initialization, lucene adapter fixes and docs
|
Migrate to TC39 Stage 3 decorators and refactor decorator metadata handling; update class initialization, lucene adapter fixes and docs
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartdata",
|
"name": "@push.rocks/smartdata",
|
||||||
"version": "6.0.0",
|
"version": "7.0.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.",
|
"description": "An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@@ -34,12 +34,12 @@
|
|||||||
"@push.rocks/smartunique": "^3.0.8",
|
"@push.rocks/smartunique": "^3.0.8",
|
||||||
"@push.rocks/taskbuffer": "^3.4.0",
|
"@push.rocks/taskbuffer": "^3.4.0",
|
||||||
"@tsclass/tsclass": "^9.3.0",
|
"@tsclass/tsclass": "^9.3.0",
|
||||||
"mongodb": "^6.20.0"
|
"mongodb": "^7.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^3.1.0",
|
"@git.zone/tsbuild": "^3.1.2",
|
||||||
"@git.zone/tsrun": "^2.0.0",
|
"@git.zone/tsrun": "^2.0.0",
|
||||||
"@git.zone/tstest": "^2.8.1",
|
"@git.zone/tstest": "^3.1.3",
|
||||||
"@push.rocks/qenv": "^6.1.3",
|
"@push.rocks/qenv": "^6.1.3",
|
||||||
"@push.rocks/tapbundle": "^6.0.3",
|
"@push.rocks/tapbundle": "^6.0.3",
|
||||||
"@types/node": "^22.15.2"
|
"@types/node": "^22.15.2"
|
||||||
|
|||||||
1535
pnpm-lock.yaml
generated
1535
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartdata',
|
name: '@push.rocks/smartdata',
|
||||||
version: '6.0.0',
|
version: '7.0.3',
|
||||||
description: 'An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.'
|
description: 'An advanced library for NoSQL data organization and manipulation using TypeScript with support for MongoDB, data validation, collections, and custom data types.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,13 +6,8 @@ export class CollectionFactory {
|
|||||||
public collections: { [key: string]: SmartdataCollection<any> } = {};
|
public collections: { [key: string]: SmartdataCollection<any> } = {};
|
||||||
|
|
||||||
public getCollection = (nameArg: string, dbArg: SmartdataDb): SmartdataCollection<any> => {
|
public getCollection = (nameArg: string, dbArg: SmartdataDb): SmartdataCollection<any> => {
|
||||||
if (!this.collections[nameArg]) {
|
if (!this.collections[nameArg] && dbArg instanceof SmartdataDb) {
|
||||||
this.collections[nameArg] = (() => {
|
this.collections[nameArg] = new SmartdataCollection(nameArg, dbArg);
|
||||||
if (dbArg instanceof SmartdataDb) {
|
|
||||||
// tslint:disable-next-line: no-string-literal
|
|
||||||
return new SmartdataCollection(nameArg, dbArg);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
}
|
}
|
||||||
return this.collections[nameArg];
|
return this.collections[nameArg];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2022",
|
"target": "ES2024",
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user