38 KiB
Changelog
[1.1.0]
- Update
mockIPC()
handler signature to allow async handler functions. - Improve shell's
Command
,Command.stdout
andCommand.stderr
events with newonce
,off
,listenerCount
,prependListener
,prependOnceListener
andremoveAllListeners
functions. - Added the
encoding
option to theCommand
options. - Add
exists
function to the fs module.
[1.0.2]
- Added helper functions to listen to updater and window events.
- Add support to
ArrayBuffer
inBody.bytes
andwriteBinaryFile
. - Use
toString()
on message/confirm/ask dialogs title and message values. - Remove the
type-fest
dependency, changing the OS types to the specific enum instead of allowing any string.
[1.0.1]
- Fixes the
writeBinaryFile
sending 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
FilePart
usage inhttp.Body.form
by renaming thevalue
property tofile
. - Fixes a memory leak in the command system.
- The notification's
isPermissionGranted
function now returnsboolean
instead ofboolean | null
. The response is nevernull
because we won't check the permission for now, always returningtrue
instead. - Added the
resolveResource
API to the path module. - Renamed
writeFile
towriteTextFile
but kept the original function for backwards compatibility. - Added
(path, contents[, options])
overload to thewriteTextFile
andwriteBinaryFile
APIs.
[1.0.0-rc.6]
- Expose option to set the dialog type.
- Expose
title
option 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
convertFileSrc
function. - Added
theme
getter toWebviewWindow
. - Added
theme
field toWindowOptions
. - Added the
setCursorGrab
,setCursorVisible
,setCursorIcon
andsetCursorPosition
methods to theWebviewWindow
class. - Breaking change: The process Command API stdio lines now includes the trailing
\r
. - Added the
tauri://theme-changed
event.
[1.0.0-rc.3]
- Properly define the
appWindow
type. - Added
Temp
to theBaseDirectory
enum.
[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
unlisten
command.
[1.0.0-rc.1]
- Provide functions to mock IPC calls during testing and static site generation.
[1.0.0-rc.0]
-
Add
fileDropEnabled
property toWindowOptions
so you can now disable it when creating windows from js. -
Add
logDir
function to thepath
module to access the suggested log directory. AddBaseDirectory.Log
to thefs
module. -
Expose
ask
,message
andconfirm
APIs on the dialog module. -
Event
emit
now automatically serialize non-string types. -
Fix
http.fetch
throwing error if the response is successful but the body is empty. -
Add
title
option to file open/save dialogs. -
Fix
os.platform
returningmacos
andwindows
instead ofdarwin
andwin32
. -
The
formatCallback
helper function now returns a number instead of a string. -
Added
rawHeaders
tohttp > Response
. -
Removed the
currentDir
API from thepath
module.- a08509c6 fix(api): remove
currentDir
API from thepath
module on 2022-02-04
- a08509c6 fix(api): remove
-
Remove
.ts
files on the published package. -
Breaking change: Replaces all usages of
number[]
withUint8Array
to be closer aligned with the wider JS ecosystem. -
WindowManager
methodsinnerPosition
outerPosition
now correctly return instance ofPhysicalPosition
.WindowManager
methodsinnerSize
outerSize
now correctly return instance ofPhysicalSize
. -
Change the
event
field of theEvent
interface to typeEventName
instead ofstring
. -
Now
resolve()
,join()
andnormalize()
from thepath
module, won't throw errors if the path doesn't exist, which matches NodeJS behavior. -
Fixes the dialog
defaultPath
usage on Linux. -
Fixes
window.label
property returning null instead of the actual label. -
Remove the
BaseDirectory::Current
enum variant for security reasons.- 696dca58 refactor(core): remove
BaseDirectory::Current
variant on 2022-01-26
- 696dca58 refactor(core): remove
-
Change
WindowLabel
type 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/file
on Windows. Linux and macOS is stillasset://path/to/file
.
[1.0.0-beta.6]
bundle
now exportsclipboard
module so you canimport { clipboard } from "@tauri-apps/api"
.- Fix double window creation
- Add
os
module which exportsEOL
,platform()
,version()
,type()
,arch()
,tempdir()
-
- Add new nodejs-inspired functions which are
join
,resolve
,normalize
,dirname
,basename
andextname
.
- Add new nodejs-inspired functions which are
- Add
sep
anddelimiter
constants. - Removed
resolvePath
API, useresolve
instead. - 05b9d81e feat(api.js): add nodejs-inspired functions in
path
module (#2310) on 2021-08-02 - Change target to ES2021.
- Add
toggleMaximize()
function to theWebviewWindow
class. - Fix
@ts-expect
error usage - Fixes file drop events being swapped (
file-drop-hover
on drop andfile-drop
on 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
EventName
type usingtype-fest
'sLiteralUnion
. - Update protocol url path with wry 0.12.1 on Windows.
[1.0.0-beta.5]
- Adds
convertFileSrc
helper to thetauri
module, simplifying the process of using file paths as webview source (img
,video
, etc). - You can now use
emit
,listen
andonce
using theappWindow
exported 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
Response
andResponseType
as value instead of type.
[1.0.0-beta.2]
- Export
BaseDirectory
inpath
module - Use
export type
to export TS types, enums and interfaces. - Adds
focus?: boolean
to the WindowOptions interface. - Adds
isDecorated
getter on the window API.- f58a2114 feat(core): add
is_decorated
Window getter on 2021-05-30
- f58a2114 feat(core): add
- Adds
isResizable
getter on the window API.- 1e8af280 feat(core): add
is_resizable
Window getter on 2021-05-30
- 1e8af280 feat(core): add
- Adds
isVisible
getter on the window API.- 36506c96 feat(core): add
is_visible
API on 2021-05-30
- 36506c96 feat(core): add
- Adds
requestUserAttention
API to thewindow
module. - Adds
setFocus
to the window API. - Adds
setSkipTaskbar
to the window API.- e06aa277 feat(core): add
set_skip_taskbar
API on 2021-05-30
- e06aa277 feat(core): add
- Adds
skipTaskbar?: boolean
to the WindowOptions interface.- 5525b03a feat(core): add
skip_taskbar
API to the WindowBuilder/WindowOptions on 2021-05-30
- 5525b03a feat(core): add
- Adds
center?: boolean
toWindowOptions
andcenter()
API to theappWindow
. - Adds
clipboard
APIs (write and read text). - The
http
APIs 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
WebviewWindow
constructor as public. - Validate arguments on the window
setLocation
,setSize
,setMinSize
andsetMaxSize
API.
[1.0.0-beta.1]
- Adds
package.json
to theexports
object.
[1.0.0-beta.0]
- CommonJS chunks are now properly exported with
.cjs
extension - Adds
transparent?: boolean
to theWindowOptions
interface. - Adds
options
argument to the shell command API (env
andcwd
configuration). - Adds
startDragging
API on the window module. - Move
exit
andrelaunch
APIs fromapp
toprocess
module. - The window management API was refactored: removed
setX
,setY
,setWidth
,setHeight
APIs, renamedresize
tosetSize
and 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/api
package 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
files
property in the package.json which mean that thedist
directory 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.