ecto 4.1.4 → 4.1.5

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.js +3 -2
  2. package/package.json +13 -17
package/dist/ecto.js CHANGED
@@ -103,14 +103,15 @@ var Markdown = class extends BaseEngine {
103
103
  // src/engines/handlebars.ts
104
104
  import fs from "node:fs";
105
105
  import * as _ from "underscore";
106
- import fumanchu from "@jaredwray/fumanchu";
106
+ import { helpers, handlebars } from "@jaredwray/fumanchu";
107
107
  var Handlebars = class extends BaseEngine {
108
108
  partialsPath = ["partials", "includes", "templates"];
109
109
  constructor(options) {
110
110
  super();
111
111
  this.names = ["handlebars", "mustache"];
112
112
  this.opts = options;
113
- this.engine = fumanchu;
113
+ this.engine = handlebars;
114
+ helpers({ handlebars }, this.opts);
114
115
  this.setExtensions(["hbs", "hjs", "handlebars", "mustache"]);
115
116
  }
116
117
  async render(source, data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecto",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "Modern Template Consolidation Engine for EJS, Markdown, Pug, Nunjucks, Liquid, and Handlebars",
5
5
  "type": "module",
6
6
  "main": "./dist/ecto.js",
@@ -21,9 +21,8 @@
21
21
  "watch": "tsc -w -p .",
22
22
  "clean": "rimraf ./dist yarn.lock package-lock.json pnpm-lock.yaml ./coverage ./node_modules ./site/readme.md ./dist-site",
23
23
  "test": "xo --fix && vitest run --coverage",
24
- "compile": "rimraf ./dist && tsup src/ecto.ts --format esm --dts --clean",
25
- "build": "rimraf ./dist && npm run compile",
26
- "prepare": "rimraf ./dist && npm run compile",
24
+ "build": "rimraf ./dist && tsup src/ecto.ts --format esm --dts --clean",
25
+ "prepare": "npm run build",
27
26
  "website:build": "rimraf ./site/readme.md && npx -y docula build -s ./site -o ./dist-site",
28
27
  "website:serve": "rimraf ./site/readme.md && npx -y docula serve -s ./site -o ./dist-site"
29
28
  },
@@ -48,37 +47,34 @@
48
47
  "liquidjs"
49
48
  ],
50
49
  "dependencies": {
51
- "@jaredwray/fumanchu": "^2.1.0",
50
+ "@jaredwray/fumanchu": "^3.0.2",
52
51
  "ejs": "^3.1.10",
53
- "liquidjs": "^10.19.0",
52
+ "liquidjs": "^10.20.0",
54
53
  "nunjucks": "^3.2.4",
55
54
  "pug": "^3.0.3",
56
55
  "underscore": "^1.13.7",
57
- "writr": "^4.1.4"
56
+ "writr": "^4.3.0"
58
57
  },
59
58
  "devDependencies": {
60
59
  "@types/ejs": "^3.1.5",
61
60
  "@types/express": "^5.0.0",
62
- "@types/node": "^22.10.1",
61
+ "@types/node": "^22.10.2",
63
62
  "@types/nunjucks": "^3.2.6",
64
63
  "@types/pug": "^2.0.10",
65
64
  "@types/underscore": "^1.13.0",
66
- "@vitest/coverage-v8": "^2.1.6",
67
- "docula": "^0.9.5",
65
+ "@vitest/coverage-v8": "^2.1.8",
66
+ "docula": "^0.9.6",
68
67
  "rimraf": "^6.0.1",
69
68
  "tsup": "^8.3.5",
70
69
  "typescript": "^5.7.2",
71
- "vitest": "^2.1.6",
72
- "webpack": "^5.96.1",
73
- "xo": "^0.59.3"
70
+ "vitest": "^2.1.8",
71
+ "webpack": "^5.97.1",
72
+ "xo": "^0.60.0"
74
73
  },
75
74
  "xo": {
76
75
  "ignores": [
77
76
  "vitest.config.mjs"
78
- ],
79
- "rules": {
80
- "n/file-extension-in-import": "off"
81
- }
77
+ ]
82
78
  },
83
79
  "files": [
84
80
  "dist",