tauri/packages/api/CHANGELOG.md
github-actions[bot] cbdcee61dc
Apply Version Updates From Current Changes (#11029)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-09-17 09:02:10 -03:00

75 KiB

Changelog

[2.0.0-rc.5]

New Features

[2.0.0-rc.4]

Enhancements

  • f81929e25 (#10799 by @lucasfernog) Added PermissionState, checkPermissions and requestPermissions base APIs to the core module, designed for plugin authors to extend.

Bug Fixes

[2.0.0-rc.3]

What's Changed

[2.0.0-rc.2]

Bug Fixes

[2.0.0-rc.1]

Breaking Changes

  • b6dca99ff (#10630 by @lucasfernog) Changed WebviewWindow.getAll, WebviewWindow.getByLabel, getAllWebviewWindows, Window.getAll, Window.getByLabel, getAllWindows, Webview.getAll, Webview.getByLabel, getAllWebviews to be async so their return value are synchronized with the state from the Rust side, meaning new and destroyed windows are reflected.

[2.0.0-rc.0]

Changes

  • Promoted to RC!

[2.0.0-beta.16]

New Features

  • da25f7353 (#10242 by @amrbashir) Add APIs to enable setting window size constraints separately:

    • Added WindowSizeConstraints interface in window and webviewWindow modules.
    • Added Window.setSizeConstraints and WebviewWindow.setSizeConstraints

Bug Fixes

  • 3c17fb64f (#10277 by @Legend-Master) Fix Webview.reparent pointing to set_webview_focus instead of reparent Rust API
  • da25f7353 (#10242 by @amrbashir) Apply minWidth, minHieght, maxWidth and maxHeight constraints separately, which fixes a long standing bug where these constraints were never applied unless width and height were constrained together.

[2.0.0-beta.15]

New Features

Enhancements

  • 080b6e127 (#10246 by @Legend-Master) Use EventName on Window, Webview and WebviewWindow's once so you can get auto complete for tauri's built-in events

Bug Fixes

Breaking Changes

  • 261c9f942 (#10170 by @amrbashir) Renamed drag and drop events in TauriEvent enum to better convey when they are triggered:

    • TauriEvent.DRAG -> TauriEvent.DRAG_ENTER
    • TauriEvent.DROP_OVER -> TauriEvent.DRAG_OVER
    • TauriEvent.DROP -> TauriEvent.DRAG_DROP
    • TauriEvent.DROP_CANCELLED -> TauriEvent::DRAG_LEAVE

    Also the type field values in Window/Webview/WebviewWindow.onDropEvent and DragDropEvent have changed:

    • dragged -> enter
    • dragOver -> over
    • dropped -> drop
    • cancelled -> leave
  • 2b1ceb40d (#10229 by @amrbashir) Renamed the JS getCurrent and getAll functions to a clearer name to avoid ambiguity:

    • getCurrent in window module has been renamed to getCurrentWindow
    • getCurrent in webview module has been renamed to getCurrentWebview
    • getCurrent in webviewWindow module has been renamed to getCurrentWebviewWindow
    • getAll in window module has been renamed to getAllWindows
    • getAll in webview module has been renamed to getAllWebviews
    • getAll in webviewWindow module has been renamed to getAllWebviewWindows

[2.0.0-beta.14]

New Features

  • 148f04887 (#9979) Add defaultWindowIcon to the JS app module to retrieve the default window icon in JS.

Bug Fixes

[2.0.0-beta.13]

Breaking Changes

  • c4410daa8(#9777) This release contains breaking changes to the tray event structure because of newly added events:

    • Changed TrayIconEvent to be an enum instead of a struct.
    • Added MouseButtonState and MouseButton enums.
    • Removed ClickType enum and replaced it with MouseButton enum.
    • Added MouseButtonState enum.

[2.0.0-beta.12]

New Features

  • ec0e092ec(#9770) Add monitorFromPoint function in window module to get the monitor from a given point.

[2.0.0-beta.11]

Bug Fixes

[2.0.0-beta.10]

New Features

  • 477bb8cd4(#9297) Add cursorPosition function in window module to get the current cursor position.

[2.0.0-beta.9]

New Features

  • 70c51371e(#9539) Add isTauri function in core module to check whether running inside tauri or not.

Bug Fixes

  • be7eab209(#9486) Set the exports > types package.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 the set_zoom function to the webview API.
  • 58a7a552d(#9378) Add zoom_hotkeys_enabled to enable browser native zoom controls on creating webviews.

Bug Fixes

  • 48a7a78f8(#9376) Fix Window/Webview/WebviewWindow.setSize, Window/Webview/WebviewWindow.setPostion, Window/WebviewWindow.setMinSize, Window/WebviewWindow.setMaxSize, Window/WebviewWindow.setCursorPosition and Menu/Submenu.popup methods failing with invalid args.

[2.0.0-beta.7]

Bug Fixes

  • c33f6e6cf(#9211) Re-added the TauriEvent.WINDOW_CREATED (tauri://window-created) event.

Breaking Changes

  • 06833f4fa(#9100) Rename FileDrop to DragDrop on structs, enums and enum variants. Also renamed file_drop to drag_drop on fields and function names.

[2.0.0-beta.6]

New Features

  • acdd76833(#9155) Add TrayIcon.getById and TrayIcon.removeById static methods.

Enhancements

  • ea0242db4(#9179) The Image constructor is now public (for internal use only).

Bug Fixes

  • 379cc2b35(#9165) Fix basename(path, 'ext') JS API when removing all occurances of ext where it should only remove the last one.

Breaking Changes

  • ea0242db4(#9179) Image::rgba() now returns Promise<Uint8Array>.
  • ea0242db4(#9179) Removed width and height methods on the JS Image class, use size instead.

[2.0.0-beta.5]

Breaking Changes

  • db0a24a97(#9132) Remove the Image.fromPngBytes and Image.fromIcoBytes APIs. Use Image.fromBytes instead.

[2.0.0-beta.4]

New Features

Enhancements

  • e62ca4ee9(#9070) Added a mechanism to preserve channel message order.

[2.0.0-beta.3]

New Features

  • fdcaf935(#8939) Added the reparent function to the webview API.

[2.0.0-beta.2]

Breaking Changes

  • 361ec37f(#8932) Removed the unityUri option from the progress bar state, no longer required.

[2.0.0-beta.1]

New Features

  • 16e550ec(#8844) Add a new webviewWindow module that exports WebviewWindow class and related methods such as getCurrent and getAll.
  • 16e550ec(#8844) Add Window.onFileDropEvent method.

Breaking Changes

  • 16e550ec(#8844) Renamed the following enum variants of TauriEvent enum:

    • TauriEvent.WEBVIEW_FILE_DROP -> TauriEvent.FILE_DROP
    • TauriEvent.WEBVIEW_FILE_DROP_HOVER -> TauriEvent.FILE_DROP_HOVER
    • TauriEvent.WEBVIEW_FILE_DROP_CANCELLED -> TauriEvent.FILE_DROP_CANCELLED
  • 16e550ec(#8844) Move WebviewWindow class from webview module to a new webviewWindow module.

[2.0.0-beta.0]

New Features

  • 74a2a603(#8661) Implement access control list for IPC usage.
  • a093682d(#8621) Added emitTo api to event module which is equivalent to the rust emit_to method. Also added emitTo method on Window, Webivew and WebviewWindow classes.
  • a2fc3a63(#8657) Add visibleOnAllWorkspaces option when creating the window in JS and Window.setVisibleOnAllWorkspaces method.
  • 7f033f6d(#8537) Add Window.startResizeDragging.
  • 9eaeb5a8(#8622) Add parent option when creating a window.
  • af610232(#8710) Added Window::destroy to force close a window.
  • c77b4032(#8280) Added support to multiwebview via the new window and webview modules.

Breaking Changes

  • c77b4032(#8280) Removed event callback's windowLabel.
  • 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 the Window class to the Webview class.
  • c77b4032(#8280) Renamed TauriEvent.WINDOW_FILE_DROP to TauriEvent.WEBVIEW_FILE_DROP, TauriEvent.WINDOW_FILE_DROP_HOVER to TauriEvent.WEBVIEW_FILE_DROP_HOVER and TauriEvent.WINDOW_FILE_DROP_CANCELLED to TauriEvent.WEBVIEW_FILE_DROP_CANCELLED.
  • c77b4032(#8280) Added back the WebviewWindow API that exposes functionality of a window that hosts a single webview. The dedicated Window and Webview types are exposed for multiwebview features.
  • af610232(#8710) Window::close now triggers a close requested event instead of forcing the window to be closed.

[2.0.0-alpha.14]

  • 97e33412(#8534) mockIPC and mockWindows no longer crash if window.__TAURI_INTERNALS__ is undefined.

[2.0.0-alpha.13]

New Features

  • 428ea652(#8370) Exposed Resource class which should be extended for Rust-backed resources created through tauri::Manager::resources_table.

Bug Fixes

  • ef21b681(#8391) Fix a regression where typescript could not find types when using "moduleResolution": "node"
  • 46451aee(#8268) Add top-level main, module and types fields in package.json to be compliant with typescripts's "moduleResolution": "node"

Breaking Changes

  • c2ad4d28(#8273) Changed former tauri module from primitives to core.

[2.0.0-alpha.12]

New Features

  • f93148ea(#7709) Add tray and menu modules to create and manage tray icons and menus from Javascript.

Enhancements

  • b7add750(#8204) Added position field to the FileDropEvent payload.

[2.0.0-alpha.11]

Bug Fixes

  • 822bf15d(#8130) Fix tslib missing in the distributed api package.

[2.0.0-alpha.10]

Enhancements

  • c6c59cf2 Pull changes from Tauri 1.5 release.

Bug Fixes

  • 287066b2(#8071) No longer crashing in tests without mocks when clearMocks is defined in afterEach hook.

[2.0.0-alpha.9]

New Features

  • c1ec0f15(#7933) Added setAlwaysOnBottom function on Window and the alwaysOnBottom option when creating a window.
  • fb10b879(#8039) Add the app module back.
  • ed32257d(#7794) On Windows, add Effect.Tabbed,Effect.TabbedDark and Effect.TabbedLight effects.
  • c9a9246c(#8007) Add the window module back.
  • c085adda(#8009) Added the setProgressBar API on the Window class.

What's Changed

Breaking Changes

  • a63e71f9(#7942) Changed tauri module to primitives and removed the undocumented invoke export from the root module.

[2.0.0-alpha.8]

Breaking Changes

  • d5074af5(#7801) The custom protocol on Android now uses the http scheme instead of https.

[2.0.0-alpha.7]

Breaking Changes

  • 4cb51a2d(#7779) The custom protocol on Windows now uses the http scheme instead of https.

[2.0.0-alpha.6]

New Features

  • 4af5c5a8(#7170) Change the IPC call to align with the new format for the custom protocol based API.

[2.0.0-alpha.5]

New Features

  • e0f0dce2(#6442) Added the windowEffects option when creating a window and setWindowEffects method to change it at runtime.

Enhancements

  • 9e3a18e0(#7132) Expose the window target option on event APIs.
  • 6d3f3138(#7160) Changed sep and delimiter from path module into functions to fix import in frameworks like next.js
  • 4652c446(#7144) Add tempDir function to path module

[2.0.0-alpha.4]

  • 0ab5f40d(#6813) Add channel API for sending data across the IPC.
  • 3245d14b(#6895) Moved the app feature to its own plugin in the plugins-workspace repository.
  • 09376af5(#6704) Moved the cli feature 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 the event JS APIs to a plugin.
  • fc4d687e(#6716) Moved the file system APIs to its own plugin in the plugins-workspace repository.
  • f78a3783(#6742) Moved the http feature to its own plugin in the plugins-workspace repository.
  • 29ce9ce2(#6902) Moved the os feature to its own plugin in the plugins-workspace repository.
  • 60cf9ed2(#6905) Moved the process feature to its own plugin in the plugins-workspace repository.
  • 96639ca2(#6749) Moved the shell functionality to its own plugin in the plugins-workspace repository.
  • b072daa3(#6919) Moved the updater feature to its own plugin in the plugins-workspace repository.
  • cebd7526(#6728) Moved the clipboard feature to its own plugin in the plugins-workspace repository.
  • 3f17ee82(#6737) Moved the global-shortcut feature to its own plugin in the plugins-workspace repository.
  • 9a79dc08(#6947) Moved the window JS APIs to its own plugin in the plugins-workspace repository.

[2.0.0-alpha.3]

  • Overload the dialog open function to have better TS result types.
    • 1eacd51d overloaded the open function for convenient type inference (#5619) on 2023-04-07

[2.0.0-alpha.2]

  • Added raw encoding option to read stdout and stderr raw bytes.
    • f992e7f5 chore(changes): readd change file on 2023-04-03
  • Removed shell's Command constructor and added the Command.create static function instead.
    • 509d4678 Support sending raw byte data to the "data" event for child command's stdout and stderr (#5789) on 2023-03-31

[2.0.0-alpha.1]

  • Added the shadow option when creating a window and setShadow function.

[2.0.0-alpha.0]

  • First mobile alpha release!

[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-level main, module and types fields in package.json to be compliant with typescripts's "moduleResolution": "node"
  • 14544e4b(#8219) Avoid crashing in clearMocks

[1.5.1]

New Features

  • 2b0212af(#7961) Add mockConvertFileSrc in mocks module, to mock convertFileSrc function.

[1.5.0]

New Features

Enhancements

  • 58d6b899(#7636) Add append option to FsOptions in the fs JS module, used in writeTextFile and writeBinaryFile, to be able to append to existing files instead of overwriting it.

Bug Fixes

  • 2eab1505(#7394) Fix Body.form static not reading and sending entries of type Blob (including subclasses such as File)

[1.4.0]

New Features

  • 359058ce(#5939) Add locale function in the os module to get the system locale.
  • c4d6fb4b(#2353) Added the maximizable, minimizable and closable fields on WindowOptions.
  • c4d6fb4b(#2353) Added the setMaximizable, setMinimizable, setClosable, isMaximizable, isMinimizable and isClosable methods.
  • 000104bc(#6472) Add WebviewWindow.is_focused and WebviewWindow.getFocusedWindow getters.

[1.3.0]

  • Return correct type for event.payload in onResized and onMoved window event handlers.
    • 0b46637e fix(api): construct correct object for onResized and onMoved, closes #6507 (#6509) on 2023-04-03
  • Added the WindowOptions::contentProtected option and WebviewWindow#setContentProtected to change it at runtime.
  • Allow setting the text of the dialog buttons.
    • 00e1efaa feat: customize button texts of message dialog (#4383) on 2022-12-28
  • Add is_minimized() window method.
  • Add title getter on window.

[1.2.0]

  • Added the acceptFirstMouse window option.
    • 95f467ad feat(core): add window accept_first_mouse option, closes #5347 (#5374) on 2022-10-17
  • Fix incorrect return type on fs/exists
    • ca3cd8b3 fix(api): fs/exists return type previously set to void when it should be boolean (#5252) on 2022-09-29
  • Initialize Monitor instances with the correct classes for position and size fields instead of plain object.
  • Breaking change: Node.js v12 is no longer supported.
    • 1129f4f5 refactor: simplify api.js bundling (#4277) on 2022-10-04
  • Add new app-specific BaseDirectory enum variants AppConfig, AppData, AppLocalData, AppCache and AppLog along with equivalent functions in path module and deprecated ambiguous variants Log and App along with their equivalent functions in path module.
  • Fix dialog.save return type
  • Added support to FormData on the Body.form function.
    • aa119f28 feat(api): add FormData support on Body.form, closes #5545 (#5546) on 2022-11-04
  • Added show and hide methods on the app module.
    • 39bf895b feat(macOS): Add application show and hide methods (#3689) on 2022-10-03
  • Added tabbingIdentifier window option for macOS.
  • Added tabbing_identifier to the window builder on macOS.
  • Added the user_agent option when creating a window.
    • a6c94119 feat(core): expose user_agent to window config (#5317) on 2022-10-02

[1.1.0]

  • Update mockIPC() handler signature to allow async handler functions.
    • 4fa968dc fix(api): add async mockIPC() handler signature (#5056) on 2022-08-26
  • Improve shell's Command, Command.stdout and Command.stderr events with new once, off, listenerCount, prependListener, prependOnceListener and removeAllListeners functions.
    • aa9f1243 Improved EventEmitter for tauri api shell (#4697) on 2022-07-26
  • Added the encoding option to the Command options.
    • d8cf9f9f Command support for specified character encoding, closes #4644 (#4772) on 2022-07-28
  • Add exists function to the fs module.
    • 3c62dbc9 feat(api): Add exists function to the fs module. (#5060) on 2022-09-15

[1.0.2]

  • Added helper functions to listen to updater and window events.
    • b02fc90f feat(api): add abstractions to updater and window event listeners (#4569) on 2022-07-05
  • Add support to ArrayBuffer in Body.bytes and writeBinaryFile.
    • 92aca55a feat(api): add support to ArrayBuffer (#4579) on 2022-07-05
  • Use toString() on message/confirm/ask dialogs title and message values.
    • b8cd2a79 feat(api): call toString() on dialog title and message, closes #4583 (#4588) on 2022-07-04
  • 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.
    • ea43cf52 fix(api): writeBinaryFile sends an empty contents with only one arg (#4368) on 2022-06-16

[1.0.0]

  • Allow choosing multiple folders in dialog.open.
  • Upgrade to stable!

[1.0.0-rc.7]

  • Fix FilePart usage in http.Body.form by renaming the value property to file.
    • 55f89d5f fix(api): Rename FormPart value to file to match docs and endpoint (#4307) on 2022-06-09
  • Fixes a memory leak in the command system.
    • f72cace3 fix: never remove ipc callback & mem never be released (#4274) on 2022-06-05
  • The notification's isPermissionGranted function now returns boolean instead of boolean | null. The response is never null because we won't check the permission for now, always returning true instead.
    • f482b094 fix: remove notification permission prompt (#4302) on 2022-06-09
  • Added the resolveResource API to the path module.
    • 7bba8db8 feat(api): add resolveResource API to the path module (#4234) on 2022-05-29
  • Renamed writeFile to writeTextFile but kept the original function for backwards compatibility.
    • 3f998ca2 feat(api): add writeTextFile and (path, contents, options) overload (#4228) on 2022-05-29
  • Added (path, contents[, options]) overload to the writeTextFile and writeBinaryFile APIs.
    • 3f998ca2 feat(api): add writeTextFile and (path, contents, options) overload (#4228) on 2022-05-29

[1.0.0-rc.6]

  • Expose option to set the dialog type.
    • f46175d5 feat(core): expose option to set dialog type, closes #4183 (#4187) on 2022-05-21
  • Expose title option in the message dialog API.
    • ae99f991 feat(core): expose message dialog's title option, ref #4183 (#4186) on 2022-05-21

[1.0.0-rc.5]

  • Fixes the type of http > connectTimeout.
    • f3c5ca89 fix(core): http api connect_timeout deserialization, closes #4004 (#4006) on 2022-04-29

[1.0.0-rc.4]

  • Encode the file path in the convertFileSrc function.
    • 42e8d9cf fix(api): encode file path in convertFileSrc function, closes #3841 (#3846) on 2022-04-02
  • Added theme getter to WebviewWindow.
  • Added theme field to WindowOptions.
  • Added the setCursorGrab, setCursorVisible, setCursorIcon and setCursorPosition methods to the WebviewWindow class.
  • Breaking change: The process Command API stdio lines now includes the trailing \r.
    • b5622882 fix(cli): exit on non-compilation Cargo errors, closes #3930 (#3942) on 2022-04-22
  • Added the tauri://theme-changed event.

[1.0.0-rc.3]

  • Properly define the appWindow type.
  • Added Temp to the BaseDirectory enum.
    • 266156a0 feat(core): add BaseDirectory::Temp and $TEMP variable (#3763) on 2022-03-24

[1.0.0-rc.2]

  • Do not crash if __TAURI_METADATA__ is not set, log an error instead.
    • 9cb1059a fix(api): do not throw an exception if TAURI_METADATA is not set, fixes #3554 (#3572) on 2022-03-03
  • Reimplement endpoint to read file as string for performance.
    • 834ccc51 feat(core): reimplement readTextFile for performance (#3631) on 2022-03-07
  • Fixes a regression on the unlisten command.
    • 76c791bd fix(core): regression on the unlisten function (#3623) on 2022-03-06

[1.0.0-rc.1]

  • Provide functions to mock IPC calls during testing and static site generation.
    • 7e04c072 feat: add mock functions for testing and SSG (#3437) on 2022-02-14
    • 6f5ed2e6 fix: change file on 2022-02-14

[1.0.0-rc.0]

  • Add fileDropEnabled property to WindowOptions so you can now disable it when creating windows from js.

    • 1bfc32a3 fix(api.js): add fileDropEnabled to WindowOptions, closes #2968 (#2989) on 2021-12-09
  • Add logDir function to the path module to access the suggested log directory. Add BaseDirectory.Log to the fs module.

  • Expose ask, message and confirm APIs on the dialog module.

    • e98c1af4 feat(core): expose message dialog APIs, fix window.confirm, implement HasRawWindowHandle for Window, closes #2535 (#2700) on 2021-10-02
  • Event emit now automatically serialize non-string types.

    • 06000996 feat(api): support unknown types for event emit payload, closes #2929 (#2964) on 2022-01-07
  • Fix http.fetch throwing error if the response is successful but the body is empty.

    • 50c63900 fix(api.js): fix http.fetch throwing error if response body is empty, closes #2831 (#3008) on 2021-12-09
  • Add title option to file open/save dialogs.

    • e1d6a6e6 Create api-file-dialog-title.md (#3235) on 2022-01-16
    • 62c7a8ad chore(covector): prepare for rc release (#3376) on 2022-02-10
  • Fix os.platform returning macos and windows instead of darwin and win32.

    • 3924c3d8 fix(api.js): fix os.platform return on macos and windows, closes #2698 (#2699) on 2021-10-02
  • The formatCallback helper function now returns a number instead of a string.

    • a48b8b18 feat(core): validate callbacks and event names [TRI-038] [TRI-020] (#21) on 2022-01-09
  • Added rawHeaders to http > Response.

  • Removed the currentDir API from the path module.

    • a08509c6 fix(api): remove currentDir API from the path module on 2022-02-04
  • Remove .ts files on the published package.

  • Breaking change: Replaces all usages of number[] with Uint8Array to be closer aligned with the wider JS ecosystem.

  • WindowManager methods innerPosition outerPosition now correctly return instance of PhysicalPosition. WindowManager methods innerSize outerSize now correctly return instance of PhysicalSize.

    • cc8b1468 Fix(api): Window size and position returning wrong class (fix: #2599) (#2621) on 2021-09-22
  • Change the event field of the Event interface to type EventName instead of string.

    • b5d9bcb4 Consistent event name usage (#3228) on 2022-01-15
    • 62c7a8ad chore(covector): prepare for rc release (#3376) on 2022-02-10
  • Now resolve(), join() and normalize() from the path module, won't throw errors if the path doesn't exist, which matches NodeJS behavior.

    • fe381a0b fix: join no longer cares if path doesn't exist, closes #2499 (#2548) on 2021-09-21
  • Fixes the dialog defaultPath usage on Linux.

  • Fixes window.label property returning null instead of the actual label.

    • f5109e0c fix(api): window label null instead of actual value, closes #3295 (#3332) on 2022-02-04
  • Remove the BaseDirectory::Current enum variant for security reasons.

    • 696dca58 refactor(core): remove BaseDirectory::Current variant on 2022-01-26
  • Change WindowLabel type to string.

    • 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 still asset://path/to/file.
    • 994b5325 fix: missing asset protocol path (#2484) on 2021-08-23

[1.0.0-beta.6]

  • bundle now exports clipboard module so you can import { clipboard } from "@tauri-apps/api".
    • 4f88c3fb fix(api.js): bundle now exports clipboard mod, closes #2243 (#2244) on 2021-07-19
  • Fix double window creation
  • Add os module which exports EOL, platform(), version(), type(), arch(), tempdir()
    • Add new nodejs-inspired functions which are join, resolve, normalize, dirname, basename and extname.
  • Add sep and delimiter constants.
  • Removed resolvePath API, use resolve instead.
  • 05b9d81e feat(api.js): add nodejs-inspired functions in path module (#2310) on 2021-08-02
  • Change target to ES2021.
    • 97bc52ee Tooling: [API] Changed target in tsconfig to es6 (#2362) on 2021-08-09
  • Add toggleMaximize() function to the WebviewWindow class.
    • 1a510066 fix(core): data-tauri-drag-region didn't respect resizable, closes #2314 (#2316) on 2021-08-02
  • Fix @ts-expect error usage
  • Fixes file drop events being swapped (file-drop-hover on drop and file-drop on hover).
    • c2b0fe1c fix(core): fix wrong file drop events (#2300) on 2021-07-31
  • 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 using type-fest's LiteralUnion.
    • 8e480297 feat(api): improve EventName type definition (#2379) on 2021-08-10
  • Update protocol url path with wry 0.12.1 on Windows.
    • 88382fe1 chore(api): update protocol url path with wry 0.12.1 on Windows (#2409) on 2021-08-13

[1.0.0-beta.5]

  • Adds convertFileSrc helper to the tauri module, simplifying the process of using file paths as webview source (img, video, etc).
    • 51a5cfe4 feat(api): add convertFileSrc helper (#2138) on 2021-07-02
  • You can now use emit, listen and once using the appWindow exported by the window module.
    • 5d7626f8 feat(api): WindowManager extends WebviewWindowHandle, add events docs (#2146) on 2021-07-03
  • Allow manipulating a spawned window directly using WebviewWindow, which now extends WindowManager.
    • d69b1cf6 feat(api): allow managing windows created on JS (#2154) on 2021-07-05

[1.0.0-beta.4]

  • Add asset custom protocol to access local file system.
    • ee60e424 feat: asset custom protocol to access local file system (#2104) on 2021-06-28

[1.0.0-beta.3]

  • Export Response and ResponseType as value instead of type.
    • 394b6e05 fix(api): http ResponseType export type error (#2065) on 2021-06-24

[1.0.0-beta.2]

  • Export BaseDirectory in path module
    • 277f5ca5 feat(api): export BaseDirectory in path module (#1885) on 2021-05-30
  • Use export type to export TS types, enums and interfaces.
    • 9a662d26 fix: Monitor if --isolatedModules is enabled (#1825) on 2021-05-13
    • 612cd8ec feat(api): finalize export type usage (#1847) on 2021-05-17
  • Adds focus?: boolean to the WindowOptions interface.
    • 5f351622 feat(core): add focus API to the WindowBuilder and WindowOptions, #1737 on 2021-05-30
  • Adds isDecorated getter on the window API.
    • f58a2114 feat(core): add is_decorated Window getter on 2021-05-30
  • Adds isResizable getter on the window API.
    • 1e8af280 feat(core): add is_resizable Window getter on 2021-05-30
  • Adds isVisible getter on the window API.
    • 36506c96 feat(core): add is_visible API on 2021-05-30
  • Adds requestUserAttention API to the window module.
  • Adds setFocus to the window API.
    • bb6992f8 feat(core): add set_focus window API, fixes #1737 on 2021-05-30
  • Adds setSkipTaskbar to the window API.
    • e06aa277 feat(core): add set_skip_taskbar API on 2021-05-30
  • Adds skipTaskbar?: boolean to the WindowOptions interface.
    • 5525b03a feat(core): add skip_taskbar API to the WindowBuilder/WindowOptions on 2021-05-30
  • Adds center?: boolean to WindowOptions and center() API to the appWindow.
  • Adds clipboard APIs (write and read text).
    • 285bf64b feat(core): add clipboard writeText and readText APIs (#2035) on 2021-06-21
    • dee71ad5 fix(workflows): update docs workflow syntax (#2054) on 2021-06-23
  • The http APIs now resolve the returned promise when the API call finishes with an error status code.
    • 47f75584 fix(core): resolve HTTP API on non-ok status code, fix binary response, closes #2046 (#2053) on 2021-06-23
  • 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.
    • 4aeb936e fix(api): WebviewWindow constructor is public (#1888) on 2021-05-21
  • Validate arguments on the window setLocation, setSize, setMinSize and setMaxSize API.
    • 7616e6cc feat(api): validate window API size and location arguments (#1846) on 2021-05-17

[1.0.0-beta.1]

  • Adds package.json to the exports object.
    • ab1ea96 chore(api): add package.json to the exports field (#1807) on 2021-05-12

[1.0.0-beta.0]

  • CommonJS chunks are now properly exported with .cjs extension
    • ddcd923 fix(api): export commonjs chunks with .cjs extension, fix #1625 (#1627) on 2021-04-26
  • Adds transparent?: boolean to the WindowOptions interface.
    • 08c1c5c fix(api): missing transparent flag on WindowOptions (#1764) on 2021-05-10
  • Adds options argument to the shell command API (env and cwd configuration).
    • 721e98f feat(core): add env, cwd to the command API, closes #1634 (#1635) on 2021-04-28
  • Adds startDragging API on the window module.
  • Move exit and relaunch APIs from app to process module.
    • b0bb796 refactor: rename command mod to process, move restart_application (#1667) on 2021-04-30
  • The window management API was refactored: removed setX, setY, setWidth, setHeight APIs, renamed resize to setSize and the size and position APIs now allow defining both logical and physical values.
    • 6bfac86 refactor(core): add window getters, physical & logical sizes/positions (#1723) on 2021-05-05
  • Adds window getters.
    • 6bfac86 refactor(core): add window getters, physical & logical sizes/positions (#1723) on 2021-05-05

[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
    • 1f089fb chore: update minimum nodejs version to 12.13.0 (#1562) on 2021-04-21

[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 the dist directory was not published and used.

[1.0.0-beta-rc.0]

  • Add current working directory to the path api module.
    • 52c2baf feat: add current working directory to path api module (#1375) on 2021-03-23
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
  • The shell process spawning API was rewritten and now includes stream access.
    • 3713066 refactor(core): rewrite shell execute API, closes #1229 (#1408) on 2021-03-31
  • The file dialog API now uses rfd. The filter option is now an array of { name: string, extensions: string[] }.
    • 2326bcd refactor(core): use nfd for file dialogs, closes #1251 (#1257) on 2021-02-18
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
  • The HTTP API was improved with client caching and better payload and response types.
    • a7bc472 refactor(core): improve HTTP API, closes #1098 (#1237) on 2021-02-15
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
  • Update all code files to have our license header.
    • bf82136 feat(license): SPDX Headers (#1449) on 2021-04-11
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • 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.
    • 427d170 feat(api/invoke): separate cmd arg (#1321) on 2021-03-04
  • Adds a global shortcut API.
    • 855effa feat(core): globalShortcut API (#1232) on 2021-02-14
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
  • Added window management and window creation APIs.
    • a3d6dff feat(core): window API (#1225) on 2021-02-13
    • 641374b feat(core): window creation at runtime (#1249) on 2021-02-17