vitest-config-silverwind 11.3.6 → 11.3.7

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.d.ts CHANGED
@@ -1,20 +1,14 @@
1
1
  import { InlineConfig } from "vitest/node";
2
2
  import { UserConfig } from "vite";
3
-
4
3
  //#region index.d.ts
5
4
  type VitestConfig = UserConfig & {
6
5
  test?: InlineConfig;
7
6
  };
8
7
  type CustomConfig = VitestConfig & {
9
- /** The value of import.meta.url from your config. */url: string;
8
+ /** The value of import.meta.url from your config. */
9
+ url: string;
10
10
  };
11
- declare const frontend: ({
12
- test,
13
- ...other
14
- }?: CustomConfig) => VitestConfig;
15
- declare const backend: ({
16
- test,
17
- ...other
18
- }?: CustomConfig) => VitestConfig;
11
+ declare const frontend: ({ test, ...other }?: CustomConfig) => VitestConfig;
12
+ declare const backend: ({ test, ...other }?: CustomConfig) => VitestConfig;
19
13
  //#endregion
20
14
  export { backend, frontend };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { accessSync, constants } from "node:fs";
4
4
  import { availableParallelism } from "node:os";
5
5
  import { readFile } from "node:fs/promises";
6
6
 
7
- //#region node_modules/.pnpm/vite-string-plugin@2.0.4_vite@8.0.16_@types+node@25.9.2_/node_modules/vite-string-plugin/dist/index.js
7
+ //#region node_modules/.pnpm/vite-string-plugin@2.0.5_vite@8.1.4_@types+node@26.1.1_/node_modules/vite-string-plugin/dist/index.js
8
8
  /** Vite plugin to import files as string */
9
9
  const stringPlugin = ({ match = /\.(svg|md|xml|txt)$/i } = {}) => ({
10
10
  name: "vite-string-plugin",
@@ -12,7 +12,7 @@ const stringPlugin = ({ match = /\.(svg|md|xml|txt)$/i } = {}) => ({
12
12
  load: {
13
13
  filter: { id: match },
14
14
  handler: async (id) => ({
15
- code: `export default ${JSON.stringify(await readFile(id.split("?")[0], "utf8")).replace(/[\u2028\u2029]/g, (c) => `\\u${`000${c.charCodeAt(0).toString(16)}`.slice(-4)}`)};`,
15
+ code: `export default ${JSON.stringify(await readFile(id.split("?")[0], "utf8")).replace(/[\u2028\u2029]/g, (c) => `\\u${c.charCodeAt(0).toString(16).padStart(4, "0")}`)};`,
16
16
  map: { mappings: "" }
17
17
  })
18
18
  }
@@ -33,8 +33,7 @@ function dedupePlugins(libPlugins, userPlugins) {
33
33
  const ret = [];
34
34
  for (const plugin of [...userPlugins, ...libPlugins]) {
35
35
  const name = plugin ? uniquePluginName(plugin) : null;
36
- if (seen.has(name)) continue;
37
- else {
36
+ if (!seen.has(name)) {
38
37
  ret.push(plugin);
39
38
  if (name) seen.add(name);
40
39
  }
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "vitest-config-silverwind",
3
- "version": "11.3.6",
3
+ "version": "11.3.7",
4
4
  "description": "Shared vitest configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
- "repository": "silverwind/vitest-config-silverwind",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "silverwind/vitest-config-silverwind"
9
+ },
7
10
  "license": "BSD-2-Clause",
8
11
  "type": "module",
9
12
  "sideEffects": false,
@@ -31,21 +34,21 @@
31
34
  "jest-extended": "7.0.0"
32
35
  },
33
36
  "devDependencies": {
34
- "@types/node": "25.9.2",
35
- "@typescript/native-preview": "7.0.0-dev.20260608.1",
36
- "eslint": "10.4.1",
37
- "eslint-config-silverwind": "134.0.2",
38
- "happy-dom": "20.10.2",
39
- "js-yaml": "4.2.0",
40
- "tsdown": "0.22.2",
41
- "tsdown-config-silverwind": "3.0.3",
37
+ "@types/node": "26.1.1",
38
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
39
+ "eslint": "10.6.0",
40
+ "eslint-config-silverwind": "140.2.0",
41
+ "happy-dom": "20.10.6",
42
+ "js-yaml": "5.2.1",
43
+ "tsdown": "0.22.4",
44
+ "tsdown-config-silverwind": "3.0.5",
42
45
  "typescript": "6.0.3",
43
46
  "typescript-config-silverwind": "20.0.0",
44
- "updates": "17.17.3",
45
- "updates-config-silverwind": "3.0.2",
46
- "versions": "15.1.0",
47
- "vite-plugin-dts": "5.0.2",
48
- "vite-string-plugin": "2.0.4",
49
- "vitest": "4.1.8"
47
+ "updates": "17.18.2",
48
+ "updates-config-silverwind": "4.0.1",
49
+ "versions": "15.1.3",
50
+ "vite-plugin-dts": "5.0.3",
51
+ "vite-string-plugin": "2.0.5",
52
+ "vitest": "4.1.10"
50
53
  }
51
54
  }