ventojs 2.0.0-canary.3 → 2.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.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,7 @@ 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.0.0 - Unreleased
7
+ ## [2.0.0] - 2025-09-01
8
8
  Vento 2.0 is now dependency-free and compatible with browsers without a build step.
9
9
 
10
10
  ### Added
@@ -33,6 +33,7 @@ Vento 2.0 is now dependency-free and compatible with browsers without a build st
33
33
  -- }
34
34
  ++ env.compileTokens(tokens, tmpOutput, "/code");
35
35
  ```
36
+ - Prism and Highlight.js adapters: Rename language name to `vto` (from `vento`).
36
37
 
37
38
  ### Removed
38
39
  - `runStringSync` function.
@@ -50,3 +51,5 @@ Vento 2.0 is now dependency-free and compatible with browsers without a build st
50
51
  [#134]: https://github.com/ventojs/vento/issues/134
51
52
  [#137]: https://github.com/ventojs/vento/issues/137
52
53
  [#140]: https://github.com/ventojs/vento/issues/140
54
+
55
+ [2.0.0]: https://github.com/ventojs/vento/releases/tag/v2.0.0
@@ -1,7 +1,7 @@
1
1
  /** @type LanguageFn */
2
2
  export default function (hljs) {
3
3
  return {
4
- name: "vento",
4
+ name: "vto",
5
5
  subLanguage: "xml",
6
6
  contains: [
7
7
  hljs.COMMENT("{{#", "#}}"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ventojs",
3
- "version": "2.0.0-canary.3",
3
+ "version": "2.0.0",
4
4
  "description": "🌬 A minimal but powerful template engine",
5
5
  "type": "module",
6
6
  "repository": {
package/prism-vento.js CHANGED
@@ -1,4 +1,4 @@
1
- Prism.languages.vento = {
1
+ Prism.languages.vto = {
2
2
  "delimiter": {
3
3
  pattern: /\{{2}[->]?|-?\}{2}/,
4
4
  alias: "punctuation",
@@ -16,11 +16,11 @@ Prism.hooks.add("before-tokenize", function (env) {
16
16
  const ventoPattern = /\{{2}[\s\S]+\}{2}/g;
17
17
  Prism.languages["markup-templating"].buildPlaceholders(
18
18
  env,
19
- "vento",
19
+ "vto",
20
20
  ventoPattern,
21
21
  );
22
22
  });
23
23
 
24
24
  Prism.hooks.add("after-tokenize", function (env) {
25
- Prism.languages["markup-templating"].tokenizePlaceholders(env, "vento");
25
+ Prism.languages["markup-templating"].tokenizePlaceholders(env, "vto");
26
26
  });