vitrify 0.17.13 → 0.17.15

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/index.js CHANGED
@@ -25,7 +25,7 @@ const internalServerModules = [
25
25
  '@fastify/middie',
26
26
  '@fastify',
27
27
  'node',
28
- 'critters',
28
+ 'beasties',
29
29
  'node-fetch',
30
30
  'ws',
31
31
  'abort-controller'
@@ -250,6 +250,11 @@ export const baseConfig = async ({ ssr, appDir, publicDir, base = '/', command =
250
250
  const unoCssContentPipelineInclude = [
251
251
  /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/
252
252
  ];
253
+ if (typeof vitrifyConfig.vitrify?.unocss?.content?.pipeline === 'object' &&
254
+ vitrifyConfig.vitrify?.unocss?.content?.pipeline?.include &&
255
+ Array.isArray(vitrifyConfig.vitrify?.unocss?.content?.pipeline?.include)) {
256
+ unoCssContentPipelineInclude.push(...vitrifyConfig.vitrify.unocss.content.pipeline.include);
257
+ }
253
258
  if (vitrifyConfig.vitrify?.unocss?.presets?.some(async (preset) => {
254
259
  if (!Array.isArray(preset)) {
255
260
  return (await preset).name === 'quasar';
@@ -2,8 +2,7 @@ const shortcuts = [
2
2
  [
3
3
  /^q-btn$/,
4
4
  ([, c], { theme }) => theme.quasar?.components?.['q-btn'] ??
5
- `font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])`
6
- // inline-flex flex-col
5
+ `inline-flex flex-col font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])`
7
6
  ],
8
7
  [
9
8
  /^q-btn--actionable$/,
@@ -14,7 +14,7 @@ const shortcuts = [
14
14
  [
15
15
  /^q-chip$/,
16
16
  ([, c], { theme }) => theme.quasar?.components?.['q-chip'] ??
17
- `align-middle rounded-[16px] outline-[0] relative h-[2em] max-w-full m-[4px] bg-[#e0e0e0] text-[rgba(0,_0,_0,_0.87)] text-[14px] px-[0.9em] py-[0.5em] [&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
17
+ `!flex-initial align-middle rounded-[16px] outline-[0] relative h-[2em] max-w-full m-[4px] bg-[#e0e0e0] text-[rgba(0,_0,_0,_0.87)] text-[14px] px-[0.9em] py-[0.5em] [&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
18
18
  ],
19
19
  [
20
20
  /^q-chip--colored$/,
@@ -1,4 +1,3 @@
1
- // Import normalize and animate css
2
1
  import { definePreset, presetIcons, transformerVariantGroup } from 'unocss';
3
2
  import presetUno from '@unocss/preset-uno';
4
3
  import { defaultTheme } from './theme.js';
@@ -1499,7 +1498,6 @@ export default definePreset((options = {}) => {
1499
1498
  presetIcons({}),
1500
1499
  {
1501
1500
  name: 'quasar',
1502
- presets: [presetUno(), animatedUno(), presetIcons({})],
1503
1501
  safelist: generateSafelist(options),
1504
1502
  preflights: [
1505
1503
  {
@@ -1774,6 +1772,10 @@ textarea {
1774
1772
  margin: 0;
1775
1773
  }
1776
1774
 
1775
+ html, body
1776
+ margin: 0
1777
+ box-sizing: border-box
1778
+
1777
1779
  /* beasties:include end */`
1778
1780
  }
1779
1781
  ].concat(QBreadcrumbsPreflights, QCheckboxPreflights, QChipPreflights, QCircularProgressPreflights, QDialogPreflights, QFieldPreflights, QLayoutPreflights, QLinearProgressPreflights, QRadioPreflights, QSelectPreflights, QSpinnerPreflights, QSkeletonPreflights, QTablePreflights, QTogglePreflights, QTreePreflights, ColorPreflights, DarkPreflights, HelperPreflights, MousePreflights, TypographyPreflights, VisibilityPreflights, TransitionPreflights, SizePreflights),
@@ -71,6 +71,7 @@ export declare function createServer({ port, logLevel, ssr, framework, host, app
71
71
  dev: import("vite").ResolvedDevEnvironmentOptions;
72
72
  build: import("vite").ResolvedBuildEnvironmentOptions;
73
73
  }>;
74
+ webSocketToken: string;
74
75
  } & import("vite").PluginHookUtils>;
75
76
  vite: ViteDevServer;
76
77
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.17.13",
3
+ "version": "0.17.15",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -44,58 +44,59 @@
44
44
  },
45
45
  "homepage": "https://github.com/simsustech/vitrify/tree/main/#readme",
46
46
  "dependencies": {
47
- "@fastify/middie": "^9.0.2",
48
- "@fastify/static": "^8.0.3",
49
- "@unocss/core": "^0.65.2",
50
- "@unocss/preset-uno": "^0.65.3",
51
- "@unocss/preset-wind": "^0.65.3",
47
+ "@fastify/middie": "^9.0.3",
48
+ "@fastify/static": "^8.0.4",
49
+ "@unocss/core": "^65.4.3",
50
+ "@unocss/preset-uno": "^65.4.3",
51
+ "@unocss/preset-wind": "^65.4.3",
52
52
  "@vitejs/plugin-vue": "^5.2.1",
53
53
  "ajv": "^8.17.1",
54
54
  "animated-unocss": "^0.0.6",
55
55
  "cac": "^6.7.14",
56
- "chalk": "^5.3.0",
56
+ "chalk": "^5.4.1",
57
57
  "cross-env": "^7.0.3",
58
- "esbuild": "^0.24.0",
59
- "fastify": "^5.2.0",
60
- "glob": "^11.0.0",
61
- "happy-dom": "^15.11.7",
58
+ "esbuild": "^0.24.2",
59
+ "fastify": "^5.2.1",
60
+ "glob": "^11.0.1",
61
+ "happy-dom": "^16.8.1",
62
62
  "is-port-reachable": "^4.0.0",
63
63
  "magic-string": "^0.30.17",
64
64
  "merge-deep": "^3.0.3",
65
65
  "readline": "^1.3.0",
66
- "rollup-plugin-visualizer": "^5.12.0",
67
- "sass": "1.83.0",
66
+ "rollup-plugin-visualizer": "^5.14.0",
67
+ "sass": "1.83.4",
68
68
  "ts-node": "^10.9.2",
69
- "unocss": "^0.65.2",
70
- "unplugin-vue-components": "^0.28.0",
71
- "vite": "^6.0.3",
69
+ "unocss": "^65.4.3",
70
+ "unplugin-vue-components": "^28.0.0",
71
+ "vite": "^6.0.11",
72
72
  "vite-plugin-pwa": "^0.21.1",
73
- "vitefu": "^1.0.4",
74
- "vitest": "^2.1.8",
73
+ "vitefu": "^1.0.5",
74
+ "vitest": "^3.0.4",
75
75
  "workbox-window": "^7.3.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@quasar/extras": "^1.16.15",
78
+ "@iconify-json/mdi": "^1.2.3",
79
+ "@quasar/extras": "^1.16.16",
79
80
  "@types/connect": "^3.4.38",
80
81
  "@types/glob": "^8.1.0",
81
82
  "@types/merge-deep": "^3.0.3",
82
- "@types/node": "^22.10.2",
83
- "@types/ws": "^8.5.13",
84
- "@unocss/preset-icons": "^65.4.2",
83
+ "@types/node": "^22.13.0",
84
+ "@types/ws": "^8.5.14",
85
+ "@unocss/preset-icons": "^65.4.3",
85
86
  "@vue/runtime-core": "^3.5.13",
86
87
  "beasties": "^0.2.0",
87
88
  "css": "^3.0.0",
88
89
  "css-to-tailwind-translator": "^1.2.8",
89
- "quasar": "^2.17.5",
90
- "rollup": "^4.28.1",
91
- "typescript": "^5.7.2",
90
+ "quasar": "^2.17.7",
91
+ "rollup": "^4.34.0",
92
+ "typescript": "^5.7.3",
92
93
  "vue": "^3.5.13",
93
94
  "vue-router": "^4.5.0"
94
95
  },
95
96
  "peerDependencies": {
96
- "@fastify/static": "^8.0.3",
97
- "fastify": "^5.2.0",
98
- "quasar": "^2.17.5",
97
+ "@fastify/static": "^8.0.4",
98
+ "fastify": "^5.2.1",
99
+ "quasar": "^2.17.7",
99
100
  "vue": "^3.5.13",
100
101
  "vue-router": "^4.5.0"
101
102
  },
package/src/node/index.ts CHANGED
@@ -46,7 +46,7 @@ const internalServerModules = [
46
46
  '@fastify/middie',
47
47
  '@fastify',
48
48
  'node',
49
- 'critters',
49
+ 'beasties',
50
50
  'node-fetch',
51
51
  'ws',
52
52
  'abort-controller'
@@ -329,6 +329,15 @@ export const baseConfig = async ({
329
329
  const unoCssContentPipelineInclude = [
330
330
  /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/
331
331
  ]
332
+ if (
333
+ typeof vitrifyConfig.vitrify?.unocss?.content?.pipeline === 'object' &&
334
+ vitrifyConfig.vitrify?.unocss?.content?.pipeline?.include &&
335
+ Array.isArray(vitrifyConfig.vitrify?.unocss?.content?.pipeline?.include)
336
+ ) {
337
+ unoCssContentPipelineInclude.push(
338
+ ...vitrifyConfig.vitrify.unocss.content.pipeline.include
339
+ )
340
+ }
332
341
  if (
333
342
  vitrifyConfig.vitrify?.unocss?.presets?.some(async (preset) => {
334
343
  if (!Array.isArray(preset)) {
@@ -6,8 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-btn$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-btn'] ??
9
- `font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])`
10
- // inline-flex flex-col
9
+ `inline-flex flex-col font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])`
11
10
  ],
12
11
 
13
12
  [
@@ -19,7 +19,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
19
19
  /^q-chip$/,
20
20
  ([, c], { theme }) =>
21
21
  theme.quasar?.components?.['q-chip'] ??
22
- `align-middle rounded-[16px] outline-[0] relative h-[2em] max-w-full m-[4px] bg-[#e0e0e0] text-[rgba(0,_0,_0,_0.87)] text-[14px] px-[0.9em] py-[0.5em] [&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
22
+ `!flex-initial align-middle rounded-[16px] outline-[0] relative h-[2em] max-w-full m-[4px] bg-[#e0e0e0] text-[rgba(0,_0,_0,_0.87)] text-[14px] px-[0.9em] py-[0.5em] [&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
23
23
  ],
24
24
 
25
25
  [
@@ -1,4 +1,3 @@
1
- // Import normalize and animate css
2
1
  import {
3
2
  definePreset,
4
3
  type Preflight,
@@ -1607,7 +1606,6 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
1607
1606
  presetIcons({}),
1608
1607
  {
1609
1608
  name: 'quasar',
1610
- presets: [presetUno(), animatedUno(), presetIcons({})],
1611
1609
  safelist: generateSafelist(options),
1612
1610
  preflights: (
1613
1611
  [
@@ -1883,6 +1881,10 @@ textarea {
1883
1881
  margin: 0;
1884
1882
  }
1885
1883
 
1884
+ html, body
1885
+ margin: 0
1886
+ box-sizing: border-box
1887
+
1886
1888
  /* beasties:include end */`
1887
1889
  }
1888
1890
  ] as Preflight<QuasarTheme>[]