8000 v1.16.0 · twigjs/twig.js@8d69d0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d69d0a

Browse files
authored
v1.16.0
Major improvements: * Fix passing context around by @willrowe in #850 * Add namespace support to `source` function by @willrowe in #823 * Use src/twig.js as package's main script instead of the compiled twig.js by @RobLoach in #829 Minor improvements: * Fix macro changing context in loop by @mihkeleidast in #773 * Imported function PATHS.strip_slash() missing by @murageyun in #770 * Convert non-string values to string before replacing by @kmonahan in #797 * Add GitHub actions test workflow by @willrowe in #817 * Fix date parsing with timezones by @plepe in #765 * Fixed Twig official's URL on README.md by @Geolim4 in #822 * Add tests for whitespace in paths by @willrowe in #824 * Fix multiple includes with embeds by @willrowe in #828 * Update to Mocha 9.x by @RobLoach in #831 * Add test for issue #767 by @willrowe in #837 * Add support for `divisible by` test by @willrowe in #838 * Add support for `with` tag without context or `only` keyword by @willrowe in #839 * Use v3 of `actions/checkout` by @willrowe in #846 * Test on more node versions by @willrowe in #847 * Fix webpack 5 compatibility by @willrowe in #849 * Add test to confirm `renderFile` error handling by @willrowe in #851 * Fix casing of variables in docs by @willrowe in #852 * Bumped dependencies by @dependabot
1 parent 12c8b31 commit 8d69d0a

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
Version 1.16.0, release 2023-02-27
2+
----------------------------------
3+
Major improvements:
4+
* Fix passing context around by @willrowe in https://github.com/twigjs/twig.js/pull/850
5+
* Add namespace support to `source` function by @willrowe in https://github.com/twigjs/twig.js/pull/823
6+
* Use src/twig.js as package's main script instead of the compiled twig.js by @RobLoach in https://github.com/twigjs/twig.js/pull/829
7+
8+
Minor improvements:
9+
* Fix macro changing context in loop by @mihkeleidast in https://github.com/twigjs/twig.js/pull/773
10+
* Imported function PATHS.strip_slash() missing by @murageyun in https://github.com/twigjs/twig.js/pull/770
11+
* Convert non-string values to string before replacing by @kmonahan in https://github.com/twigjs/twig.js/pull/797
12+
* Add GitHub actions test workflow by @willrowe in https://github.com/twigjs/twig.js/pull/817
13+
* Fix date parsing with timezones by @plepe in https://github.com/twigjs/twig.js/pull/765
14+
* Fixed Twig official's URL on README.md by @Geolim4 in https://github.com/twigjs/twig.js/pull/822
15+
* Add tests for whitespace in paths by @willrowe in https://github.com/twigjs/twig.js/pull/824
16+
* Fix multiple includes with embeds by @willrowe in https://github.com/twigjs/twig.js/pull/828
17+
* Update to Mocha 9.x by @RobLoach in https://github.com/twigjs/twig.js/pull/831
18+
* Add test for issue #767 by @willrowe in https://github.com/twigjs/twig.js/pull/837
19+
* Add support for `divisible by` test by @willrowe in https://github.com/twigjs/twig.js/pull/838
20+
* Add support for `with` tag without context or `only` keyword by @willrowe in https://github.com/twigjs/twig.js/pull/839
21+
* Use v3 of `actions/checkout` by @willrowe in https://github.com/twigjs/twig.js/pull/846
22+
* Test on more node versions by @willrowe in https://github.com/twigjs/twig.js/pull/847
23+
* Fix webpack 5 compatibility by @willrowe in https://github.com/twigjs/twig.js/pull/849
24+
* Add test to confirm `renderFile` error handling by @willrowe in https://github.com/twigjs/twig.js/pull/851
25+
* Fix casing of variables in docs by @willrowe in https://github.com/twigjs/twig.js/pull/852
26+
* Bumped dependencies by @dependabot
27+
128
Version 1.15.4, released 2020-11-27
229
-----------------------------------
330
Minor improvements:

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "John Roepke <john@justjohn.us> (http://john.sh/)",
33
"name": "twig",
44
"description": "JS port of the Twig templating language.",
5-
"version": "1.15.4",
5+
"version": "1.16.0",
66
"homepage": "https://github.com/twigjs/twig.js",
77
"license": "BSD-2-Clause",
88
"licenses": [

src/twig.factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This file handles creating the Twig library
44
module.exports = function factory() {
55
const Twig = {
6-
VERSION: '1.14.0'
6+
VERSION: '1.16.0'
77
};
88

99
require('./twig.core')(Twig);

test/test.factory.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ describe('Twig.js Factory ->', function () {
1111
return 'bar';
1212
});
1313

14+
it('should have the correct VERSION in twig.factory.js', function () {
15+
// Twig.js embeds the version number in twig.factory.js to
16+
// allow checking against Twig.VERSION. We should check to
17+
// make sure the package.json version is the same.
18+
const pkg = require('../package.json');
19+
Twig.VERSION.should.not.be.null();
20+
Twig.VERSION.should.equal(pkg.version);
21+
});
22+
1423
it('should not have access to extensions on the main Twig object', function () {
1524
const fixtOptions = {
1625
rethrow: true,

0 commit comments

Comments
 (0)
0