-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[meta] Breaking changes before v2-beta release #7756
Comments
I like most of this, but I'm not sure about |
I'm not sure if these qualify under "breaking changes", but I'm tracking these in tauri-apps/tauri-docs#1344 :
|
I'd like to request another one, merging the 2 updater configs into one. It may be a bit awkward to have the cli/bundler care about plugin configs but that's still wayyyyy less awkward than having 2 updater configs imo.
|
My bad, I actually thought we have more than one callback that returns a result, turns out it is only |
Met @nathan234 at RustConf, Nathan mentioned looking at integrating ART for the Android side of 2.0. Feel free to join the conversation here, open a new issue/PR, or join us on Discord! |
* refactor!: remove `tauri::api` module ref: #7756 * change file * fix builds
…IconBuilder/TrayIcon::on_tray_icon_event` ref: #7756
While trying to implement this change, I had a change of heart because the JS side uses if anyone feels like this change is still needed, let me know |
Decided to keep TS and instead opted into simplifying the output JS files in #8025 which makes:
|
* refactor: remove uuid and rand dependencies where applicable ref: #7756 * replace rand with getrandom * change files * InnerListeners private * revert listeners_object_name [skip ci] * default for next_event_id * remove raw listen function * fix event system * Apply suggestions from code review [skip ci] * update names [skip ci] --------- Co-authored-by: Lucas Nogueira <[email protected]> Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
Closing this as most items are now implemented, the remaining 2 items could be added later, and will be tracked in their respective issues. |
Public API changes:
http
crate types - refactor(core): allow custom protocol handler to resolve async #7754tauri::api
module, not sure if it is needed, it still has hidden exports but ultimately it should be removed and replace with a public API if needed - refactor!: removetauri::api
module #7874path
andplugin
modules both, have aResult
type alias, where they should be usingtauri::Result
instead and not have Error types on their own - refactor!: remove unnecessary error enum and result type aliases #7875Make almost all callbacks (where it makes sense), return atauri::Result
because most of our APIs returntauri::Result
and would be easier to use?
operator.rand
anduuid
crates, our usages of it could be replaced with an atomically incremented counter - refactor!: remove uuid and rand dependencies where applicable #7939Env.args
to pull fromstd::env::args_os
instead ofstd::env::args
- refactor!: changedEnv.args
toEnv.args_os
and useOsString
instead ofString
#7876FsScope
, then we haveipc::Scope
- refactor!: consistent naming intauri::scope
module #7944TrayIconBuilder/TrayIcon::on_tray_event
should be renamed toTrayIconBuilder/TrayIcon::on_tray_icon_event
- refactor!: renamedTrayIconBuilder/TrayIcon::on_tray_event
toTrayIconBuilder/TrayIcon::on_tray_icon_event
#7943TAURI_<SCOPE>_<VAR>
- refactor!: consistent environment variables #7949A few examples but not limited to:
TAURI_FIPS_COMPLIANT
should beTAURI_BUNDLER_WIX_FIPS_COMPLIANT
TAURI_PRIVATE_KEY
relies onTAURI_KEY_PASSWORD
and so it should be renamed toTAURI_PRIVATE_KEY_PASSWORD
APPLE_ID
andAPPLE_PASSWORD
should probably be prefixed withTAURI_
unless these env vars are somewhat of a convention used by other tools, in that case, it should be fine to keep as is.Event
andRunEvent
, I thinkRunEvent
should be renamed toEvent
andEvent
should be changed toEmittedEvent
and a variant underEvent
(which was previously namedRunEvent
)Internal changes:
@tauri-apps/api
, likeinvoke
,Channel
,convertFileSrc
and probably all exports from@tauri-apps/api/tauri
module, should be all just a shim for the globally defined equivalents inscripts/core.js
- refactor(core&api)!: hide internal functions and reuse them in api.js & renametauri
module toprimitives
#7942Move from TS to JS with JSDoc for @tauri-apps/api npm package, see discord wg-forum posttauri-runtime
agnostic again #8036This list is open for discussion, I just made it because I keep forgetting about them and feel free to add more as you see fit.
cc @tauri-apps/wg-tauri
The text was updated successfully, but these errors were encountered: