From 758cb936404db469b824548b907c7e3261a705c1 Mon Sep 17 00:00:00 2001 From: mayank1513 Date: Sat, 18 Jan 2025 16:13:50 +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 | 16 ++++++++-------- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/functions/react18Plugin.html b/docs/functions/react18Plugin.html index a8ee952..2808039 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 294e020..8dcd752 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 f6329f3..afbb02e 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 da5cc57..65e1aae 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 3650812..e9c3145 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6292,11 +6292,11 @@ packages: title-case@3.0.3: resolution: {integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==} - tldts-core@6.1.72: - resolution: {integrity: sha512-FW3H9aCaGTJ8l8RVCR3EX8GxsxDbQXuwetwwgXA2chYdsX+NY1ytCBl61narjjehWmCw92tc1AxlcY3668CU8g==} + tldts-core@6.1.73: + resolution: {integrity: sha512-k1g5eX87vxu3g//6XMn62y4qjayu4cYby/PF7Ksnh4F4uUK1Z1ze/mJ4a+y5OjdJ+cXRp+YTInZhH+FGdUWy1w==} - tldts@6.1.72: - resolution: {integrity: sha512-QNtgIqSUb9o2CoUjX9T5TwaIvUUJFU1+12PJkgt42DFV2yf9J6549yTF2uGloQsJ/JOC8X+gIB81ind97hRiIQ==} + tldts@6.1.73: + resolution: {integrity: sha512-/h4bVmuEMm57c2uCiAf1Q9mlQk7cA22m+1Bu0K92vUUtTVT9D4mOFWD9r4WQuTULcG9eeZtNKhLl0Il1LdKGog==} hasBin: true tmp@0.0.33: @@ -14328,11 +14328,11 @@ snapshots: dependencies: tslib: 2.8.1 - tldts-core@6.1.72: {} + tldts-core@6.1.73: {} - tldts@6.1.72: + tldts@6.1.73: dependencies: - tldts-core: 6.1.72 + tldts-core: 6.1.73 tmp@0.0.33: dependencies: @@ -14357,7 +14357,7 @@ snapshots: tough-cookie@5.1.0: dependencies: - tldts: 6.1.72 + tldts: 6.1.73 tr46@1.0.1: dependencies: