Comments (6)
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.
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.
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.
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.
Actually, will leave open until the docs are done.
from query-engine.
Have plans for updating query-engine for a new type of ES6+ model system.
from query-engine.
Related Issues (20)
- There's no Easy way to check that an array exists and has length HOT 1
- Support for $regex? HOT 3
- Demo page is broken HOT 2
- Backbone is always null in version 1.5.5 HOT 2
- Fix the CONTRIBUTING.md link in README.md HOT 1
- Add documentation for how to use the Criteria class directly on JavaScript objects
- Support for dot notation HOT 3
- Error 'Couldn't find the selector' when changing properties order in findAllLive HOT 1
- Incorrect link to demo page HOT 1
- Document logicalOperator
- Add project documentation HOT 1
- how to mix $or and $and ?
- Using with Webpack HOT 4
- Wrong behaviour resetting collection without models array
- reading property of undefined
- assert all selectors are tested
- move to esnext HOT 3
- Ensure consistency with latest mongodb nosql spec
- dead link on README file. HOT 2
- Issue when using without Backbone
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from query-engine.