@docusaurus/core 3.4.0 → 3.5.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.
Files changed (83) hide show
  1. package/bin/docusaurus.mjs +13 -12
  2. package/lib/babel/preset.js +1 -1
  3. package/lib/client/App.d.ts +0 -2
  4. package/lib/client/BaseUrlIssueBanner/index.d.ts +0 -1
  5. package/lib/client/BrokenLinksContext.d.ts +0 -1
  6. package/lib/client/SiteMetadataDefaults.d.ts +0 -1
  7. package/lib/client/exports/BrowserOnly.d.ts +0 -2
  8. package/lib/client/exports/ErrorBoundary.d.ts +0 -1
  9. package/lib/client/exports/Head.d.ts +0 -2
  10. package/lib/client/exports/Interpolate.d.ts +0 -1
  11. package/lib/client/exports/Link.d.ts +0 -1
  12. package/lib/client/exports/Link.js +15 -4
  13. package/lib/client/exports/Translate.d.ts +0 -2
  14. package/lib/client/exports/useBaseUrl.d.ts +0 -1
  15. package/lib/client/exports/useBrokenLinks.d.ts +0 -1
  16. package/lib/client/hasHydratedDataAttribute.d.ts +0 -1
  17. package/lib/client/theme-fallback/Error/index.d.ts +0 -2
  18. package/lib/client/theme-fallback/Layout/index.d.ts +0 -2
  19. package/lib/client/theme-fallback/Loading/index.d.ts +0 -1
  20. package/lib/client/theme-fallback/NotFound/index.d.ts +0 -1
  21. package/lib/client/theme-fallback/Root/index.d.ts +0 -2
  22. package/lib/client/theme-fallback/SiteMetadata/index.d.ts +0 -1
  23. package/lib/commands/build.js +1 -2
  24. package/lib/commands/clear.js +1 -2
  25. package/lib/commands/deploy.js +1 -2
  26. package/lib/commands/external.js +1 -2
  27. package/lib/commands/serve.js +2 -3
  28. package/lib/commands/start/start.js +1 -2
  29. package/lib/commands/start/utils.js +2 -3
  30. package/lib/commands/start/watcher.js +5 -6
  31. package/lib/commands/start/webpack.js +1 -2
  32. package/lib/commands/swizzle/actions.js +4 -4
  33. package/lib/commands/swizzle/common.js +7 -7
  34. package/lib/commands/swizzle/components.js +5 -6
  35. package/lib/commands/swizzle/config.js +2 -3
  36. package/lib/commands/swizzle/context.js +19 -8
  37. package/lib/commands/swizzle/index.js +1 -2
  38. package/lib/commands/swizzle/prompts.js +4 -5
  39. package/lib/commands/swizzle/tables.js +2 -3
  40. package/lib/commands/swizzle/themes.js +5 -6
  41. package/lib/commands/writeHeadingIds.js +1 -2
  42. package/lib/commands/writeTranslations.js +1 -2
  43. package/lib/server/brokenLinks.js +1 -2
  44. package/lib/server/clientModules.js +1 -2
  45. package/lib/server/codegen/codegen.js +1 -2
  46. package/lib/server/codegen/codegenRoutes.js +4 -5
  47. package/lib/server/config.js +1 -2
  48. package/lib/server/configValidation.js +2 -2
  49. package/lib/server/getHostPort.js +1 -2
  50. package/lib/server/htmlTags.js +1 -2
  51. package/lib/server/i18n.js +2 -3
  52. package/lib/server/plugins/actions.js +1 -2
  53. package/lib/server/plugins/configs.js +1 -2
  54. package/lib/server/plugins/init.d.ts +11 -0
  55. package/lib/server/plugins/init.js +42 -7
  56. package/lib/server/plugins/moduleShorthand.d.ts +0 -1
  57. package/lib/server/plugins/moduleShorthand.js +2 -3
  58. package/lib/server/plugins/pluginIds.js +1 -2
  59. package/lib/server/plugins/plugins.js +2 -3
  60. package/lib/server/plugins/pluginsUtils.js +7 -8
  61. package/lib/server/plugins/presets.js +1 -2
  62. package/lib/server/plugins/routeConfig.js +2 -3
  63. package/lib/server/plugins/synthetic.js +2 -3
  64. package/lib/server/routes.js +2 -3
  65. package/lib/server/site.js +4 -5
  66. package/lib/server/siteMetadata.js +3 -4
  67. package/lib/server/storage.js +1 -2
  68. package/lib/server/translations/translations.js +9 -10
  69. package/lib/server/translations/translationsExtractor.js +4 -5
  70. package/lib/server/utils.js +1 -2
  71. package/lib/ssg.d.ts +0 -1
  72. package/lib/ssg.js +3 -4
  73. package/lib/templates/templates.js +3 -4
  74. package/lib/webpack/aliases/index.js +4 -5
  75. package/lib/webpack/base.js +3 -3
  76. package/lib/webpack/client.js +3 -4
  77. package/lib/webpack/configure.js +3 -4
  78. package/lib/webpack/minification.js +1 -2
  79. package/lib/webpack/plugins/StaticDirectoriesCopyPlugin.js +1 -2
  80. package/lib/webpack/server.js +1 -1
  81. package/lib/webpack/utils.d.ts +1 -2
  82. package/lib/webpack/utils.js +8 -8
  83. package/package.json +10 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "3.4.0",
4
+ "version": "3.5.1",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -43,12 +43,12 @@
43
43
  "@babel/runtime": "^7.22.6",
44
44
  "@babel/runtime-corejs3": "^7.22.6",
45
45
  "@babel/traverse": "^7.22.8",
46
- "@docusaurus/cssnano-preset": "3.4.0",
47
- "@docusaurus/logger": "3.4.0",
48
- "@docusaurus/mdx-loader": "3.4.0",
49
- "@docusaurus/utils": "3.4.0",
50
- "@docusaurus/utils-common": "3.4.0",
51
- "@docusaurus/utils-validation": "3.4.0",
46
+ "@docusaurus/cssnano-preset": "3.5.1",
47
+ "@docusaurus/logger": "3.5.1",
48
+ "@docusaurus/mdx-loader": "3.5.1",
49
+ "@docusaurus/utils": "3.5.1",
50
+ "@docusaurus/utils-common": "3.5.1",
51
+ "@docusaurus/utils-validation": "3.5.1",
52
52
  "autoprefixer": "^10.4.14",
53
53
  "babel-loader": "^9.1.3",
54
54
  "babel-plugin-dynamic-import-node": "^2.3.3",
@@ -103,8 +103,8 @@
103
103
  "webpackbar": "^5.0.2"
104
104
  },
105
105
  "devDependencies": {
106
- "@docusaurus/module-type-aliases": "3.4.0",
107
- "@docusaurus/types": "3.4.0",
106
+ "@docusaurus/module-type-aliases": "3.5.1",
107
+ "@docusaurus/types": "3.5.1",
108
108
  "@total-typescript/shoehorn": "^0.1.2",
109
109
  "@types/detect-port": "^1.3.3",
110
110
  "@types/react-dom": "^18.2.7",
@@ -124,5 +124,5 @@
124
124
  "engines": {
125
125
  "node": ">=18.0"
126
126
  },
127
- "gitHead": "49e9a2143274a8dd795659b417b470bc42abbd6e"
127
+ "gitHead": "5acbc57bd62f3f808ef72007cd67d4c410d13829"
128
128
  }