Commit Graph

59 Commits

Author SHA1 Message Date
Mihail Klimin 8fa7c14f18 feat(tauri): Migrate from Tauri v1 to v2
# Summary
This commit completes the migration from Tauri v1 to v2, resolves configuration issues, upgrades Next.js, and adds test coverage for critical components to ensure stability during the transition.

# Details
## Tauri v2 Migration
- Updated Tauri dependencies to v2.3.0 series in package.json
- Restructured build configuration in `/app/config/build.ts` to align with Tauri v2 requirements
- Fixed imports and API usage patterns across the codebase
- Added compatibility layer for window.__TAURI__ references to maintain backward compatibility

## Next.js Issues
- Upgraded Next.js from 14.1.1 to 14.2.24
- Resolved caching problems with Server Actions
- Updated eslint-config-next to match the new version
- Cleared Next.js cache and temporary files to address build issues

## Testing & Stability
- Added comprehensive tests for `stream.ts` to verify streaming functionality
- Created mocks for Tauri API to support test environment
- Verified that critical functionality continues to work correctly
- Translated all comments to English for consistency

## Infrastructure
- Fixed peer dependency warnings during installation
- Ensured proper integration with Tauri v2 plugins (clipboard-manager, dialog, fs, http, notification, shell, updater, window-state)

# Approach
Prioritized stability by:
1. Making minimal necessary changes to configuration files
2. Preserving most `window.__TAURI__` calls as they still function in v2
3. Planning gradual migration to new APIs with test coverage for critical components
4. Documenting areas that will require future attention

# Testing
- Created unit tests for critical streaming functionality
- Performed manual testing of key application features
- Verified successful build and launch with Tauri v2

