• Will Chen's avatar
    Upgrade to React v19 for default template (#2216) · 458b43d9
    Will Chen 提交于
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > **Upgrade default template and migrate Calendar**
    > 
    > - Bumps dependencies in template/package manifests:
    `react`/`react-dom` -> `^19.2.3`, `react-day-picker` -> `^9.13.0`, and
    `@types/react`/`@types/react-dom` -> `^19.x`
    > - Migrates `Calendar` (`src/components/ui/calendar.tsx`) to DayPicker
    v9: updates `classNames` keys (e.g., `month_caption`,
    `button_previous/next`, `month_grid`, `weekday/week`, `day_button`,
    `selected`, `range_end`, `today`, `outside`, `disabled`, `range_middle`,
    `hidden`) and replaces `IconLeft/IconRight` with `components.Chevron`
    > 
    > **Tests and snapshots**
    > 
    > - Rebaselines e2e snapshots reflecting dependency/UI changes
    > - Adds `await this.waitForChatCompletion()` in `snapshotServerDump` to
    stabilize chat/server dump snapshots
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    3bc152b48e32e9746bf9e08fe7795505608a1c6d. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Upgrade the default scaffold to React 19 and bump react-day-picker to
    v9, updating the Calendar component to the new DayPicker v9 API.
    Rebaselined e2e snapshots and added a wait in tests to stabilize chat
    output.
    
    - **Dependencies**
    - Updated scaffold/package.json: react and react-dom -> ^19.2.3;
    react-day-picker -> ^9.13.0; @types/react and @types/react-dom -> ^19.x.
    - Updated scaffold/pnpm-lock.yaml; refreshed root/test lockfiles and
    peer flags.
    - Adjusted e2e snapshots for dependency/version changes and minor UI
    text ordering.
    
    - **Migration**
      - Run npm ci and rebuild the template. No app code changes required.
    
    <sup>Written for commit 3bc152b48e32e9746bf9e08fe7795505608a1c6d.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    458b43d9
名称
最后提交
最后更新
.claude 正在载入提交数据...
.cursor/rules 正在载入提交数据...
.devcontainer 正在载入提交数据...
.github 正在载入提交数据...
.husky 正在载入提交数据...
assets 正在载入提交数据...
docs 正在载入提交数据...
drizzle 正在载入提交数据...
e2e-tests 正在载入提交数据...
makers 正在载入提交数据...
packages/@dyad-sh 正在载入提交数据...
scaffold 正在载入提交数据...
scripts 正在载入提交数据...
shared 正在载入提交数据...
src 正在载入提交数据...
testing 正在载入提交数据...
tools 正在载入提交数据...
worker 正在载入提交数据...
workers/tsc 正在载入提交数据...
.cursorignore 正在载入提交数据...
.env.example 正在载入提交数据...
.eslintrc.json 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.oxlintrc.json 正在载入提交数据...
.prettierignore 正在载入提交数据...
.prettierrc 正在载入提交数据...
AGENTS.md 正在载入提交数据...
CLA.md 正在载入提交数据...
CLAUDE.md 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
SECURITY.md 正在载入提交数据...
biome.json 正在载入提交数据...
components.json 正在载入提交数据...
drizzle.config.ts 正在载入提交数据...
forge.config.ts 正在载入提交数据...
forge.env.d.ts 正在载入提交数据...
index.html 正在载入提交数据...
lint-staged.config.js 正在载入提交数据...
merge.config.ts 正在载入提交数据...
package-lock.json 正在载入提交数据...
package.json 正在载入提交数据...
playwright.config.ts 正在载入提交数据...
tsconfig.app.json 正在载入提交数据...
tsconfig.json 正在载入提交数据...
tsconfig.node.json 正在载入提交数据...
vite.main.config.mts 正在载入提交数据...
vite.preload.config.mts 正在载入提交数据...
vite.renderer.config.mts 正在载入提交数据...
vite.worker.config.mts 正在载入提交数据...
vitest.config.ts 正在载入提交数据...