tauri/tooling/cli.js/CHANGELOG.md
renovate[bot] 1f98853573
chore(deps) Update Tauri Core (#2480)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: david <david@lemarier.ca>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: chip <chip@chip.sh>
2021-08-24 11:40:10 -03:00

30 KiB

Changelog

[1.0.0-beta.10]

  • Update cli.yml to pass clap ArgSettings::MultipleValues assertion.
    • Bumped due to a bump in cli.rs.
    • 0391ac3d fix: Update cli.yml to pass clap ArgSettings::MultipleValues assertion. (#2506) (#2507) on 2021-08-22

[1.0.0-beta.9]

  • The CLI is now an ES module and requires at least Node.js v12.20. Fixed previous releases by using Rollup instead of Webpack.
    • 8d1fe0ea feat(cli.js): readd ESM distribution (#2468) on 2021-08-17

[1.0.0-beta.8]

  • Reverts ESM distribution.
    • 01ad2925 fix(cli.js): revert ESM distribution (#2457) on 2021-08-16

[1.0.0-beta.7]

  • Force Cargo manifest update when running the deps update command and fix the version that is written to the file.
    • c544cea8 fix(cli.js): force version update on Cargo manifest (#2419) on 2021-08-13
  • The CLI is now a ES module and requires at least Node.js v12.20.
  • Adds support to HTTPS proxy set with the HTTPS_PROXY environment variable.
  • Adjust check for dev mode and switch CTA test to a script runner. The script gives us more control and better output into any failures.
    • c410e034 convert jest tests to child_process run script (#2308) on 2021-08-08

[1.0.0-beta.6]

  • Run powershell commands with -NoProfile flag
    • 3e6f3416 fix(cli.rs): run powershell kill command without profile (#2130) on 2021-06-30
  • Throw error on cli.rs download failure instead of silent exit.
    • fd033464 fix: tauri init may failed with no error message. (fix #2079) (#2117) on 2021-06-30

[1.0.0-beta.5]

  • Improve error message when the product name is invalid.
    • Bumped due to a bump in cli.rs.
    • 1a41e9f0 feat(cli.rs): improve error message on app rename, closes #2101 (#2114) on 2021-06-28

[1.0.0-beta.4]

  • Properly detect target platform's architecture.
    • Bumped due to a bump in cli.rs.
    • 628a53eb fix(cli): properly detect target architecture, closes #2040 (#2102) on 2021-06-28
  • Fixes build command when the target arg is set.
    • Bumped due to a bump in cli.rs.
    • 8e238701 fix(cli.rs): fix out dir detection when target arg is set, closes #2040 (#2098) on 2021-06-27

[1.0.0-beta.3]

  • Allow empty argument when running cli.rs.
    • 8be35ced fix(cli.rs): tauri.conf.json > tauri > bundle > targets being ignored (#1945) on 2021-06-04

[1.0.0-beta.2]

  • Packages are checked with != instead of semver for beta releases.
    • 66b6136 Disable version check with semver for now (#1810) on 2021-05-13

[1.0.0-beta.1]

  • Add 'self' to default CSP because otherwise no joy on macOS.
    • Bumped due to a bump in cli.rs.
    • 12268e6 fix(csp): add 'self' (#1794) on 2021-05-12
  • Fix a typo that would result in bundle arg being ignored.
    • Bumped due to a bump in cli.rs.
    • 71f6a5e fix(cli.rs/build): fix typo getting bundle arg (#1783) on 2021-05-12

[1.0.0-beta.0]

  • Fixes UnhandledPromiseRejectionWarning when the Rust CLI call fails.

    • 8845487 fix(cli.js): handle cli.rs promise rejection (#1689) on 2021-05-03
  • Download rustup script on runtime instead of shipping it.

    • 862e33a refactor(cli.js): download rustup binary (#1711) on 2021-05-05
  • Adds pnpm support.

    • 908b703 feat(cli.js): package managers interface, add pnpm support (#1743) on 2021-05-09
  • Updates to tauri icon

  • detect if icon is NOT transparent via metadata

  • detect again on pixel level

  • remove pngquant as a waste of space

  • make optipng default

  • relax optipng settings

  • 82a580e feat(tauricon): fix transparency (#1678) on 2021-05-03

[1.0.0-beta-rc.4]

  • Fixes the Message command name value on plugin invoke handler.
    • Bumped due to a bump in cli.rs.
    • 422dd5e fix(core): command name on plugin invoke handler (#1577) on 2021-04-21
    • f575aaa fix: change files not referencing core packages (#1619) on 2021-04-25
  • The package info APIs now checks the package object on tauri.conf.json.
    • Bumped due to a bump in cli.rs.
    • 8fd1baf fix(core): pull package info from tauri.conf.json if set (#1581) on 2021-04-22
    • f575aaa fix: change files not referencing core packages (#1619) on 2021-04-25

[1.0.0-beta-rc.3]

  • Remove Rust CLI download file if the download fails or the prpocess is killed.
    • 8a32d0e fix(cli.js): remove cli file if the download fails or process is killed (#1592) on 2021-04-22
  • The tauri deps command now properly detects beta-rc crate updates.
    • 07eb6ce fix(cli.js): use cargo search on crate latest version detection (#1563) on 2021-04-21
  • Update minimum Node.js version to v12.13.0
    • 1f089fb chore: update minimum nodejs version to 12.13.0 (#1562) on 2021-04-21
  • The tauri icon command now accepts the icon path as the first positional argument instead of --icon PATH.
    • 1e0b41e refactor(cli.js): tauri icon with positional arg for icon path (#1600) on 2021-04-23
  • Do not prompt to install dependencies on tauri init when the --ci argument is passed.
    • 941585c fix(cli.js): skip installing deps when --ci is passed on tauri init (#1603) on 2021-04-23

[1.0.0-beta-rc.2]

  • Add missing camelcase rename for config
    • Bumped due to a bump in cli.rs.
    • bdf7072 fix(cli.rs/info): add missing camelCase rename (#1505) on 2021-04-14
  • Fix tauri info
  • Properly detect yarn and npm versions on windows.
  • Fix a panic caused by a wrong field name in metadata.json
  • Bumped due to a bump in cli.rs.
  • 71666e9 fix(cli.rs): fix panic & use cmd to run yarn&npm on windows (#1511) on 2021-04-17
  • Sync metadata.json via script to update version reference to cli.js, tauri (core) and tauri-build.
    • Bumped due to a bump in cli.rs.
    • 1f64927 chore: sync cli.rs metadata.json file versions (#1534) on 2021-04-19

[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.
    • Bumped due to a bump in cli.rs.
    • b2569a7 fix(js-api): dist (#1498) on 2021-04-15

[1.0.0-beta-rc.0]

  • Fixed missing 'App' variant & string promise instead of void promise.
  • 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
  • JS CLI now downloads prebuilt Rust CLI.
    • df305b2 feat(cli/tauri.js): download prebuilt cli (#1452) on 2021-04-13
  • The info command was rewritten in Rust.
    • c3e06ee refactor(cli): rewrite info in Rust (#1389) on 2021-03-25
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • The init command was rewritten in Rust.
    • f72b93b refactor(cli): rewrite init command in Rust (#1382) on 2021-03-24
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Removed the no-server mode, the inliner, the dev server proxy and the loadAsset API.
    • 84d7cda refactor(core): remove no-server and its APIs (#1215) on 2021-02-11
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Revert tauri create deletion and shift remaining pieces that weren't deleted to create-tauri-app.
    • 4ec20a4 feat: shift tauri create [not wired up] (#1330) on 2021-03-07
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • The Tauri API interface is now shipped with the @tauri-apps/api package instead of the deprecated tauri package. To use the new API package, delete the old tauri from your package.json and install the new package: $ yarn remove tauri && yarn add @tauri-apps/api or $ npm uninstall tauri && npm install @tauri-apps/api. And change all import { someApi } from 'tauri/api to import { someApi } from '@tauri-apps/api'.
    • 3e8abe3 feat(cli) rewrite the core CLI in Rust (#851) on 2021-01-30
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • The Tauri Node.js CLI package is now @tauri-apps/cli.
    • 3e8abe3 feat(cli) rewrite the core CLI in Rust (#851) on 2021-01-30
    • e02c941 refactor(tauri): support for building without environmental variables (#850) on 2021-02-09
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • All the arguments passed after tauri dev -- are now propagated to the binary.
    • 4e9d31c feat(cli): propagate args passed after dev --, closes #1406 (#1407) on 2021-03-30
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Eliminate the dead code in cli.js. Also removed some unused dependencies and updated the publish config that we are not publishing the Typescript files (since this is now primarily a CLI).
    • c718bd2 chore: tauri.js dead code elim (#1422) on 2021-04-01
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12

[0.14.1]

  • Fixed a TypeScript issue where it didn't allow you to put the "recursive" option in the directory functions.
    • 2fd1067 Fix: add recursive option to directory APIs (#1141) on 2021-01-12

[0.14.0]

  • Update the tauri template to properly set the app icon id on Windows so the webview can load the executable icon. To use it on old projects, update your src-tauri/src/build.rs file, replacing res.set_icon("icons/icon.ico"); with res.set_icon_with_id("icons/icon.ico", "32512");. - f887320 fix(template) default windows icon id should be 32512, fixes #1099 (#1107) on 2020-12-05
  • Fixes tauri deps command usage when npm is not installed.
    • 8da495f fix(tauri.js) deps cmd usage when npm is not installed, closes #1037 (#1053) on 2020-12-05
  • Match writeBinaryFile command name between js and rust
    • 486bd92 Fix: writeBinaryFile to call the correct command (fix #1133) (#1136) on 2021-01-06

[0.13.0]

  • Fixes Reflect.deleteProperty on promisified API calls failing with Unable to delete property by making it configurable.
    • c8b167a fix(tauri.js) promisified API fails on Reflect.deleteProperty, fix #1038 (#1056) on 2020-10-17
    • 72996be apply version updates (#1024) on 2020-10-21
  • Adds a path resolution API (e.g. getting the download directory or resolving a path to the home directory).

[0.12.0]

  • Break out TauriBuildConfig interface from TauriConfig build property
  • Create recipes. A recipe:
    • Updates the TauriBuildConfig during the init process
    • Specifies npm dev and production dependencies to be installed
    • Runs extra installation scripts
    • 43a8c4d fix #920: Create recipes (#930) on 2020-08-17
  • Create React JS and React TS recipes
  • Add new top level command create, which accepts a recipe as a CLI, or runs interactively, prompting for a recipe out of a menu of choices defined by api/recipes/index
  • Refactor init command so that it is just an alias for create with no recipe
  • Bump all deps as noted in #975, #976, #977, #978, and #979.
    • 06dd75b chore: bump all js/rust deps (#983) on 2020-08-20
  • Make interactive prompt not ask for app name supplied as cli arg
    • 59e0de7 Fix cli no prompt for app-name cli arg (#980) on 2020-08-19
  • Change String to string type for open and save methods
    • 0a5bac1 fix(tauri.js): fix typings for open and save dialogs (#926) on 2020-08-08
  • Format all code with prettier. This technically should only affect code styles, but noting for posterity.
    • 6a21965 chore: add prettier for js formatting (#937) on 2020-08-18
  • Set correct promise resolve type which returns from readBinaryFile
    • f98d4b9 fix(tauri.js): fix return type for readBinaryFile api method (#927) on 2020-08-08
  • Add types to JSDoc annotations
    • f98d4b9 fix(tauri.js): fix return type for readBinaryFile api method (#927) on 2020-08-08

[0.11.1]

  • Fix command line arguments -W (window title) and -P (dev server uri) to work as intended.
    • e1fd626 Fix typos referring to CLI args in init command (#921) on 2020-08-03

[0.11.0]

  • Fixes the Webview initialization on Windows.
    • 4abd12c fix(tauri) webview initialization on windows, fixes #879 (#885) on 2020-07-23

[0.10.0]

  • Fixes the writeFile and writeBinaryFile usage.
    • cbd14c3 fix(tauri.js) writeFile and writeBinaryFile API (#857) on 2020-07-19
  • The notification's body is now optional, closes #793.
    • dac1db3 fix(tauri) notification body optional, requestPermission() regression, closes #793 (#844) on 2020-07-16
  • Fixes a memory leak on the promisified helper usage.
    • 42a8bb0 fix(api) promisified not cleaning up transformed callbacks, fixes #852 (#853) on 2020-07-18
  • Prevent running the dev pipeline when running with administrator privileges.
    • 1780057 fix(tauri.js) exit dev when running as admin, fixes #781 (#839) on 2020-07-15
  • Print outdated dependencies information on tauri info.
    • f0ce94f feat(tauri.js) print outdated deps information on tauri info (#841) on 2020-07-15
  • Convert the --app-name value to kebab case.
    • da99f63 fix(tauri.js) app name as kebab case (#856) on 2020-07-19
  • Do not require a package.json file on the app root.
    • 45d3de6 fix(tauri.js) do not require a package.json (#855) on 2020-07-19
  • Adds a dependency manager command to the Node.js CLI (tauri deps). The manager is able to install and update Rust and the Tauri ecosystem dependencies (npm package, crates, cargo subcommands). Usage: tauri deps install and tauri deps update. - 77282c1 feat(tauri.js) add dependency manager command (#829) on 2020-07-15
  • Run the dependency manager's install script after tauri init succeeds.
    • 0591f1f feat(tauri.js) run deps install after tauri init (#842) on 2020-07-15
  • Move types exported in the tauri js api into the modules that use them. For example, Event is now available from tauri/api/event instead of tauri/api/types/event. - 660a2d8 feat(tauri.js) move exported api types into api modules (fix #807) (#809) on 2020-07-12

[0.9.1]

  • Fixes Edge blank screen on Windows when running tauri dev (Tauri crashing window due to Edge reloading app because of missing Content-Type header).
    • Bumped due to a bump in tauri-api.
    • fedee83 fix(tauri.js) windows Edge blank screen on tauri dev (#808) on 2020-07-11
  • Improve the tauri info output on Windows, including the Microsoft Edge version.
    • 0d6235e feat(tauri.js) add microsoft edge version to the info output (#810) on 2020-07-12

[0.9.0]

  • Fixes a race condition on the beforeDevCommand usage (starting Tauri before the devServer is ready).
    • a26cffc fix(tauri.js) beforeDevCommand race condition (#801) on 2020-07-10
  • Revert a nullish coalescing operator that changed embedded server/inliner behavior.
    • e7b4951 fix(tauri.js) revert nullish coalesce addition (#799) on 2020-07-10
  • Fixes tauri init not generating tauri.conf.json on the Vue CLI Plugin.
    • f208a68 fix(tauri.js) do not swallow init errors, fix conf inject (#802) on 2020-07-10
  • tauri init now prompt for default values such as window title, app name, dist dir and dev path. You can use --ci to skip the prompts.

[0.8.4]

  • Bump lodash to 4.17.19

[0.8.3]

  • Fixes the wrong cli value on the template that's used by tauri init. Also fixes the template test.
  • Fixes the tauri icon usage with the --icon flag. Previously, only the -i flag worked.

[0.8.2]

  • Adds tauri.conf.json schema validation to the CLI.

[0.8.1]

  • Transpile the TS API to ES5. Expose CJS as .js and ESM as .mjs.
  • Fixes the assets embedding into the binary.

[0.8.0]

  • Create UMD, ESM and CJS artifacts for the JavaScript API entry point from TS source using rollup.
  • Renaming window.tauri to window.__TAURI__, closing #435. The Tauri object now follows the TypeScript API structure (e.g. window.tauri.readTextFile is now window.__TAURI__.fs.readTextFile). If you want to keep the window.tauri object for a while, you can add a mapping object to your code.