# Future Work
- Future PRs will gradually replace deprecated Tauri v1 API calls with v2 equivalents
- Additional test coverage will be added for other critical components
2025-03-16 02:14:47 +03:00
lloydzhou 38fa3056df update version 2024-11-11 13:26:08 +08:00
lloydzhou 00d6cb27f7 update version 2024-11-05 17:42:55 +08:00
lloydzhou 4745706c42 update version to v2.15.6 2024-10-24 15:32:27 +08:00
lloydzhou 463fa743e9 update version 2024-10-15 16:10:44 +08:00
lloydzhou 87d85c10c3 update 2024-10-14 21:48:36 +08:00
lloydzhou 7173cf2184 update 2024-09-30 13:07:06 +08:00
lloydzhou 68702bfb1f update version 2024-09-25 15:49:20 +08:00
lloydzhou df62736ff6 update version 2024-09-13 17:36:32 +08:00
lloydzhou 23ac2efd89 hotfix and update version 2024-09-07 22:12:42 +08:00
kosette 27828d9ca8 fix: update package version 2024-09-06 23:07:01 +08:00
lloydzhou f9a047aad4 using tauri http api run plugin to fixed cors in App 2024-09-04 21:04:13 +08:00
lloydzhou 8a38cdc1d7 update version 2024-08-16 16:35:13 +08:00
lloydzhou 624e4dbaaf update version 2024-08-06 22:41:35 +08:00
lloydzhou 8b513537b7 release v2.14.0 2024-07-26 19:24:16 +08:00
lloydzhou e079f1b31a release v2.13.1 2024-07-19 18:16:05 +08:00
lloydzhou b9d1dca65d update version v2.13.0 2024-07-13 21:30:31 +08:00
Fred b972a0d081
feat: bump version 2024-06-24 14:45:45 +08:00
fred-bf 3a007e4f3d
feat: bump version 2024-05-14 17:35:58 +08:00
Fred b2e8a1eaa2
feat: bump version code 2024-04-30 13:27:07 +08:00
Fred aec3c5d6cc
feat: bump version 2024-03-14 02:29:31 +08:00
fred-bf bc1794fb4a
feat: bump version (#4133) 2024-02-26 18:15:00 +08:00
fred-bf bfefb99192
chore: update tauri dependencies (#4018)
* feat: bump version

* feat: bump version

* chore: update tauri dependencies
2024-02-07 14:12:04 +08:00
Anivie Michaelis 47ae874e4d
fix: add support to http scheme. (#3985)
Co-authored-by: fred-bf <157469842+fred-bf@users.noreply.github.com>
2024-02-07 13:48:28 +08:00
fred-bf 0869455612
feat: bump version (#4015)
* feat: bump version

* feat: bump version
2024-02-07 13:38:02 +08:00
fred-bf bca74241e6
fix: fix gemini issue when using app (#4013)
* chore: update path

* fix: fix google auth logic

* fix: not using header authorization for google api

* chore: revert to allow stream
2024-02-07 13:17:11 +08:00
fred-bf 887bec019a
feat: bump version (#4009) 2024-02-06 15:34:43 +08:00
Fred Liang d17000975f
Release 2.10.1: Support Google Gemini Pro model (#3668)
* chore: update auth value logic

* chore: bump version 2.10.1
2023-12-27 23:45:40 +08:00
Fred Liang 3ef0621eb0
refactor: update product name 2023-12-23 16:48:16 +08:00
Yifei Zhang cae4655785
Update tauri.conf.json 2023-12-11 15:59:37 +08:00
Yifei Zhang 401fa198c9
Update tauri.conf.json 2023-11-17 11:29:52 +08:00
Yifei Zhang 2bfb362832
Update tauri.conf.json 2023-11-10 15:19:31 +08:00
Yifei Zhang dbee5bc515
Update tauri.conf.json 2023-11-08 01:05:07 +08:00
Yifei Zhang f21f922160
Update tauri.conf.json 2023-10-09 22:46:36 +08:00
Yifei Zhang 13c1d2fd2b
Merge pull request #2946 from H0llyW00dzZ/ClientApp 2023-10-07 23:50:49 +08:00
Yifei Zhang e35c807216
Update tauri.conf.json 2023-10-07 23:48:50 +08:00
H0llyW00dzZ 64a17abfe2
Client App [Notification]
[+] feat(global.d.ts): add support for window.__TAURI__.notification methods
[+] feat(update.ts): add notification for new version availability
[+] fix(Cargo.toml): add tauri feature "notification-all" to enable notifications
[+] fix(tauri.conf.json): enable all notification features in tauri configuration
2023-10-03 08:08:11 +07:00
Yifei Zhang b050417ab1
Update tauri.conf.json 2023-09-19 11:03:22 +08:00
Yifei Zhang b589f48aa9
Update tauri.conf.json 2023-09-13 03:01:28 +08:00
Yifei Zhang b0c32159e7
Update tauri.conf.json 2023-08-28 01:15:46 +08:00
Yifei Zhang 50eb7a5f98
Update tauri.conf.json 2023-08-18 18:47:54 +08:00
Yifei Zhang 9834a67cbd
Update tauri.conf.json 2023-08-09 15:37:13 +08:00
Yifei Zhang 081d84f848
Update tauri.conf.json 2023-08-03 10:41:45 +08:00
Yifei Zhang b7320e6834
Update tauri.conf.json 2023-07-21 00:37:38 +08:00
Yifei Zhang f0abdc80eb
Update tauri.conf.json 2023-07-18 10:50:44 +08:00
Yifei Zhang c7e9f13d2e
Update tauri.conf.json 2023-07-10 15:03:02 +08:00
Yifei Zhang 42561d04de
Update tauri.conf.json 2023-07-06 11:21:55 +08:00
Yifei Zhang a52fa28ed1
Update tauri.conf.json 2023-07-04 01:10:16 +08:00
Yidadaa 1e8d4763bb fix: tauri auto updater url 2023-06-30 01:15:01 +08:00
Yidadaa 98afd5516b feat: close #1994 add clipboard write api 2023-06-29 00:27:18 +08:00