You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@docusaurus/types

Package Overview
Dependencies
Maintainers
4
Versions
2050
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/types - npm Package Compare versions

Comparing version
3.1.0
to
3.0.1
+2
-3
package.json
{
"name": "@docusaurus/types",
"version": "3.1.0",
"version": "3.0.1",
"description": "Common types for Docusaurus packages.",

@@ -16,3 +16,2 @@ "types": "./src/index.d.ts",

"dependencies": {
"@mdx-js/mdx": "^3.0.0",
"@types/history": "^4.7.11",

@@ -31,3 +30,3 @@ "@types/react": "*",

},
"gitHead": "a5e675821f0e8b70b591fcebf19fd60a70d55548"
"gitHead": "29d816067fd0022d4ca3bd5fdc42098dac9f7ffc"
}

@@ -13,6 +13,2 @@ /**

import type {ProcessorOptions} from '@mdx-js/mdx';
export type RemarkRehypeOptions = ProcessorOptions['remarkRehypeOptions'];
export type ReportingSeverity = 'ignore' | 'log' | 'warn' | 'throw';

@@ -35,16 +31,2 @@

export type ParseFrontMatterParams = {filePath: string; fileContent: string};
export type ParseFrontMatterResult = {
frontMatter: {[key: string]: unknown};
content: string;
};
export type DefaultParseFrontMatter = (
params: ParseFrontMatterParams,
) => Promise<ParseFrontMatterResult>;
export type ParseFrontMatter = (
params: ParseFrontMatterParams & {
defaultParseFrontMatter: DefaultParseFrontMatter;
},
) => Promise<ParseFrontMatterResult>;
export type MarkdownConfig = {

@@ -68,10 +50,2 @@ /**

/**
* A function callback that lets users parse the front matter themselves.
* Gives the opportunity to read it from a different source, or process it.
*
* @see https://github.com/facebook/docusaurus/issues/5568
*/
parseFrontMatter: ParseFrontMatter;
/**
* Allow mermaid language code blocks to be rendered into Mermaid diagrams:

@@ -101,8 +75,2 @@ *

mdx1Compat: MDX1CompatOptions;
/**
* Ability to provide custom remark-rehype options
* See also https://github.com/remarkjs/remark-rehype#options
*/
remarkRehypeOptions: RemarkRehypeOptions;
};

@@ -183,9 +151,2 @@

/**
* The behavior of Docusaurus when it detects any broken link.
*
* @see https://docusaurus.io/docs/api/docusaurus-config#onBrokenAnchors
* @default "warn"
*/
onBrokenAnchors: ReportingSeverity;
/**
* The behavior of Docusaurus when it detects any broken markdown link.

@@ -192,0 +153,0 @@ *

+0
-2

@@ -12,4 +12,2 @@ /**

MarkdownConfig,
DefaultParseFrontMatter,
ParseFrontMatter,
DocusaurusConfig,

@@ -16,0 +14,0 @@ Config,