Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bookshelf

Package Overview
Dependencies
Maintainers
7
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookshelf - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

29

CHANGELOG.md
## Change Log
**1.0.1** <small>_Oct 06, 2019_</small> - [Diff](https://github.com/bookshelf/bookshelf/compare/1.0.0...1.0.1)
#### Bug fixes
- Fix JSON.stringify causing TypeError in some cases: [#2029](https://github.com/bookshelf/bookshelf/pull/2029)
#### Documentation
- Add documentation for Model#id: [#2031](https://github.com/bookshelf/bookshelf/pull/2031)
- Fix number of arguments in Model#save doclet: [#2030](https://github.com/bookshelf/bookshelf/pull/2030)
#### Dependencies
- Update js-yaml to version 3.13.1: [#2023](https://github.com/bookshelf/bookshelf/pull/2023)
- Update handlebars to version 4.2.1: [#2022](https://github.com/bookshelf/bookshelf/pull/2022)
- Update uuid to version 3.3.3: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update sqlite3 to version 4.1.0: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update sinon to 7.4.2: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update prettier to 1.18.2: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update mocha to version 6.2.0: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update lint-staged to version 9.2.5: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update jsdoc to version 3.6.3: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update husky to version 3.0.5: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update eslint-plugin-prettier to version 3.1.1: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update eslint-config-prettier to version 6.3.0: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update eslint to version 6.4.0: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update chai to 4.2.0: [#2021](https://github.com/bookshelf/bookshelf/pull/2021)
- Update eslint-utils from 1.3.1 to 1.4.2: [#2020](https://github.com/bookshelf/bookshelf/pull/2020)
**1.0.0** <small>_Sep 13, 2019_</small> - [Diff](https://github.com/bookshelf/bookshelf/compare/0.15.1...1.0.0)

@@ -4,0 +33,0 @@

27

lib/base/model.js

@@ -113,2 +113,27 @@ // Base Model

/**
* A special property of models which represents their unique identifier, named by the
* {@link Model#idAttribute idAttribute}. If you set the `id` in the attributes hash,
* it will be copied onto the model as a direct property.
*
* Models can be retrieved by their id from collections, and the id is used when fetching
* models and building model relations.
*
* Note that a model's `id` property can always be accessed even when the value of its
* {@link Model#idAttribute idAttribute} is not `'id'`.
*
* @member {(number|string)}
* @example
* const Television = bookshelf.model('Television', {
* tableName: 'televisions',
* idAttribute: 'coolId'
* })
*
* new Television({coolId: 1}).fetch(tv => {
* tv.get('coolId') // 1
* tv.id // 1
* })
*/
ModelBase.prototype.id;
/**
* @member {string}

@@ -489,3 +514,3 @@ * @default "id"

ModelBase.prototype.serialize = function(options) {
if (!options) options = {};
if (typeof options !== 'object' || options === null) options = {};
if (options.visibility === null || options.visibility === undefined) options.visibility = true;

@@ -492,0 +517,0 @@

26

package.json
{
"name": "bookshelf",
"version": "1.0.0",
"version": "1.0.1",
"description": "A lightweight ORM for PostgreSQL, MySQL, and SQLite3",

@@ -46,19 +46,19 @@ "main": "bookshelf.js",

"bookshelf-jsdoc-theme": "^1.0.1",
"chai": "4.0.2",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.0.0",
"husky": "^3.0.0",
"chai": "^4.2.0",
"eslint": "^6.4.0",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.5",
"istanbul": "^0.4.5",
"jsdoc": "^3.4.0",
"jsdoc": "^3.6.3",
"knex": "~0.19.4",
"lint-staged": "^9.1.0",
"mocha": "^6.1.4",
"lint-staged": "^9.2.5",
"mocha": "^6.2.0",
"mysql": "^2.17.1",
"pg": "^7.11.0",
"prettier": "^1.14.2",
"sinon": "^7.3.2",
"prettier": "^1.18.2",
"sinon": "^7.4.2",
"sinon-chai": "^3.3.0",
"sqlite3": "^4.0.9",
"uuid": "^3.3.2"
"sqlite3": "^4.1.0",
"uuid": "^3.3.3"
},

@@ -65,0 +65,0 @@ "peerDependencies": {

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