You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/History.html
+10
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,16 @@
178
178
179
179
180
180
181
+
<h1>0.2.3</h1>
182
+
<ul>
183
+
<li>Added new <code>getFacts</code> method to allow for querying of facts currently in session. <ahref="https://github.com/C2FO/nools/issues/52">#52</a>;</li>
184
+
<li>Added indexing on comparison operators (i.e. <code>>, <, >=, <=</code>).</li>
185
+
<li>Updated documentation.<ul>
186
+
<li>Added new section about retrieving facts from a session.</li>
187
+
<li>Created new section for async actions to address <ahref="https://github.com/C2FO/nools/issues/94">#94</a></li>
<p>For rules defined using the rules language nools will automatically determine what parameters need to be passed in based on what is referenced in the action.</p>
1282
+
<p><aname="action-async"></a></p>
1283
+
<h3>Async Actions</h3>
1284
+
<p>If your action is async you can use the third argument which should called when the action is completed.</p>
next(new Error("Something went BOOM!"));
1300
+
});
1301
+
}</code></pre>
1302
+
<p>If you are using a <ahref="http://promises-aplus.github.io/promises-spec/"><code>Promises/A+</code></a> compliant library you can just return a promise from your action and <code>nools</code> will wait for the promise to resolve before continuing.</p>
return saveToDatabase(user); // assume saveToDatabase returns a promise
1273
1305
}</code></pre>
1274
-
<p>For rules defined using the rules language nools will automatically determine what parameters need to be passed in based on what is referenced in the action.</p>
1275
1306
<p><aname="globals"></a></p>
1276
1307
<h3>Globals</h3>
1277
1308
<p>Globals are accessible through the current working scope of rules defined in a <code>dsl</code>, very similar to using the <code>scope</code> option when compiling.</p>
0 commit comments