From 266148c5b7fad51f36320ace38dd4d96ea95f941 Mon Sep 17 00:00:00 2001 From: mayank1513 Date: Fri, 7 Feb 2025 00:59:41 +0000 Subject: [PATCH] upgrade deps && docs --- docs/functions/react18Plugin.html | 2 +- docs/interfaces/React18PluginOptions.html | 14 +++++++------- docs/interfaces/_internal_.ReplacePattern.html | 4 ++-- docs/interfaces/_internal_.ignorePattern.html | 4 ++-- pnpm-lock.yaml | 8 ++++---- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/functions/react18Plugin.html b/docs/functions/react18Plugin.html index 9190cd8..5145db6 100644 --- a/docs/functions/react18Plugin.html +++ b/docs/functions/react18Plugin.html @@ -1,2 +1,2 @@ react18Plugin | React18 Loaders

Function react18Plugin

This plugin prevents building test files by esbuild. DTS may still geenrate type files for the tests with only { } as file content

-
+
diff --git a/docs/interfaces/React18PluginOptions.html b/docs/interfaces/React18PluginOptions.html index db6ea70..912b24f 100644 --- a/docs/interfaces/React18PluginOptions.html +++ b/docs/interfaces/React18PluginOptions.html @@ -1,4 +1,4 @@ -React18PluginOptions | React18 Loaders

Interface React18PluginOptions

interface React18PluginOptions {
    buildReplacePatterns?: ReplacePattern[];
    disableJSXRequireDedup?: boolean;
    ignorePatterns?: ignorePattern[];
    keepTestIds?: boolean;
    keepTests?: boolean;
    sourceReplacePatterns?: ReplacePattern[];
}

Properties

buildReplacePatterns? +React18PluginOptions | React18 Loaders

Interface React18PluginOptions

interface React18PluginOptions {
    buildReplacePatterns?: ReplacePattern[];
    disableJSXRequireDedup?: boolean;
    ignorePatterns?: ignorePattern[];
    keepTestIds?: boolean;
    keepTests?: boolean;
    sourceReplacePatterns?: ReplacePattern[];
}

Properties

buildReplacePatterns?: ReplacePattern[]

regExp patterns to find and replace in build files after build Use with caution! Make sure the same file does not match multiple patterns to avoid any unexpected results.

-
disableJSXRequireDedup?: boolean

In case you face any errors, or you want to speed up build a bit, try disabling deduplication of require("react/jsx-runtime")

-
ignorePatterns?: ignorePattern[]

regExp patterns to match file paths to be ignored. +

disableJSXRequireDedup?: boolean

In case you face any errors, or you want to speed up build a bit, try disabling deduplication of require("react/jsx-runtime")

+
ignorePatterns?: ignorePattern[]

regExp patterns to match file paths to be ignored. If contentPatterns are provided, only the files at matching paths containing one or more of the content patterns will be ignored

-
keepTestIds?: boolean

to not remove data-testid attributes. If keepTests is true, +

keepTestIds?: boolean

to not remove data-testid attributes. If keepTests is true, data-testid attributes will not be removed irrespective of keepTestIds value. This attribute is useful when setting sourceReplacePatterns

-
keepTests?: boolean

to not ignore test files

-
sourceReplacePatterns?: ReplacePattern[]

regExp patterns to find and replace in source files before build

+
keepTests?: boolean

to not ignore test files

+
sourceReplacePatterns?: ReplacePattern[]

regExp patterns to find and replace in source files before build

Use with caution! Make sure the same file does not match multiple patterns to avoid any unexpected results.

Caution! - if you have not enabled keepTests, we are already using /.*\.[jt]sx?$/ pattern to remove `

data-testidattributes. If yoursourceReplacePatternscollide with these files, please setkeepTestIdstotrue` and handle removing testids yourself.

-
+
diff --git a/docs/interfaces/_internal_.ReplacePattern.html b/docs/interfaces/_internal_.ReplacePattern.html index 9d187cd..07744aa 100644 --- a/docs/interfaces/_internal_.ReplacePattern.html +++ b/docs/interfaces/_internal_.ReplacePattern.html @@ -1,3 +1,3 @@ -ReplacePattern | React18 Loaders
interface ReplacePattern {
    pathPattern: RegExp;
    replaceParams: { pattern: RegExp; substitute: string }[];
}

Properties

pathPattern +ReplacePattern | React18 Loaders
interface ReplacePattern {
    pathPattern: RegExp;
    replaceParams: { pattern: RegExp; substitute: string }[];
}

Properties

pathPattern: RegExp
replaceParams: { pattern: RegExp; substitute: string }[]
+

Properties

pathPattern: RegExp
replaceParams: { pattern: RegExp; substitute: string }[]
diff --git a/docs/interfaces/_internal_.ignorePattern.html b/docs/interfaces/_internal_.ignorePattern.html index abb3c2d..dc6e796 100644 --- a/docs/interfaces/_internal_.ignorePattern.html +++ b/docs/interfaces/_internal_.ignorePattern.html @@ -1,3 +1,3 @@ -ignorePattern | React18 Loaders
interface ignorePattern {
    contentPatterns?: RegExp[];
    pathPattern: RegExp;
}

Properties

contentPatterns? +ignorePattern | React18 Loaders
interface ignorePattern {
    contentPatterns?: RegExp[];
    pathPattern: RegExp;
}

Properties

contentPatterns?: RegExp[]
pathPattern: RegExp
+

Properties

contentPatterns?: RegExp[]
pathPattern: RegExp
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a4cdebd..f323fa1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3051,8 +3051,8 @@ packages: engines: {node: '>=0.10.0'} hasBin: true - electron-to-chromium@1.5.93: - resolution: {integrity: sha512-M+29jTcfNNoR9NV7la4SwUqzWAxEwnc7ThA5e1m6LRSotmpfpCpLcIfgtSCVL+MllNLgAyM/5ru86iMRemPzDQ==} + electron-to-chromium@1.5.94: + resolution: {integrity: sha512-v+oaMuy6AgwZ6Hi2u5UgcM3wxzeFscBTsZBQL2FoDTx/T6k1XEQKz++8fe1VlQ3zjXB6hcvy5JPb5ZSkmVtdIQ==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -9520,7 +9520,7 @@ snapshots: browserslist@4.24.4: dependencies: caniuse-lite: 1.0.30001697 - electron-to-chromium: 1.5.93 + electron-to-chromium: 1.5.94 node-releases: 2.0.19 update-browserslist-db: 1.1.2(browserslist@4.24.4) @@ -10018,7 +10018,7 @@ snapshots: dependencies: jake: 10.9.2 - electron-to-chromium@1.5.93: {} + electron-to-chromium@1.5.94: {} emittery@0.13.1: {}