-
Notifications
You must be signed in to change notification settings - Fork 3
/
changelog
65 lines (52 loc) · 2.61 KB
/
changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
BabaJS Changelog
================
Version 1.0.1
-------------
* fixed a bug in _ensureLocal - if the totalCount==0 then we return immidiatly
* add a method addTemplate - allowing developer to add one template at a time
* added a private _log method
* added a private _stringify method - this allows for browsers that have window.JSON to declare objects and array in code tags. For older browsers it is recomended to include a JSON lib to the project.
* fixed a bug in _compile - code tags that didn't had space between the tag and the code were not parsed correctly. i.e: <%return "a"%>
* fixed a bug in _findVar - i remove code inside of (...) in var declerations. for example, var a=fn(q,w),r=4; produced vars=[a,w,r] so now it produce vars=[a,r]
Version 1.0.2
-------------
* updated AddTemplate method - if we already have the template we ignore the command.
* fixed bug with varriable and stacks in _evalLoopTag and _evalConditionTag - forgot to add the _stringify method.
* fixed a bug in _compile - had a bug that i didn't handle properly the ending tag of <%ENDIF%> and <%ENDLOOP%>
Version 1.0.3
-------------
* fixed a bug with variable declerations. added the _stack decleration on the top of the library.
Version 1.0.4
-------------
* fixed a bug #2 - https://github.com/mrharel/babajs/issues/2 - loop breaks the template
Version 1.0.5
-------------
* fixed a bug with the variable findder:
the following code broke the function:
var a = {b:c,d:e};
Version 1.0.6
-------------
removed debugger from code.
Version 1.0.7
-------------
Added a security flag for assign and code tags (i.e. <% and <%= ):
the security flag tells BabaJS to escape the string according to the flag. s = low security which will escape <,>,",and '
and S = high security which will escape <,>,&,",',`,,!,@,$,%,(,),[,],{,},=, and +
Usage: all you need to do is to add the flag after the % sign like so: <%s return data.user_input%> or <%s= data.user_input> or <%S return data.user_input %>
Version 1.0.8
-------------
Full support of flags and hooks. this removed the support of previous version of the format <%s - now it is <%f(s) code %>
I'll add more documentation and examples in the readme file.
Version 1.0.9
-------------
_secureText: If text is null we return immidiatly.
Version 1.0.10
--------------
fixed a bug when the text has a $ sign in it, it creates an endless loop in the replace methods.
Version 1.1.0
-------------
No big changes in the functionality but small changes that make BabaJS run on Node.JS.
Version 1.1.1
-------------
Supporting the caching of templates. this affects the ensureLocal method, so it won't
load templates it already have.