@clairejs/orm
v3.16.24
Published
Claire ORM for SQL and NoSQL
Downloads
373
Readme
Change Log
3.16.24:
- revert 3.16.23 where connection is dropped in AWS lambda
3.16.22:
- fix mongo adapter unset null issue for updateOne
3.16.21:
- upgrade deps
3.16.20:
- fix mapModel typing issue
3.16.19:
- fix convert data object null
3.16.18:
- fix flatten Date object
3.16.17:
- fix geo point coordinate default undefined
3.16.16:
- fix convert to data object
- export getSafeUpdate
- fix convert to data for mongo to convert id fields
3.16.10:
- improve mongo join hoisting $match
- set autoIndex false for mongo
- upgrade mongo, mongoose, claire core
- fix using $push for array map
- fix isArrayDiff
- fix optional returning in updateMany
- fix lean: true in Mongo updateOne
- fix fkMap
- fix the returning in updateMany, deleteMany to return projection
3.15.16:
- add updateOne
- fix Mongo update unset null & undefined
- fix MongoQuery mapToQuery
- fix convert to logic object & utils
- fix mongo query update & flatten function
- export toMongoIds function
- fix several issues with get nested query
- fix typing issue in QueryOperator
- update claire core & adapt change of MODEL_FIELD_SEPARATOR
- update claire core & fix issue wiht removeal of DataType.POINT
- allow nested field query (mongodb only)
- update claire core
- fix MongoDbAdapter getOne
- refactor transaction
3.14.11:
- update tx use return
- fix parse array of ids
- fix id metadata type
- fix flatten update data
- fix model id prefix for MongoDbAdapter
- fix mongo db adapter FK with vector props
- fix MongoDbAdapter not init
- fix orm-gen -> migration
- refactor & rename query, database adapters
3.13.0:
- implement Nosql database and migrator (mongodb)
3.12.4:
- update core, force group by in join clause
- fix prettier pluginSearchDir calling to __dirname
- fix _neq comparision with null
- fix array aggregator return null array for left join
- allow _array to accept AggregatorMap
3.11.2:
- fix total in rows and getMany, fix is null in eq, neq comparision
- fix OrderDirective
3.10.12:
- move pg and mysql to peer dependencies
- fix @LocaleOf column data type
3.10.8:
- add
raw: true
to getMany - remove projection filter so old migrations can run without fields in metadata
- fix migrator cannot create new database
- change abstract migration interface, not relying to fs and path anymore
3.9.2:
- fix timestamps in model define
- suppress warning
- remove webpack
- compile as esm module
3.8.5:
- fix skip require in requiring migration files
- remove unnecessary logic
- fix not create db if not exist
3.8.2:
- fix template generation
- revert connection options to string
- remove sequelize-cli
- update DefaultSqlDatabaseMigrator constructor, no more cliPath argument
- update DefaultSqlDatabaseAdapter, add two static from factory function
- forward-migration-strategy, no more down script generated
3.7.3:
- add cli command to generate migration
3.7.2:
- convertToData & convertToLogic removekeys with undefined value
- filter projection with class functional field
3.7.0: handle point geometry data
- fix index for geometry column
- add type check in QueryCondition
3.6.0: breaking change
- change updateOne -> updateById
- change deleteOne -> deleteById
3.5.1: breaking change
- updateMany return Partial[] instead of string[]
3.4.2:
- fix object data type serialization
3.4.1:
- fix test on mysql
3.4.0:
- join.rows now can infer correct type from mapping aggregations
- replace _join aggregation fn by _array aggregation fn
3.3.9:
- update claire core
- handle query error in SqlModelAdapter
3.3.8:
- fix NaN when convert null FK in convertToDataObjects
3.3.7:
- fix getByIds return empty array if ids is empty
3.3.6:
- fix data type object in FK
3.3.5:
- fix index
3.3.4:
- fix rawQuery
- fix parseInt issue with PK and FK when perform read operation
3.3.2:
- fix data type of @LocaleOf column in migration
- Sql database adapter & migrator update for abstract model id change of datatype from number to string
3.2.8:
- move cli config file to tmp dir
- remove cli config file after migration
- add setting for SequelizeMeta table schema on DefaultSqlDatabaseMigrator
3.2.5:
- export adapter util functions
3.2.4:
- fix abstract query try parse array as json in vectorProps field when calling convertToLogicObjects
- add order option in getOne
3.2.2:
- add createdAt information in metadata.json and sort the array to reduce conflicts when perform migration
3.2.1: breaking change
- DefaultSqlDatabaseAdapter require object as connection string (for read/write replica)
- using prettier to format migration files automatically
3.1.2
- add _not operator
3.1.1
- update core to get accent data
- rename TransactionLink -> PropagationMode
- allow INHERIT_OR_CREATE to create new transaction if previous tx is commited or rolled-back
3.0.11
- fix order by in raw join query
- fix min aggrerate function not working on boolean field (postgres)
- fix self-reference FK
- fix _is aggregate function
- convert data format in join result
3.0.7
- fix duplicated associations, update sequelize 1.0.3
- export utils functions
- fix issue with multiple table join
- split from @clairejs/server package