vitrify 0.15.3 → 0.16.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/dist/bin/build.js CHANGED
@@ -14,7 +14,8 @@ export async function build(opts) {
14
14
  });
15
15
  config.build = {
16
16
  ...config.build,
17
- minify: !opts.debug,
17
+ // minify: !opts.debug,
18
+ minify: false,
18
19
  outDir: opts.outDir,
19
20
  emptyOutDir: !!opts.outDir
20
21
  };
package/dist/bin/dev.js CHANGED
@@ -110,6 +110,7 @@ ssr, framework = 'vue', host, appDir, publicDir, vite }) {
110
110
  ? 'debug'
111
111
  : process.env.PINO_LOG_LEVEL || 'info'
112
112
  },
113
+ forceCloseConnections: true,
113
114
  https: vite.config.server.https,
114
115
  ...vitrifyConfig.vitrify?.ssr?.fastify
115
116
  });
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import type { LogLevel, InlineConfig, ViteDevServer } from 'vite';
4
2
  import type { Server } from 'net';
5
3
  import type { FastifyInstance } from 'fastify';
@@ -47,16 +45,16 @@ export declare function createServer({ port, logLevel, ssr, framework, host, app
47
45
  resolve: Required<import("vite").ResolveOptions> & {
48
46
  alias: import("vite").Alias[];
49
47
  };
50
- plugins: readonly import("vite").Plugin<any>[];
48
+ plugins: readonly import("vite").Plugin[];
51
49
  css: import("vite").ResolvedCSSOptions;
52
- esbuild: false | import("vite").ESBuildOptions;
50
+ esbuild: import("vite").ESBuildOptions | false;
53
51
  server: import("vite").ResolvedServerOptions;
54
52
  build: import("vite").ResolvedBuildOptions;
55
53
  preview: import("vite").ResolvedPreviewOptions;
56
54
  ssr: import("vite").ResolvedSSROptions;
57
55
  assetsInclude: (file: string) => boolean;
58
56
  logger: import("vite").Logger;
59
- createResolver: (options?: Partial<import("vite").InternalResolveOptions> | undefined) => import("vite").ResolveFn;
57
+ createResolver: (options?: Partial<import("vite").InternalResolveOptions>) => import("vite").ResolveFn;
60
58
  optimizeDeps: import("vite").DepOptimizationOptions;
61
59
  worker: import("vite").ResolvedWorkerOptions;
62
60
  appType: import("vite").AppType;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { FastifyInstance } from 'fastify';
3
2
  import type { OnRenderedHook } from '../../vitrify-config.js';
4
3
  import type { FastifyCsrPlugin } from './fastify-csr-plugin.js';
@@ -11,4 +10,6 @@ export declare const createApp: ({ onSetup, appDir, baseUrl, fastifyPlugin, onRe
11
10
  onRendered: OnRenderedHook[];
12
11
  vitrifyDir?: URL;
13
12
  mode: string;
14
- }) => FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
13
+ }) => FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>> & {
14
+ __linterBrands: "SafePromiseLike";
15
+ };
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { Server } from 'net';
3
2
  import type { ResolvedConfig } from 'vite';
4
3
  export declare const exitLogs: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.15.3",
3
+ "version": "0.16.1",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -44,45 +44,45 @@
44
44
  },
45
45
  "homepage": "https://github.com/simsustech/vitrify/tree/main/#readme",
46
46
  "dependencies": {
47
- "@fastify/middie": "^8.3.1",
48
- "@fastify/static": "^7.0.4",
49
- "@vitejs/plugin-vue": "^5.0.5",
50
- "ajv": "^8.16.0",
47
+ "@fastify/middie": "^9.0.2",
48
+ "@fastify/static": "^8.0.2",
49
+ "@vitejs/plugin-vue": "^5.1.4",
50
+ "ajv": "^8.17.1",
51
51
  "cac": "^6.7.14",
52
52
  "chalk": "^5.3.0",
53
- "critters": "^0.0.22",
53
+ "critters": "^0.0.25",
54
54
  "cross-env": "^7.0.3",
55
- "esbuild": "^0.21.4",
56
- "fastify": "^4.27.0",
57
- "glob": "^10.4.1",
58
- "happy-dom": "^14.12.0",
55
+ "esbuild": "^0.24.0",
56
+ "fastify": "^5.0.0",
57
+ "glob": "^11.0.0",
58
+ "happy-dom": "^15.7.4",
59
59
  "is-port-reachable": "^4.0.0",
60
- "magic-string": "^0.30.10",
60
+ "magic-string": "^0.30.12",
61
61
  "merge-deep": "^3.0.3",
62
62
  "readline": "^1.3.0",
63
63
  "rollup-plugin-visualizer": "^5.12.0",
64
- "sass": "1.77.4",
64
+ "sass": "1.80.4",
65
65
  "ts-node": "^10.9.2",
66
- "unplugin-vue-components": "^0.27.0",
67
- "vite": "^5.2.12",
68
- "vite-plugin-pwa": "^0.20.0",
69
- "vitefu": "^0.2.5",
70
- "vitest": "^1.6.0",
66
+ "unplugin-vue-components": "^0.27.4",
67
+ "vite": "^5.4.10",
68
+ "vite-plugin-pwa": "^0.20.5",
69
+ "vitefu": "^1.0.3",
70
+ "vitest": "^2.1.3",
71
71
  "workbox-window": "^7.1.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@quasar/extras": "^1.16.11",
74
+ "@quasar/extras": "^1.16.12",
75
75
  "@types/connect": "^3.4.38",
76
76
  "@types/glob": "^8.1.0",
77
77
  "@types/merge-deep": "^3.0.3",
78
- "@types/node": "^20.14.2",
79
- "@types/ws": "^8.5.10",
80
- "@vue/runtime-core": "^3.4.27",
81
- "quasar": "^2.16.4",
82
- "rollup": "^4.18.0",
83
- "typescript": "^5.4.5",
84
- "vue": "^3.4.27",
85
- "vue-router": "^4.3.2"
78
+ "@types/node": "^22.8.1",
79
+ "@types/ws": "^8.5.12",
80
+ "@vue/runtime-core": "^3.5.12",
81
+ "quasar": "^2.17.1",
82
+ "rollup": "^4.24.0",
83
+ "typescript": "^5.6.3",
84
+ "vue": "^3.5.12",
85
+ "vue-router": "^4.4.5"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@fastify/static": "^7.0.1",
@@ -24,7 +24,8 @@ export async function build(opts: {
24
24
 
25
25
  config.build = {
26
26
  ...config.build,
27
- minify: !opts.debug,
27
+ // minify: !opts.debug,
28
+ minify: false,
28
29
  outDir: opts.outDir,
29
30
  emptyOutDir: !!opts.outDir
30
31
  }
@@ -177,6 +177,7 @@ export async function createServer({
177
177
  ? 'debug'
178
178
  : process.env.PINO_LOG_LEVEL || 'info'
179
179
  },
180
+ forceCloseConnections: true,
180
181
  https: vite.config.server.https,
181
182
  ...vitrifyConfig.vitrify?.ssr?.fastify
182
183
  } as FastifyServerOptions)
package/src/node/index.ts CHANGED
@@ -296,6 +296,7 @@ export const baseConfig = async ({
296
296
  if (Object.keys(vitrifyConfig).includes(framework)) {
297
297
  const plugin = await configPluginMap[framework]()
298
298
  const resolver = await configResolverMap[framework]()
299
+
299
300
  frameworkPlugins.push(
300
301
  await plugin({
301
302
  ssr,