All notable changes to this project will be documented in this file. Dates are displayed in UTC.
- feat: add custom method handlers support, refactor references.js
#146
- chore: add npm ci support
91baab1
- chore: update readme.md
eb8c93a
12 November 2021
- chore: better error handler
#142
- Addressing #140, also added a bit more defensive code in case pos is missing in error situations
#141
- Fixing #140, also added a bit more defensive code in case pos is missing in error situations
eed1a16
- chore: update history script
585bdab
27 October 2021
2 December 2020
- fix: issue with loop variable access inside nested foreach statements
#136
- fix: issue with loop variable access inside nested foreach statements
#135
- chore: 2.0.3
93245a5
- fix: issue with loop variable access inside nested foreach statements 136
- add default set and get method for array and map object 133
- fix Bug with #set inside #foreach 129
Break change
First, default escape config set to false. For example
#set($foo = '<div>') $foo
At 1.x , result is <div>
, for 2.x, output result <div>
, no escapeHtml variable.
- add quotes to escape when escape option set true 125
- Added support for remove in ArrayList and Map @mdrewt #124
- Support format quiet syntax ${ ref }, fix #120
- fixes issue#113 support for add method on arrays by @gauravlanjekar #114
- fix Velocity cli error fix #109
- fix: Allow own keySet, entrySet, put and size methods on objects by @lightsofapollo !106
- feat: Add support for .put, fix issue #103 by @lightsofapollo
- feat: add config.valueMapper support by @lightsofapollo #105
- fix: ignore path where build on broswer, fix issue #102
- fix: #set bug in nested #foreach loops #100
- feat: support macro bodyContext !97
- fix: #set variable key not work !91
- feat: support text version of logical operators !90
- fix: keep newline after unparse block !83
- fix: support foreach.hasnext when iterating objects !81
- fix: #set bug with eval string #79
- fix: #set false when in forEach statement #77
- add typescript DefinitelyTyped index.d.ts
- fix bug #foreach with nest empty foreach !70
- fix bug when render
#foreach(${itemData} in ${defaultData})
, see #69
- fix comment bug #67
- nothing change, just update npm page readme
- set bug fix #63
Before set value will set undefined node as plan object
#set($a = {}) #set($a.c.d = 1) $a.c.d
This will output 1
.
But now, in 0.8.0 version, a.c will not set as {}, so output is $a.c.d
.
- toString rewrite only when toString equal function { [native code]} 57
- toString like org.apache.velocity when render 56
- fix: merge 52
- fix: merge 51
- feat: merge 47
- feat: merge 46
- feat: self define macro context keep to origin object
- fix: allow optional space after colon in map passed as parameter to macro (#38 by @jamescookie)
- feature: support friendly error stack #35
- chore: improve coverage
- fix issue #32
- Remove useless code: Helper
- merge pull request #34
- fix issue #32