@rpcbase/vite 0.84.0 → 0.86.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/index.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import type { UserConfigExport, UserConfigFn, createServer as viteCreateServer } from "vite"
2
+
3
+ /**
4
+ * Resolved aliases injected into the Vite config for RPC Base projects.
5
+ */
6
+ export const resolveAliases: Record<string, string>
7
+
8
+ /**
9
+ * Merge the shared RPC Base Vite config with a consumer-provided config.
10
+ */
11
+ export function extendConfig(userConfig: UserConfigExport): UserConfigFn
12
+
13
+ /**
14
+ * Merge the shared RPC Base spec/SSR Vite config with a consumer-provided config.
15
+ */
16
+ export function extendSpecConfig(userConfig: UserConfigExport): UserConfigFn
17
+
18
+ /**
19
+ * Re-export of Vite's `createServer` helper.
20
+ */
21
+ export const createServer: typeof viteCreateServer
22
+
23
+ /**
24
+ * Disable HTTP caching on an Express-style app (turns off etags and installs a no-cache middleware).
25
+ */
26
+ export function disableAppCache(app: {
27
+ set(name: string, value: any): any
28
+ use: (...handlers: any[]) => any
29
+ }): void
30
+
31
+ export {}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@rpcbase/vite",
3
- "version": "0.84.0",
3
+ "version": "0.86.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
+ "types": "./index.d.ts",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1",
8
9
  "release": "wireit"
@@ -13,7 +14,8 @@
13
14
  "dependencies": [],
14
15
  "files": [
15
16
  "package.json",
16
- "index.js"
17
+ "index.js",
18
+ "index.d.ts"
17
19
  ],
18
20
  "output": [],
19
21
  "env": {
@@ -29,19 +31,19 @@
29
31
  "@tailwindcss/vite": "4.1.17",
30
32
  "@vitejs/plugin-react": "5.1.1",
31
33
  "clsx": "2.1.1",
32
- "glob": "11.0.3",
34
+ "glob": "13.0.0",
33
35
  "libphonenumber-js": "1.12.26",
34
- "lucide-react": "0.553.0",
36
+ "lucide-react": "0.554.0",
35
37
  "nocache": "4.0.0",
36
- "posthog-js": "1.293.0",
37
- "posthog-node": "5.11.2",
38
+ "posthog-js": "1.298.0",
39
+ "posthog-node": "5.14.0",
38
40
  "react": "19.2.0",
39
41
  "react-dom": "19.2.0",
40
- "react-hook-form": "7.66.0",
42
+ "react-hook-form": "7.66.1",
41
43
  "react-router": "7.9.6",
42
44
  "tailwindcss": "4.1.17",
43
45
  "validator": "13.15.23",
44
- "vite": "7.2.2",
46
+ "vite": "7.2.4",
45
47
  "vite-plugin-html": "3.2.2",
46
48
  "vite-plugin-singlefile": "2.3.0",
47
49
  "zod": "4.1.12"
@@ -58,10 +58,10 @@ export function posthogSourcemapsPlugin(opts = {}) {
58
58
  return
59
59
  }
60
60
 
61
- if (!process.env.CI) {
62
- console.warn(`${orange}posthog-sourcemaps: plugin has correct configuration, but refusing to run when process.env.CI is not set. Skipping without failing.${reset}`)
63
- return
64
- }
61
+ // if (!process.env.CI) {
62
+ // console.warn(`${orange}posthog-sourcemaps: plugin has correct configuration, but refusing to run when process.env.CI is not set. Skipping without failing.${reset}`)
63
+ // return
64
+ // }
65
65
 
66
66
  const injectArgs = ["sourcemap", "inject", "--directory", directory]
67
67
  if (version) injectArgs.push("--version", version)