CHANGELOG.md (4645B)
1 1.2.7 (2024-03-21) 2 ------------------ 3 4 New: 5 - fallback to default when mustach_wrap_get_partial 6 returns MUSTACH_ERROR_PARTIAL_NOT_FOUND 7 - remove at compile time the load of files for templates 8 if MUSTACH_LOAD_TEMPLATE is defined as 0 9 - add compile time flag MUSTACH_SAFE for enforcing 10 safety behaviours 11 12 Fix: 13 - selection of subitem by index (#47) 14 - get latest iterated key when getting key name (#52) 15 - allow tests without valgrind 16 - avoid recursive template expansion (#55) 17 18 1.2.6 (2024-01-08) 19 ------------------ 20 21 Fix: 22 - improve naming (#42) 23 - magical spaces in recursive partials (#43) 24 - installation when tool isn't built 25 - correct detection of falsey values (#45) 26 27 Minor: 28 - update to newer reference tests 29 30 1.2.5 (2023-02-18) 31 ------------------ 32 33 Fix: 34 - Don't override CFLAGS in Makefile 35 - Use of $(INSTALL) in Makefile for setting options 36 37 Minor: 38 - Orthograf of 'instantiate' 39 40 1.2.4 (2023-01-02) 41 ------------------ 42 43 Fix: 44 - Latent SIGSEGV using cJSON 45 46 1.2.3 (2022-12-21) 47 ------------------ 48 49 New: 50 - Flag Mustach_With_ErrorUndefined (and option --strict for the tool) 51 for returning a requested tag is not defined 52 - Test of specifications in separate directory 53 54 Fix: 55 - Version printing is now okay 56 - Compiling libraries on Darwin (no soname but install_name) 57 - Compiling test6 with correct flags 58 - Update test from specifications 59 - Better use of valgrind reports 60 61 1.2.2 (2021-10-28) 62 ------------------ 63 64 Fix: 65 - SONAME of libmustach-json-c.so 66 67 1.2.1 (2021-10-19) 68 ------------------ 69 70 New: 71 - Add SONAME in libraries. 72 - Flag Mustach_With_PartialDataFirst to switch the 73 policy of resolving partials. 74 75 Fix: 76 - Identification of types in cJSON 77 78 1.2.0 (2021-08-24) 79 ------------------ 80 81 New: 82 - Add hook 'mustach_wrap_get_partial' for handling partials. 83 - Add test of mustache specifications https://github.com/mustache/spec. 84 85 Changes: 86 - Mustach_With_SingleDot is always set. 87 - Mustach_With_IncPartial is always set. 88 - Mustach_With_AllExtensions is changed to use currently known extensions. 89 - Output of tests changed. 90 - Makefile improved. 91 - Partials are first searched as file then in current selection. 92 - Improved management of delimiters. 93 94 Fixes: 95 - Improved output accordingly to https://github.com/mustache/spec: 96 - escaping of quote " 97 - interpolating null with empty string 98 - removal of empty lines with standalone tag 99 - don't enter section if null 100 - indentation of partials 101 - comment improved for get of mustach_wrap_itf. 102 103 1.1.1 (2021-08-19) 104 ------------------ 105 Fixes: 106 - Avoid conflicting with getopt. 107 - Remove unexpected build artifact. 108 - Handle correctly a size of 0. 109 110 1.1.0 (2021-05-01) 111 ------------------ 112 New: 113 - API refactored to take lengths to ease working with partial or 114 non-NULL-terminated strings. (ABI break) 115 116 Fixes: 117 - Use correct int type for jansson (json_int_t instead of int64_t). 118 - JSON output of different backends is now the same. 119 120 1.0 (2021-04-28, retracted) 121 --------------------------- 122 Legal: 123 - License changed to ISC. 124 125 Fixes: 126 - Possible data leak in memfile_open() by clearing buffers. 127 - Fix build on Solaris-likes by including alloca.h. 128 - Fix Windows build by including malloc.h, using size_t instead of 129 ssize_t, and using the standard ternary operator syntax. 130 - Fix JSON in test3 by using double quote characters. 131 - Fix installation in alternative directories such as 132 /opt/pkg/lib on macOS by setting install_name. 133 - Normalise return values in compare() implementations. 134 135 New: 136 - Support for cJSON and jansson libraries. 137 - Version info now embedded at build time and shown with mustach(1) 138 usage. 139 - Versioned so-names (e.g. libxlsx.so.1.0). 140 - BINDIR, LIBDIR and INCLUDEDIR variables in Makefile. 141 - New mustach-wrap.{c,h} to ease implementation new libraries, 142 extracted and refactored from the existing implementations. 143 - Makefile now supports 3 modes: single libmustach (default), split 144 libmustache-core etc, and both. 145 - Any or all backends (json-c, jansson, etc) can be enabled at compile 146 time. By default, all available libraries are used. 147 - mustach(1) can use any JSON backend instead of only json-c. 148 - MUSTACH_COMPATIBLE_0_99 can be defined for backwards source 149 compatibility. 150 - 'No extensions' can now be set Mustach_With_NoExtensions instead of 151 passing 0. 152 - pkgconfig (.pc) file for library. 153 - Manual page for mustach(1). 154 155 Changed: 156 - Many renames. 157 - Maximum tag length increased from 1024 to 4096. 158 - Other headers include json-c.h instead of using forward declarations. 159 - mustach(1) reads from /dev/stdin instead of fd 0. 160 - Several structures are now taken as const. 161 - New/changed Makefile targets.