@docusaurus/theme-search-algolia 4.0.0-canary-6884 → 4.0.0-canary-6888

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/lib/opensearch.js CHANGED
@@ -11,7 +11,7 @@ exports.createOpenSearchFile = createOpenSearchFile;
11
11
  exports.createOpenSearchHeadTags = createOpenSearchHeadTags;
12
12
  const tslib_1 = require("tslib");
13
13
  const node_path_1 = tslib_1.__importDefault(require("node:path"));
14
- const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
14
+ const promises_1 = tslib_1.__importDefault(require("node:fs/promises"));
15
15
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
16
16
  const eta_1 = require("eta");
17
17
  const utils_1 = require("@docusaurus/utils");
@@ -46,7 +46,7 @@ async function createOpenSearchFile({ context, }) {
46
46
  }
47
47
  const fileContent = createOpenSearchFileContent({ context, searchPagePath });
48
48
  try {
49
- await fs_extra_1.default.writeFile(node_path_1.default.join(outDir, OPEN_SEARCH_FILENAME), fileContent);
49
+ await promises_1.default.writeFile(node_path_1.default.join(outDir, OPEN_SEARCH_FILENAME), fileContent);
50
50
  }
51
51
  catch (err) {
52
52
  throw new Error('Generating OpenSearch file failed.', { cause: err });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "4.0.0-canary-6884",
3
+ "version": "4.0.0-canary-6888",
4
4
  "description": "Algolia search component for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": [
@@ -35,25 +35,24 @@
35
35
  "dependencies": {
36
36
  "@algolia/autocomplete-core": "^1.19.10",
37
37
  "@docsearch/react": "^4.7.0",
38
- "@docusaurus/core": "4.0.0-canary-6884",
39
- "@docusaurus/plugin-content-docs": "4.0.0-canary-6884",
40
- "@docusaurus/theme-classic": "4.0.0-canary-6884",
41
- "@docusaurus/theme-common": "4.0.0-canary-6884",
42
- "@docusaurus/theme-translations": "4.0.0-canary-6884",
43
- "@docusaurus/utils": "4.0.0-canary-6884",
44
- "@docusaurus/utils-validation": "4.0.0-canary-6884",
38
+ "@docusaurus/core": "4.0.0-canary-6888",
39
+ "@docusaurus/plugin-content-docs": "4.0.0-canary-6888",
40
+ "@docusaurus/theme-classic": "4.0.0-canary-6888",
41
+ "@docusaurus/theme-common": "4.0.0-canary-6888",
42
+ "@docusaurus/theme-translations": "4.0.0-canary-6888",
43
+ "@docusaurus/utils": "4.0.0-canary-6888",
44
+ "@docusaurus/utils-validation": "4.0.0-canary-6888",
45
45
  "algoliasearch": "^5.57.0",
46
46
  "algoliasearch-helper": "^3.29.3",
47
47
  "clsx": "^2.1.1",
48
48
  "eta": "^4.6.0",
49
- "fs-extra": "^11.4.0",
50
49
  "lodash": "^4.18.1",
51
50
  "tslib": "^2.8.1",
52
51
  "utility-types": "^3.11.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@docusaurus/module-type-aliases": "4.0.0-canary-6884",
56
- "@docusaurus/types": "4.0.0-canary-6884",
54
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6888",
55
+ "@docusaurus/types": "4.0.0-canary-6888",
57
56
  "@types/react-dom": "^19.3.0"
58
57
  },
59
58
  "peerDependencies": {
@@ -63,5 +62,5 @@
63
62
  "engines": {
64
63
  "node": ">=24.21"
65
64
  },
66
- "gitHead": "f3c3fe7b0244f65763127507f50449ad2c7bd7b1"
65
+ "gitHead": "5019a662590dcb2722926890c1ade27194bc3b70"
67
66
  }
package/src/opensearch.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import path from 'node:path';
9
- import fs from 'fs-extra';
9
+ import fs from 'node:fs/promises';
10
10
  import _ from 'lodash';
11
11
  import {Eta} from 'eta';
12
12
  import {normalizeUrl} from '@docusaurus/utils';