ecto 4.8.7 → 5.0.0

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.
Files changed (2) hide show
  1. package/dist/ecto.mjs +2 -7
  2. package/package.json +12 -10
package/dist/ecto.mjs CHANGED
@@ -5,7 +5,6 @@ import { Hookified } from "hookified";
5
5
  import { Writr } from "writr";
6
6
  import ejs from "ejs";
7
7
  import { fumanchu } from "@jaredwray/fumanchu";
8
- import { decode } from "ent";
9
8
  import { Liquid as Liquid$1 } from "liquidjs";
10
9
  import * as nunjucks from "nunjucks";
11
10
  import * as pug from "pug";
@@ -110,15 +109,11 @@ var Handlebars = class extends BaseEngine {
110
109
  }
111
110
  async render(source, data) {
112
111
  if (this.rootTemplatePath) this.initPartials();
113
- let result = this.engine.compile(source, this.opts)(data, this.opts);
114
- result = decode(result);
115
- return result;
112
+ return this.engine.compile(source, this.opts)(data, this.opts);
116
113
  }
117
114
  renderSync(source, data) {
118
115
  if (this.rootTemplatePath) this.initPartials();
119
- let result = this.engine.compile(source, this.opts)(data, this.opts);
120
- result = decode(result);
121
- return result;
116
+ return this.engine.compile(source, this.opts)(data, this.opts);
122
117
  }
123
118
  initPartials() {
124
119
  for (const path of this.partialsPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecto",
3
- "version": "4.8.7",
3
+ "version": "5.0.0",
4
4
  "description": "Modern Template Consolidation Engine for EJS, Markdown, Pug, Nunjucks, Liquid, and Handlebars",
5
5
  "type": "module",
6
6
  "main": "./dist/ecto.mjs",
@@ -18,6 +18,9 @@
18
18
  },
19
19
  "author": "Jared Wray <me@jaredwray.com>",
20
20
  "license": "MIT",
21
+ "engines": {
22
+ "node": ">=22.18.0"
23
+ },
21
24
  "keywords": [
22
25
  "templates",
23
26
  "generator",
@@ -41,29 +44,28 @@
41
44
  "dependencies": {
42
45
  "@jaredwray/fumanchu": "^4.7.0",
43
46
  "cacheable": "^2.3.5",
44
- "ejs": "^5.0.2",
45
- "ent": "^2.2.2",
46
- "hookified": "^2.2.0",
47
+ "ejs": "^6.0.1",
48
+ "hookified": "^3.0.0",
47
49
  "liquidjs": "^10.27.0",
48
50
  "nunjucks": "^3.2.4",
49
51
  "pug": "^3.0.4",
50
52
  "writr": "^6.1.2"
51
53
  },
52
54
  "devDependencies": {
53
- "@biomejs/biome": "^2.4.15",
54
- "@faker-js/faker": "^10.4.0",
55
+ "@biomejs/biome": "^2.5.0",
56
+ "@faker-js/faker": "^10.5.0",
55
57
  "@types/ejs": "^3.1.5",
56
- "@types/ent": "^2.2.8",
57
58
  "@types/node": "^24.12.4",
58
59
  "@types/nunjucks": "^3.2.6",
59
60
  "@types/pug": "^2.0.10",
60
- "@vitest/coverage-v8": "^4.1.7",
61
+ "@vitest/coverage-v8": "^4.1.9",
61
62
  "docula": "^2.0.0",
62
63
  "rimraf": "^6.1.3",
63
64
  "tsdown": "^0.22.0",
64
65
  "typescript": "^6.0.3",
65
- "vite": "^8.0.14",
66
- "vitest": "^4.1.7"
66
+ "vite": "^8.0.16",
67
+ "vitest": "^4.1.9",
68
+ "wrangler": "^4.102.0"
67
69
  },
68
70
  "files": [
69
71
  "dist",