Skip to content

Commit 436301f

Browse files
Merge pull request #502 from ejarocki-cloudlinux/master
Merge react-dom page into react
2 parents 00c4ed1 + 1f9a05f commit 436301f

3 files changed

Lines changed: 61 additions & 176 deletions

File tree

docs/.vuepress/components/ELSTechnology.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -883,14 +883,9 @@ const techData = [
883883
},
884884
{
885885
name: "React",
886-
versions: "15.6.2 | 19.2.0",
886+
versions: "15.6.2 | 16.4.1 | 19.2.0",
887887
link: "./react/",
888888
},
889-
{
890-
name: "react-dom",
891-
versions: "16.4.1",
892-
link: "./react-dom/",
893-
},
894889
{
895890
name: "react-pdf",
896891
versions: "7.7.1",

docs/els-for-libraries/react-dom/README.md

Lines changed: 0 additions & 137 deletions
This file was deleted.

docs/els-for-libraries/react/README.md

Lines changed: 60 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Endless Lifecycle Support (ELS) for React from TuxCare provides security fixes f
44

55
## Supported React Versions
66

7-
* React 15.6.2, 19.2.0
7+
* React 15.6.2, 16.4.1, 19.2.0
88

99
## Connection to ELS for React Library
1010

@@ -49,64 +49,83 @@ TuxCare provides ELS for React as an NPM package, hosted on a secure internal re
4949

5050
Manually update your `package.json` file by replacing your React dependencies with the TuxCare packages. This method gives you full control over which packages to update.
5151

52-
* **Option 2: TuxCare Patcher (Automated)**
52+
<TableTabs label="Choose version: " >
5353

54-
Install the Patcher globally and run it. The TuxCare Patcher automatically detects the React version in your `package.json` and updates your `dependencies` and `overrides` to use the corresponding TuxCare `@els-js/*` packages.
54+
<template #react-15.6.2>
5555

56-
```text
57-
npm install -g @els-js/tuxcare-patcher --userconfig ./.npmrc
58-
tuxcare-patch-js
59-
```
60-
61-
The patcher will update your `package.json`, for example, from:
62-
63-
```text
64-
"dependencies": {
65-
"react": "^19.2.0"
66-
}
67-
```
68-
69-
to:
70-
71-
```text
72-
"dependencies": {
73-
"react": "npm:@els-js/react@>=19.2.0-tuxcare.1"
74-
},
75-
"overrides": {
76-
"react@19.2.0": "npm:@els-js/react@>=19.2.0-tuxcare.1"
77-
}
78-
```
56+
```text
57+
"dependencies": {
58+
"react": "npm:@els-js/react@>=15.6.2-tuxcare.1",
59+
"react-dom": "npm:@els-js/react-dom@>=15.6.2-tuxcare.1"
60+
},
61+
"overrides": {
62+
"react@15.6.2": "npm:@els-js/react@>=15.6.2-tuxcare.1"
63+
"react-dom@15.6.2": "npm:@els-js/react-dom@>=15.6.2-tuxcare.1"
64+
}
65+
```
7966
80-
<TableTabs label="Choose React version: " >
67+
</template>
8168
82-
<template #react_15.6.2>
69+
<template #react-16.4.1>
8370
8471
```text
8572
"dependencies": {
86-
"react": "npm:@els-js/react@>=15.6.2-tuxcare.1"
73+
"react": "npm:@els-js/react@>=16.4.1-tuxcare.1",
74+
"react-dom": "npm:@els-js/react-dom@>=16.4.1-tuxcare.1"
8775
},
8876
"overrides": {
89-
"react@15.6.2": "npm:@els-js/react@>=15.6.2-tuxcare.1"
77+
"react@16.4.1": "npm:@els-js/react@>=16.4.1-tuxcare.1"
78+
"react-dom@16.4.1": "npm:@els-js/react-dom@>=16.4.1-tuxcare.1"
9079
}
9180
```
9281
93-
</template>
82+
</template>
9483
95-
<template #react_19.2.0>
84+
<template #react-19.2.0>
9685
9786
```text
9887
"dependencies": {
9988
"react": "npm:@els-js/react@>=19.2.0-tuxcare.1"
89+
"react-dom": "npm:@els-js/react-dom@>=19.2.0-tuxcare.1"
10090
},
10191
"overrides": {
10292
"react@19.2.0": "npm:@els-js/react@>=19.2.0-tuxcare.1"
93+
"react-dom@19.2.0": "npm:@els-js/react-dom@>=19.2.0-tuxcare.1"
10394
}
10495
```
10596
10697
</template>
10798
10899
</TableTabs>
109100
101+
* **Option 2: TuxCare Patcher (Automated)**
102+
103+
Install the Patcher globally and run it. The TuxCare Patcher automatically detects the React version in your `package.json` and updates your `dependencies` and `overrides` to use the corresponding TuxCare `@els-js/*` packages.
104+
105+
```text
106+
npm install -g @els-js/tuxcare-patcher --userconfig ./.npmrc
107+
tuxcare-patch-js
108+
```
109+
110+
The patcher will update your `package.json`, for example, from:
111+
112+
```text
113+
"dependencies": {
114+
"react": "^19.2.0"
115+
}
116+
```
117+
118+
to:
119+
120+
```text
121+
"dependencies": {
122+
"react": "npm:@els-js/react@>=19.2.0-tuxcare.1"
123+
},
124+
"overrides": {
125+
"react@19.2.0": "npm:@els-js/react@>=19.2.0-tuxcare.1"
126+
}
127+
```
128+
110129
5. You need to remove the `node_modules` directory and the `package-lock.json` file, and also clear the `npm cache` before installing the patched packages. Use the following commands:
111130
112131
```text
@@ -150,7 +169,7 @@ If you have already installed a package with a `tuxcare.1` suffix and want to up
150169

151170
Fixes for the following vulnerabilities are available in ELS for React from TuxCare versions:
152171

153-
<TableTabs label="Choose React version: " >
172+
<TableTabs label="Choose version: " >
154173

155174
<template #react_15.6.2>
156175

@@ -160,6 +179,14 @@ Fixes for the following vulnerabilities are available in ELS for React from TuxC
160179

161180
</template>
162181

182+
<template #react_16.4.1>
183+
184+
| CVE ID | CVE Type | Severity | Affected Libraries | Vulnerable Versions |
185+
| :-----------: | :------: |:--------:|:------------------:| :----------------: |
186+
| CVE-2018-6341 | Direct | Medium | react-dom | >= 16.0.0 < 16.0.1, >= 16.1.0 < 16.1.2, >= 16.2.0 < 16.2.1, >= 16.3.0 < 16.3.3, >= 16.4.0 < 16.4.2 |
187+
188+
</template>
189+
163190
<template #react_19.2.0>
164191

165192
| CVE ID | CVE Type | Severity | Affected Libraries | Vulnerable Versions |

0 commit comments

Comments
 (0)