vatts 2.0.1-canary.1 → 2.0.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
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mfrazlab/vatts.js/master/docs/public/logo.png">
4
- <img alt="Vatts.js logo" src="https://raw.githubusercontent.com/mfrazlab/vatts.js/master/docs/public/logo.png" width="128">
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mfrazlab/vatts.js/docs/public/logo.png">
4
+ <img alt="Vatts.js logo" src="https://raw.githubusercontent.com/mfrazlab/vatts.js/docs/public/logo.png" width="128">
5
5
  </picture>
6
6
  <h1>Vatts.js</h1>
7
7
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  **Vatts.js** is a modern, full-featured web framework for **Node.js** with first-class support for **React and Vue**.
23
23
 
24
- It is the first framework to offer native HTTP/3 support out of the box. Powered by an internal proxy engine that enables HTTP/3 with SSL termination. This means your applications benefit from the latest web transport protocol.
24
+ It is the first framework to offer native HTTP/3 support out of the box, powered by a Go-based HTTP server with built-in SSL termination. Applications run directly on the latest web transport protocol, without proxies or external layers.
25
25
 
26
26
  Vatts.js is a **multi-framework platform**, allowing you to build applications using **either React or Vue per project** — not both at the same time.
27
27
  This keeps the ecosystem clean, predictable, and optimized for performance and tooling.
@@ -29,7 +29,7 @@ This keeps the ecosystem clean, predictable, and optimized for performance and t
29
29
  Vatts removes unnecessary configuration and complex abstractions, allowing you to focus on what truly matters: **building fast, secure, and scalable applications**.
30
30
 
31
31
  ### Why choose Vatts.js?
32
- - **Native Proxy** — modern, secure, and high-performance networking with **HTTP/3 support**
32
+ - **Native HTTP** — modern, secure, and high-performance networking with **HTTP/3 support**
33
33
  - Extremely fast — architecture optimized for low overhead
34
34
  - Intuitive API — easy to learn and pleasant to use
35
35
  - Productivity from the first minute — zero unnecessary boilerplate
@@ -47,7 +47,7 @@ ___
47
47
 
48
48
  ## Community
49
49
 
50
- The Vatts.js community can be found on [GitHub Discussions](https://github.com/mfraz/vatts), where you can ask questions, share ideas, and showcase your projects with others.
50
+ The Vatts.js community can be found on [GitHub Discussions](https://github.com/mfraz/vatts.js), where you can ask questions, share ideas, and showcase your projects with others.
51
51
 
52
52
  ___
53
53
 
Binary file
Binary file
Binary file
package/dist/helpers.js CHANGED
@@ -112,6 +112,9 @@ const sendBox = (options) => {
112
112
  if (localIp) {
113
113
  console.info(timer + `${labelStyle} ┃ Network:${console_1.Colors.Reset} ${urlStyle}${protocol}://${localIp}:${exports.config?.port}${console_1.Colors.Reset}`);
114
114
  }
115
+ if (exports.config?.ssl?.http3Port) {
116
+ console.info(timer + `${labelStyle} ┃ HTTP/3:${console_1.Colors.Reset} ${urlStyle}${protocol}://${localIp}:${exports.config.ssl.http3Port}${console_1.Colors.Reset}`);
117
+ }
115
118
  // 3. Infos Extras (Redirect HTTP -> HTTPS)
116
119
  // @ts-ignore
117
120
  if (isSSL && exports.config.ssl?.redirectPort) {
@@ -603,10 +606,10 @@ async function initNativeServer(vattsApp, options, hostname, vattsConfig) {
603
606
  });
604
607
  // Atualiza UI
605
608
  sendBox({ ...options });
606
- const modeLabel = isSSL ? "HTTP/3 (SSL)" : "HTTP (Shield active)";
609
+ const httpLabel = vattsConfig.ssl?.http3Port ? `HTTP/3 (${vattsConfig.ssl?.http3Port || ''})` : "HTTP/2";
610
+ const modeLabel = isSSL ? httpLabel : "HTTP (Shield active)";
607
611
  msg.end(`${console_1.Colors.Bright}Ready on port ${console_1.Colors.BgGreen} ${publicPort} (${modeLabel}) ${console_1.Colors.Reset}\n` +
608
- `${console_1.Colors.Dim} ↳ Engine running on Native Bridge (No-Socket)${console_1.Colors.Reset}\n` +
609
- `${console_1.Colors.Bright} in ${Date.now() - time}ms${console_1.Colors.Reset}\n`);
612
+ `${console_1.Colors.Dim} ↳ Engine running on Native Bridge in ${Date.now() - time}ms${console_1.Colors.Reset}\n`);
610
613
  // MANTÉM O PROCESSO VIVO
611
614
  // Como não chamamos server.listen(), o event loop do Node ficaria vazio e o processo morreria.
612
615
  // Este intervalo mantém o processo rodando para processar os callbacks do CGO.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vatts",
3
- "version": "2.0.1-canary.1",
3
+ "version": "2.0.2",
4
4
  "description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "mfraz",