Code Monkey home page Code Monkey logo

Comments (6)

jgornick avatar jgornick commented on September 16, 2024

The reason why I also bring this up is because of this issue @ crcn/sift.js#14

Query-engine does have the same features and some extra sugar, however, I'd be more in favor of a lighter version of query-engine to work with native arrays.

from query-engine.

balupton avatar balupton commented on September 16, 2024

It sure is possible. Adapters could be made for different frameworks (or none). The question would then become, does it warrant the additional complexity?

As the problem with history.js (another project of mine that uses adapters) is that you must test the different adapters, which is fine the node.js way as it can easily be automated, however browser end, that gets way more complicated as automation is a lot more difficult to accomplish.

Development of adapters I'm definitely keen for, although they would require automated tests for each adapter client and server side.

from query-engine.

balupton avatar balupton commented on September 16, 2024

Progress is being made on this and will land in one of the next versions.

While live collections will require backbone (due to the events), the querying abilities will be able to be applied to anything. The backbone and underscore dependencies will be dropped too.

from query-engine.

balupton avatar balupton commented on September 16, 2024

Query Engine v1.4.0 no longer requires backbone or underscore.

The API for this is as follows:

var models = [{a:blah},{b:blah},{c:blah}]; // {a:{a:blah},b:{b:blah},{c:{c:blah}} also works
var criteria = new queryEngine.Criteria({queries:blah,filters:blah,pills:blah,queryString:blah,comparator:blah,paging:blah});
var passedModels = criteria.testModels(models);

from query-engine.

balupton avatar balupton commented on September 16, 2024

Actually, will leave open until the docs are done.

from query-engine.

balupton avatar balupton commented on September 16, 2024

Have plans for updating query-engine for a new type of ES6+ model system.

from query-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.