tauri/core/tauri-codegen/CHANGELOG.md
github-actions[bot] 535691a711
Apply Version Updates From Current Changes (#9348)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-15 09:32:40 -03:00

28 KiB

Changelog

[2.0.0-beta.12]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.12

[2.0.0-beta.11]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.11

[2.0.0-beta.10]

New Features

  • e227fe02f(#9156) Allow plugins to define (at compile time) JavaScript that are initialized when withGlobalTauri is true.

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.10

[2.0.0-beta.9]

New Features

  • ba0206d8a(#9141) The Context codegen now accepts a assets input to define a custom tauri::Assets implementation.

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.9

[2.0.0-beta.8]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.8

Breaking Changes

  • ed48e2b3c(#9122) Expose tauri::image module to export the JsImage type and removed the Image root re-export.

[2.0.0-beta.7]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.7

Breaking Changes

  • d1e77acd8(#9011) Change the generated context code to use the new Image type in tauri.

[2.0.0-beta.6]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.6

Breaking Changes

  • 3657ad82(#9008) Allow defining permissions for the application commands via tauri_build::Attributes::app_manifest.

[2.0.0-beta.5]

Enhancements

  • bc5b5e67(#8984) Do not include a CSP tag in the application HTML and rely on the custom protocol response header instead.

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.5

[2.0.0-beta.4]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.4

[2.0.0-beta.3]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.3

[2.0.0-beta.2]

Enhancements

  • 83a68deb(#8797) Added a new configuration option tauri.conf.json > app > security > capabilities to reference existing capabilities and inline new ones. If it is empty, all capabilities are still included preserving the current behavior.
  • 8d16a80d(#8802) The generate_context proc macro now accepts a capabilities attribute where the value is an array of file paths that can be conditionally compiled. These capabilities are added to the application along the capabilities defined in the Tauri configuration file.

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.2

[2.0.0-beta.1]

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.1

[2.0.0-beta.0]

New Features

Dependencies

  • Upgraded to tauri-utils@2.0.0-beta.0

Breaking Changes

  • 8de308d1(#8723) Restructured Tauri config per RFC#5:

    • Moved package.productName, package.version and tauri.bundle.identifier fields to the top-level.
    • Removed package object.
    • Renamed tauri object to app.
    • Moved tauri.bundle object to the top-level.
    • Renamed build.distDir field to frontendDist.
    • Renamed build.devPath field to devUrl and will no longer accepts paths, it will only accept URLs.
    • Moved tauri.pattern to app.security.pattern.
    • Removed tauri.bundle.updater object, and its fields have been moved to the updater plugin under plugins.updater object.
    • Moved build.withGlobalTauri to app.withGlobalTauri.
    • Moved tauri.bundle.dmg object to bundle.macOS.dmg.
    • Moved tauri.bundle.deb object to bundle.linux.deb.
    • Moved tauri.bundle.appimage object to bundle.linux.appimage.
    • Removed all license fields from each bundle configuration object and instead added bundle.license and bundle.licenseFile.
    • Renamed AppUrl to FrontendDist and refactored its variants to be more explicit.

[2.0.0-alpha.13]

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.13

[2.0.0-alpha.12]

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.12

[2.0.0-alpha.11]

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.11

[2.0.0-alpha.10]

Enhancements

  • c6c59cf2 Pull changes from Tauri 1.5 release.

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.10

[2.0.0-alpha.9]

New Features

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.9

Breaking Changes

  • ebcc21e4(#8057) Renamed the beforeDevCommand, beforeBuildCommand and beforeBundleCommand hooks environment variables from TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG to TAURI_ENV_PLATFORM, TAURI_ENV_ARCH, TAURI_ENV_FAMILY, TAURI_ENV_PLATFORM_VERSION, TAURI_ENV_PLATFORM_TYPE and TAURI_ENV_DEBUG to differentiate the prefix with other CLI environment variables.

[2.0.0-alpha.8]

Enhancements

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.8

[2.0.0-alpha.7]

Dependencies

  • Upgraded to tauri-utils@2.0.0-alpha.7

[2.0.0-alpha.6]

Dependencies

  • Updated to latest tauri-utils

[2.0.0-alpha.5]

  • 96639ca2(#6749) Moved the shell functionality to its own plugin in the plugins-workspace repository.
  • 3188f376(#6883) Bump the MSRV to 1.65.
  • ae102980(#6719) Refactor the Context conditional fields and only parse the tray icon on desktop.

[2.0.0-alpha.4]

  • Added android configuration object under tauri > bundle.
    • Bumped due to a bump in tauri-utils.
    • db4c9dc6 feat(core): add option to configure Android's minimum SDK version (#6651) on 2023-04-07

[2.0.0-alpha.3]

  • Pull changes from Tauri 1.3 release.
    • on undefined

[2.0.0-alpha.2]

  • Return bool in the invoke handler.
    • 05dad087 feat: initial work for iOS plugins (#6205) on 2023-02-11

[2.0.0-alpha.1]

  • Bump the MSRV to 1.64.
  • Added crate_name field on PackageInfo.

[2.0.0-alpha.0]

  • Change devPath URL to use the local IP address on iOS and Android.
    • 6f061504 feat(cli): add android dev and ios dev commands (#4982) on 2022-08-20
  • First mobile alpha release!

[1.4.2]

Dependencies

  • Upgraded to tauri-utils@1.5.2

[1.4.1]

Dependencies

  • Upgraded to tauri-utils@1.5.0

[1.4.0]

Enhancements

[1.3.0]

  • Bump minimum supported Rust version to 1.60.
    • 5fdc616d feat: Use the zbus-backed of notify-rust (#6332) on 2023-03-31
  • Pin time to 0.3.15.

[1.2.1]

  • Fix allowlist > app > show/hide always disabled when allowlist > app > all: false.
    • Bumped due to a bump in tauri-utils.
    • bb251087 fix(core): extend allowlist with app's allowlist, closes #5650 (#5652) on 2022-11-18

[1.2.0]

  • Properly serialize HTML template tags.

[1.1.1]

  • Add missing allowlist config for set_cursor_grab, set_cursor_visible, set_cursor_icon and set_cursor_position APIs.
    • Bumped due to a bump in tauri-utils.
    • c764408d fix: Add missing allowlist config for cursor apis, closes #5207 (#5211) on 2022-09-16

[1.1.0]

  • Use TARGET environment variable for code generation inside build scripts.
    • 6ba99689 feat(codegen): use TARGET environment variable if set (#4921) on 2022-08-12
  • Added support to configuration files in TOML format (Tauri.toml file).
    • ae83d008 feat: add support to TOML config file Tauri.toml, closes #4806 (#4813) on 2022-08-02
  • Improve tray icon read error message.
    • 52f0c8bb feat(core): improve tray icon read error messages (#4850) on 2022-08-03
  • Fix relative paths in version field of tauri.config.json not being correctly parsed by generate_context!().
    • accbc5e8 fix(codegen): fix relative paths in version field of tauri.config.json, closes #4723 (#4725) on 2022-07-24
  • Only rewrite temporary icon files when the content change, avoid needless rebuilds.
    • f957cbb5 fix(codegen): write output file when contents change (#4889) on 2022-08-09

[1.0.4]

  • Validate __TAURI_ISOLATION_HOOK__ being set by a file in the isolation application.
    • 3b4ed970 feat(codegen): validate __TAURI_ISOLATION_HOOK__ is referenced (#4631) on 2022-07-11

[1.0.3]

  • The TAURI_CONFIG environment variable now represents the configuration to be merged instead of the entire JSON.
    • fa028ebf refactor: do not pass entire config from CLI to core, send patch instead (#4598) on 2022-07-06

[1.0.2]

  • Expose platform::windows_version function.
    • Bumped due to a bump in tauri-utils.
    • bf764e83 feat(utils): expose windows_version function (#4534) on 2022-06-30

[1.0.1]

  • Set the bundle name and app metadata in the Info.plist file in development mode.
    • 38f5db6e feat(codegen): fill app metadata in development Info.plist on 2022-06-21
  • Set the application icon in development mode on macOS.
    • 307c2ebf feat(core): set macOS app icon in development (#4385) on 2022-06-19

[1.0.0]

  • Upgrade to stable!

[1.0.0-rc.11]

  • Read the tray icon path relatively to the config directory.
    • 562e8ca2 fix(codegen): tray icon path is relative to the config directory on 2022-06-15

[1.0.0-rc.10]

  • Breaking change: The TrayIcon enum has been removed and now Icon is used instead. This allows you to use more image formats and use embedded icons on Linux.
    • 4ce8e228 refactor(core): use Icon for tray icons (#4342) on 2022-06-14

[1.0.0-rc.9]

  • Added a config flag to bundle the media framework used by webkit2gtk tauri.conf.json > tauri > bundle > appimage > bundleMediaFramework.
    • Bumped due to a bump in tauri-utils.
    • d335fae9 feat(bundler): bundle additional gstreamer files, closes #4092 (#4271) on 2022-06-10

[1.0.0-rc.8]

  • Breaking change: PackageInfo::version is now a semver::Version instead of a String.
    • 2badbd2d refactor: force semver versions, change updater should_install sig (#4215) on 2022-05-25
    • a7388e23 fix(ci): adjust change file to include tauri-utils and tauri-codegen on 2022-05-27

[1.0.0-rc.7]

  • Allow configuring the display options for the MSI execution allowing quieter updates.
    • Bumped due to a bump in tauri-utils.
    • 9f2c3413 feat(core): configure msiexec display options, closes #3951 (#4061) on 2022-05-15

[1.0.0-rc.6]

  • The dangerous_allow_asset_csp_modification configuration value has been changed to allow a list of CSP directives to disable.
    • 164078c0 feat: allow limiting dangerousDisableAssetCspModification, closes #3831 (#4021) on 2022-05-02

[1.0.0-rc.5]

  • Read platform-specific configuration files when generating code without the TAURI_CONFIG env var.
    • edf85bc1 fix(codegen): read platform-specific config file (#3966) on 2022-04-25

[1.0.0-rc.4]

  • Added an option to disable the CSP injection of distributable assets nonces and hashes.

    • f6e32ee1 feat(core): add dangerous option to disable compile time CSP injection (#3775) on 2022-03-28
  • Replace multiple dependencies who's C code compiled concurrently and caused the other ones to bloat compile time significantly.

  • zstd -> brotli

  • blake3 -> a vendored version of the blake3 reference

  • ring -> getrandom

See https://github.com/tauri-apps/tauri/pull/3773 for more information about these specific choices.

  • 8661e3e2 replace dependencies with long build times when used together (closes #3571) (#3773) on 2022-03-27

[1.0.0-rc.3]

  • Parse window icons at compile time.
    • 8c935872 refactor(core): move png and ico behind Cargo features (#3588) on 2022-03-05

[1.0.0-rc.2]

  • Changed the default value for tauri > bundle > macOS > minimumSystemVersion to 10.13.
    • Bumped due to a bump in tauri-utils.
    • fce344b9 feat(core): set default value for minimum_system_version to 10.13 (#3497) on 2022-02-17

[1.0.0-rc.1]

  • Change default value for the freezePrototype configuration to false.
    • Bumped due to a bump in tauri-utils.
    • 3a4c0160 fix(core): change default freezePrototype to false, closes #3416 #3406 (#3423) on 2022-02-12

[1.0.0-rc.0]

  • Apply nonce to script and style tags and set them on the CSP (script-src and style-src fetch directives).
    • cf54dcf9 feat: improve CSP security with nonces and hashes, add devCsp [TRI-004] (#8) on 2022-01-09
  • Added the isolation pattern.
  • Adds support for using JSON5 format for the tauri.conf.json file, along with also supporting the .json5 extension.

Here is the logic flow that determines if JSON or JSON5 will be used to parse the config:

  1. Check if tauri.conf.json exists a. Parse it with serde_json b. Parse it with json5 if serde_json fails c. Return original serde_json error if all above steps failed
  2. Check if tauri.conf.json5 exists a. Parse it with json5 b. Return error if all above steps failed
  3. Return error if all above steps failed
  • 995de57a Add seamless support for using JSON5 in the config file (#47) on 2022-02-03
  • The minimum Rust version is now 1.56.
    • a9dfc015 feat: update to edition 2021 and set minimum rust to 1.56 (#2789) on 2021-10-22

[1.0.0-beta.4]

  • Embed Info.plist file contents on binary on dev.
    • 537ab1b6 feat(core): inject src-tauri/Info.plist file on dev and merge on bundle, closes #1570 #2338 (#2444) on 2021-08-15
  • Fix ES Module detection for default imports with relative paths or scoped packages and exporting of async functions.
    • b2b36cfe fix(core): fixes ES Module detection for default imports with relative paths or scoped packages (#2380) on 2021-08-10
    • fbf8caf5 fix(core): ESM detection when using export async function (#2425) on 2021-08-14

[1.0.0-beta.3]

  • Improve ESM detection with regexes.
    • 4b0ec018 fix(core): improve JS ESM detection (#2139) on 2021-07-02
  • Inject invoke key on script tags with type="module".
    • f03eea9c feat(core): inject invoke key on <script type="module"> (#2120) on 2021-06-29

[1.0.0-beta.2]

  • Detect ESM scripts and inject the invoke key directly instead of using an IIFE.
    • 7765c7fa fix(core): invoke key injection on ES module, improve performance (#2094) on 2021-06-27
  • Improve invoke key code injection performance time rewriting code at compile time.
    • 7765c7fa fix(core): invoke key injection on ES module, improve performance (#2094) on 2021-06-27

[1.0.0-beta.1]

  • Allow dev_path and dist_dir to be an array of root files and directories to embed.
    • 6ec54c53 feat(core): allow dev_path, dist_dir as array of paths, fixes #1897 (#1926) on 2021-05-31
  • Validate tauri.conf.json > build > devPath and tauri.conf.json > build > distDir values.
    • e97846aa feat(core): validate devPath and distDir values (#1848) on 2021-05-17
  • Read tauri.conf.json > tauri > bundle > icons and use the first .png icon as window icon on Linux. Defaults to icon/icon.png if a PNG icon is not configured.

[1.0.0-beta.0]

  • Breaking: The assets field on the tauri::Context struct is now a Arc<impl Assets>.
    • 5110c70 feat(core): allow users to access the Assets instance (#1691) on 2021-05-03
  • Reintroduce csp injection, configured on tauri.conf.json > tauri > security > csp.
    • 6132f3f feat(core): reintroduce CSP injection (#1704) on 2021-05-04
  • Added the `#[non_exhaustive] attribute where appropriate.
    • e087f0f feat: add #[non_exhaustive] attribute (#1725) on 2021-05-05

[1.0.0-beta-rc.1]

  • The package info APIs now checks the package object on tauri.conf.json.
    • 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.0]

  • 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