ventojs 2.3.0 → 2.3.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [2.3.1] - 2026-02-21
8
+ ### Fixed
9
+ - Types for Node [#174]
10
+ - `FileSystemDirectoryHandle` types in Deno.
11
+ - Added `strict` option to browser version.
12
+
7
13
  ## [2.3.0] - 2025-12-25
8
14
  ### Added
9
15
  - New `default` tag to assign fallback content to a variable [#164], [#166].
@@ -115,7 +121,9 @@ Vento 2.0 is now dependency-free and compatible with browsers without a build st
115
121
  [#164]: https://github.com/ventojs/vento/issues/164
116
122
  [#166]: https://github.com/ventojs/vento/issues/166
117
123
  [#167]: https://github.com/ventojs/vento/issues/167
124
+ [#174]: https://github.com/ventojs/vento/issues/174
118
125
 
126
+ [2.3.1]: https://github.com/ventojs/vento/compare/v2.3.0...v2.3.1
119
127
  [2.3.0]: https://github.com/ventojs/vento/compare/v2.2.0...v2.3.0
120
128
  [2.2.0]: https://github.com/ventojs/vento/compare/v2.1.1...v2.2.0
121
129
  [2.1.1]: https://github.com/ventojs/vento/compare/v2.1.0...v2.1.1
@@ -1,3 +1,4 @@
1
+ /// <reference lib="dom" />
1
2
  import { join } from "./utils.js";
2
3
  /**
3
4
  * Vento FileSystem API loader for loading templates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ventojs",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "🌬 A minimal but powerful template engine",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- import { Token } from "./tokenizer.d.ts";
1
+ import type { Token } from "./tokenizer.d.ts";
2
2
  export interface TemplateResult {
3
3
  content: string;
4
4
  [key: string]: unknown;
package/types/mod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Environment, type Loader } from "./core/environment.d.ts";
1
+ import type { Environment, Loader } from "./core/environment.d.ts";
2
2
  export interface Options {
3
3
  includes?: string | Loader;
4
4
  autoDataVarname?: boolean;
package/types/web.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { Environment, type Loader } from "./core/environment.d.ts";
1
+ import type { Environment, Loader } from "./core/environment.d.ts";
2
2
  export interface Options {
3
3
  includes: URL | Loader;
4
4
  autoDataVarname?: boolean;
5
5
  dataVarname?: string;
6
6
  autoescape?: boolean;
7
+ strict?: boolean;
7
8
  }
8
9
  export default function (options: Options): Environment;
package/web.js CHANGED
@@ -12,6 +12,7 @@ export default function (options) {
12
12
  dataVarname: options.dataVarname || "it",
13
13
  autoescape: options.autoescape ?? false,
14
14
  autoDataVarname: options.autoDataVarname ?? true,
15
+ strict: options.strict ?? false,
15
16
  });
16
17
  // Register the default plugins
17
18
  env.use(defaultPlugins());