PNPM Audit
No known vulnerabilities found
[2.1.0]
New Features
-
5c4b83084
(#11191 by @amrbashir) Improved support fordpi
module types to allow these types to be used without manual conversions withinvoke
:- Added
SERIALIZE_TO_IPC_FN
const incore
module which can be used to implement custom IPC serialization for types passed toinvoke
. - Added
Size
andPosition
classes indpi
module. - Implementd
SERIALIZE_TO_IPC_FN
method onPhysicalSize
,PhysicalPosition
,LogicalSize
andLogicalPosition
to convert it into a valid IPC-compatible value that can be deserialized correctly on the Rust side into its equivalent struct.
- Added
-
4d545ab3c
(#11486 by @amrbashir) AddedWebview::setBackgroundColor
,WebviewWindow::setBackgroundColor
APIs to set the window background color dynamically
and abackgroundColor
window option to set the background color on window creation. -
cbc095ec5
(#11451 by @amrbashir) Addapp > windows > devtools
config option and when creating the webview from JS, to enable or disable devtools for a specific webview. -
2a75c64b5
(#11469 by @amrbashir) AddedwindowClassname
option, when constructing aWebview
orWebviewWindow
, to specify the name of the window class on Windows.
Bug Fixes
54cbf59b5
(#11441 by @amrbashir) Fix submenu created as a menu item instead of a submenu when created by using an object in theitems
field in the options object passed toMenu.new
orSubmenu.new
.
PNPM Publish
> @tauri-apps/api@2.1.0 npm-publish /home/runner/work/tauri/tauri/packages/api
> pnpm build && cd ./dist && pnpm publish --access public --loglevel silly --no-git-checks
> @tauri-apps/api@2.1.0 build /home/runner/work/tauri/tauri/packages/api
> rollup -c --configPlugin typescript
�[36m
�[1m./src/app.ts, ./src/core.ts, ./src/dpi.ts, ./src/event.ts, ./src/image.ts, ./src/index.ts, ./src/menu.ts, ./src/mocks.ts, ./src/path.ts, ./src/tray.ts, ./src/webview.ts, ./src/webviewWindow.ts, ./src/window.ts�[22m → �[1m./dist, ./dist�[22m...�[39m
�[32mcreated �[1m./dist, ./dist�[22m in �[1m1.4s�[22m�[39m
�[36m
�[1msrc/index.ts�[22m → �[1m../../crates/tauri/scripts/bundle.global.js�[22m...�[39m
�[32mcreated �[1m../../crates/tauri/scripts/bundle.global.js�[22m in �[1m2s�[22m�[39m
npm verbose cli /opt/hostedtoolcache/node/20.18.0/x64/bin/node /opt/hostedtoolcache/node/20.18.0/x64/bin/npm
npm info using npm@10.8.2
npm info using node@v20.18.0
npm silly config load:file:/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/npmrc
npm silly config load:file:/tmp/6077d4c823f244e3a0880d2cc14a3a9b/.npmrc
npm silly config load:file:/home/runner/work/_temp/.npmrc
npm silly config load:file:/opt/hostedtoolcache/node/20.18.0/x64/etc/npmrc
npm verbose title npm publish tauri-apps-api-2.1.0.tgz
npm verbose argv "publish" "--ignore-scripts" "tauri-apps-api-2.1.0.tgz" "--access" "public" "--loglevel" "silly" "--no-git-checks"
npm verbose logfile logs-max:10 dir:/home/runner/.npm/_logs/2024-11-09T14_06_11_861Z-
npm verbose logfile /home/runner/.npm/_logs/2024-11-09T14_06_11_861Z-debug-0.log
npm verbose publish [ 'tauri-apps-api-2.1.0.tgz' ]
npm silly logfile done cleaning log files
npm notice
npm notice 📦 @tauri-apps/api@2.1.0
npm notice Tarball Contents
npm notice 82.7kB CHANGELOG.md
npm notice 10.2kB LICENSE_APACHE-2.0
npm notice 1.1kB LICENSE_MIT
npm notice 3.5kB README.md
npm notice 2.6kB app.cjs
npm notice 2.0kB app.d.ts
npm notice 2.4kB app.js
npm notice 10.1kB core.cjs
npm notice 6.4kB core.d.ts
npm notice 9.7kB core.js
npm notice 10.3kB dpi.cjs
npm notice 8.1kB dpi.d.ts
npm notice 10.1kB dpi.js
npm notice 5.6kB event.cjs
npm notice 4.6kB event.d.ts
npm notice 5.6kB event.js
npm notice 2.2kB external/tslib/tslib.es6.cjs
npm notice 2.2kB external/tslib/tslib.es6.js
npm notice 3.0kB image.cjs
npm notice 2.2kB image.d.ts
npm notice 2.9kB image.js
npm notice 738B index.cjs
npm notice 817B index.d.ts
npm notice 669B index.js
npm notice 1.1kB menu.cjs
npm notice 451B menu.d.ts
npm notice 703B menu.js
npm notice 2.9kB menu/base.cjs
npm notice 471B menu/base.d.ts
npm notice 2.8kB menu/base.js
npm notice 2.2kB menu/checkMenuItem.cjs
npm notice 1.5kB menu/checkMenuItem.d.ts
npm notice 2.2kB menu/checkMenuItem.js
npm notice 7.4kB menu/iconMenuItem.cjs
npm notice 6.2kB menu/iconMenuItem.d.ts
npm notice 7.3kB menu/iconMenuItem.js
npm notice 6.2kB menu/menu.cjs
npm notice 4.3kB menu/menu.d.ts
npm notice 6.1kB menu/menu.js
npm notice 1.7kB menu/menuItem.cjs
npm notice 1.3kB menu/menuItem.d.ts
npm notice 1.6kB menu/menuItem.js
npm notice 1.1kB menu/predefinedMenuItem.cjs
npm notice 2.6kB menu/predefinedMenuItem.d.ts
npm notice 1.1kB menu/predefinedMenuItem.js
npm notice 6.8kB menu/submenu.cjs
npm notice 4.3kB menu/submenu.d.ts
npm notice 6.6kB menu/submenu.js
npm notice 6.3kB mocks.cjs
npm notice 3.8kB mocks.d.ts
npm notice 6.3kB mocks.js
npm notice 1.7kB package.json
npm notice 20.1kB path.cjs
npm notice 15.1kB path.d.ts
npm notice 19.1kB path.js
npm notice 5.9kB tray.cjs
npm notice 7.2kB tray.d.ts
npm notice 5.9kB tray.js
npm notice 19.0kB webview.cjs
npm notice 18.0kB webview.d.ts
npm notice 18.8kB webview.js
npm notice 8.4kB webviewWindow.cjs
npm notice 4.9kB webviewWindow.d.ts
npm notice 8.3kB webviewWindow.js
npm notice 62.0kB window.cjs
npm notice 55.2kB window.d.ts
npm notice 61.2kB window.js
npm notice Tarball Details
npm notice name: @tauri-apps/api
npm notice version: 2.1.0
npm notice filename: tauri-apps-api-2.1.0.tgz
npm notice package size: 116.8 kB
npm notice unpacked size: 615.8 kB
npm notice shasum: 1ee5922319ca9dac63acbb53ebc371f47eabade2
npm notice integrity: sha512-1w/JygZOiUtdO[...]HCuEByCvWRtfw==
npm notice total files: 67
npm notice
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm notice publish Signed provenance statement with source and build information from GitHub Actions
npm notice publish Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=147795403
npm http fetch PUT 200 https://registry.npmjs.org/@tauri-apps%2fapi 2367ms
+ @tauri-apps/api@2.1.0
npm verbose cwd /tmp/6077d4c823f244e3a0880d2cc14a3a9b
npm verbose os Linux 6.5.0-1025-azure
npm verbose node v20.18.0
npm verbose npm v10.8.2
npm verbose exit 0
npm info ok