Skip to content

Commit 269067f

Browse files
bnimitNimit Bhandari
andauthored
chore: upgrade to React 19 (#710)
* chore: upgrade to React 19 - Update React and React-DOM to 19.0.0 - Update @types/react to 19.0.0 - Upgrade Storybook to 8.6.14 for React 19 support - Fix useRef type strictness for React 19 - Update forwardRef type signatures - Migrate Storybook config to ES modules - Add resolutions for consistent React 19 across dependencies All tests, type checks, and builds passing with React 19. * ci: upgrade actions/upload-artifact to v. Fix deprecation warning from GitHub Actions * update the default formatter to be prettier * Add prettier configuration --------- Co-authored-by: Nimit Bhandari <[email protected]>
1 parent 21cc8bc commit 269067f

File tree

176 files changed

+2292
-4677
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+2292
-4677
lines changed

.github/renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>reearth/renovate-config"
5-
]
3+
"extends": ["github>reearth/renovate-config"]
64
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build
3636
run: yarn run build
3737
- name: Upload artifacts
38-
uses: actions/upload-artifact@v3
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: dist
4141
path: dist/**/*

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"bracketSpacing": true,
4+
"printWidth": 120,
5+
"semi": false
6+
}

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ const config: StorybookConfig = {
3030
},
3131
};
3232

33-
module.exports = config;
33+
export default config;

.storybook/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from "@storybook/addons";
1+
import { addons } from "@storybook/manager-api";
22
import { create } from "@storybook/theming";
33

44
addons.setConfig({

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const preview: Preview = {
77
layout: "fullscreen",
88
},
99
decorators: [
10-
Story => {
10+
(Story) => {
1111
return <Story />;
1212
},
1313
],

.storybook/public/tileset/tileset.json

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@
2828
"root": {
2929
"boundingVolume": {
3030
"region": [
31-
-1.3197209591796106,
32-
0.6988424218,
33-
-1.3196390408203893,
34-
0.6989055782,
35-
0,
31+
-1.3197209591796106, 0.6988424218, -1.3196390408203893, 0.6989055782, 0,
3632
88
3733
]
3834
},
@@ -42,25 +38,16 @@
4238
"uri": "parent.b3dm",
4339
"boundingVolume": {
4440
"region": [
45-
-1.3197004795898053,
46-
0.6988582109,
47-
-1.3196595204101946,
48-
0.6988897891,
49-
0,
50-
88
41+
-1.3197004795898053, 0.6988582109, -1.3196595204101946, 0.6988897891,
42+
0, 88
5143
]
5244
}
5345
},
5446
"children": [
5547
{
5648
"boundingVolume": {
5749
"region": [
58-
-1.3197209591796106,
59-
0.6988424218,
60-
-1.31968,
61-
0.698874,
62-
0,
63-
20
50+
-1.3197209591796106, 0.6988424218, -1.31968, 0.698874, 0, 20
6451
]
6552
},
6653
"geometricError": 0,
@@ -71,12 +58,7 @@
7158
{
7259
"boundingVolume": {
7360
"region": [
74-
-1.31968,
75-
0.6988424218,
76-
-1.3196390408203893,
77-
0.698874,
78-
0,
79-
20
61+
-1.31968, 0.6988424218, -1.3196390408203893, 0.698874, 0, 20
8062
]
8163
},
8264
"geometricError": 0,
@@ -90,12 +72,7 @@
9072
{
9173
"boundingVolume": {
9274
"region": [
93-
-1.31968,
94-
0.698874,
95-
-1.3196390408203893,
96-
0.6989055782,
97-
0,
98-
20
75+
-1.31968, 0.698874, -1.3196390408203893, 0.6989055782, 0, 20
9976
]
10077
},
10178
"geometricError": 0,
@@ -106,12 +83,7 @@
10683
{
10784
"boundingVolume": {
10885
"region": [
109-
-1.3197209591796106,
110-
0.698874,
111-
-1.31968,
112-
0.6989055782,
113-
0,
114-
20
86+
-1.3197209591796106, 0.698874, -1.31968, 0.6989055782, 0, 20
11587
]
11688
},
11789
"geometricError": 0,

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib"
3-
}
3+
}

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you want to contribute, follow the [documentation](https://resium.reearth.io/
3131

3232
### Code Contributors
3333

34-
This project exists thanks to all the people who contribute.
34+
This project exists thanks to all the people who contribute.
3535
<a href="https://github.com/reearth/resium/graphs/contributors"><img src="https://opencollective.com/resium/contributors.svg?width=890&button=false" /></a>
3636

3737
### Financial Contributors

0 commit comments

Comments
 (0)