Skip to content

Commit bb6471b

Browse files
committed
Update some dependencies to fix some issues from Dependabot
1 parent b875ee6 commit bb6471b

File tree

5 files changed

+555
-723
lines changed

5 files changed

+555
-723
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515
"@babel/preset-react": "^7.24.7",
1616
"@babel/preset-typescript": "^7.24.7",
1717
"@biomejs/biome": "^1.8.3",
18-
"@rollup/plugin-commonjs": "^26.0.1",
19-
"@rollup/plugin-node-resolve": "^15.2.3",
18+
"@rollup/plugin-commonjs": "^28.0.0",
19+
"@rollup/plugin-node-resolve": "^15.3.0",
2020
"@rollup/plugin-typescript": "^11.1.6",
2121
"@symfony/stimulus-testing": "^2.0.1",
22-
"@vitest/browser": "^2.0.5",
22+
"@vitest/browser": "^2.1.1",
2323
"clean-css-cli": "^5.6.2",
2424
"playwright": "^1.47.0",
25-
"rollup": "^4.21.0",
25+
"rollup": "^4.22.5",
2626
"tslib": "^2.6.3",
2727
"typescript": "^5.5.4",
28-
"vitest": "^2.0.5"
29-
}
28+
"vitest": "^2.1.1"
29+
},
30+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
3031
}

src/React/assets/dist/render_controller.js

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,42 @@ import React from 'react';
22
import require$$0 from 'react-dom';
33
import { Controller } from '@hotwired/stimulus';
44

5-
var createRoot;
5+
var client = {};
66

7-
var m = require$$0;
8-
if (process.env.NODE_ENV === 'production') {
9-
createRoot = m.createRoot;
10-
m.hydrateRoot;
11-
} else {
12-
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
13-
createRoot = function(c, o) {
14-
i.usingClientEntryPoint = true;
15-
try {
16-
return m.createRoot(c, o);
17-
} finally {
18-
i.usingClientEntryPoint = false;
19-
}
20-
};
7+
var hasRequiredClient;
8+
9+
function requireClient () {
10+
if (hasRequiredClient) return client;
11+
hasRequiredClient = 1;
12+
13+
var m = require$$0;
14+
if (process.env.NODE_ENV === 'production') {
15+
client.createRoot = m.createRoot;
16+
client.hydrateRoot = m.hydrateRoot;
17+
} else {
18+
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
19+
client.createRoot = function(c, o) {
20+
i.usingClientEntryPoint = true;
21+
try {
22+
return m.createRoot(c, o);
23+
} finally {
24+
i.usingClientEntryPoint = false;
25+
}
26+
};
27+
client.hydrateRoot = function(c, h, o) {
28+
i.usingClientEntryPoint = true;
29+
try {
30+
return m.hydrateRoot(c, h, o);
31+
} finally {
32+
i.usingClientEntryPoint = false;
33+
}
34+
};
35+
}
36+
return client;
2137
}
2238

39+
var clientExports = requireClient();
40+
2341
class default_1 extends Controller {
2442
connect() {
2543
const props = this.propsValue ? this.propsValue : null;
@@ -45,7 +63,7 @@ class default_1 extends Controller {
4563
_renderReactElement(reactElement) {
4664
const element = this.element;
4765
if (!element.root) {
48-
element.root = createRoot(this.element);
66+
element.root = clientExports.createRoot(this.element);
4967
}
5068
element.root.render(reactElement);
5169
}

ux.symfony.com/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"devDependencies": {
3-
"@babel/cli": "^7.21.5",
4-
"@babel/core": "^7.21.8",
5-
"@babel/preset-react": "^7.18.6",
3+
"@babel/cli": "^7.25.6",
4+
"@babel/core": "^7.25.2",
5+
"@babel/preset-react": "^7.24.7",
66
"svelte": "^3.59.1"
77
},
88
"license": "MIT",

0 commit comments

Comments
 (0)