Skip to content

Commit d039327

Browse files
chore: upgrade preact to 10.28.1
1 parent 2f9d10b commit d039327

File tree

7 files changed

+30
-16
lines changed

7 files changed

+30
-16
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- uses: actions/checkout@v2
2424
- name: Configure
2525
run: |
26-
npm config set scripts-prepend-node-path auto
2726
git config --global user.email uirouter@github.actions
2827
git config --global user.name uirouter_github_actions
2928
- name: Install Dependencies

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"d3-hierarchy": "^2.0.0",
3737
"d3-interpolate": "=1.4.0",
38-
"preact": "~10.4.8"
38+
"preact": "^10.28.1"
3939
},
4040
"devDependencies": {
4141
"@rollup/plugin-node-resolve": "^9.0.0",
@@ -53,7 +53,7 @@
5353
"serve": "^11.3.2",
5454
"shx": "^0.3.2",
5555
"tslib": "^2.0.1",
56-
"typescript": "^4.0.3"
56+
"typescript": "^5.9.3"
5757
},
5858
"peerDependencies": {
5959
"@uirouter/core": ">=5.0.0"

src/statevis/StateVisWindow.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ export class StateVisWindow extends Component<IProps, IState> {
129129

130130
render() {
131131
return (
132-
<div className="uirStateVisContainer" ref={(el) => (this.el = el as HTMLElement)}>
132+
<div
133+
className="uirStateVisContainer"
134+
ref={(el) => {
135+
this.el = el as HTMLElement;
136+
}}
137+
>
133138
{this.props.children}
134139
</div>
135140
);

src/statevis/StateVisualizer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export class StateVisualizer extends Component<IProps, IState> {
152152
const { minimized } = this.state;
153153
return (
154154
<div
155-
ref={(el) => (this.rootEl = el as HTMLElement)}
155+
ref={(el) => {
156+
this.rootEl = el as HTMLElement;
157+
}}
156158
onMouseDown={this.cancelAutoMinimize.bind(this)}
157159
onMouseEnter={this.cancelAutoMinimize.bind(this)}
158160
>

src/transition/TransitionVisualizer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ export class TransitionVisualizer extends Component<IProps, IState> {
167167
let pointerEvents = this.state.pointerEvents;
168168

169169
return (
170-
<div ref={(el) => (this._div = el)}>
170+
<div
171+
ref={(el) => {
172+
this._div = el;
173+
}}
174+
>
171175
<div className="uirTranVis_history" style={{ pointerEvents }}>
172176
{this.state.transitions.map((trans) => (
173177
<div key={trans.$id} className="uirTranVis_transition">

src/util/modal.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ export class Modal extends Component<IProps, IState> {
2222
let el = this._ref;
2323
setTimeout(() => {
2424
let fades = el.getElementsByClassName('uir-fade');
25-
[].slice.apply(fades).forEach(node => (node.className += ' in'));
25+
[].slice.apply(fades).forEach((node) => (node.className += ' in'));
2626
}, 35);
2727
}
2828

2929
render() {
3030
return (
31-
<div ref={ref => (this._ref = ref)}>
31+
<div
32+
ref={(ref) => {
33+
this._ref = ref;
34+
}}
35+
>
3236
<div className="uirTranVis_modal-backdrop uir-fade" style={{ zIndex: 1040 }} />
3337

3438
<div tabIndex={-1} className="uirTranVis_modal uir-fade" style={{ zIndex: 1050, display: 'block' }}>

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,10 +3037,10 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.27:
30373037
source-map "^0.6.1"
30383038
supports-color "^6.1.0"
30393039

3040-
preact@~10.4.8:
3041-
version "10.4.8"
3042-
resolved "https://registry.yarnpkg.com/preact/-/preact-10.4.8.tgz#8517b106cc5591eb675237c93da99ac052cf4756"
3043-
integrity sha512-uVLeEAyRsCkUEFhVHlOu17OxcrwC7+hTGZ08kBoLBiGHiZooUZuibQnphgMKftw/rqYntNMyhVCPqQhcyAGHag==
3040+
preact@^10.28.1:
3041+
version "10.28.1"
3042+
resolved "https://registry.yarnpkg.com/preact/-/preact-10.28.1.tgz#83325f0141bc8c97977c64d532429d667a26b411"
3043+
integrity sha512-u1/ixq/lVQI0CakKNvLDEcW5zfCjUQfZdK9qqWuIJtsezuyG6pk9TWj75GMuI/EzRSZB/VAE43sNWWZfiy8psw==
30443044

30453045
prettier@^2.1.2:
30463046
version "2.3.2"
@@ -3848,10 +3848,10 @@ type-fest@^0.8.1:
38483848
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
38493849
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
38503850

3851-
typescript@^4.0.3:
3852-
version "4.3.5"
3853-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
3854-
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
3851+
typescript@^5.9.3:
3852+
version "5.9.3"
3853+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f"
3854+
integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==
38553855

38563856
uglify-js@^3.1.4:
38573857
version "3.13.5"

0 commit comments

Comments
 (0)