Socket
Book a DemoInstallSign in
Socket

js-data-sql

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-data-sql - npm Package Versions

234

1.0.1

Diff
j
jdobry
published 1.0.1 •

Changelog

Source

1.0.1 - 18 August 2017

Bug fixes
  • Remove mysql from dependencies
j
jdobry
published 1.0.0 •

Changelog

Source

1.0.0 - 17 August 2017

Stable 1.0.0 release

j
jdobry
published 1.0.0-beta.3 •

Changelog

Source

1.0.0-beta.3 - 16 May 2016

Bug fixes
  • Small fix for filterQuery
j
jdobry
published 1.0.0-beta.2 •

Changelog

Source

1.0.0-beta.2 - 16 May 2016

Breaking changes
  • Renamed knexOptions to knexOpts to be consistent with other adapters.
Backwards compatible changes
  • Added support for grouped where clauses
j
jdobry
published 1.0.0-beta.1 •

Changelog

Source

1.0.0-beta.1 - 14 May 2016

Official v1 beta release

Breaking changes
  • SqlAdapter#query has been renamed to SqlAdapter#knex

  • Options passed to new SqlAdapter are no longer passed directly to knex(options), instead knex options must be nested under a knexOpts field in the options object passed to new SqlAdapter, so as to separate knex options from adapter options.

  • Now depends on js-data v3, no longer works with js-data v2

  • The signature for the filterQuery method has been changed. filterQuery no longer performs any select, but only as where modifier to an existing sqlBuilder instance that must be passed as the first argument to filterQuery.

  • Now you must import like this:

    // CommonJS
    var JSDataSql = require('js-data-sql')
    var SqlAdapter = JSDataSql.SqlAdapter
    var adapter = new SqlAdapter({...})
    
    // ES2015 modules
    import {SqlAdapter} from 'js-data-sql'
    const adapter = new SqlAdapter({...})
    
  • SqlAdapter now extends the base Adapter class, which does the heavy lifting for eager-loading relations and adds a multitude of lifecycle hook methods.

t
techniq
published 0.11.17 •
t
techniq
published 0.11.16 •
t
techniq
published 0.11.15 •
t
techniq
published 0.11.14 •
t
techniq
published 0.11.13 •
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.