@rhinostone/swig 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changes/v1.4.7.md +8 -0
- package/HISTORY.md +8 -0
- package/README.md +1 -1
- package/ROADMAP.md +6 -0
- package/lib/loaders/index.js +1 -1
- package/lib/swig.js +2 -2
- package/package.json +4 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[1.4.7](https://github.com/gina-io/swig/tree/v1.4.7) / 2026-04-10
|
|
2
|
+
-----------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
* **Changed** Upgrade `yargs` from 3.x to 17.x, replacing unmaintained transitive dependencies (`os-locale`, `window-size`, `number-is-nan`, `ansi-regex@2`, etc.) with actively maintained equivalents
|
|
5
|
+
|
|
6
|
+
* **Changed** Update `engines` field to `node >= 12` (reflects actual minimum required by `terser` and `yargs` 17)
|
|
7
|
+
|
|
8
|
+
* **Fixed** Replace private IP address (`192.168.0.2`) with `localhost:11211` in JSDoc example for template loaders
|
package/HISTORY.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
[1.4.7](https://github.com/gina-io/swig/tree/v1.4.7) / 2026-04-10
|
|
2
|
+
-----------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
* **Changed** Upgrade `yargs` from 3.x to 17.x, replacing unmaintained transitive dependencies (`os-locale`, `window-size`, `number-is-nan`, `ansi-regex@2`, etc.) with actively maintained equivalents
|
|
5
|
+
|
|
6
|
+
* **Changed** Update `engines` field to `node >= 12` (reflects actual minimum required by `terser` and `yargs` 17)
|
|
7
|
+
|
|
8
|
+
* **Fixed** Replace private IP address (`192.168.0.2`) with `localhost:11211` in JSDoc example for template loaders
|
|
1
9
|
[1.4.6](https://github.com/gina-io/swig/tree/v1.4.6) / 2026-04-10
|
|
2
10
|
-----------------------------------------------------------------
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Swig
|
|
2
2
|
====
|
|
3
3
|
|
|
4
|
-
[](https://github.com/gina-io/swig/actions/workflows/ci.yml) [](https://www.npmjs.org/package/@rhinostone/swig) [](https://www.npmjs.org/package/@rhinostone/swig)
|
|
4
|
+
[](https://github.com/gina-io/swig/actions/workflows/ci.yml) [](https://www.npmjs.org/package/@rhinostone/swig) [](https://www.npmjs.org/package/@rhinostone/swig) [](https://socket.dev/npm/package/@rhinostone/swig)
|
|
5
5
|
|
|
6
6
|
> **Maintained fork.** This is [gina-io/swig](https://github.com/gina-io/swig), a maintained fork of the abandoned [paularmstrong/swig](https://github.com/paularmstrong/swig). Security fixes and critical bug fixes land here; no new features are planned. The original project has not had a release since 2014.
|
|
7
7
|
|
package/ROADMAP.md
CHANGED
|
@@ -16,6 +16,12 @@ For bug reports and feature requests, file an issue at [gina-io/swig](https://gi
|
|
|
16
16
|
|
|
17
17
|
## Completed
|
|
18
18
|
|
|
19
|
+
### v1.4.7 (April 2026)
|
|
20
|
+
|
|
21
|
+
- Upgrade `yargs` from 3.x to 17.x, replacing unmaintained transitive dependencies with actively maintained equivalents
|
|
22
|
+
- Update `engines` field to `node >= 12` (reflects actual minimum required by runtime dependencies)
|
|
23
|
+
- Fix private IP address in JSDoc example for template loaders
|
|
24
|
+
|
|
19
25
|
### v1.4.6 (April 2026)
|
|
20
26
|
|
|
21
27
|
- Replace `uglify-js` with `terser` in CLI (`--minify` flag), removing the last Snyk-flagged runtime dependency
|
package/lib/loaders/index.js
CHANGED
package/lib/swig.js
CHANGED
|
@@ -8,11 +8,11 @@ var utils = require('./utils'),
|
|
|
8
8
|
/**
|
|
9
9
|
* Swig version number as a string.
|
|
10
10
|
* @example
|
|
11
|
-
* if (swig.version === "1.4.
|
|
11
|
+
* if (swig.version === "1.4.7") { ... }
|
|
12
12
|
*
|
|
13
13
|
* @type {String}
|
|
14
14
|
*/
|
|
15
|
-
exports.version = "1.4.
|
|
15
|
+
exports.version = "1.4.7";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Swig Options Object. This object can be passed to many of the API-level Swig methods to control various aspects of the engine. All keys are optional.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhinostone/swig",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "A simple, powerful, and extendable templating engine for node.js and browsers, similar to Django, Jinja2, and Twig.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"template",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"terser": "^5.46.1",
|
|
25
|
-
"yargs": "
|
|
25
|
+
"yargs": "^17.7.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"blanket": "~1.1",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"main": "index",
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=12"
|
|
47
47
|
},
|
|
48
48
|
"bin": {
|
|
49
49
|
"swig": "./bin/swig.js"
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
+
"homepage": "https://github.com/gina-io/swig#readme",
|
|
66
67
|
"bugs": {
|
|
67
68
|
"url": "https://github.com/gina-io/swig/issues"
|
|
68
69
|
}
|