npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@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