Skip to content

Commit 5056593

Browse files
Merge pull request #32 from OpenSyntaxHQ/develop
merge dep changes from develop to main
2 parents d08a5da + f81ef6e commit 5056593

10 files changed

Lines changed: 1819 additions & 1636 deletions

File tree

package-lock.json

Lines changed: 1752 additions & 1595 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,35 @@
2929
"prepare": "husky"
3030
},
3131
"devDependencies": {
32-
"@eslint/js": "^9.39.2",
32+
"@eslint/js": "^10.0.1",
3333
"@axe-core/playwright": "^4.11.1",
3434
"@playwright/test": "^1.58.2",
35-
"@types/node": "^25.2.2",
35+
"@types/node": "^25.5.0",
3636
"@types/tmp": "^0.2.6",
37-
"eslint": "^9.39.2",
37+
"eslint": "^10.1.0",
3838
"execa": "^9.6.1",
39-
"globals": "^17.3.0",
39+
"globals": "^17.4.0",
4040
"husky": "^9.1.7",
4141
"istanbul-lib-coverage": "^3.2.2",
4242
"istanbul-lib-report": "^3.0.1",
4343
"istanbul-reports": "^3.2.0",
44-
"lint-staged": "^16.2.7",
44+
"jsdom": "^29.0.1",
45+
"lint-staged": "^16.4.0",
4546
"prettier": "^3.8.1",
4647
"tmp": "^0.2.5",
47-
"turbo": "^2.8.3",
48+
"turbo": "^2.8.20",
4849
"typescript": "^5.9.3",
49-
"typescript-eslint": "^8.54.0",
50+
"typescript-eslint": "^8.57.1",
5051
"v8-to-istanbul": "^9.3.0",
51-
"vitest": "^4.0.18"
52+
"vitest": "^4.1.1"
5253
},
5354
"overrides": {
5455
"minimatch": ">=3.1.4",
5556
"glob": {
5657
"minimatch": ">=3.1.4"
5758
},
5859
"rollup": ">=4.59.0",
60+
"vite": "8.0.2",
5961
"undici": ">=7.24.0",
6062
"qs": ">=6.14.2",
6163
"ajv": ">=6.14.0 <7",

packages/cli/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"chalk": "^5.6.2",
3535
"chokidar": "^5.0.0",
3636
"commander": "^14.0.3",
37-
"cosmiconfig": "^9.0.0",
37+
"cosmiconfig": "^9.0.1",
3838
"express": "^5.2.1",
39-
"glob": "^13.0.3",
40-
"inquirer": "^13.2.4",
39+
"glob": "^13.0.6",
40+
"inquirer": "^13.3.2",
4141
"jiti": "^2.6.1",
4242
"open": "^11.0.0",
4343
"ora": "^9.3.0"
@@ -46,8 +46,8 @@
4646
"@types/express": "^5.0.6",
4747
"@types/inquirer": "^9.0.9",
4848
"@types/jest": "^30.0.0",
49-
"@types/node": "^25.2.2",
50-
"jest": "^30.2.0",
49+
"@types/node": "^25.5.0",
50+
"jest": "^30.3.0",
5151
"ts-jest": "^29.4.6",
5252
"tsup": "^8.5.1",
5353
"typescript": "^5.9.3"

packages/cli/src/config/loader.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ export async function loadConfig(searchFrom?: string): Promise<AutodocsConfig |
5757

5858
return mergeConfig(DEFAULT_CONFIG, config as Partial<AutodocsConfig>);
5959
} catch (error) {
60-
throw new Error(`Failed to load config: ${(error as Error).message}`);
60+
throw new Error(
61+
`Failed to load config: ${error instanceof Error ? error.message : String(error)}`,
62+
{
63+
cause: error,
64+
}
65+
);
6166
}
6267
}
6368

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
},
5050
"devDependencies": {
5151
"@types/jest": "^30.0.0",
52-
"@types/node": "^25.2.2",
53-
"jest": "^30.2.0",
52+
"@types/node": "^25.5.0",
53+
"jest": "^30.3.0",
5454
"ts-jest": "^29.4.6",
5555
"tsup": "^8.5.1"
5656
}

packages/core/src/plugins/PluginManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class PluginManager {
6666
const exported = this.getModuleExport(module);
6767
return this.resolvePluginExport(exported);
6868
} catch (error) {
69-
throw new Error(`Failed to load plugin ${packageName}: ${String(error)}`);
69+
throw new Error(`Failed to load plugin ${packageName}: ${String(error)}`, { cause: error });
7070
}
7171
}
7272

