From d94a7b04bab496fcfa8ce0acfff9e26df2d13866 Mon Sep 17 00:00:00 2001 From: Alex Zappa Date: Tue, 11 Aug 2026 03:07:12 +0200 Subject: [PATCH] chore: bump all dependencies, fix build tooling, resolve #27 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rust deps: - tauri 2.2.5 → 2.11.5, tokio 1.43.0 → 1.53.1, reqwest 0.12.12 → 0.13.4 - rand 0.9.0 → 0.10.0 (Rng → RngExt), serde 1.0.229, serde_json 1.0.151 - time 0.3.41, os_info 3.12.0, log 0.4.27, tauri-plugin 2.6.3 - rust-version 1.70 → 1.81.0 (PanicHookInfo minimum) - rustls-tls feature updated for reqwest 0.13 (rustls-tls → rustls) JS deps: - @tauri-apps/api ^2.10.1, rollup ^4.57.1, typescript ^5.9.3 - @rollup/plugin-terser ^1.0.0, @rollup/plugin-node-resolve ^16.0.3 Build fixes: - tsconfig: remove dead baseUrl/paths, add outDir, moduleResolution bundler - rollup: remove hardcoded moduleResolution: 'node' - Fixes npm run build which was broken with newer @rollup/plugin-typescript Closes #27 (ENGINE_NAME on iOS — fix already on main, now publishable) --- .gitignore | 1 + CHANGELOG.md | 17 +++++++++++++++++ Cargo.toml | 26 +++++++++++++------------- package.json | 14 +++++++------- src/client.rs | 2 +- webview-dist/index.js | 2 +- webview-src/rollup.config.js | 3 +-- webview-src/tsconfig.json | 9 ++++----- 8 files changed, 45 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index 9863270..01cfb28 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ yarn.lock /target Cargo.lock node_modules/ +webview-dist/rollup.config.d.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a012e6..6939a81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.0] - 2026-08-11 + +### Changed + +- Bump all Rust dependencies to latest versions (tauri 2.11.5, tokio 1.53.1, reqwest 0.13.4, rand 0.10.0, serde 1.0.229, serde_json 1.0.151, time 0.3.41, os_info 3.12.0, log 0.4.27, tauri-plugin 2.6.3) +- Bump JavaScript dependencies (@tauri-apps/api ^2.10.1, @rollup/plugin-node-resolve ^16.0.3, @rollup/plugin-typescript ^12.3.0, @rollup/plugin-terser ^1.0.0, rollup ^4.57.1, typescript ^5.9.3) +- Update `rust-version` to 1.81.0 (required for `PanicHookInfo`) +- Update `rustls-tls` feature to use `reqwest/rustls` (reqwest 0.13 renamed the feature) +- Clean up tsconfig.json: remove dead baseUrl/paths, switch to moduleResolution "bundler", add outDir +- Remove hardcoded `moduleResolution: 'node'` from rollup config + +### Fixed + +- Fix `rand` 0.10 API change: `rand::Rng` → `rand::RngExt` in client.rs +- Fix rollup build error: align tsconfig outDir with rollup output dir +- Resolve issue #27: ENGINE_NAME not found on iOS — already fixed on main, this release publishes the fix to crates.io + ## [1.1.0] - 2026-08-11 ### Fixed diff --git a/Cargo.toml b/Cargo.toml index 5a6d053..a5e798f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,34 +1,34 @@ [package] name = "tauri-plugin-aptabase" -version = "1.1.0" +version = "1.2.0" license = "MIT" description = "Tauri Plugin for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps" authors = ["Guilherme Oenning"] edition = "2021" -rust-version = "1.70" +rust-version = "1.81.0" readme = "README.md" repository = "https://github.com/aptabase/tauri-plugin-aptabase" exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"] links = "tauri-plugin-aptabase" [dependencies] -tauri = "2.2.5" -tokio = "1.43.0" +tauri = "2.11.5" +tokio = "1.53.1" futures = "0.3.31" -serde = "1.0.217" -serde_json = "1.0.138" -reqwest = { version = "0.12.12", default-features = false, features = ["json"] } -time = { version = "0.3.37", features = ["formatting"] } -os_info = "3.9.2" -rand = "0.9.0" -log = "0.4.25" +serde = "1.0.229" +serde_json = "1.0.151" +reqwest = { version = "0.13.4", default-features = false, features = ["json"] } +time = { version = "0.3.41", features = ["formatting"] } +os_info = "3.12.0" +rand = "0.10.0" +log = "0.4.27" sys-locale = "0.3.2" [build-dependencies] -tauri-plugin = { version = "2.0.4", features = ["build"] } +tauri-plugin = { version = "2.6.3", features = ["build"] } [features] default = ["default-tls"] default-tls = ["reqwest/default-tls"] native-tls = ["reqwest/native-tls"] -rustls-tls = ["reqwest/rustls-tls"] +rustls-tls = ["reqwest/rustls"] diff --git a/package.json b/package.json index b5dba26..f8e502f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aptabase/tauri", - "version": "0.5.0", + "version": "0.6.0", "private": false, "type": "module", "description": "Tauri Plugin for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps", @@ -29,14 +29,14 @@ "package.json" ], "devDependencies": { - "@rollup/plugin-node-resolve": "^15.3.0", - "@rollup/plugin-typescript": "^12.1.1", - "@rollup/plugin-terser": "^0.4.4", - "rollup": "^4.27.4", - "typescript": "^5.7.2" + "@rollup/plugin-node-resolve": "^16.0.3", + "@rollup/plugin-typescript": "^12.3.0", + "@rollup/plugin-terser": "^1.0.0", + "rollup": "^4.57.1", + "typescript": "^5.9.3" }, "dependencies": { - "@tauri-apps/api": "^2.7.0", + "@tauri-apps/api": "^2.10.1", "tslib": "^2.8.1" } } diff --git a/src/client.rs b/src/client.rs index 5a2ffd7..d1cb149 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,4 +1,4 @@ -use rand::Rng; +use rand::RngExt; use serde_json::{json, Value}; use std::time::{SystemTime, UNIX_EPOCH}; use std::{ diff --git a/webview-dist/index.js b/webview-dist/index.js index 5f0290a..b957d7f 100644 --- a/webview-dist/index.js +++ b/webview-dist/index.js @@ -1 +1 @@ -function n(n,e,r,t){return new(r||(r=Promise))((function(o,u){function i(n){try{p(t.next(n))}catch(n){u(n)}}function c(n){try{p(t.throw(n))}catch(n){u(n)}}function p(n){var e;n.done?o(n.value):(e=n.value,e instanceof r?e:new r((function(n){n(e)}))).then(i,c)}p((t=t.apply(n,e||[])).next())}))}function e(e,r){return n(this,void 0,void 0,(function*(){yield async function(n,e={},r){return window.__TAURI_INTERNALS__.invoke(n,e,r)}("plugin:aptabase|track_event",{name:e,props:r})}))}"function"==typeof SuppressedError&&SuppressedError,"function"==typeof SuppressedError&&SuppressedError;export{e as trackEvent}; +function n(n,e,r,t){return new(r||(r=Promise))(function(o,u){function i(n){try{p(t.next(n))}catch(n){u(n)}}function c(n){try{p(t.throw(n))}catch(n){u(n)}}function p(n){var e;n.done?o(n.value):(e=n.value,e instanceof r?e:new r(function(n){n(e)})).then(i,c)}p((t=t.apply(n,e||[])).next())})}function e(e,r){return n(this,void 0,void 0,function*(){yield async function(n,e={},r){return window.__TAURI_INTERNALS__.invoke(n,e,r)}("plugin:aptabase|track_event",{name:e,props:r})})}"function"==typeof SuppressedError&&SuppressedError,"function"==typeof SuppressedError&&SuppressedError;export{e as trackEvent}; diff --git a/webview-src/rollup.config.js b/webview-src/rollup.config.js index bf8450c..f3acd47 100644 --- a/webview-src/rollup.config.js +++ b/webview-src/rollup.config.js @@ -14,8 +14,7 @@ export default { nodeResolve(), terser(), typescript({ - tsconfig: './webview-src/tsconfig.json', - moduleResolution: 'node' + tsconfig: './webview-src/tsconfig.json' }) ] } diff --git a/webview-src/tsconfig.json b/webview-src/tsconfig.json index 816d015..caa184d 100644 --- a/webview-src/tsconfig.json +++ b/webview-src/tsconfig.json @@ -4,13 +4,12 @@ "strict": true, "allowJs": true, "esModuleInterop": true, - "baseUrl": ".", - "paths": { - "types": ["@types"] - }, + "moduleResolution": "bundler", "declaration": true, "declarationDir": "../webview-dist", + "outDir": "../webview-dist", "rootDir": "./" }, - "include": ["./"] + "include": ["./index.ts"], + "exclude": ["./rollup.config.js"] }