{"head":"5b8c8cc984395c1ed9fea217e2d06dc0001e380e","size":6,"push_id":45929444,"shas":[["f31756b62de58a7f8af3b7cfa93c55b592c65f7a","59857d137849e9cca6b4fea36e6f62b6f764420b@gmail.com","Improved whitespace regexp","Ben Gillies"],["cbfa5d19d8773ce1b12291a3c59fef0c9f3ba4ca","59857d137849e9cca6b4fea36e6f62b6f764420b@gmail.com","Added sort, limit, parents, children, hasParent, hasChild filters\n\nThe new filters do the following:\n\n\t* sort takes a string or a function. If a string, pass in a comma\n\t  separated list of fields to sort by, optionally prepending \"-\"\n\t  before the field to signify descending order (e.g. \"tag, -title\").\n\t  If a function, it defers to Array.prototype.sort.\n\t* limit returns the first n items from the list.\n\t* parents, children, hasParent and hasChild work on the basis that\n\t  a tiddler y is a parent of x if x is tagged with the title of y. A\n\t  child is then the opposite (if x is tagged with y's title, x is\n\t  y's child).\n\t* parents and children take filter strings and return the\n\t  parents/children that match the filter directly.\n\t* hasParent and hasChild take filter strings and return the original\n\t  tiddlers (i.e. those already in the list) that have\n\t  parents/children that match the filter.","Ben Gillies"],["6fb9b348d0a6f99777e578fc387b1939d1ae1f9a","59857d137849e9cca6b4fea36e6f62b6f764420b@gmail.com","Added some tests and fixed code so they passed\n\nAdded tests for the new sort, limit, parents, children, hasParent,\nhasChild filters. Fixed code so that those tests now pass. The\nparents/children stuff now also works with the bind functionality, i.e.:\n\n\tts('#bookmark').parents('#javascript').bind(function(tid) {\n\t\t// this gets called every time a tiddler that has the tag\n\t\t// javascript and is tagged by a bookmark tiddler gets updated\n\t});\n\nThe sort/limit stuff doesn't really make sense for bind functionality at\nthe moment, so it currently doesn't affect it.","Ben Gillies"],["53a7170dede6dfd77e3da8192e2e49a72822071d","59857d137849e9cca6b4fea36e6f62b6f764420b@gmail.com","Extracted parent/child stuff into a separate module\n\nAfter a discussion with @jermolene, we decided that the parent/child\nstuff, while important, isn't appropriate for core chrjs-store, and that\nit should be a plugin instead.\n\nIt now lives in the extensions folder, complete with all the tests\nassociated with it.\n\nAlso, the Constructor for the filtering stuff can now be accessed\ndirectly from the store, e.g.:\n\n\tvar store = tiddlyweb.Store();\n\tvar emptyCollection = store.Collection(store, []);\n\nYou can use the new tree-filters module by doing:\n\n\tvar store = tiddlyweb.Store();\n\t$.extend(store.fn, require('tree-filters'));\n\nwhich will extend the default set of filters to include the tree\nspecific ones","Ben Gillies"],["794e463f50e670892a41e65e9ba02061979c2f3c","59857d137849e9cca6b4fea36e6f62b6f764420b@gmail.com","Curry the store.Collection constructor\n\nThe filter constructor takes a store and (optionally) a list of tiddlers\nas arguments. However, as the store.Collection function is on the store\nitself anyway, it doesn't really make sense to require the store as an\nargument. This removes that by currying the filter constructor.\n\nBefore:\n\n\tvar store = tiddlyweb.Store();\n\tvar emptyList = store.Collection(store);\n\nAfter:\n\n\tvar store = tiddlyweb.Store();\n\tvar emptyList = store.Collection();","Ben Gillies"],["5b8c8cc984395c1ed9fea217e2d06dc0001e380e","59857d137849e9cca6b4fea36e6f62b6f764420b@gmail.com","Released version 0.5.0\n\nChanges include new sort and limit filters and the exposure of the\nfilter collection constructor function.\n\nUse the sort function either like the inbuilt Array sort, or pass in a\nstring consisting of a comma separated list of field names to sort by\n(add a minus sign to sort in desc order).\n\nThe Collection object for filtering can now be created directly (useful\nif you want to manually put tiddlers into it and want to bypass the\nstore). Call it with:\n\n\tvar store = tiddlyweb.Store();\n\tvar list = store.Collection(tiddlers);\n\nWhere tiddlers is optional and a list of tiddlers that you want the\ncollection to contain.","Ben Gillies"]],"ref":"refs/heads/master"}