packages/plugins/examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"devDependencies": {
5151
"@opensyntaxhq/autodocs-core": "^2.1.1",
52-
"@types/node": "^25.2.2",
52+
"@types/node": "^25.5.0",
5353
"tsup": "^8.5.1"
5454
}
5555
}

packages/plugins/markdown/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242
"clean": "rm -rf dist"
4343
},
4444
"dependencies": {
45-
"glob": "^13.0.3",
45+
"glob": "^13.0.6",
4646
"gray-matter": "^4.0.3",
47-
"marked": "^17.0.2"
47+
"marked": "^17.0.5"
4848
},
4949
"peerDependencies": {
5050
"@opensyntaxhq/autodocs-core": "^2.1.1"
5151
},
5252
"devDependencies": {
5353
"@opensyntaxhq/autodocs-core": "^2.1.1",
54-
"@types/node": "^25.2.2",
54+
"@types/node": "^25.5.0",
5555
"tsup": "^8.5.1",
5656
"typescript": "^5.9.3"
5757
}

packages/ui/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,36 @@
1616
"clsx": "^2.1.1",
1717
"cmdk": "^1.1.1",
1818
"flexsearch": "^0.8.212",
19-
"lucide-react": "^0.564.0",
19+
"lucide-react": "^0.577.0",
2020
"radix-ui": "^1.4.3",
2121
"react": "^19.2.4",
2222
"react-dom": "^19.2.4",
2323
"react-markdown": "^10.1.0",
24-
"react-router-dom": "^7.13.0",
24+
"react-router-dom": "^7.13.1",
2525
"remark-gfm": "^4.0.1",
26-
"tailwind-merge": "^3.4.1",
27-
"zustand": "^5.0.11"
26+
"tailwind-merge": "^3.5.0",
27+
"zustand": "^5.0.12"
2828
},
2929
"devDependencies": {
30-
"@tailwindcss/postcss": "^4.1.18",
31-
"@tailwindcss/vite": "^4.1.18",
30+
"@tailwindcss/postcss": "^4.2.2",
31+
"@tailwindcss/vite": "^4.2.2",
3232
"@testing-library/jest-dom": "^6.9.1",
3333
"@testing-library/react": "^16.3.2",
3434
"@testing-library/user-event": "^14.6.1",
35-
"@types/react": "^19.2.13",
35+
"@types/react": "^19.2.14",
3636
"@types/react-dom": "^19.2.3",
37-
"@vitejs/plugin-react": "^5.1.3",
38-
"@vitest/coverage-v8": "^4.0.18",
39-
"autoprefixer": "^10.4.24",
40-
"eslint": "^9.39.2",
41-
"jsdom": "^28.0.0",
42-
"postcss": "^8.5.6",
43-
"rollup-plugin-visualizer": "^6.0.5",
37+
"@vitejs/plugin-react": "^6.0.1",
38+
"@vitest/coverage-v8": "^4.1.1",
39+
"autoprefixer": "^10.4.27",
40+
"eslint": "^10.1.0",
41+
"jsdom": "^29.0.1",
42+
"postcss": "^8.5.8",
43+
"rollup-plugin-visualizer": "^7.0.1",
4444
"tailwindcss": "^4.1.18",
45-
"terser": "^5.46.0",
45+
"terser": "^5.46.1",
4646
"typescript": "^5.9.3",
47-
"vite": "^7.3.1",
48-
"vitest": "^4.0.18"
47+
"vite": "^8.0.2",
48+
"vitest": "^4.1.1"
4949
},
5050
"repository": {
5151
"type": "git",

packages/ui/vite.config.ts

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,28 @@ export default defineConfig(({ mode }) => {
4040
},
4141
rollupOptions: {
4242
output: {
43-
manualChunks: {
44-
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
45-
search: ['flexsearch'],
43+
/**
44+
* Vite 8+ (rolldown) expects `manualChunks` to be a function.
45+
*/
46+
manualChunks(id) {
47+
const normalizedId = id.replaceAll('\\', '/');
48+
const inNodeModules = normalizedId.includes('/node_modules/');
49+
if (!inNodeModules) {
50+
return;
51+
}
52+
53+
const isNodeModulePackage = (pkgName: string): boolean =>
54+
normalizedId.includes(`/node_modules/${pkgName}/`) ||
55+
normalizedId.endsWith(`/node_modules/${pkgName}`);
56+
57+
const reactPackages = ['react', 'react-dom', 'react-router-dom'];
58+
if (reactPackages.some(isNodeModulePackage)) {
59+
return 'react-vendor';
60+
}
61+
62+
if (isNodeModulePackage('flexsearch')) {
63+
return 'search';
64+
}
4665
},
4766
},
4867
},

0 commit comments

Comments
 (0)