Socket
Socket
Sign inDemoInstall

objection

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objection - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

2

package.json
{
"name": "objection",
"version": "0.2.4",
"version": "0.2.5",
"description": "An SQL-friendly ORM for Node.js",

@@ -5,0 +5,0 @@ "main": "objection.js",

@@ -538,4 +538,5 @@ [![Build Status](https://travis-ci.org/Vincit/objection.js.svg?branch=master)](https://travis-ci.org/Vincit/objection.js) [![Coverage Status](https://coveralls.io/repos/Vincit/objection.js/badge.svg?branch=master&service=github)](https://coveralls.io/github/Vincit/objection.js?branch=master)

// Inherit `Model`. This gives your model all those methods like `MinimalModel.query()`
// and `MinimalModel.fromJson()`.
// Inherit `Model`. This does the basic prototype inheritance but also
// inherits all the static methods and properties like `Model.query()`
// and `Model.fromJson()`. This is consistent with ES6 class inheritance.
Model.extend(MinimalModel);

@@ -654,4 +655,20 @@

## 0.2.5
#### What's new
* bugfix: fix regression bug that prevented values assigned to `this` in `$before` callbacks from getting into
the actual database query
## 0.2.4
#### What's new
* bugfix: many-to-many relations didn't work correctly with a snake_case to camelCase conversion
in the related model class.
## 0.2.3
#### What's new
* Promise constructor is now exposed through `require('objection').Promise`.

@@ -661,2 +678,4 @@

#### What's new
* $beforeUpdate, $afterUpdate, $beforeInsert etc. are now asynchronous and you can return promises from them.

@@ -668,3 +687,3 @@ * Added `Model.fn()` shortcut to `knex.fn`.

### What's new
#### What's new

@@ -675,3 +694,3 @@ * bugfix: Chaining `insert` with `returning` now returns all listed columns.

### What's new
#### What's new

@@ -689,3 +708,3 @@ * New name `objection.js`.

### Breaking changes
#### Breaking changes

@@ -692,0 +711,0 @@ * Project was renamed to objection.js. Migrate simply by replacing `moron` with `objection`.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc