* apply version updates * update wry to 0.39.3 to prevent dependency version mismatches --------- Co-authored-by: FabianLars <FabianLars@users.noreply.github.com> Co-authored-by: FabianLars <fabianlars@fabianlars.de>
67 KiB
Changelog
[2.0.0-beta.10]
New Features
[2.0.0-beta.9]
New Features
Bug Fixes
be7eab209(#9486) Set theexports > typespackage.json field.cf615e8e4(#9463) Fixes a bug when processing channel messages out of order.35b25f7e5(#9530) Do not use JS optional chaining to prevent script errors on older webviews such as macOS 10.14.
[2.0.0-beta.8]
New Features
58a7a552d(#9378) Added theset_zoomfunction to the webview API.58a7a552d(#9378) Addzoom_hotkeys_enabledto enable browser native zoom controls on creating webviews.
Bug Fixes
48a7a78f8(#9376) FixWindow/Webview/WebviewWindow.setSize,Window/Webview/WebviewWindow.setPostion,Window/WebviewWindow.setMinSize,Window/WebviewWindow.setMaxSize,Window/WebviewWindow.setCursorPositionandMenu/Submenu.popupmethods failing with invalid args.
[2.0.0-beta.7]
Bug Fixes
Breaking Changes
06833f4fa(#9100) RenameFileDroptoDragDropon structs, enums and enum variants. Also renamedfile_droptodrag_dropon fields and function names.
[2.0.0-beta.6]
New Features
Enhancements
Bug Fixes
379cc2b35(#9165) Fixbasename(path, 'ext')JS API when removing all occurances ofextwhere it should only remove the last one.
Breaking Changes
ea0242db4(#9179)Image::rgba()now returnsPromise<Uint8Array>.ea0242db4(#9179) Removedwidthandheightmethods on the JSImageclass, usesizeinstead.
[2.0.0-beta.5]
Breaking Changes
db0a24a97(#9132) Remove theImage.fromPngBytesandImage.fromIcoBytesAPIs. UseImage.fromBytesinstead.
[2.0.0-beta.4]
New Features
Enhancements
[2.0.0-beta.3]
New Features
[2.0.0-beta.2]
Breaking Changes
[2.0.0-beta.1]
New Features
16e550ec(#8844) Add a newwebviewWindowmodule that exportsWebviewWindowclass and related methods such asgetCurrentandgetAll.16e550ec(#8844) AddWindow.onFileDropEventmethod.
Breaking Changes
-
16e550ec(#8844) Renamed the following enum variants ofTauriEventenum:TauriEvent.WEBVIEW_FILE_DROP->TauriEvent.FILE_DROPTauriEvent.WEBVIEW_FILE_DROP_HOVER->TauriEvent.FILE_DROP_HOVERTauriEvent.WEBVIEW_FILE_DROP_CANCELLED->TauriEvent.FILE_DROP_CANCELLED
-
16e550ec(#8844) MoveWebviewWindowclass fromwebviewmodule to a newwebviewWindowmodule.
[2.0.0-beta.0]
New Features
74a2a603(#8661) Implement access control list for IPC usage.a093682d(#8621) AddedemitToapi toeventmodule which is equivalent to the rustemit_tomethod. Also addedemitTomethod onWindow,WebivewandWebviewWindowclasses.a2fc3a63(#8657) AddvisibleOnAllWorkspacesoption when creating the window in JS andWindow.setVisibleOnAllWorkspacesmethod.7f033f6d(#8537) AddWindow.startResizeDragging.9eaeb5a8(#8622) Addparentoption when creating a window.af610232(#8710) AddedWindow::destroyto force close a window.c77b4032(#8280) Added support to multiwebview via the newwindowandwebviewmodules.
Breaking Changes
c77b4032(#8280) Removed event callback'swindowLabel.c77b4032(#8280) The event target is now an object so you can target either a window or a webview.c77b4032(#8280) Moved webview-specific APIs from theWindowclass to theWebviewclass.c77b4032(#8280) RenamedTauriEvent.WINDOW_FILE_DROPtoTauriEvent.WEBVIEW_FILE_DROP,TauriEvent.WINDOW_FILE_DROP_HOVERtoTauriEvent.WEBVIEW_FILE_DROP_HOVERandTauriEvent.WINDOW_FILE_DROP_CANCELLEDtoTauriEvent.WEBVIEW_FILE_DROP_CANCELLED.c77b4032(#8280) Added back theWebviewWindowAPI that exposes functionality of a window that hosts a single webview. The dedicatedWindowandWebviewtypes are exposed for multiwebview features.af610232(#8710)Window::closenow triggers a close requested event instead of forcing the window to be closed.
[2.0.0-alpha.14]
[2.0.0-alpha.13]
New Features
428ea652(#8370) ExposedResourceclass which should be extended for Rust-backed resources created throughtauri::Manager::resources_table.
Bug Fixes
ef21b681(#8391) Fix a regression where typescript could not find types when using"moduleResolution": "node"46451aee(#8268) Add top-levelmain,moduleandtypesfields inpackage.jsonto be compliant with typescripts's"moduleResolution": "node"
Breaking Changes
[2.0.0-alpha.12]
New Features
f93148ea(#7709) Addtrayandmenumodules to create and manage tray icons and menus from Javascript.
Enhancements
[2.0.0-alpha.11]
Bug Fixes
[2.0.0-alpha.10]
Enhancements
c6c59cf2Pull changes from Tauri 1.5 release.
Bug Fixes
287066b2(#8071) No longer crashing in tests without mocks whenclearMocksis defined inafterEachhook.
[2.0.0-alpha.9]
New Features
c1ec0f15(#7933) AddedsetAlwaysOnBottomfunction onWindowand thealwaysOnBottomoption when creating a window.fb10b879(#8039) Add theappmodule back.ed32257d(#7794) On Windows, addEffect.Tabbed,Effect.TabbedDarkandEffect.TabbedLighteffects.c9a9246c(#8007) Add thewindowmodule back.c085adda(#8009) Added thesetProgressBarAPI on theWindowclass.
What's Changed
Breaking Changes
a63e71f9(#7942) Changedtaurimodule toprimitivesand removed the undocumentedinvokeexport from the root module.
[2.0.0-alpha.8]
Breaking Changes
[2.0.0-alpha.7]
Breaking Changes
[2.0.0-alpha.6]
New Features
[2.0.0-alpha.5]
New Features
e0f0dce2(#6442) Added thewindowEffectsoption when creating a window andsetWindowEffectsmethod to change it at runtime.
Enhancements
9e3a18e0(#7132) Expose the window target option on event APIs.6d3f3138(#7160) Changedsepanddelimiterfrompathmodule into functions to fix import in frameworks likenext.js4652c446(#7144) AddtempDirfunction topathmodule
[2.0.0-alpha.4]
0ab5f40d(#6813) Add channel API for sending data across the IPC.3245d14b(#6895) Moved theappfeature to its own plugin in the plugins-workspace repository.09376af5(#6704) Moved theclifeature to its own plugin in the plugins-workspace repository.2d5378bf(#6717) Moved the dialog APIs to its own plugin in the plugins-workspace repository.39f1b04f(#6943) Moved theeventJS APIs to a plugin.fc4d687e(#6716) Moved the file system APIs to its own plugin in the plugins-workspace repository.f78a3783(#6742) Moved thehttpfeature to its own plugin in the plugins-workspace repository.29ce9ce2(#6902) Moved theosfeature to its own plugin in the plugins-workspace repository.60cf9ed2(#6905) Moved theprocessfeature to its own plugin in the plugins-workspace repository.96639ca2(#6749) Moved theshellfunctionality to its own plugin in the plugins-workspace repository.b072daa3(#6919) Moved theupdaterfeature to its own plugin in the plugins-workspace repository.cebd7526(#6728) Moved theclipboardfeature to its own plugin in the plugins-workspace repository.3f17ee82(#6737) Moved theglobal-shortcutfeature to its own plugin in the plugins-workspace repository.9a79dc08(#6947) Moved thewindowJS APIs to its own plugin in the plugins-workspace repository.
[2.0.0-alpha.3]
- Overload the dialog
openfunction to have better TS result types.
[2.0.0-alpha.2]
- Added
rawencoding option to read stdout and stderr raw bytes.- f992e7f5 chore(changes): readd change file on 2023-04-03
- Removed shell's
Commandconstructor and added theCommand.createstatic function instead.
[2.0.0-alpha.1]
- Added the
shadowoption when creating a window andsetShadowfunction.
[2.0.0-alpha.0]
[1.5.3]
Bug Fixes
1c582a94(#8392) Fix a regression where typescript could not find types when using"moduleResolution": "node"
[1.5.2]
Bug Fixes
50462702(#8267) Add top-levelmain,moduleandtypesfields inpackage.jsonto be compliant with typescripts's"moduleResolution": "node"14544e4b(#8219) Avoid crashing inclearMocks
[1.5.1]
New Features
[1.5.0]
New Features
Enhancements
58d6b899(#7636) Addappendoption toFsOptionsin thefsJS module, used inwriteTextFileandwriteBinaryFile, to be able to append to existing files instead of overwriting it.
Bug Fixes
2eab1505(#7394) FixBody.formstatic not reading and sending entries of typeBlob(including subclasses such asFile)
[1.4.0]
New Features
359058ce(#5939) Addlocalefunction in theosmodule to get the system locale.c4d6fb4b(#2353) Added themaximizable,minimizableandclosablefields onWindowOptions.c4d6fb4b(#2353) Added thesetMaximizable,setMinimizable,setClosable,isMaximizable,isMinimizableandisClosablemethods.000104bc(#6472) AddWebviewWindow.is_focusedandWebviewWindow.getFocusedWindowgetters.
[1.3.0]
- Return correct type for
event.payloadinonResizedandonMovedwindow event handlers. - Added the
WindowOptions::contentProtectedoption andWebviewWindow#setContentProtectedto change it at runtime. - Allow setting the text of the dialog buttons.
- Add
is_minimized()window method. - Add
titlegetter on window.
[1.2.0]
- Added the
acceptFirstMousewindow option. - Fix incorrect return type on
fs/exists - Initialize
Monitorinstances with the correct classes forpositionandsizefields instead of plain object. - Breaking change: Node.js v12 is no longer supported.
- Add new app-specific
BaseDirectoryenum variantsAppConfig,AppData,AppLocalData,AppCacheandAppLogalong with equivalent functions inpathmodule and deprecated ambiguous variantsLogandAppalong with their equivalent functions inpathmodule. - Fix
dialog.savereturn type - Added support to
FormDataon theBody.formfunction. - Added
showandhidemethods on theappmodule. - Added
tabbingIdentifierwindow option for macOS. - Added
tabbing_identifierto the window builder on macOS. - Added the
user_agentoption when creating a window.
[1.1.0]
- Update
mockIPC()handler signature to allow async handler functions. - Improve shell's
Command,Command.stdoutandCommand.stderrevents with newonce,off,listenerCount,prependListener,prependOnceListenerandremoveAllListenersfunctions. - Added the
encodingoption to theCommandoptions. - Add
existsfunction to the fs module.
[1.0.2]
- Added helper functions to listen to updater and window events.
- Add support to
ArrayBufferinBody.bytesandwriteBinaryFile. - Use
toString()on message/confirm/ask dialogs title and message values. - Remove the
type-festdependency, changing the OS types to the specific enum instead of allowing any string.
[1.0.1]
- Fixes the
writeBinaryFilesending an empty file contents when only the first argument is passed.
[1.0.0]
- Allow choosing multiple folders in
dialog.open. - Upgrade to
stable!
[1.0.0-rc.7]
- Fix
FilePartusage inhttp.Body.formby renaming thevalueproperty tofile. - Fixes a memory leak in the command system.
- The notification's
isPermissionGrantedfunction now returnsbooleaninstead ofboolean | null. The response is nevernullbecause we won't check the permission for now, always returningtrueinstead. - Added the
resolveResourceAPI to the path module. - Renamed
writeFiletowriteTextFilebut kept the original function for backwards compatibility. - Added
(path, contents[, options])overload to thewriteTextFileandwriteBinaryFileAPIs.
[1.0.0-rc.6]
- Expose option to set the dialog type.
- Expose
titleoption in the message dialog API.
[1.0.0-rc.5]
- Fixes the type of
http > connectTimeout.
[1.0.0-rc.4]
- Encode the file path in the
convertFileSrcfunction. - Added
themegetter toWebviewWindow. - Added
themefield toWindowOptions. - Added the
setCursorGrab,setCursorVisible,setCursorIconandsetCursorPositionmethods to theWebviewWindowclass. - Breaking change: The process Command API stdio lines now includes the trailing
\r. - Added the
tauri://theme-changedevent.
[1.0.0-rc.3]
- Properly define the
appWindowtype. - Added
Tempto theBaseDirectoryenum.
[1.0.0-rc.2]
- Do not crash if
__TAURI_METADATA__is not set, log an error instead. - Reimplement endpoint to read file as string for performance.
- Fixes a regression on the
unlistencommand.
[1.0.0-rc.1]
- Provide functions to mock IPC calls during testing and static site generation.
[1.0.0-rc.0]
-
Add
fileDropEnabledproperty toWindowOptionsso you can now disable it when creating windows from js. -
Add
logDirfunction to thepathmodule to access the suggested log directory. AddBaseDirectory.Logto thefsmodule. -
Expose
ask,messageandconfirmAPIs on the dialog module. -
Event
emitnow automatically serialize non-string types. -
Fix
http.fetchthrowing error if the response is successful but the body is empty. -
Add
titleoption to file open/save dialogs. -
Fix
os.platformreturningmacosandwindowsinstead ofdarwinandwin32. -
The
formatCallbackhelper function now returns a number instead of a string. -
Added
rawHeaderstohttp > Response. -
Removed the
currentDirAPI from thepathmodule.- a08509c6 fix(api): remove
currentDirAPI from thepathmodule on 2022-02-04
- a08509c6 fix(api): remove
-
Remove
.tsfiles on the published package. -
Breaking change: Replaces all usages of
number[]withUint8Arrayto be closer aligned with the wider JS ecosystem. -
WindowManagermethodsinnerPositionouterPositionnow correctly return instance ofPhysicalPosition.WindowManagermethodsinnerSizeouterSizenow correctly return instance ofPhysicalSize. -
Change the
eventfield of theEventinterface to typeEventNameinstead ofstring. -
Now
resolve(),join()andnormalize()from thepathmodule, won't throw errors if the path doesn't exist, which matches NodeJS behavior. -
Fixes the dialog
defaultPathusage on Linux. -
Fixes
window.labelproperty returning null instead of the actual label. -
Remove the
BaseDirectory::Currentenum variant for security reasons.- 696dca58 refactor(core): remove
BaseDirectory::Currentvariant on 2022-01-26
- 696dca58 refactor(core): remove
-
Change
WindowLabeltype tostring.- f68603ae chore(docs): simplify event system documentation on 2021-09-27
-
When building Universal macOS Binaries through the virtual target
universal-apple-darwin: -
Expect a universal binary to be created by the user
-
Ensure that binary is bundled and accessed correctly at runtime
-
3035e458 Remove target triple from sidecar bin paths, closes #3355 (#3356) on 2022-02-07
[1.0.0-beta.8]
- Revert target back to ES5.
- 657c7dac fix(api): revert ES2021 target on 2021-08-23
[1.0.0-beta.7]
- Fix missing asset protocol path.Now the protocol is
https://asset.localhost/path/to/fileon Windows. Linux and macOS is stillasset://path/to/file.
[1.0.0-beta.6]
bundlenow exportsclipboardmodule so you canimport { clipboard } from "@tauri-apps/api".- Fix double window creation
- Add
osmodule which exportsEOL,platform(),version(),type(),arch(),tempdir() -
- Add new nodejs-inspired functions which are
join,resolve,normalize,dirname,basenameandextname.
- Add new nodejs-inspired functions which are
- Add
sepanddelimiterconstants. - Removed
resolvePathAPI, useresolveinstead. - 05b9d81e feat(api.js): add nodejs-inspired functions in
pathmodule (#2310) on 2021-08-02 - Change target to ES2021.
- Add
toggleMaximize()function to theWebviewWindowclass. - Fix
@ts-expecterror usage - Fixes file drop events being swapped (
file-drop-hoveron drop andfile-dropon hover). - Fixes the global bundle UMD code.
-
- Fixes monitor api not working.
- Fixes window.print() not working on macOS.
- 0f63f5e7 fix(api): Fix monitor functions, closes #2294 (#2301) on 2021-07-29
- Improve
EventNametype usingtype-fest'sLiteralUnion. - Update protocol url path with wry 0.12.1 on Windows.
[1.0.0-beta.5]
- Adds
convertFileSrchelper to thetaurimodule, simplifying the process of using file paths as webview source (img,video, etc). - You can now use
emit,listenandonceusing theappWindowexported by the window module. - Allow manipulating a spawned window directly using
WebviewWindow, which now extendsWindowManager.
[1.0.0-beta.4]
- Add asset custom protocol to access local file system.
[1.0.0-beta.3]
- Export
ResponseandResponseTypeas value instead of type.
[1.0.0-beta.2]
- Export
BaseDirectoryinpathmodule - Use
export typeto export TS types, enums and interfaces. - Adds
focus?: booleanto the WindowOptions interface. - Adds
isDecoratedgetter on the window API.- f58a2114 feat(core): add
is_decoratedWindow getter on 2021-05-30
- f58a2114 feat(core): add
- Adds
isResizablegetter on the window API.- 1e8af280 feat(core): add
is_resizableWindow getter on 2021-05-30
- 1e8af280 feat(core): add
- Adds
isVisiblegetter on the window API.- 36506c96 feat(core): add
is_visibleAPI on 2021-05-30
- 36506c96 feat(core): add
- Adds
requestUserAttentionAPI to thewindowmodule. - Adds
setFocusto the window API. - Adds
setSkipTaskbarto the window API.- e06aa277 feat(core): add
set_skip_taskbarAPI on 2021-05-30
- e06aa277 feat(core): add
- Adds
skipTaskbar?: booleanto the WindowOptions interface.- 5525b03a feat(core): add
skip_taskbarAPI to the WindowBuilder/WindowOptions on 2021-05-30
- 5525b03a feat(core): add
- Adds
center?: booleantoWindowOptionsandcenter()API to theappWindow. - Adds
clipboardAPIs (write and read text). - The
httpAPIs now resolve the returned promise when the API call finishes with an error status code. - Improve RPC security by requiring a numeric code to invoke commands. The codes are generated by the Rust side and injected into the app's code using a closure, so external scripts can't access the backend. This change doesn't protect
withGlobalTauri(window.__TAURI__) usage. - Mark the
WebviewWindowconstructor as public. - Validate arguments on the window
setLocation,setSize,setMinSizeandsetMaxSizeAPI.
[1.0.0-beta.1]
- Adds
package.jsonto theexportsobject.
[1.0.0-beta.0]
- CommonJS chunks are now properly exported with
.cjsextension - Adds
transparent?: booleanto theWindowOptionsinterface. - Adds
optionsargument to the shell command API (envandcwdconfiguration). - Adds
startDraggingAPI on the window module. - Move
exitandrelaunchAPIs fromapptoprocessmodule. - The window management API was refactored: removed
setX,setY,setWidth,setHeightAPIs, renamedresizetosetSizeand the size and position APIs now allow defining both logical and physical values. - Adds window getters.
[1.0.0-beta-rc.3]
- Fixes distribution of the
@tauri-apps/apipackage for older bundlers. - Update minimum Node.js version to v12.13.0
[1.0.0-beta-rc.2]
- TS was wrongly re-exporting the module.
[1.0.0-beta-rc.1]
- Missing the
filesproperty in the package.json which mean that thedistdirectory was not published and used.
[1.0.0-beta-rc.0]
- Add current working directory to the path api module.
- The shell process spawning API was rewritten and now includes stream access.
- The file dialog API now uses rfd. The filter option is now an array of
{ name: string, extensions: string[] }. - The HTTP API was improved with client caching and better payload and response types.
- Update all code files to have our license header.
- Use secure RNG on callback function names.
- The invoke function can now be called with the cmd as the first parameter and the args as the second.
- Adds a global shortcut API.
- Added window management and window creation APIs.