• Will Chen's avatar
    Passthrough settings so downgrading Dyad doesn't cause issues (#2183) · 0a286015
    Will Chen 提交于
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > **Behavior change: preserve unknown settings fields**
    > 
    > - Apply `.passthrough()` to `UserSettingsSchema` so unknown properties
    are retained instead of stripped
    > - Update `readSettings.test.ts` to assert extra fields (e.g.,
    `unknownField`, `deprecatedSetting`, nested objects) are preserved while
    defaults still apply
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    d7bd0311a14cb4b501c698c987706efe069ab975. 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
    Preserves unknown settings fields during validation to prevent data loss
    when downgrading Dyad. Switches the user settings schema to passthrough
    and updates tests to match.
    
    - **Bug Fixes**
    - UserSettingsSchema now uses Zod .passthrough() to keep unrecognized
    fields.
      - Updated readSettings test to assert extra fields are preserved.
    
    <sup>Written for commit d7bd0311a14cb4b501c698c987706efe069ab975.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    0a286015
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
pro 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...