ecto 4.2.1 → 4.2.2

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/README.md CHANGED
@@ -12,9 +12,16 @@
12
12
 
13
13
  Ecto is a modern template consolidation engine that enables the best template engines: EJS, Markdown, Pug, Nunjucks, Mustache, Handlebars, and Liquid. It consolidates these template engines to a single library, allowing you to use any of them with ease.
14
14
 
15
+ # Features
16
+
17
+ * Zero Config by default but all properties exposed for flexibility. Check out our easy [API.](#api)
18
+ * Async `render` and `renderFromFile` functions for ES6 and Typescript.
19
+ * [Render via Template File](#render-from-file) with Automatic Engine Selection. No more selecting which engine to use, engine choice is automatically decided based on the file extension.
20
+ * [Only the Top Template Engines](#only-the-top-template-engines-and-their-extensions): EJS, Markdown, Pug, Nunjucks, Mustache, Liquid, and Handlebars.
21
+ * FrontMatter Helpers `.hasFrontMatter`, `.getFrontMatter`, and `.removeFrontMatter` for Markdown files.
22
+ * Maintained with Monthly Updates!
23
+
15
24
  # Table of Contents
16
- * [Features](#features)
17
- * [ESM and Node Version Support](#esm-and-node-version-support)
18
25
  * [Getting Started](#getting-started)
19
26
  * [Only the Top Template Engines and Their Extensions](#only-the-top-template-engines-and-their-extensions)
20
27
  * [API - Methods and Parameters](#api---methods-and-parameters)
@@ -35,19 +42,6 @@ Ecto is a modern template consolidation engine that enables the best template en
35
42
  * [How to Contribute](#how-to-contribute)
36
43
  * [License](#license)
37
44
 
38
- # Features
39
-
40
- * Zero Config by default but all properties exposed for flexibility. Check out our easy [API.](#api)
41
- * Async `render` and `renderFromFile` functions for ES6 and Typescript.
42
- * [Render via Template File](#render-from-file) with Automatic Engine Selection. No more selecting which engine to use, engine choice is automatically decided based on the file extension.
43
- * [Only the Top Template Engines](#only-the-top-template-engines-and-their-extensions): EJS, Markdown, Pug, Nunjucks, Mustache, Liquid, and Handlebars.
44
- * FrontMatter Helpers `.hasFrontMatter`, `.getFrontMatter`, and `.removeFrontMatter` for Markdown files.
45
- * Maintained with Monthly Updates!
46
-
47
- # ESM and Node Version Support
48
-
49
- This package is ESM only and tested on the current lts version and its previous. Please don't open issues for questions regarding CommonJS / ESM or previous Nodejs versions. To learn more about using ESM please read this from `sindresorhus`: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
50
-
51
45
  # Getting Started
52
46
 
53
47
  The [Node.js package manager documentation](https://nodejs.org/en/download/package-manager/) provides the commands needed to complete the install on Windows and other operating systems.
package/dist/ecto.d.ts CHANGED
@@ -102,6 +102,7 @@ declare class Ecto {
102
102
  constructor(options?: EctoOptions);
103
103
  /**
104
104
  * Get the default engine
105
+ * @returns {string} - the engine name such as 'ejs', 'markdown', 'pug', 'nunjucks', 'handlebars', 'liquid'
105
106
  */
106
107
  get defaultEngine(): string;
107
108
  /**
package/dist/ecto.js CHANGED
@@ -314,6 +314,7 @@ var Ecto = class {
314
314
  }
315
315
  /**
316
316
  * Get the default engine
317
+ * @returns {string} - the engine name such as 'ejs', 'markdown', 'pug', 'nunjucks', 'handlebars', 'liquid'
317
318
  */
318
319
  get defaultEngine() {
319
320
  return this.__defaultEngine;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecto",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
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",
@@ -47,28 +47,27 @@
47
47
  "liquidjs"
48
48
  ],
49
49
  "dependencies": {
50
- "@jaredwray/fumanchu": "^3.0.3",
50
+ "@jaredwray/fumanchu": "^3.0.4",
51
51
  "ejs": "^3.1.10",
52
52
  "liquidjs": "^10.21.0",
53
53
  "nunjucks": "^3.2.4",
54
54
  "pug": "^3.0.3",
55
55
  "underscore": "^1.13.7",
56
- "writr": "^4.4.1"
56
+ "writr": "^4.4.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/ejs": "^3.1.5",
60
- "@types/express": "^5.0.0",
61
- "@types/node": "^22.13.9",
60
+ "@types/node": "^22.14.0",
62
61
  "@types/nunjucks": "^3.2.6",
63
62
  "@types/pug": "^2.0.10",
64
63
  "@types/underscore": "^1.13.0",
65
- "@vitest/coverage-v8": "^3.0.8",
66
- "docula": "^0.10.1",
64
+ "@vitest/coverage-v8": "^3.1.1",
65
+ "docula": "^0.11.0",
67
66
  "rimraf": "^6.0.1",
68
67
  "tsup": "^8.4.0",
69
- "typescript": "^5.8.2",
70
- "vitest": "^3.0.8",
71
- "webpack": "^5.98.0",
68
+ "typescript": "^5.8.3",
69
+ "vitest": "^3.1.1",
70
+ "webpack": "^5.99.5",
72
71
  "xo": "^0.60.0"
73
72
  },
74
73
  "xo": {