44 KiB
Changelog
[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.